View Full Version : how do i...


shakiko
05-22-2005, 02:02 AM
ok. how do i make a link onto the flash document , for example: start animation or replay?


plese reply!

Sphere
05-22-2005, 11:26 AM
Make a button, convert it to a symbol, and add this action to the symbol:


on (release) {
gotoAndPlay(insertframenumberhere);
}

shakiko
05-23-2005, 01:42 PM
ummm. ok... but how do i use it ?

shakiko
05-23-2005, 01:48 PM
nvm my other thread ,,, how do i get a button

Sphere
05-23-2005, 01:50 PM
Make a button, a text or whatever.
Select it.
Press F8, select convert to button.
Now go to the actions panel (its somewhere down the screen above properties)
And past the code above, and replace the "insertframenumberhere" with the frame you want the button goes to

shakiko
05-23-2005, 01:53 PM
thx alot!

shakiko
05-23-2005, 02:04 PM
i clikc f8 but it dosent turn into a button?? why?

Arc Angel
05-23-2005, 02:19 PM
Make sure the text (or whatever else) you want to be a button is selected (click it with your mouse), then press f8 and a dialog box should appear allowing you to convert to symbol-- choose a name and select button from the options, press 'okay'.

You could also try selecting your text and going to Insert>Convert to symbol.

After you have converted to symbol the text is now a button and you can add the above code to it.

shakiko
05-23-2005, 02:32 PM
ya i did that but when i went to test movie it said that ther was an error?
this is what it said:

**Error** Scene=Scene 1, layer=Drop Shadow 1, frame=76:Line 2: Mouse events are permitted only for button instances
on (release) {

Total ActionScript Errors: 1 Reported Errors: 1

Sphere
05-23-2005, 02:55 PM
You must convert it as a button, not image or movieclip

Marianne
05-23-2005, 03:18 PM
could it be that your code is on a keyframe in your timeline, whereas it should be on a button or mclip?

shakiko
05-23-2005, 03:20 PM
i did convert it as a button, but now when i go test movie , at the end i click on the link and nothing happens . isint it suposed to replay?

Marianne
05-23-2005, 03:28 PM
can you post your flash file online somewhere so we can have a look?

shakiko
05-23-2005, 03:31 PM
sure.. can i post it on my new site then u guys look at it there, or is that "conciderd advertizing"

shakiko
05-23-2005, 03:39 PM
if its not here the adress: http://www.freewebs.com/shakiko_04/
the flash file is on the index

shakiko
05-23-2005, 04:17 PM
Why Wont U Reply?

Sphere
05-23-2005, 04:20 PM
This is a forum, not a live chat, and we aren't here all day, please respect that

Can you post the .fla file online? That would be a bit more easy for us instead of a compiled .swf

Marianne
05-23-2005, 05:13 PM
Sphere is right - we're not here 24 hours a day.
After I came home from work, I logged in, posted in this thread, an then I went into the kitchen to cook dinner.
Now I'm back at the computer, and in ten minutes or so I'm logging off again to watch TV or read a book. Then I'll probably have an early night, since there's a busy day tomorrow too.
I have a fulltime job and my last slave died, so as you can see, my forum time is limited.

And Sphere is right too about the flash file - I asked to see the .fla file, that will tell us more than the .swf file, although I probably should have specified that.