|
-
Hey people,
Well i have my problem,
I have a movie in the main line, in that is a button, the button has this script on it
on (press, release) {
gotoAndPlay ("profile", 1);
}
on (rollOver) {
tellTarget ("_root.news") {
gotoAndPlay (2);
}
}
on (rollOut) {
tellTarget ("_root.news") {
gotoAndStop (1);
}
}
The lines:
on (rollOver) {
tellTarget ("_root.news") {
gotoAndPlay (2);
}
}
on (rollOut) {
tellTarget ("_root.news") {
gotoAndStop (1);
}
}
Work fine my problem is that when u click on the button
it doesnt go to the scene i wish it to go to it just stops
on (press, release) {
gotoAndPlay ("profile", 1);
}
so why doesnt this little button go to the scene profile?
oh well due to me not been able to explain my problems to well i made a mock .fla of my problem, it is exactly the same as my real one but doesnt have the layout etc....
here is a link if u wish to download the .fla, to find what the hell im talking bout :P
http://www.geocities.com/nerby_oz/problem1.fla
oh well thanks in advanced, if u actually solve my problem in the .fla send me an email if u please at [email protected]
ok thanks
-
It works fine if you cut button out of news MC and paste to root.
Why it doesn't go to scene 2 from MC in scene 1?... no idea. I never use scenes...but i'd like to know
-
Senior Member
The code makes sence to me , I don't know why it wouldn't go to the scene i even tred it with a frame label and it wouldn't work. But ye as already said buy dud the button works if in the main timeline. I have no idea y it doesn't work in the mc it should.
I aslo never use scenes all it is, is an exstention of the main timeline >>>>> scene one 1-6 >>> scene two 7-15 scene three >>>16 -31 >>>scene four 32-60.
-
Thanks , yer i normally do it that way i was just thinking bout a change like more structured thanks to everyone that posted
-
hi,
gotoAndPlay(sceneName) doesn't work from a movie clip - you should give the first frame in that scene a (unique) frame label instead and then use that with the gotoAndPlay command.
- n.
-
Senior Member
Mmmm thanks for that enemem..clearing up that fact. I would probably tidy up on the code a bit to,since tellTarget is supposed to be depreciated, so this would work. I spelt sucess your way nerby_oz.
on (press, release) {
_root.gotoAndPlay ("sucess");
}
on (rollOver) {
_root.news.gotoAndStop (2);
}
on (rollOut) {
_root.news.gotoAndStop (1);
}
-
Originally posted by Jaffasoft
Mmmm thanks for that enemem..clearing up that fact. I would probably tidy up on the code a bit to,since tellTarget is supposed to be depreciated, so this would work. I spelt sucess your way nerby_oz.
on (press, release) {
_root.gotoAndPlay ("sucess");
}
on (rollOver) {
_root.news.gotoAndStop (2);
}
on (rollOut) {
_root.news.gotoAndStop (1);
}
you are welcome 
I have to say that scenes are pretty useless when it comes down to it - like you said above - so probably better/easier to go with a normal main timeline split up into bits.
- n.
-
Senior Member
Take Enemem'as word for it. Believe us what we're talking about nerby_oz!!! Scene's only structure a headache.
Oh and I have to ask seen your name has the _oz in it!
Are you from Australia?
-
yes i actually am from australia "The boy from Oz"
im from newcastle 
yer i was getting abit of a headache looking at my script thinking why the hell wont this work, i hope they fixed that problem up in mx, Just for the people who like perfection in there flash layouts :P oh well neway, by the way what do u recon the chances are of a 16 year old getting part time job as a flash designer are????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|