On 6/24/05, jozef_pichler <[EMAIL PROTECTED]> wrote:
> 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?
Yes, it can be changed at runtime. 'contentPath' was deprecated in
favour of 'source' at some point. You should be using the latter.
> <mx:Script>
> <![CDATA[
> function myInit()
> {
> var my_file = "http://localhost:8300/GPML/test.swf";
> }
>
> ]]>
> </mx:Script>
>
> <FlashPaperLoader
> contentPath="{my_file}"
'my_file' needs to be declared outside the function body. In your
code it's a local variable, so other code can't access it.
--
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/