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

flash (macromedia) : Movie Question


Kagsy
10/28/2004 7:05:43 PM
Dear Group,

Can someone please advise me on what I am doing wrongly here. I want to
create a button in a movie that has an animation that lasts about 20 frames
that reproduces the common effect seen on so many websites where the mouse
movement over the button moves a semi transparent rectagle over the button
and when I move the mouse away the rectangle disappears.

What I have set up works well (but up to a point):

Frame 1: Stop()
Frame 10: Stop()

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(11);
}

What I would like to do is add an fscommand into the instance of the command
button

on (release) {
fscommand("Services", "Test");
}

.... but the animation loops rather than stops. I have tried adding a Stop()
at the last frame of the animation as well without much success.

I want to send the fscommand so I can use it in VB.

Thanks again...

Kagsy

lumeeguvnor
10/29/2004 5:10:58 PM
Kagsy
10/29/2004 9:08:36 PM
lumeeguvnor,

Thanks for the reply. The button works fine until the fscommand is added.
What seems to happen is that the movie starts all over again after frame two
after the stop() at frame one. This would seem to indicate that the flow is

Frame 2 gotoAndPlay(2) ==> fscommand==> gotoAndPlay(11) ==>gotoAndPlay(2)

and the fscommand does not reach the outside Flash World. It seems to get
caught in the loop. When I check for 'compile errors' I get no error.

What should the order of events be:

on (rollOver)
fscommand
on (rollOut)

Thanks again. If you know of an example of a menu that uses the fscommand
can you show me the correcxt URL.

Kagsy

[quoted text, click to view]

lumeeguvnor
10/29/2004 10:48:28 PM
hi kagsy am afraid that i can't offer any assistance on this - i ran a test
using your code except rather than fscommand("services",Test) -
(because i didn't know what they where) - i used the
fscommand("quit") which i have to say worked fine with no odd looping
Kagsy
10/30/2004 12:01:40 AM
lumeeguvnor,

Thanks anyway. I will just have to persevere on this one.

Kagsy

[quoted text, click to view]

lumeeguvnor
10/30/2004 1:37:03 AM
AddThis Social Bookmark Button