Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Loading A SWF In An Empty Movie Clip On The Timeline



Hi,

Is there any way to load an external SWF within an empty movie clip by entering code within a frame on the timeline? I have been able to load an external SWF within an empty movie clip by click on a button but I have need the SWF to automaticly load at a certain frame instead of clicking a button.

Thanks for any help,
Brian



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 11-20-2006, 12:46 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Loading A Movie Clip With Preloader Into Empty Clip
OK, stoopid question for those who know the answer:

I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:

loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");

The problem is that the movie contac.swf contains a preloader:

frame 1:
_root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);

frame 2:
if (_root.firstloading.percent < 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}


and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".

Loading A Movie Clip With Preloader Into Empty Clip
I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:

loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");

The problem is that the movie contac.swf contains a preloader:

frame 1:
_root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);

frame 2:
if (_root.firstloading.percent < 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}


and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".

Loading A Movie Clip With Preloader Into Empty Clip
OK, stoopid question for those who know the answer:

I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:

loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");

The problem is that the movie contac.swf contains a preloader:

frame 1:
    _root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);

frame 2:
    if (_root.firstloading.percent < 100) {
        gotoAndPlay (1);
    } else {
        gotoAndPlay (5);
     }


and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".

Loading A Swf Into An Empty Movie Clip
hi...

i'm trying to load an external swf into an empty movie clip in my main swf.
the code i have on my button is

on (release) {
loadMovie ("cd.swf", _root.empty);
}

empty being the name of my movie clip

i also tried it with the _root.empty in " "

neither way works.

any suggestions?

thanks

fxgrl

Loading Into Empty Movie Clip
Hi. Can anyone help me work something like this on release command into the prexisting code further below? I'm not sure how, and everything I try doesn't seem to work. Basically I have an empty "mc" on the stage, but am not sure how to change the actionscript so the 'on release' function recognizes the target mc. (I'm using the same movie clip name.)


Code:
}
on (release) {
_root.mainstageMC.loadMovie();

}
Following are 2 portions of prexisting code in which I'ld like to specify that the pages open within the "mainstageMC" on the release function.


Code:
newBut.onRelease = function() {
if (this.submenuCnt>0) {
var butNum:Number = new Number(this._name.substr(3, 1));
this.createSubMenu(butNum);
for (i=0; i<mainMenus.length; i++) {
if (i<butNum+1) {
_root["but"+i].getPos(_root["but"+i].y);
} else {
_root["but"+i].getPos(_root["but"+i].y+this.submenuCnt*20);
}
}
}

Code:
MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void {
clearSubMenus();
subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber], "/menu/submenu");
var butNum:Number = new Number(this._name.substr(3, 1));
for (i=0; i<subMenus.length; i++) {
subBut = _root.attachMovie("submenu", "subMenu"+i, Math.random()*999999);
subBut._alpha = 0;
subBut._x -= i*5;
subAppear(subBut, (i+3), 12);
subBut._y = this.y+this._height+(subBut._height+3)*i;
subBut.txt.text = subMenus.attributes.txt;
subBut.link = subMenus.attributes.link;
subBut.but.onRelease = function() {
getURL(this._parent.link);
};
}
};
Can anyone please help...? I would be very grateful.

Loading Jpegs Into An Empty Movie Clip
loadMovie(_root.list3[0].fullsize, "placeholder");

this is how I am loading my jpeg

_root.list3[0].fullsize(this is where the jpeg is located)

This is working fine but I want to know why it is loading the jpeg at x=0,y=0 of the "placeholder" movieclip.

Can I change the coordinates of where the jpeg is loading without repositioning "placeholder" mc.

If so, how do I with my existing loadMovie function at the top of this message.

Loading An Empty Movie Clip On A Different Layer?
G'day All!

ok I have a button, when I rollover it, it brings up a movie clip which is basically just an image fading in. when you roll off it fades away....

I have got an empty movie clip on the stage which I am loading into..

But it keeps loading ontop of all my layers, so how do I make it load say on layer 2???????????????




Im using the following code..

__________________________________________________ _________________

on (rollover) {
_root.attachMovie("rollover2","rolloverClip2",2);
_root["rolloverClip2"]._x = 391;
_root["rolloverClip2"]._y = 278;

}

on (rollOut) {
_root.attachMovie("rollover2_off","rolloverClip2", 2);
_root["rolloverClip2"]._x = 391;
_root["rolloverClip2"]._y = 278;

}

__________________________________________________ _________________

Loading Image Onto Empty Movie Clip
hey all
just a quick question.
shown in the code below i am dynamically creating buttons. the buttons load an image and text into another clip above. what i need help with is; i need the image to ALSO be displayed on the button. :confused
so instead of the button filling with it's color (CCCCCC) i need it to fill with the corresponding image or part of the corresponding image.
any ideas?
thanks in advance!!


PHP Code:



// create a blank text box and set its parameters// first is movie depth, second is x coordinate, third is y coordinate, then width followed by height_root.createTextField("theTextBox", 20, 100, 110, 245, 75);theTextBox.background = true;theTextBox.border = false;theTextBox.backgroundColor = 0xFFFFFF;// whitetheTextBox.multiline = true;theTextBox.wordWrap = true;theTextBox.html = true;theTextBox.scroll = true;theTextBox.scrollbar = true;theTextBox.variable = "myText";// load our textloadVariables("welcome.txt", "_root");//set up dynamic buttons and parameters//for(i=1;i<11;i++) where i<8 represents max number of buttons (so 10 buttons total)//_x=i*37 where 37 represents width of button plus space between buttons (so 27+10=37)for(i=1;i<11;i++){    _root.createEmptyMovieClip("button"+i, 100+i);    _root["button"+i].beginFill(0xCCCCCC, 100);        _root["button"+i].moveTo(-25, -10);        _root["button"+i].lineTo(25, -10);        _root["button"+i].lineTo(25, 10);        _root["button"+i].lineTo(-25, 10);        _root["button"+i].endFill(-25, -10);        _root["button"+i]._x=i*37;        _root["button"+i]._y=215;        _root["button"+i]._width=27;        _root["button"+i]._height=27;        //create, add, delete buttons}button1.onRelease=function(){    loadVariables("text1.txt", "_root");    loadMovie("showcase1.jpg","imageHolder");}button2.onRelease=function(){    loadVariables("text2.txt", "_root");    loadMovie("showcase2.jpg","imageHolder");}button3.onRelease=function(){    loadVariables("text3.txt", "_root");    loadMovie("showcase3.jpg","imageHolder");}button4.onRelease=function(){    loadVariables("text4.txt", "_root");    loadMovie("showcase4.jpg","imageHolder");}button5.onRelease=function(){    loadVariables("text5.txt", "_root");    loadMovie("showcase5.jpg","imageHolder");}button6.onRelease=function(){    loadVariables("text6.txt", "_root");    loadMovie("showcase6.jpg","imageHolder");}button7.onRelease=function(){    loadVariables("text7.txt", "_root");    loadMovie("showcase7.jpg","imageHolder");}button8.onRelease=function(){    loadVariables("text8.txt", "_root");    loadMovie("showcase8.jpg","imageHolder");}button9.onRelease=function(){    loadVariables("text9.txt", "_root");    loadMovie("showcase9.jpg","imageHolder");}button10.onRelease=function(){    loadVariables("text10.txt", "_root");    loadMovie("showcase10.jpg","imageHolder");}// create variable graphic content holder_root.createEmptyMovieClip("imageHolder", 377, 88);imageHolder._x=15;imageHolder._y=15;loadMovie("showcase_default.jpg","imageHolder");imageLoaded=true; 

Loading Jpegs To Empty Movie Clip
Hello!

I'm not experienced with actionscript. I have a question. I want to have a bunch of empty movie clips, I want to load jpegs into them, and I want each jpeg to fade in and out. I got help in another forum, but it's not working properly. Is there anybody that can look at my file and point out what I'm doing wrong. I've attached the flash MX2004 file. I would really appreciate any help! Thanks!

Empty Movie Clip Loading Swf Which Contains Variables
Hi All,

I am going to approach this newbie problem from a different angle. It is on tracing variables. I have a attached main.fla, movieclip.fla, and movieclip.swf.

