Groups | Blog | Home
all groups > flash (macromedia) > april 2004 >

flash (macromedia) : Navigation Help!!!


chris_fill
4/17/2004 7:52:25 PM
urami_
4/18/2004 6:41:40 AM

[quoted text, click to view]

make the triangle movie clip and give it instance name "MC"
On timeline frame place

_root.onLoad = function() {
POZ = new Array("100", "120", "180", "200","-200");
};
_root.onEnterFrame = function() {
r += (rot-r)/2;
MC._x = r;
};


button action sample :

on (rollOver) {
rot = POZ[3];
}
on (rollOut) {
rot = POZ[4];
}


The POZ is an array with coordinates :
POZ = new Array("100", "120", "180", "200");
Place the triangle (before applying any action) above your buttons , jot down each position
later key in the array. It does not have to be in any order.

Keep in mind that array count start from zero , so if you wanted to call first value
you would use rot = POZ[0];
The button sample above call for position 200 on roll over and -200 on roll out.
So it disappear off stage if you move mouse away...

/2 define the speed, you want it to come with delay , set it to /5 or so .... lower number = faster
move .



--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

Hugo Bozz
4/18/2004 2:18:18 PM
Hi urami,
i tried your script but nothing happens!
can u explain it step by step?
I esp. don´t understand these lines of code:
_root.onEnterFrame = function() {
r += (rot-r)/2;

and do you mean with "timeline frame" just to write the code into it (not to
attach it to a button, right?)!?

sorrry for my bad English, I am from Austria!
kind regards,
Fritz

"urami_" <noSpam@flashfugitive.com> schrieb im Newsbeitrag
news:c5sbr2$9sp$1@forums.macromedia.com...
[quoted text, click to view]

urami_
4/19/2004 9:29:26 AM

[quoted text, click to view]

I was checking your other thread , I believe you got it all figured out , isn't ?
Hugo Bozz
4/19/2004 3:44:30 PM
yes, urami!
thank u very much! do u have a website with other of these great hints, tips
and tricks???
;-)

"urami_" <noSpam@flashfugitive.com> schrieb im Newsbeitrag
news:c5va1j$8tu$1@forums.macromedia.com...
[quoted text, click to view]

urami_
4/20/2004 9:28:16 AM


[quoted text, click to view]

Unfortunately I had to take it down due to some reasons .
But feel free to ask here . There is many great people who will be more than
happy to help you at any time :)




--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

AddThis Social Bookmark Button