...

View Full Version : Flash Buttons



rickfink
01-25-2009, 05:58 AM
soo..another question.

Searched around for hours trying different things but still couldn't figure it out.

Trying to make a flash movie with fading pictures and if the user clicks a certain picture it brings them to a different place on the site...just like this:

http://www.prairielakeschurch.org/

Almost had it with making a blank keyframe above image and putting the actions:

import flash.events.MouseEvent;
link.addEventListener(MouseEvent.CLICK, powerClick);
function powerClick(event:MouseEvent) {
var request:URLRequest = new URLRequest("http://www.google.com");
navigateToURL(request);
}

That worked except a warning from firefox would pop up saying it was a threat. The other website doesn't do that. Just wondering if there was a simple way of making the picture a link within your website.

Here's my link:

http://www.baysidesuperior.org/Bayside

Thanks for all the great help so far.

_Aerospace_Eng_
01-25-2009, 07:00 AM
Firefox gave you the warning only because you were trying to use an external url. If its part of the same site relative urls is fine and you shouldn't get the warning.

rickfink
01-26-2009, 02:38 PM
So I tried this:

import flash.events.MouseEvent;
link.addEventListener(MouseEvent.CLICK, powerClick);
function powerClick(event:MouseEvent) {
var request:URLRequest = new URLRequest("../ministries.html");
navigateToURL(request);
}

But didn't work, anything I'm missing?

sybil6
01-27-2009, 03:49 PM
your code works for me if i publish the swf, and you'll need to set your security settings to allow the link to commmunicate with internet, this take me to a bunch of settings on the adobe site where you allow your local swf file to communicate with internet: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html


heres an article that describe the new security restrictions:
http://www.adobe.com/devnet/flash/articles/fplayer8_security.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum