Hello everyone.
I have an issue that I am hoping someone can help me with.
I am displaying an external diagram picture (swf) in a main scroll pan using AS2.0. I want to load some external objects (swf) on top of the diagram from another object scroll pan.
My problem is when I am drag & drop the object from object scroll pan to main scroll pan the diagram picture get disappears. Please check following code.
When I am loading the external swf object then the scroll pan is just loading 1 object at a time and not allowing to move the object.
The external objects are not working so I have also tried with internal library, So when I am loading the objects from internal library then also it is removing the diagram.
On Button click load the diagram image
main_scrollPane.contentPath = “clips.swf”; // (code is working)
// main_scrollPane.contentPath = SwfDiagramPath;
To load the internal object from library
var mcMain:MovieClip;
main_scrollPane.contentPath = “Container”;
mcMain = main_scrollPane.content;
var Controls:MovieClip = mcMain.attachMovie(“mc_Label”,“Lbl”+lbl_count, mcMain.getNextHighestDepth(),position)
To load the external movie object I have used following code
var moviefile:Array = new Array;
moviefile [‘name’] = “floor”;
moviefile [‘path’] = “floors/First.swf”;
//. . . . some code
moviename = moviefile [‘name’];
objectDepth = objectDepth+1;
var clip:MovieClip = main_scrollPane.content.pane_mc.createEmptyMovieClip(moviename objectDepth);
// // pane_mc is the name of the name of the movie clip which is in the “clips.swf”
clip.loadMovie(moviefile[‘path’]);
clip._x = 50;
clip._y = 50;
I appreciate any help.
Thanks!
Alvin