-
why doesnt this work
im having a MC work sometime and not others check it out. click on a link such as "info" sometimes it goes to the info label and stops other time it glitches and goes to "info" and keeps going thru all the other sections.
http://www.rocketinnovations.ca/Karl/test.html
the code im using is
on (release) {
_root.gotoAndStop("info");
}
on (rollOver) {
_root.button2.gotoAndStop(2)
}
on (rollOut) {
_root.button2.gotoAndStop(1)
}
-
Are you using scenes? And are the buttons movie clips?
-
im not using scenes. but the buttons are MCs. i was thinking of changing them to buttons, but then i dont know that code to tell it when u roll over a spot on the image map to change the button itself to the over state. should i change them?
-
Movie clips can take regular button code in MX and later. But try changing it to look like this;
on (rollOver) {
gotoAndStop(2)
}
on (rollOut) {
gotoAndStop(1)
}
on (release) {
_root.gotoAndStop("info");
}
When the button code is right on the movie clip, you don't need this part;
_root.button2.
In fact, that may be confusing the flashplayer.
-
still the same problem. Its wierd cause when i test it in flash it works sometimes and not others. any idea what would be causing it to work sometimes and not others?
-
What version of flash?
It could be, and probably is, some conflicting code somewhere. Or worse, the fla got corrupt.
You sure info is a valid frame label?
-
im running flash 8 pro. yes "info" is a frame label. corrupt? i dont like the sound of that. is there a way to check?
-
Flash 8 does seem to corrupt fla files easier than any other version. I've had it happen when emailing them, even uploading to the server so my partner can download them. I don't know why.
Also, buttons can go corrupt easily, for no known reason that I can find, but your using movie clips.
Can you attach the fla, or zip it up and upload it somewhere if it's too big?
-
Thanks for ur help. heres the .fla www.rocketinnovations.ca/newsite14.zip if its corrupt do i just have to start over?
-
Sometimes you can save it by removing only say a movie clip that isn't working right. It's not a science or documented. When it's happened to me, which has only been a few times, I was able to save most of it. The problem is, you can't really tell if it's corrupt. There's no way to tell. Just that it won't work right, even if you know everything is right.
-
did u take a look at it? to c if there was any problem with the code and labels?
-
Well, I've bben playing with it for the last hour, and I can't even get it to go back to frame 13 and stop. It just keeps looping over and over.
-
thanks for trying. i appreciate it. what do u suggest i do? go back to the last time i saved it under as newsite13 and rebuild?
-
Just test the one you sent me. Do a test movie. Does it actually go back and stop at frame 13 for you? I couldn't find any reason for it not to, but it just wouldn't stop looping. To me, that seems to scream corrupt.
-
ya it does go back to 13 for me
-
And stops there?
See, it wouldn't do that for me. :(
-
actually it goes to 13 and plays. i never even noticed that my code said stop. man i have a feeling im going have to start all over
-
does anyone have any suggestions on alternative code i can use. right now im using
on (release) {
_root.gotoAndStop("info");
}
but its not working. Is there any different code i can test out. if u need to see my .fla its posted here www.rocketinnovations.ca/newsite14.zip
-
hi
in the actions layer at frame 13 try putting a stop(); at the top of the code
I ran it a couple of times and everything seemed to work.
I think this will stop the balloon from floating away but you can put him inside of the MC just like the car and it should work out alright
here are a couple of ideas for the site...
if solution is the stop(); on 13 then you may want to get rid of the extra frames. your call but it would make the timeline somewhat easier to navigate
also, what helps me when i am using frame labels is to add some frames between the labels...it allows the name to show on the time line...its easier for me to read...
hope this helps, i know the frustration.
Ponyack
-
Cancel the suicide! thanks so much for ur help ponyack i've been sweating over this all weekend i was ready to start over from scratch