[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 634
  • Last Modified:

Macromedia Flash 8 Button Hyperlink Problem

I have a simple button from the common library that has one keyframe in the timeline.  I have added the code below to the ActionScript however when I publish and click the button it doesn't work!  I have named the button OnButton if this makes any difference.  Any help would be greatly appreciated!  Thanks.
on (press, release) {
	getURL("http://www.microsoft.com/", "_self");
}

Open in new window

0
happyappys
Asked:
happyappys
  • 3
  • 2
1 Solution
 
Eaddy BarnesITCommented:
that script seems to work fine on my end.
but i would use press or release, having
both there would let it run 2 times.

when you press on it and when you release it

GE


0
 
Eaddy BarnesITCommented:
0
 
happyappysAuthor Commented:
OK, so I can see this works when I do a File - Publish Preview - Flash, however when I do a File - Publish Preview - HTML it doesn't work (which is all that I've been trying).  Yours doesn't work when I do a File - Publish Preview - HTML either!  Is this a glitch with Flash 8 do you know?
0
 
happyappysAuthor Commented:
Also, while I'm here, I can't open previous versions of .fla files that I had created in MX2004.  I'm now using Version 8 and it gives me an "Unexpected File Format error".  Is there any way around this or do I have to redo everything?  Many thanks.
0
 
Eaddy BarnesITCommented:
there is a bit more security on the flash players.
so you can use the link when testing the fla.
but if your trying to use it as an application
you would need to export it as an exe file
otherwise it would be blocked from opening
links on the internet.

have a look at this link.
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html

the file as is would work when you upload it to your server

GE

as for the mx2004 format. i cant help you with this one. been a while
since i used those formats and i cant give you a good answer.

i suggest you ask another question targeting the format issue directly
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now