I have a button that loads a .swf in a scene. The problem is it load into a default position. How do I get it to load to a location of my choosing? If it is action script, could anyone help with the code, I dont know AS very well. Thanks
for example
_root.createEmptyMovieClip("mc",1000);
mc.loadMovie("test.swf");
this.onEnterFrame = function(){
var l=mc.getBytesLoaded();
var t=mc.getBytesTotal();
if (l && l>= t){
mc._x=?;
mc._y=?;
delete this.onEnterFrame;
}
}
i learn from kirupaForum :trout: , hope it helps:trout:
This is what my code looks like after I have added the script given:
on (release) {
loadMovieNum(“resume.swf”, 1);
_root.createEmptyMovieClip(“mc”,1000);
mc.loadMovie(“resume.swf”);
this.onEnterFrame = function(){
var l=mc.getBytesLoaded();
var t=mc.getBytesTotal();
if (l && l>= t){
mc._x=255.8;
mc._y=68.3;
delete this.onEnterFrame;
}
}}
+++ It still does not load to the X, Y coordinates. Resume.swf is the swf file that I am trying to load to the specific position in my Scene. Can anyone help me out with this— THANK YOU so much in advance!
on (release) {
_root.createEmptyMovieClip(“mc”,1000);
mc.loadMovie(“resume.swf”);
this.onEnterFrame = function(){
var l=mc.getBytesLoaded();
var t=mc.getBytesTotal();
if (l && l>= t){
mc._x=255.8;
mc._y=68.3;
delete this.onEnterFrame;
}
}}
try this
When I put the code in the button does now bring up the resume.swf at all. I am stumped.
on (release) {
_root.createEmptyMovieClip(“mc”,1000);
mc._x=255.8;
mc._y=68.3;
mc.loadMovie(“resume.swf”);
}
check out your registration points…