If you run main.fla from within flash you'll notice the actionscript on the first frame of main.fla is loading movieclip.swf into an empty movie clip called container on the first frame of main.fla. No problem.

In movieclip.swf I assigned three values to three different variables, a, b and c, on the first frame of moviclip.swf(See movieclip.fla) like this:
a = 1;
b="string";
c 1.234556;

Also, in the first frame of main.fla, there was actionscript as follows:

container.loadMovie("movieclip.swf");
trace (_root.container.a);
trace (_root.container.b);
trace (_root.container.c);

Now each of the above traces produced undefined results when I ran main.fla from within flash. And yes I had complied moviclip.swf. Why did I get undefined results? What concept am I not grasping?

A simple one for the masters.

From the newbie,
Libman

Loading An External Swf Into An Empty Movie Clip
Im trying to load an external swf ("rollovermovie.swf") into an instance of a movieclip ("moviehandler") when the mouse rollsover a button on the stage

the actions I have attached to the button are:
on (rollover) {
_root.moviehandler.loadmovie("rollovermovie.swf");
}

But it is not working. Can anyone help?

Loading .swf In Empty Movie Clip Has Height Problem. . .
Using Flash 8

Hi there,

I'm loading an external .swf file into an empty movie clip, but when I try to access the ._height of that movie clip it returns with 0 even after loading the clip. How can I access the height of the movie clip that loads the .swf?

Thanks!

Laz

Loading Movie Into Empty Clip, But Movie Won't Play
I have 4 movies that i am trying to load into an empty clip in an existing movie. my problem is that when each of these movies are loaded into the clip, I can physically see it, but it doesn't function as a movie, the rest of the larger movie is moving around it, but the smaller movies won't move. I thought this was because I put a stop action at the end of the smaller movies, but when I take it out, the movie just keeps looping when loaded into the empty clip in the new movie.

does that make sense.
PLEASE HELP ME.
HOW DO I SEE MY MOVIES

Question About Loading A Swf Movie Onto An Empty Movie Clip?
hi all! :D

i have a page that loads up with buttons on it that will open swf movies when a button is pressed.

i would like the movie to open up at a specific size on the page, how do i tell the movie where and how big to open up?
i would like to use an empty movie clip to load the swf onto, but how do i regulate the window/playing size of the swf?

also, if possible, could i have a script that when the viewer clicked on the swf movie that it would open up to full size???

thanks!

Loading Swf Into Empty Movie Clip. Causes Preloader To Not Work.. Simple...
Hey guys this is my first time to post so hopefully i'll get everything right. I"m using flash mx 2004.
I am loading a swf file(lauravid) into an empty movie clip (emptymid)in my main swf file.

My preloader works fine whenever I test the swf seperatly.
Here is my action script i'm using.
Frame 1.
a = getBytesLoaded();
b = getBytesTotal();
c = Math.ceil((a/b)*100)+"%";
if (a == b) {
gotoAndPlay("start");
}
this._x = 250;
this._y = 55;

Frame 2
gotoAndPlay (1);

Then I have a dynamic text box setup with the var of _root.c
As I said before it all works fine if I load the swf file seperatly.
My movie loads but the dynamic text box doesn't show the progress. I'm sure this is an easy one. Thanks in advance for you help!!!
-Peter

Having Problem Loading An Swf Into An Empty Movie Clip And Allowing It To StartDrag
hello ppl, well this my first time writing a thread here and i guess that shows i frustrated i am i am trying to add an external swf into an empty movie clip and making that movie clip dragable across the entire screen so this is how i went about it...

this._parent.createEmptyMovieClip("menupop",200);
this._parent.menupop.loadMovie("menu.swf");

this._parent.menupop.onRelease = function()
{
this._parent.menupop.startDrag("");
}

please somebody tell me what im doing wrong

Can't Get Simple Tween To Work When Loading Swf Into Empty Movie Clip
I have 3 buttons on the stage that load external swfs. I cannot get the swfs to tween in. I don't think I am targeting the right object. I have a empty movie clip on the stage called loader_mc but I think I need to target the loaded swf instead. Code below

ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

var inTween:Tween;
var outTween:Tween;

