PDA

Click to See Complete Forum and Search --> : movie controll issues


kerrysmagicshirt
10-04-2006, 09:22 PM
AGHHHHHHHHHHHHHH
there is a lesson to be learnt here folks - once you have a skill NEVER EVER let it go.

i became quite a dab hand at flash and have at times been know to get people on the forum out of a flash related pickle. i leave it alone for 6 months - come back and BAM can i remeber the simplest things - erm no, no i blummin well can't:confused:.

anyway - hi all how you doing? *waves* :D

i'm trying to animate a scroll so that when you click on it it unravels revealing a map.

i have animated it from a series of photos in a move clip.
pasted frame one of the move clip in scene1 and the full move clip in scene 2

i have used the actionscrip in scene one - on release goto and play scene 2 frame 1.

does it work? does it bugger :mad:. when i test the movie it kind of shakes slightly and thats it.

anyone got any idea where i'm going wrong or got a better idea of how to achive what i'm looking for?

jeezus this should be easy peasy right!!
have a static image - press it it animates. simple.
woods? i can't see any woods all those trees are in the way!!

reuber1
10-04-2006, 09:34 PM
*waves back*

There's not something in the early frames of the animation that is sending the player back to the wrong frame, is it? Can you post the exact actionscript you got? And your frame rate isn't like 9000 fps? My actionscripting is rusty, but who knows, I might be able to figure it out. I had similar problems like this before.

kerrysmagicshirt
10-04-2006, 09:39 PM
both scenes are one frame each - only ther move on frame one of scene 2 has a movie with multiple frames.

if i test scene 2 it works fine - if i test movie nada

Actionscrip attached to image on scene 1 frame 1 is;

on (release) {
gotoAndPlay("Scene 2", 1);
}


frame rate 35 fps

reuber1
10-04-2006, 09:46 PM
I wonder if it's automatically trying to stop since it realizes it's on the last frame already, even though you're defining GoToAndPlay to that frame. Have you tried adding a third layer (which is essentially a duplicate of the second, minus an extra movieclip of course) after the movieclip animation starts, to see if that will be enough to let the animation run?

kerrysmagicshirt
10-04-2006, 09:54 PM
awhatnow?
third layer where?
i only have one layer and one frame in both scenes
and i don't understand, add a third layer after the clip starts? - i'm sorry and appriciate your help and don't mean to sound srcastic but i can't see logic there dude.

are you trying to say that even though you cant see sence 2 it has already played out before you release?
right so i would need to add a frame 2 in scene 2
on frame one have a stop action and frame 2 the movie?
does that make sence?
i'll try it tomorrow anyway off to bed now.
night night and thanks for the help

reuber1
10-04-2006, 09:56 PM
Sorry, I meant a new keyframe (bear with me, I haven't touched flash in two years) after the first frame in scene 2. This exact same thing happened to me before, and for some reason when I added another frame or keyframe after that initial one. Logical or not, it worked.

No need to worry about sarcasm, I've gotten enough of that today.

resdog
10-04-2006, 11:51 PM
Couple of things:

do you have a stop(); action on frame 1 of scene 2?

That's the issue. when you tell the movie to gotoAndPlay scene 2, frame 1, it goes there (hence your little jiggly thing), and then it goes right back to scene 1, frame 1, since there is nothing stopping it.

you can either add a stop() command on frame 1 of scene 2, or change the
gotoAndPlay() to gotoAndStop();

either way should work.

reuber1
10-05-2006, 12:33 AM
If you do GoToAndStop, though, I have a feeling that it won't kick in the movie clip...essentially it 'goes there' but doesn't actually invoke anything. I was thinking the same thing about the Stop() on the first frame of the second scene.

resdog
10-05-2006, 12:35 PM
Sure it will. All the GotoandStop does is go to the frame that is called and doesn't go further. It's like condensing the gotoandPlay() and stop() actions into one. As long as the movie clip is in frame one, there shouldn't be a problem.

reuber1
10-05-2006, 01:08 PM
OK, maybe the school had a bad copy of Flash at the time or something, lol. That was my problem, the GoToAndStop on the single frame didn't call that movie clip into action unless I kicked in another frame afterwards. If I had access to Flash right now I wouldn't be going off of speculation.

kerrysmagicshirt
10-05-2006, 06:51 PM
mmm interesting. i have added a stop action to scene 2 frame one and bizarrely now when i test the move the movie clip plays automaticaly wuth no pressing or anything!?!

i let all the actionscript in scene one just as it it. - off to try reubers 2nd keyframe idea

resdog
10-05-2006, 07:11 PM
do you have a stop() action on scene 1 frame 1?

kerrysmagicshirt
10-05-2006, 07:53 PM
ahh no. makes sense tho

kerrysmagicshirt
10-05-2006, 07:57 PM
now it is static when you test the movie but pressing does nanda. i'm going to add a second frame in scene 2 and put the stop action for scene 2 in frame 2 see if that works

actually i'm gonna leave it for tonight - will be back tomorrow to let you know if it's worked.

thanks for the help x

kerrysmagicshirt
10-06-2006, 12:29 PM
well that didn't work - i also tried a second frame in both scenes with stops on both frame 2's

grrr.

ok back to the drawing board.
to be honest i'd rather just have the scroll just unroll when you open the page and by-pass all the clicking malarki. - which obviously i can do easy peasy. However when i test the movie it initially plays really slow and looks pants. if i then play it again it runs nice and fast and smooth. so i though adding the press function would allow the file a little time to load first. is there another way? i've never used pre-loaders before.

cheers for your time and efforts on this guys.

Drazan
10-07-2006, 11:25 AM
so you want something to animate when you click it?

umm... make it into an animated button.

Clicky (http://www.webdevelopersnotes.com/tutorials/adflash/flash_button_tutorial_animated_button.php3)

just a thought
=)
Jade << is still learning advanced flash stuff.

kerrysmagicshirt
10-07-2006, 08:39 PM
yeah i did try doing it as a button but then the movie only plays when the mouse is over it. i need it to play on click and completely play through to the end and stop.
cheers though.

this has got to have a simple answer

DesignerScott
10-07-2006, 08:59 PM
Hey, I admit I skipped a lot of posts because I am short on time this weekend, but if you send me the .fla I'll look at it.
P.S. Actionscripting advice - Don't use scenes, they bugger up everything with code. Instead of scenes, you're better off just putting each "scene" inside a movie clip and putting those in the main timeline, or just have one long scene.

kerrysmagicshirt
10-08-2006, 02:28 PM
cheers tons - i just pm'd you :D