are you saying i should put this in the action
because i try that and this is the error i get
**Error** Scene=Scene 1, layer=otherswif, frame=1:Line 1: Statement must appear within on/onClipEvent handler
Total ActionScript Errors: 1 Reported Errors: 1
should i create a new layer to place this function or is it ok to place it in the action on the layer with the moviswf?
do you want to load "mymovie.swf" when your main swf starts or when a button is clicked in your main swf?
if the former, assign your button an instance name (eg, btn) and attached to a frame (NOT the button or any other object), use:
moviswf.loadMovie("mymovie.swf"); // assuming moviswf is a movieclip that you want to replace with mymovie.swf. p.s. watch your spelling of moviswf. it's probable that should be movieswf
if the later, just use:
thanks kglad, i want the fromer and I taught i got it but i am a newbie and i am not sure i understand how to do this
assign your button an instance name (eg, btn) and attached to a frame (NOT the button or any other object),
click an empty part of the stage (to deselect everything), click your button (to select it) and in the properties panel you'll see a input field where you can type an instance name.
if you don't see a properties panel, click windows > properties.