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
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:
http://docs.yahoo.com/info/terms/