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 5 of 5

Thread: URL in Flash

  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    URL in Flash

    I would like a clarification. I haven't done Flash in a long time so I am not sure if things have changed.

    I believe to have a SWF file go to a specific URL, it has to be coded inside the FLA file, correct? Via the URL parameter I think.

    So you cannot possibly wrap the EMBED code inside an HREF tag to link to a URL, correct?

    I need this clarified for a client who sends SWF ad banners without a link in it.

    Thanks.

  • #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
    Yes inside the fla file the getURL() function needs to be called somewhere in the actionscript. Then you need to export the movie to create the .swf file which then be able to be viewed by users. You can wrap the code in an anchor however the probability of having this work in good browsers is slim.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thaks, that's what I though and yes I tried the anchor around the EMBED and it doesn't work.

  • #4
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post
    Besides using getURL(), you can insert link as parameter in HTML param tag.

    e.g. Please notice <param name="FlashVars" value="fb_mp=3"> in

    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="940" height="750">
    <param name="movie" value="assets/FB_v5/FB_V5_d01d.swf?flv">
    <param name="quality" value="high">
    <param name="menu" value="false" />
    <param name="wmode" value="transparent" />
    <param name="FlashVars" value="fb_mp=3">
     <embed src="assets/FB_v5/FB_V5_d01d.swf?flv" FlashVars="fb_mp=3" quality="high" wmode="transparent" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="940" height="750"></embed>
    </object>

  • #5
    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
    It would still need to be setup to handle the flashvars in which case you would still call getURL().
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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