Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Flash Buttons

  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    83
    Thanks
    4
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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!||||

  • #3
    New Coder
    Join Date
    Jan 2009
    Posts
    83
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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?

  • #4
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •