OK, this one should be pretty simple, but I'm having a heck of a time making it work. I am trying to load a movie(.swf) inside of another movie. I'm running MX2004 if that helps.
The "main" movie is to act as a container for the other. No matter what I do , I can't seem to load the other swf into the container. Instead it loads it on top of the other movie (at 0,0), and when stepping through the code they both show up on _level0.
I've never done this before, and I've tried everything.
Here's the code on the first frame of the container the "main":
The debugger still shows the mcView as being on _level0, and the movie is still being loaded in place of the container.
The container clip is the _root itself, so it has no instance name assigned to it. I'm just not familiar with the use of the (__main) in your code, so I'm probably just missing something. I've tried to look it up, but I can't find anything on it anywhere as related to the movieClipLoader class.
The setPosition() function is on the _root of the container (actually it's an external .as file).
I appreciate you taking the time. Any help is appreciated
//
Now mcView should be on level 2 i dont see any reason why it should not work maybe you should send me your file..
The __main is just a referer to my main movie i always declare a __main in object or movieClip so that i have a direct link to my main movie and dont have to use _parent or _parent._parent etc to acces it.
I'll send you both files the .fla for the container, and also the .swf for the "mcView" load.
Nothing is really functional, but the login button on the swf (no data for the combo box yet). You'll see I also commented out a bunch of code that you needn't be bothered with (it's just populating
I'm more of a designer than a coder, and I really hate to keep bugging you. But I do appreciate it . The zip file contains the both files.
Thanks again for all your help, I do appreciate it. Here it is
Sorry, maybe I just didn't explain what it is that I want to happen. I want the swf file i sent to be loaded on to level 1 of the .fla file (which is to be the _root or the container).
when the swf loads I want the _y to be offset by 35 pixels, which is the height of the (only symbol) in the .fla file.
The .fla and the .swf are not the same. I was trying to load the .swf I sent IN to the .fla.
Sorry about the confusion. When I run it here, the swf replaces the _root, rather than sitting on top of it 35 pixels down from (0,0).
It just loads it on top of the other. The Login should screen should have a "customerName" and "Site Description" header on it (which is actually sitting on the _root timeline, under the login screen.
I can't believe I did that. Anyway, I do appreciate your help. It works exactly like it should, I was just wasn't calling the right function.
But while I sit here feeling like an idiot, I figured I'd ask you one more question, though I'll try not to be so stupid this time. If I'm debugging, should I expect to see _level1 anywhere in the debug window if I list the variables?
The movie is loading exactly the way I want it to, but if I want to reference variables in the 'container' from inside the loaded swf (mcView), do I now have to use _parent, __main or _level0?
If I'm becoming an annoyance, just reply "Yes you are an idiot."
I'd like to return the favor, so if you need any design work done, let me know. Thanks again, you've been a HUGE help.