PDA

View Full Version : stop command


dwellsoncouch
12-25-2002, 07:23 PM
does a stop command not work on a clip created with a jpg?
i was following the tutorial and it worked great when i used a graphic created in flash, but when i repeated the tutorial with an imported graphic in the clip, it scrolls away like a fool. i copied the code from the tutorial the first time and it worked great, but like i said, something about those gosh darn jpgs...
i'm sure i'm missing something simple, but for the life of me, i can't figure out what IT is...
many thanks for your time
dwellz

cheez
12-25-2002, 07:45 PM
Hehe, I'm designated Christmas Day (-9GMT) poster/replier. Girlfriend sleeping in other room would be disenchanted.

Try selecting your *.jpg from mc and looking at properties. Your *.jpg is probably set as a graphic. I am not an expert at all, but try changing it to an mc and then proceed whatever script you are using. I find this usually fixes everything ;) Of course, without seeing code not sure.


GL,
-Cheez

Originally posted by dwellsoncouch
does a stop command not work on a clip created with a jpg?
i was following the tutorial and it worked great when i used a graphic created in flash, but when i repeated the tutorial with an imported graphic in the clip, it scrolls away like a fool. i copied the code from the tutorial the first time and it worked great, but like i said, something about those gosh darn jpgs...
i'm sure i'm missing something simple, but for the life of me, i can't figure out what IT is...
many thanks for your time
dwellz

dwellsoncouch
12-25-2002, 08:04 PM
still working on it but sadly, no dice
i know there are easier ways to accomplish what i am trying to do, but for the life of me, i made it work once, i must make it work again...
any advice is greatly appreciated
many thanks
dwells




www.geocities.com/spiffychikone/missingsomething.fla

cheez
12-25-2002, 09:26 PM
OK, I looked at the code. I hope this will help in some capacity :)

1. name your MC instance something ("myPics").
2. on your maintimeline, script button instance like this:

////////////////////////////////

on (release) {

myPics.gotoAndPlay (2);

stop();

}

////////////////////////////////

for the next button it would be <myPics.gotoAndPlay (6)>
and so on...

3. in your myPics mc replace the frame action script for frame 1,5,10,15, etc as:

stop();

4. finally (and I hope you can see this) the call from the button makes it go one frame downstream of the intended pic which will make it scroll till the next stop() which will be the next pic. Incidentally, The first button will be different; it should gotoAndPlay (1);

I only tested with one button but it did work. I'm thinking you can get rid of most/all of your maintimeline frame script btw as well as most of the myPics frame script except for what I writ above!

GL,
Cheez

Originally posted by dwellsoncouch
still working on it but sadly, no dice
i know there are easier ways to accomplish what i am trying to do, but for the life of me, i made it work once, i must make it work again...
any advice is greatly appreciated
many thanks
dwells




www.geocities.com/spiffychikone/missingsomething.fla