Copy link to clipboard
Copied
Hi,
I have parent.swf which is load the a child.swf
I gave alreay gave few version of both swf to my clients. Now i am on the postion to update only the child.swf.
Now i want to add scroll panel on the child.swf.When i try to add that it shows error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::ScrollPane/setScrollDrag()
at fl.containers::ScrollPane/draw()
at fl.core::UIComponent/callLaterDispatcher()
at flash.display::DisplayObjectContainer/addChild()
at yume_survey_cs_as3_fla::MainTimeline/frame1()
The coding on child.swf is:
import fl.containers.ScrollPane;
var a:ScrollPane=new ScrollPane();
addChild(a);
with out any code change on parent.swf, i want to add this scrollPane on child which need to work fine with parent.How to do that?.
Thanks,
SIva
Copy link to clipboard
Copied
That error reads as if you neglected to place a ScrollPane component in the library. You need to have one available in the library in order for it to be loaded dynamically.
Copy link to clipboard
Copied
Yes i have the copy of ScrollPane component in my child.fla.
But on parent.fla the component is not there in library.And I am not allowed to place ScrollPane component in parent.fla.
All i have is to doing change with my child.fla only.
Thanks,
Siva
Copy link to clipboard
Copied
I don't think you can solve this without recompiling the parent to place the child in a different applicaiton domain.
Copy link to clipboard
Copied
Yes i thought the same... but what is necessary both should fall on same application domain? I want the components to deal with child.swf only?
We able to write custom scroll bar component on child.swf with out consider application domain right? then why flash component failed?
is there any option to changes on "ScrollPane.as"? or let me know have any other custom component which should have the setSize function?
Also i suspect that same problem will comes on combo box flash component too ... if making custom component is the only solution,then let me know where could i get them for free?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now