This is a discussion on "Flash: Need Help Writing An 'If' Statment" within the Flash & Multimedia Forum section. This forum, and the thread "Flash: Need Help Writing An 'If' Statment are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Flash: Need Help Writing An 'If' Statment
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi guys,
I'm making a little flash movie for a website of mine, The box is going to be a sort of 'What i'm listening to lately' box with album covers in it, and as you scroll closer to an album cover, it will enlarge slightly and play a sample piece of audio. I've uploaded the .fla file i've made to test the theory out for you to look at. Everything works correctly but theres one thing i'd like to change. I'd want that box to stop enlarging at 120%, currently as you roll closer to the centre of the clips, it goes up to 200%. I'd rather it stopped when the proximity got below 20, at 120% if you know what I mean. I'm having a mental block as to how i'd rewrite the if statement on the actions layer. If you need any of the code explained i'd be happy too. Thanks in advance for any and all help! Anthony |
|
|
|
||||
|
Re: Flash: Need Help Writing An 'If' Statment
how about,
onLoad, putting the size in a variable. then finding 120% of it and putting that in a variable. Then checking the size when the enlarging code happens.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Flash: Need Help Writing An 'If' Statment
Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Flash: Need Help Writing An 'If' Statment
Thanks everyone for replying so far
Quote:
|
|
|||
|
Re: Flash: Need Help Writing An 'If' Statment
Hmm ok, this will take some thinking - let me ask you this question, to maybe get your juices going.
Wth the if statements above, what could you replace the clip._xscale = 120; and clip._yscale = 120; with and instead make ot "ease" to that amount? maybe another math function? I'll keep goofing around with it, always takes me a while to pick up someone else's code and get flying. Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Blocks of writing | Evilaussie | Web Page Design | 5 | Jul 21st, 2007 13:50 |
| Copy writing | nate2099 | Starting Out | 7 | Jun 19th, 2007 22:13 |
| unset SESSION in an IF statment | Andy K | PHP Forum | 7 | Apr 27th, 2007 19:02 |
| Writing an XML playlist?? | DoghouseTV | Other Programming Languages | 0 | Aug 14th, 2006 01:15 |
| Help with select statment | rocket468 | Classic ASP | 4 | Dec 8th, 2005 15:55 |