2 Replies Latest reply on Jun 26, 2007 10:51 PM by YanivSidi

    Having trouble with sourcing an Image

    YanivSidi
      I have a problem with sourcing an image in AS 3.0 within an Image component.
      i have a skins.swf file in my assets directory and sourcing the image straight from its mxml tag works fine,
      its the source property from within the <script> tag that i am having trouble with.
      any specific way to enter the source to the image?
      thanks.
      lets say my code looks like this:
      <mx:Image
      source="@Embed('../../../assets/skins.swf' , symbol = 'RaterRank1')"> <---- this works

      <mx:Script>
      <![CDATA[

      this.source = ?? <------ what should i put here?

      ]]>
      </mx:Script>
      </mx:Image>