var SWFLoader:Loader = new Loader();
var SWFRequest:URLRequest = new URLRequest("loaded1.swf");
var SWFRequest2:URLRequest = new URLRequest("loaded2.swf");
var SWFRequest3:URLRequest = new URLRequest("loaded3.swf");


nav1_mc.addEventListener(MouseEvent.CLICK, nav1_mc_CLICK);

function nav1_mc_CLICK(e:MouseEvent):void
{
SWFLoader.load(SWFRequest);
loader_mc.addChild(SWFLoader);
inTween = new Tween(loader_mc, "alpha",None.easeNone,0,1,1,true);

}

nav2_mc.addEventListener(MouseEvent.CLICK, nav2_mc_CLICK);

function nav2_mc_CLICK(e:MouseEvent):void
{
SWFLoader.load(SWFRequest2);
loader_mc.addChild(SWFLoader);
loader_mc.alpha = 0;
inTween = new Tween(loader_mc, "alpha",None.easeNone,0,1,1,true);

}

nav3_mc.addEventListener(MouseEvent.CLICK, nav3_mc_CLICK);

function nav3_mc_CLICK(e:MouseEvent):void
{
SWFLoader.load(SWFRequest3);
loader_mc.addChild(SWFLoader);
}

Grabbing The Empty Space Of An Empty Movie Clip
OK, so I've created an emptymovie clip and have attached clips to it, so that when I attach a drag action (actually, I did the drag through onPress and onRelease), the user can click and drag all the clips at once. However, it only detects when I click on one of the actual child clips...I'd like to be able to click on the space between the clips.

Here's the swf:
http://www.public.iastate.edu/~dnguy.../scrapbook.swf


The relevant code:

Code:
this.createEmptyMovieClip("mainclip", 1);

for(var i=0; i < nPics; i++){
var cclip = mainclip.createEmptyMovieClip("clip_"+fileNames[i], i);


myMCL.loadClip( gFolder + "/" +
fileNames[i],
cclip);

}

Code:
mainclip.onPress = function(){
this.xoff = this._xmouse;
this.yoff = this._ymouse;
this.onMouseMove = DragClip;

}

mainclip.onRelease = function(){
mainclip.onMouseMove = null;

}

function DragClip(){

this._x = _root._xmouse - this.xoff;
this._y = _root._ymouse - this.yoff;

}

Loading A Movie Clip Seperate Of The Main Timeline With A Status Bar
I should save something for down here, egh... ..

Would it be easy to load a whole new movie inside of
my main movie to have when you click on a button it
loads that section with a load bar and then buttons
pop inside of my firist movie. . ?
Thanks anyone

How Do I Empty An Empty Movie Clip
hello

how do I remove a movie clip off of the stage that I created using

createEmptyMovieClip

Thanks in advance

How Can I Control A Movie Clip Which Was Loaded In To A Empty Movie Clip On Level 0
how can i control a movie clip which was loaded in to a empty movie clip on level 0 the name of the movie is 'imagemc.swf' and 'imagemc' for the empty movie clip on level 0. the movie doesn't have a movieclip name, how am i going to tell target the movie?

Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.

Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?

Thanks!

Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:

on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}

what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.

I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?

Loading Swf's In Empty Clip
Hi

I have a question regarding loading swf's in an empty clip. I was able to load my swf into an empty Movie Clip in the main movie, and the postioning is fine. When I test the main movie which is larger than my loaded swf the loaded swf file doesn't crop to the size of the stage I created it initially. Example Main Movie stage size is 550 x 400 pixels and the Swf stage size is 220 x 80 pixels(with moving elements starting off stage). It seems to show parts of the swf movie that start moving off stage, all I really want it to show is the stage and not the off stage items. When I test the loaded swf on its own it seems to be cropped to the stage size.

Any help on this would be greatly appreciated!

Thanks

Loading External MC Into EMPTY Clip
I have a button that when clicked loads an external MC into placeholder1 MC. Now, if this placeholder1 MC already has a swf loaded in it, I want the swf to load into placeholder2 MC. How can I detect if placeholder1 MC is full and then redirect the MC to load into placeholeder2?

Loading Jpegs Into An Empty Clip...
i'm not sure if i have the code wrong...

