<mx:TitleWindow
      xmlns:mx="
http://www.macromedia.com/2003/mxml"
      title="FPaper Window"
      closeButton="true"
      xmlns="*">

      <mx:Script>
      <![CDATA[
      my_file = "
http://localhost:8300/GPML/test.swf";
      
      function updateFile(newFile){
          my_file = newFile;
      }
      ]]>
      </mx:Script>
     
      <FlashPaperLoader      
            contentPath="{my_file}"
            width="100%"
            height="100%" />
     
</mx:TitleWindow>

 
Philippe Maegerman
Web developer
+32 2 400 40 39
+32 472 35 28 10
http://pimz.blogspot.com
http://cfpim.blogspot.com
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jozef_pichler
Sent: vendredi 24 juin 2005 8:18
To: [email protected]
Subject: [flexcoders] FlashPaperLoader.mxml - contentPath property

Hi all,

recently I came accross the topic "Flashpaper in Flex Apps". I dont
have any problems to load any *.swf into different containers. that
all rocks. What I want to do is make the "contentPath" of my
<FlashPaperLoader> variable in order to load different files during
runtime. Is 'contentPath' not changeable at runtime? Another thing I
am curious about: Where does this 'contentPath' property come from.
the api doc of mx.controls.Loader (which I derive my
FlashPaperLoader.mxml from) does not know about that at all?

working fine:

<mx:TitleWindow      
      xmlns:mx="http://www.macromedia.com/2003/mxml"
      title="FPaper Window"
      closeButton="true"
      xmlns="*">
     
      <FlashPaperLoader      
            contentPath="http://localhost:8300/GPML/test.swf"
            width="100%"
            height="100%" />
     
</mx:TitleWindow>

not working:

<mx:TitleWindow
      xmlns:mx="http://www.macromedia.com/2003/mxml"
      initialize="myInit()"
      title="FPaper Window"
      closeButton="true"
      xmlns="*">

      <mx:Script>
      <![CDATA[
      function myInit()
         {
               var my_file = "http://localhost:8300/GPML/test.swf";
         }

      ]]>
      </mx:Script>
     
      <FlashPaperLoader      
            contentPath="{my_file}"
            width="100%"
            height="100%" />
     
</mx:TitleWindow>


many thanks in advance,
Josef




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




Yahoo! Groups Links

------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Reply via email to