-
Changing ScrollPane Params During Runtim in Document Class
Hello,
I have a FLA file "test.fla" with a ScrollPane instance in it named "sp", no parameter is changed at all. And test.fla has a document class "test", in constructor of "test" there is:
sp.source = "inc.swf";
But it doesn't seem to work at all. Nothing comes out. I also tried listening to Event.COMPLETE, and it is never dispatched. Does it mean I'll need to create the component at runtime if I want to change it's parameters at runtime? Thanks.
PS: I have tried creating the component at runtime and assign source to it, and it worked. Just curious if I have to do this, and the reason why the above code does not work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|