Replay button

Started by Fuzz, April 26, 2008 02:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fuzz

I've googled it. I've checked out adobe.com for help. I even checked the anipedia. I can't figure out how to get my video to loop. I get error # 1087. it says I have extra characters at the end of the program. this is the code I've got.

on(release){
 
    gotoAndPlay("frame");
 
 }

so... WTF?! I JUST WANT A SIMPLE REPLAY BUTTON!!!!

ThePrototype

#1
Edit: O wait, I see what's wrong. You're not adressing the main timeline from the button.
TRY THIS CODE INSTEAD


on(release){

_root.gotoAndStop(5);

}



5 being the frame you want of course.
I need a good quote to go here S:

Fuzz

Dammit! I got the same error! It won't let me put code on the button itself... could that be the problem?

f0d

Quote from: FuzzDammit! I got the same error! It won't let me put code on the button itself... could that be the problem?
wait so you select the button before you bring up the actionscript panel, right?
I have more of a life writing this review at 1145 pm than you guys do making these movies. . .

psi43

lmfao, put your AS to AS2, not 3 in the publish settings. I am pretty sure that's the problem.

Fuzz

I love you Nicole! <3 your such a badass. Thanks everyone else for trying. What's the deal with AS3?

psi43

AS3 can only be used on the main stage and it's different from AS2 by far. It's more similar to other coding languages.

f0d

in other words, AS3 was adobe's way of fucking over something that worked and making it so complicated that it doesnt work anymore. you have to completely fuckin relearn the scripting language

i hope they make some sort of combination of AS2 and 3 in flash 10 cuz honestly i havent seen one positive outcome from AS3. maybe thats cuz im not a coder but AS3 is like a slap in the face to animators
I have more of a life writing this review at 1145 pm than you guys do making these movies. . .

psi43

Quote from: f0din other words, AS3 was adobe's way of fucking over something that worked and making it so complicated that it doesnt work anymore. you have to completely fuckin relearn the scripting language

i hope they make some sort of combination of AS2 and 3 in flash 10 cuz honestly i havent seen one positive outcome from AS3. maybe thats cuz im not a coder but AS3 is like a slap in the face to animators


That's why you're still allowed to use AS2. AS3 is for games only, they lag by far less and everything works faster. It's easier to code loops and shit as far as I heard. You might need to learn a new coding language but it's worth it.

I have only heard positive about it actually.

f0d

like i said AS3 is for coders not animators. they need to integrate it with AS2 somehow in flash 10
I have more of a life writing this review at 1145 pm than you guys do making these movies. . .