PDA

View Full Version : accessing parameters in swf resource


sandhya
06-13-2007, 10:23 AM
accessing parameters in swf resource loaded at runtime.

I have a resource which is loaded at runtime
Example

<view id="sample">
<method event="oninit">
this.setResource("images/test.swf");
</method>

I want to access the dynamic textfield in this resource.

I tried using
Debug.showInternalProperties=true;
Debug.inspect(this);

to get the resource instance.but everything failed.I am not able to access the textfield.

But if i load the resource in this way:
<view id="sample" resource="images/test.swf"/>

I can access the textfield inside the resource.

Please can someone help me on this

haplo
06-18-2007, 12:00 AM
try sample.getMCRef()
to get the reference to the movie clip
Debug it you should be able to see all instances inside

max
06-18-2007, 05:29 PM
Note that this won't work if you're loading the swf from another domain.