Can anyone see anything wrong with this actionscript? It's for a blank movieclip which should load an external *.swf into tself and resize itself accordingly.onClipEvent(load){
newfile=this.loadMovie("file.swf")
}
onClipEvent(enterFrame){
if(newfile.getBytesLoaded==newfile.getBytesTotal){
this.width=100
this.height=100
_parent.movieclipx._visible=false
delete enterFrame
}
}
It works perfectly within Flash itself but when embedded in an HTML page:
- In Firefox, movieclipx disappears immediately, despite the fact that file.swf is still loading. Once file.swf is loaded it's not resizing the movieclip so file.swf is not visble wht it's doing is adjusting the size of the parent *.swf a little.
- In Internet Explorer, all seems to work well expcept for the resize of the parent *.swf as mentioned above.
If none of that makes sense, you can see it in action <link removed /> by pulling up the restaurant (the brown building on the left hand side of the village).
<edit> OK, solved the resize issue - I was looking in the wrong place; the *.swf I'm loading had a line of actionscript bury inside it that turned scaling of the stage off. So all is now well in IE but I'm still having problems getting the child *.swf to display in Firefox.</edit>