i'm trying to use buttons (with code on the first frame of the main timeline refering to each button)... to load jpegs into an empty movie clip in a swf that eventually loads into the master flash file...

if anyone has generic code on how to do this... please post it... i know it seems simple... but for some reason what i have isn't working...

i would post it but i'm not at my own computer...

thanks...

Freaky Loading Swf Into Empty Clip
Hi all - can anyone help me here?

I am using the correct form of loading a swf into flash
ie. loadMovie ("knw.swf" , "empty");

And it works fine with other movies I have loaded in. However the one movie I am trying to get on stage is not playing (nothing) - although if I just load it as a movie clip ie. loadMovie ("knw.swf", 1) it runs perfectly fine!!

The movie in question has all its elements on the first frame if that makes any difference - although I tried moving to frame two and it did not make a difference.

Any ideas?? Thanks very much!!

Loading Into Empty Clip ALL In Html_problem
Hello ShockWorld,
to put it simply - I need some good answer on this question:

I've made a HTML file which contains swf file which contains an empty movie clip in which I want to load an external movie when certain button is clicked.
It's not working the way I want; either it's loading desired movie into _root (level zero), meaning losing primary movie, either not loading at all.

Did I missed something along the way?

Any experience with this, anybody?

any help, good help
thank you

VictoryVector (except now)

Creating Empty Movie Clip Inside Movie Clip
Hi,
i'm using this script to make an empty movie clip
_root.createEmptyMovieClip

but i am trying to make this empty clip from inside a movie clip. Not from the root time line. HOw do i go about this?

Target Empty Movie Clip And Movie Clip Frame
I'm loading a random movie, reading in Shared Object data.
If the Loaded movie has been viewed playing it's 2nd frame.
How can I load the movie into an empty movie clip and target its 2nd frame?
Is it just a syntax issue?


Code:
filename = ["flashMovieA.swf", "flashMovieB.swf"];
path = "flash/";
i = filename.length;
k = Math.floor(Math.random()*i);
// get object if none just play
mindSO = SharedObject.getLocal("mindControl");
// Scan the mindSO for values
for (a in mindSO.data) {
trace(a+": "+mindSO.data[a]);
// if previously viewed play second frame
if (mindSO.data.movieName == filename[k]) {
// here is my targeting issue
loadMovie(path+filename[k], movieHolder_mc);
movieHolder_mc.movieName.gotoAndPlay(2);
} else {
// play whole movie
loadMovie(path+filename[k], movieHolder_mc);
setSOData();
}
}

Loading External Swf Into Empty Clip In MX2k4
So i finally upgraded to MX2k4 but the action scripting is different. Or am i just crazy.

Here's is what i want to do. From the navigation menu, i want button "roster" to load external movie "roster.swf" into an empty movie container on the main timeline named, you guess it, roster?

I am used to doing a lot of tell targets on mouse press. is there an easier way?

Sorry the search seems broken, i tried 3 times.


undrdg

