> So what does the loader's 'source' property contain once setFile()
has
> been called?
many thanks for your efforts, Manish.
source is 'undefined' even after changes.
I cant get any 'variable content' going on the FPLoader.
the only way I can see the FlashPaper loaded into flex
is really that line:
<FlashPaperLoader id="myLoader"
contentPath="http://localhost:8300/.../test.swf"
width="100%"
height="100%" />
following the code with the changes:
mySWF declared outside function.
-------- begin source ------------------
<mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml"
xmlns = "*">
<mx:Script>
<![CDATA[
var mySWF = "http://localhost:8300/GPML/test.swf";
function setFile()
{
mySWF = "http://localhost:8300/GPML/test.swf";
mx.controls.Alert.show("Source: " + myLoader.source);
}
]]>
</mx:Script>
<mx:Panel>
<FlashPaperLoader id="myLoader"
contentPath="{mySWF}"
width="100%"
height="100%" />
</mx:Panel>
<mx:Button label="set the file name and look if the flash paper
loader responds"
click="setFile()" />
</mx:Application>
--
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/