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";
my_file = newFile;
}
</mx:Script>
<FlashPaperLoader
contentPath="{my_file}"
width="100%"
height="100%" />
</mx:TitleWindow>
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
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
---- LSpots keywords ?>---- HM ADS ?>
--
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
- To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------
**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.
------------------------------------------------------------------