Creating Empty Clip At _root And Loading SWF
I have an object (with it's own timeline) and on the last frame of that timeline I have the following code:


Code:
stop();
_root.createEmptyMovieClip("mainLoop_mc", 2000);
with (_root.mainLoop_mc){
_x=0;
_y=737;
}
_root.loadMovie("mainLoop.swf", _root.mainLoop_mc);
The problem is, when the "mainLoop.swf" file loads it obliterates my main UI SWF instead of attaching itself to a particular spot on the UI. So one SWF is replacing the other. Can anyone tell me what I'm doing wrong?

Controlling A Movie Clip's Timeline Separately From Main Timeline
I've got a problem here that I've been trying to figure out for a while now, and it seems like it should be way easier than this. Here's what I've got:

I'm trying to make a neato little flash swf with lots of buttons that you can push and another little movie clip will show some little animation.

I thought I could get this done pretty simply by making a bunch of buttons, giving them an over, down, hit, sound, etc. and then having one single movie clip do all of the animations, but cleverly use stop(); and gotoandplay();

I have tried a few different ways, searched through the help & tutorials, looked all over forums on the internets, and I still can't get this to work. The main timeline is really just 1 frame, and its only purpose is to just hold all of the buttons. I have given all of the buttons instance names (ending with _btn). There is a separate layer in the main timeline for the actionscript alone, and was hoping to put all of the gotoandplay commands there. The code that I am trying to use in that frame is:


Code:
this.WV_btn.onRelease = function(){this.productzmovie_mc.gotoAndPlay(2);
};
The productzmovie_mc has a command to stop(); in the first frame, and I am trying to get a button to skip to the next frame to get it going. I put a stop(); on the last frame of that animation so that it won't run through the whole thing on the first button press. If I remove that stop(); on the first frame, the whole animation just runs whenever I test it and the button has no effect.

I thought this would be way simpler than making 25 separate movie clips and hiding them or spawning them. Does anyone know what I could be doing wrong here? This seems like a pretty simple operation, and I am probably screwing up some mundane detail (I always do that). Be gentle, I am trying to learn Flash and I am a bigtime n00b. I can post the .fla if you need to see it, but it's pretty simple so far, just lots of buttons.

Thanks!

Empty Movie Clip?
I have read several posts refering to an "empty MC", how is one created?

have a good weekend to all!

Empty Movie Clip BG
Im trying to assign a background using an image for an empty movie clip>? any way of doing this?

thx

Empty Movie Clip
When importing a movie that uses a XML file into an empty movie clip is it necessary to import the XML file as well?

[F8] Movie Clip Is Empty Or Not? (AS2 / AS3 )
I need to know if there's an action i can use to ask if a Movie Clip is
empty or not so that it will only execute the following action if it is
empty and if it's not it will do nothing.

thanks!

[F8] Empty Movie Clip
Is it possible to load a movie to an empty movie clip from a url address?
If so, what script would I use?
Thanks for your help
Ecinele

Empty Movie Clip Help
hi, i need some help. everything seems to work fine when i export to view but doesnt when i upload to the web.

working in flash CS3, as 2

frame 1 is preloader
frame 2 has thumbnails and buttons
frame 3 has large images with prev and next buttons
frame 3 also has 58 empty MCs - one for each image

if anyone knows of a better way of going about it...let me know...

trying to keep file size down as much as possible.

thanks for looking.
jesse









Attach Code

// code for my buttons to go to frame 3 labeled "images"
// one empty movie clip on frame 3 for each image
on (release) {
gotoAndStop("images");
_level0.page_old = _level0.page;
_level0.page = 1;
setProperty("_level0.image"+String(_level0.page_old), _alpha, "100");
if (eval("_level0.pageloaded" + String(_level0.page)) == "yes") {
setProperty("_level0.spread"+ String(_level0.page), _alpha, "100");
} else {
loadMovie("image"+ String(_level0.page)+".swf", "_level0.image" + String(_level0.page));
setProperty("_level0.image"+ String(_level0.page), _alpha, "100");
}
}

// prev button on frame 3
on (release) {
_level0.page_old = _level0.page;
setProperty("_level0.image"+ String(_level0.page_old), _alpha, "0");
if (_level0.page > 1) {
_level0.page = _level0.page -1;
} else {
_level0.page = _level0.maxpages;
}
if (eval("_level0.pageloaded" + String(_level0.page) )== "yes") {
setProperty("_level0.image"+ String(_level0.page), _alpha, "100");
} else {
loadMovie("image"+ String(_level0.page)+".swf", "_level0.image" + String(_level0.page));
setProperty("_level0.image"+ String(_level0.page), _alpha, "100");
}
}

// next button on frame 3
on (release) {
_level0.page_old = _level0.page;
setProperty("_level0.image"+ String(_level0.page_old), _alpha, "0");
if (_level0.page <= _level0.maxpages) {
_level0.page = _level0.page +1;
} else {
_level0.page = 1;
}
if (eval("_level0.pageloaded" + String(_level0.page) )== "yes") {
setProperty("_level0.image"+ String(_level0.page), _alpha, "100");
} else {
loadMovie("image"+ String(_level0.page)+".swf", "_level0.image" + String(_level0.page));
setProperty("_level0.image"+ String(_level0.page), _alpha, "100");
}
}

Empty A Movie Clip.
I know this sounds pretty elementary but how do you empty the contents of a movie clip?

Load Movie In Empty Movie Clip...Display Preloader In Another
I have two empty movie clips. One that will hold the current menu and the other will display the preloader/current page. How can I get the page that is being loaded to send the preloader information to the other movie clip? I've made simple preloaders, but this is a little more complicated. This is the only thing left to really solve on my web page, I would appreciate any help.

Loading Movie Into Main Timeline From Movie Clip Within Main Movie
Hi there,

I'm having major difficulties loading external SWF's into my main movie. The button actions are in a movie clip within the main movie. I've used the following AS to load in my external SWF files on higher levels:-

mybutton_bn.onRelease {
loadMovieNum("two.swf",1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
}

Similarly, my external text files are not loading!

myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
my_txt.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("textfile.txt");


All works fine until I upload to the server. It's really driving my around the bend. Any suggestions will be gratefully received.

Many thanks

Q.

I Want To Load An .swf Into An Empty Movie Clip
I have an .swf (main.swf) with and empty movie clip (holder) that I am loading a movie into.

// loadMovie("new.swf", "_root.holder");

like this right? okay I hope I still have you, that's the easy part.

From there I want to load another .swf into a different empty movie clip (holder2) within "holder"

// loadMovie("new2.swf", "_root.holder.holder2");

right? then I want to specify a height and width of that .swf within "holder2"

how can I do that?

Thanks
Erik

Load Swf Into Empty Movie Clip, How?
I am not sure how to do this, but I have a movie, "main.swf" that contains some common elements that my app will use in a "toolbar" located at the top of the movie. I want all other movies in my app to load just below that toolbar.

How do I make this happen? I am thinking that It may involve an empty movieclip instance located on the stage just below the toolbar. Then I would load each swf into the movieclip as it is needed.

Is this right? Can someone give me some sample code???

Empty Movie Clip Problem
Hi Everybody

I am a relatively new player in the Flash world, and today I am trying to teach myself empty movie clips.

Can you put button funcionality onto an empty movie clip?

If so, could I see an example.

Also, what are some good tips to know when working with movie clips? Limitations? Advantages?



Thanks a lot.

Sean

Empty Movie Clip Prob
Hi
Anyone have any ideas as to how I can load an external .swf into an empty movie clip within a movieclip???

Preloader On An EMPTY Movie Clip?
Hi Every one

I have this MAIN flash file which LOADMOVIE the external SWFS.

The External SWF calls the data and images from the XML file once the buttons are pressed for next or previous simultaneously.

I have given the preloader on each External SWF file so that whenever they been called in the MAIN they perform loading, but the preloading which appears for each External SWF goes quickly and when i call the IMAGES within the EXTERNAL SWF it shows EMPTY MOVIE CLIP.

Logically its right and each time when we call the image in it it will load but how to put a preloader bar on that Empty MC which is calling images?

What i tried within my code is that on the part where images have been called i place this code written below:

if (bytesLoaded>=bytesTotal) {
loadMovie(img, "imagem"); // Only this line was there before
} else {
_root.imgloader.gotoAndPlay(2);// this should appear if the image called is not loaded totally//
}


Would really appreciate prompt help as i am stuck in this part only.
Thanks.

F.

Empty Movie Clip Help (Flash 8)
I finally finished my new site (which works great in Flash) and when I went to upload it to a server to test drive it on the super highway, I found some bugs...was wondering if I could get some input...

www.robinsilverphotography.com/test

I used code on the keyframes to load each separate image into an empty clip...

mtClip.loadMovie("images/objects.swf");

The image pages work fine (objects and people sections)


Now to my question...I did the same with the VR section, a keyframe code that loads an empty movieclip with a swf file...when I test it in Flash, it works fine...when I tested from the server, it doesn't load completely...ie the preload runs, the controller pops up, but the images don't...

There are only 3 VR files to view, you click through each and it does the same thing...however if you try again the images pop up...what gives????

I'm guessing my preloader isn't working properly...or maybe loading into a empty clip isn't the way to go...also, the images (in the object and people sections) tend to come up slowly (more slowly than I'd like) is this because I did a swf instead of loading a jpg into the empty clip? Is there any way around this??? Or is is jsut because the images sizes are large?

You input is greatly appreciated!!!
Robin

Copyright © 2005-08 www.BigResource.com, All rights reserved