I have a form with several drop down boxes. The boxes work
just fine when I export the movie in to Flash Player. But when I
open website in its browser (firefox), the drop down boxes do not
drop down.
Now I have thought that maybe it is because the swf file
which contains this form is externally loaded into a movie clip.
Would this screw it up at all?
I can email you the two files if you like to look over. Its
REALLY puzzling me!
Thanks
KitDrop Down Box Problem
Yes. you need to use _lockroot on the movie clip that is
loading in the SWF.
EX: (my_mc is the movie clips' instance name)
my_mc._lockroot = true;Drop Down Box Problem
Sorry, someone wrot this code for me. Where do I put that in
here?....
And what is the name of the movie clip's instance name?
//set up holding clip
var holder = this.createEmptyMovieClip('holder', 0);
//set up progress bar
var pbar = this.createEmptyMovieClip('pbar', 100);
var pbg = pbar.createEmptyMovieClip('pbg', 0);
var bar = pbar.createEmptyMovieClip('bar', 1);
pbar.pbg.lineStyle(2, 0xFFFFFF, 20, false, 'none', 'none');
pbar.pbg.moveTo(0,0);
pbar.pbg.lineTo(150,0);
pbar.bar.lineStyle(2, 0xFFFFFF, 100, false, 'none', 'none');
pbar.bar.moveTo(0,0);
pbar.bar.lineTo(150,0);
pbar.bar._xscale = 0;
pbar._x = Stage.width/2-485;
pbar._y = Stage.height/2-300;
pbar._visible = false;
//set up loading method
var mcl = new MovieClipLoader();
var lstn = new Object();
mcl.addListener(lstn);
lstn.onLoadStart = function(clip) {
pbar._visible=true;
}
lstn.onLoadProgress = function(clip, bl, bt) {
pct=Math.round(bl/bt*100);
pbar.bar._xscale=pct;
}
lstn.onLoadComplete = function(clip) {
pbar._visible=false;
}
mcl.loadClip('jr.swf', holder);
send me the original files you were working with.
dzedward[at]gmail[dot]com
As I stated, using _lockroot solved the problem.
Hey, I wrote that, lol!!!
Kit must have been referencing to _root in the loaded
swf?
the combo box component does.
Yah, thanks Chris, I thought you may have been busy today so
I thought I would post on here too.
I thank you both for your help:)
thanks dz, didn't see that in there.
no prob Kit, you're welcome.
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment