So I don’t know what the best way to do this is but I have not had this trouble while scripting on the time line and since custom classes are new to me maybe y’all could help a bit.
//Pages
package classes
{
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
public class Pages extends MovieClip
{
// initialize -----------------------------------------------------------------------------
public function Pages()
{
super();
}
// API ------------------------------------------------------------------------------------
public function loadPage(swf:String):void
{
var myRequest:URLRequest=new URLRequest(swf);
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
addChild(myLoader);
myLoader.x = -400;
myLoader.y = -270;
}
}
}
the addChild is working fine but the previous .flv won’t go away.
Any help would be greatly appreciated, thanks