A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Links from SWF files may not work in Flash9

  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    48

    Links from SWF files may not work in Flash9

    I searched for this error for over 3 months until I got it. Nobody didn't know about it so I am posting it now for the help of others.

    Some of the links and its targets (_self, _top, _parent) may not work from now on if you have flash 9 player installed. So that's why some of the links in your sites didn't work.

    Why;
    This issue may prevent some SWF files from changing a user's web browser location. It may also interfere with attempts by the SWF file to execute JavaScript style URLs within the context of the hosting page or other frames within that page.
    So now, this is an example of how you can bypass this:

    PHP Code:
    <object

      classid
    ="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

      
    codebase=" http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" align="middle">

            <
    param name="movie" value="http://otherdomain.com/exampleContent.swf">

            <
    param name="allowScriptAccess" value="always">

            <
    embed type="application/x-shockwave-flash"

            
    pluginspage="http://www.adobe.com/go/getflashplayer"

            
    width="550" height="400" align="middle"

            
    src="http://otherdomain.com/exampleContent.swf"

            
    allowScriptAccess="always"></embed>

    </
    object
    The easiest fix is to specify AllowScriptAccess="always" in the HTML page

    I hope this helps all the guys who are looking for this question, and I hope others spread the word... because that's the point of all this.

    Regards.

  2. #2
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,979
    Even though this is a seriously good tip, I'm going to have to move this from Flashkit's News Forum to the more appropriate ActionScript Forum.

    I will say though, that navigateToURL still has a few problems in AS3.

    [ Hello ] | [ gerbick ] | [ Ω ]

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center