BUG: SlideViewTransition() not working properly
I'm attempting to use one of the standard view transitions. Basically, I want a particular view to slide right instead of left (default). According to everything I read on Adobe's website and the help pages this should be possible using the SlideViewTransition() function.
When I use the function it states that I'm trying to pass too many variables to it. However, when I look at the actual code in the project (Flex Hero > spark > effects > SlideViewTransition.abc > SlideViewTransition.as) the function does indeed show 2 variables to be passed to it:
public function SlideViewTransition(duration:Number = 300, direction:String = SLIDE_LEFT) { super(); this.duration = duration; this.direction = direction; }
NOTE: SLIDE_LEFT is a constant set in the class that equals "left" (string). There is also a SLIDE_RIGHT constant that equals "right".
I initially tried the following...
- SlideViewTransition(null, SLIDE_RIGHT)
- SlideViewTransition(300, SLIDE_RIGHT)
- SlideViewTransition(null, "right")
- SlideViewTransition(300, "right")
NOTE: The entire line tried is:
navigator.pushView(views.MoBillTransactions, null, SlideViewTransition("right"));After repeatedly receiving an error stating too many variables were passed I tried passing just one. Sending a number threw a type error, so I knew it wasn't "duration". Neither "SLIDE_RIGHT" or "right" worked. I'm pretty sure this is a bug since I can see the function's code directly. If not, can someone guide me in the "right" direction??? (pun intended!)
-> Flash Builder "Burrito"
-> Flex Mobile Project (Android)
-> Win 7 64bit Machine
