action scripting

Soldato
Joined
1 Jul 2007
Posts
5,392
Basically have a "home" page in flash (8 prof)
on here it includes three buttons
each button plays a seperate movie
each movie has in it a button on the last frame to link to "home-page"
how do i actionscript this all so button 1 links to movie 1, plays movie, home button links back to home page.

I'v been able to do the actionscripting to make the movie clips stop looping (when testing scene), and got two other buttons to link to web adresses.

cheers for any help.

and at some point while messing about i got button1 to movie 1 but didnt play movie just skipped to end frame, but i didnt have the home page button programmed in- but deleted all this.
 
well at the moment i only have the home-page set up.
the movies have been made but are still sitting in the library waiting to be placed however its done.

it'll be uploaded in the next hour or so.
 
cheers, only been using flash for a month or two...well should have been using it for that length, only just pulled the finger out and started doing my uni work for it, so I admit I am a complete noob and basically just arranged stuff how my logic tought it would go.
 
aargh!
still cant get the thing to work.

I know someone said you shouldnt use scenes but if I create 3different scenes for each movie clip, but instead rather than have the movie clip as a movie clip just copy them frame for frame then have the buttons link to those those scenes would that work? Then have the home button that appears at each end frame link back to scene 1, frame 1.

if that whaffling is comprehendable
 
do the movieclips have any action script in them?
just that it keeps looping if i dot have anything in them, but with what works to make it play once in "test scene" just takes straight to last frame of the moveclip when "test movie"

I've also taken the "home" button out of the movie clip and was putting it so it would appear in the last frame of the movie (so when it has stopped) by put the button on a new layer, but the button isnt showing when i test the movie. compared to yours when home features all the way through a clip.
 
Last edited:
thank you,
how do you make the home button in the movie link back to home?
Ive tried changing what ever the code was for the other buttons to co-incide but didnt seemt to want to work eg replacing sketch1_btn to home_btn, and then ("sketch1") to ("home")

but i could have easily missed something out.

I think i may have an other couple of problems/no idea how to do it for a different project but still need to spend a decent time messing about with settings and stuff.
 
Its onto a different project now but;
is there a way to increase the over all size when published? I know when its html you can increase decrease size of the viewing window but is there a way for swf files?
 
tried the stage.scaleMode... one but it doesnt seem to make the swf file anybigger when i click on that to view it......
but i've realied if you expand the window the whole thing expands too so if it needs to be bigger when they (uni tutors) come to view it they can allways maximise the screen.
infact is there a way to make it open maximised all the time? just that when i maximise, "x" out of it then open again it goes back to being normal size. (not looking for action script to do this)

and ive got opne more possible problem but i think i will ask the tutor for ideas first on how to tackle it.
 
An other button problem, you'd have thought i would have th hang of this.
Basically on roll over credits are suppose to roll up the screen (all done via movie)
but when i roll over anywhere on the screen the credits play (i think this is due to how I've layered them in the button timeline)
now my other roll-over button ive created before, you need to actually roll over the button for it to show, even though the roll over pop-up covers part of the screen even if you go on the part that the pop-up eventually covers, pop up does not pop up. Unlike this one roll over when ever your on screen it starts playing.
Now iam thinking is if i take the movie clip out of the button and give its on layer on the main stage, I could then programme the button to play on rollover? am I correct?
just thought of this so will go and try it after i hit "post quick reply"

but yeah any ideas how to do this? sorry for not making much sense.
 
edit: should say this is a different flash to the other one you helped with


i got it to play the credits movie when you roll over the button, thing is it wont stop playing when you roll off it, I also need to go back to "credit home".
Been able to programme it to stop at the end of the clip but notgo back to "credits home", also if possible once its play through the movie even if the mouse is still on "roll over" i dont want it to play again, i just want it to hold on "credits home" page untill moused it moved off then on again.
the only major succesful bit of code (aswell as others in the animation) is:

credits_btn.onRollOver = function (true) {
gotoAndStop ("credits movie");
}

ive also repeated that for false thinking that it would work if the button is rolled off, but doesnt seem to.
 
ive been able redo a roll over button where you just roll over the button for the txt to come up, while before it could be anywhere that the "pop up" covered would also show it.
But i still cant get it to work when a movie clip is used as the "pop up".....aaargh!
 
Dont need no more help on this problem =D

I copied over the rollover button that was working, and edited it.
Simple way, but it worked, and it was me that created the originial button anyway.
 
got on problem, which i think is just settings.....
basically when you maximise the swf file to view it shows everything on and off the stage. How do i change this so i only shows the stuff on the stage?
 
got the buttons working
and discussed with tutor that maybe the best idea for items that isnt on the stage but still shows up when you maximise the swf file when viewing is just to create a "frame" round the stage.

and tutor also said that with roll-over buttons you need to put in a hit layer, although the ones ive done dont have a hit layer =S
ah well, dont think i'll be using flash till like september or later anyway.
 
Back
Top Bottom