Jump to content

Flash button Scripts


Graeme

Recommended Posts

Hello All,

 

I was wondering if anyone can help with a Flash problem?

 

I have set up a button with an Action to go from n intro page to the index.htkl page on a site.

 

I used:-

 

on (release) {

getURL("www.mysite/index.html");

}

 

But I get the following message twice as I have an enter button and a Skip Intro button:-

 

 

**Error** Scene=Scene 1, layer=enter, frame=500:Line 1: Mouse events are permitted only for button instances

on (release) {

 

**Error** Scene=Scene 1, layer=enter, frame=600:Line 1: Mouse events are permitted only for button instances

on (release) {

 

Total ActionScript Errors: 2 Reported Errors: 2

 

Thank you,

 

Best wishes

Graeme

Link to comment
Share on other sites

Hello IM,

 

Thanks for your help with this. It's amazing because I was just thinking about you because you helped me with a similar problem before.

 

Anyway, the buttons seem to be working except when I press the main one another web page opens saying it can't find the file on this server and two addresses of the target page appear in the address bar.

 

My test site is at

http://greenhouseflorists.co.uk/indextest.html

 

Best wishes

Graeme

Link to comment
Share on other sites

hi,

Have you look into this tutorial I gave? Compare it with what you have done with your intro and I'm sure you'll figure where is your problem. Otherwise we would need to have your source .fla to see what is wrong with the buttons.

Link to comment
Share on other sites

Hello Again,

 

I think I'm getting a little further thanks to the tutorial you recommended.

 

I used the code

 

on (release) {

getURL("index.html");

}

 

in both my enter button and skip buttons. Now the enter button is OK when it loads but the skip intro button does not. When I publish the file I get error messages which I think relates to the on (release){ line.

 

Thank you,

 

Best wishes

Graeme

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...