6 Replies Latest reply on Jan 27, 2011 12:57 PM by rexdtripod

    TextField links in flash content not firing when embedded in Flex

    shekel2000

      A simple problem, i hope someone knows of a simple solution:

      (zip with source code attached)

       

      a text field with this code

      link.htmlText = "<a href=\"http://www.google.com\">google</a>"

      the result swf (from flash) is with a working link.

       

      Now i embed this swf file into flex in the following way:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
          <mx:SWFLoader source="@Embed(source='link.swf')" />
      </mx:Application>

       

      (this is the entire code...)

       

      And now - the link is not working...

       

      I would guess a security issue, but i have other examples with calls to flash.net.navigateToURL that works also when embedded, without any security configurations...

       

      Any ideas??