Search:
Calendar:
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Subscribe:
Archives By Subject:
Adobe (33) [RSS]
AIR (7) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (42) [RSS]
ColdFusion (69) [RSS]
Flash (6) [RSS]
Flex (40) [RSS]
Frameworks (2) [RSS]
Free Software (2) [RSS]
FXUG (22) [RSS]
General (33) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (14) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
Transfer (1) [RSS]
Tags:
Recent Entries:
Top Posts:
- [15498] Paper Vision 3D Sphere - Carousels on Steroids!
- [8160] Simple PaperVision3D Blurring example
- [7961] Carousel v0.2 - source code
- [7938] PaperVision3D/Flex2 Carousel v0.2
- [7908] Saving images from Flex using ColdFusion: Simple Example with source code
- [7809] PaperVision Carousel0.3 - one step closer to the master plan!
- [7470] Simple Dynamic Cursor Example in Flex2: With source code
- [7379] Simple PaperVision3D Blurring example : source code
- [6597] PaperVision3D is good for cubes! - a "geek" gift
- [5682] PaperVision, Flex2 and my daughter all playing together!
Recent Comments:
- ColdFusion and constants - how do you do them?
Ben Spencer said: Hi David, If you create a getConstants() method where you just set up a local var STRUCT with the ... [More] - ColdFusion and constants - how do you do them?
John Whish said: Hi Jim, you're right. David does mention that in the post. I read David's post when I posted my orig... [More] - ColdFusion and constants - how do you do them?
Jim Connor said: > I should point out that the THIS scope is a public property so can be set by code outside your ... [More] - ColdFusion and constants - how do you do them?
John Whish said: I should point out that the THIS scope is a public property so can be set by code outside your cfc. ... [More] - ColdFusion and constants - how do you do them?
Jim Connor said: We use the 'this' scope of the related cfc to store constants. I also use the C++ convention of maki... [More]
Top Commenters:
- [8] Campbell
- [8] Ben Nadel
- [6] Steve Bryant
- [6] Mark Flewellen
- [4] barry.b
- [4] Raymond Camden
- [3] John Whish
- [3] Peter Bell
- [2] carlos
- [2] riabook
My Links:
RSS:
Simple Effects on a Form - Flex Example - the next version
In my previous post I had an example on simple effects in Forms.
As was quickly pointed out in the comments, if you click on the "Toggle Form" button quickly so unexpected behavior happens.
Try it if you like:
The issue seems to be that while the effect is playing, it will finish playing even if the "advanced" value has changed while it is playing. (make sense?)
So to work round this, I have added a <mx:Move> effect tag of my own and given it an ID. In the moveEffect attributes of my tags now I have put the ID of my Move effect Then in the Button tag, on the "click" event, rather than switch the "advanced" value in there, I am now calling a function.
What the function does is check if the effect is playing, and if it is NOT playing, it toggles the "advanced" attribute.
This means that even if the button is clicked rapidly you won't get the unexpected behaviour that was happening previously.
For a bit of fun, I put the "Bounce.easeOut" function in the "easingFunction" attribute of the move effect.
Have a Look:
