thanks manish & philippe

the missing variable declaration outside the function was my 
mistake - thanks for the hint. I simplified the example for 
FlashPaperLoader. Neither the var declaration:
var mySWF = "http://localhost:8300/GPML/test.swf";;
nor the code in "setFile()" seems to do anything to 
the "contentPath" variable? readonly property?

of course if I do hardcoded the contentPath:
 <FlashPaperLoader       
        contentPath="http://localhost:8300/GPML/test.swf"; 
        width="100%" 
        height="100%" />

I do see a perfect FlashPaper in my Panel .....

any comments very much appreciated,
Josef

here the simple code:

<mx:Application
    xmlns:mx="http://www.macromedia.com/2003/mxml";
    xmlns = "*">
    
    <mx:Script>
    <![CDATA[
          // seem like contenpath for FPLoader cant be set like 
this ...         
          var mySWF = "http://localhost:8300/GPML/test.swf";;
        
          function setFile()
          {
              // .... or like that?
              mySWF = "http://localhost:8300/GPML/test.swf";;
          }
    
    ]]>
    </mx:Script>
    
    <mx:Panel>
    
    <FlashPaperLoader       
        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/
 



Reply via email to