Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-25-2009, 05:58 AM   PM User | #1
rickfink
New Coder

 
Join Date: Jan 2009
Posts: 83
Thanks: 4
Thanked 0 Times in 0 Posts
rickfink is an unknown quantity at this point
Flash Buttons

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.
rickfink is offline   Reply With Quote
Old 01-25-2009, 07:00 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
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.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 01-26-2009, 02:38 PM   PM User | #3
rickfink
New Coder

 
Join Date: Jan 2009
Posts: 83
Thanks: 4
Thanked 0 Times in 0 Posts
rickfink is an unknown quantity at this point
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?
rickfink is offline   Reply With Quote
Old 01-27-2009, 03:49 PM   PM User | #4
sybil6
Regular Coder

 
Join Date: Jul 2006
Posts: 399
Thanks: 33
Thanked 7 Times in 7 Posts
sybil6 can only hope to improve
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/do...anager04a.html


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

Last edited by sybil6; 01-27-2009 at 03:56 PM..
sybil6 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:33 AM.


Advertisement
Log in to turn off these ads.