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




Asp Loadmovies



can i controll a flashmovie in a html / asp site and load another movie into the existing one by just using asp or html programming? target? links? please tell me if you know...
kind regards
pj



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-16-2003, 07:05 AM


View Complete Forum Thread with Replies

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

LoadMovies
I have 6 swf files. The main movie is called main.swf. How do I preload/load the other swf's that I have. The swf's need to follow this specific flow.

Main.swf
Movie1.swf
Main.swf
Movie2.swf
Main.swf
Movie3.swf
Main.swf
Movie4.swf
Main.swf
Movie5.swf
Main.swf
Movie6.swf

The main.swf will control everything. The flow should be, launch main.swf, perform animation, load and play movie1.swf. Play movie1.swf once complete, go back to main.swf. This process will continue for movies 2-6. Any help would be greatly appreciated.

Loadmovies
ok, i have an swf i want to load into a movie clip. my main movie consists of two scenes - a preloader then the full site. on the stage in the main movie i have an empty movie clip with the instance name of 'tune' with this i want to load the swf called 'sounds1' into it. here is the script i have assigned to a button to load the movie..
code:
on(release) {
loadMovie("sounds1.swf",_root.tune);
}

why when the button is pressed does my movie take me back to my preloader scene? any ideas what i'm doing wrong?
cheers dudes.

LoadMovies
Hmm .. seems like i'm going backwards, i'm learning all the basics all over again. Anyways .. i'm trying to load another .swf file into the main .swf file ... and when it does this, it puts the top left corner of the small movie clip aligned to the center of the main movie clip when it loads it.

Is there a way to be able to position the movie clip another way?

Loadmovies
hi im trying to do the loadmovie action but when i puch the buttons the movie does not load where i want it to load in the midlle what am i doing wrong here is an example of how i want my movies to load every time i hit the buttons 2 advanced thank you

Layers And LoadMovies
i want to have a faster running site by using
buttons on "Layer 0" to call upon movies which
shall reside on "Layer 1" "Layer 2"......
not talking about Layers in the .fla timeline.
just want to know how these layers are defined
and in what environment.

Best Regards_

Using HitTest To LoadMovies
I'm using this code:
------------------------------------
onClipEvent (mouseUp) {
if (_root.status=this.hitTest(_root.mcDragA)) {
loadMovieNum ("guitar.swf", 5);
} else {
unloadMovieNum (5);
}
}
-------------------------------------


I have these sliders on my site that when u slide them up and if they collide with an object a movie clip plays.

I have three sliders (slider1, slider2, slider3), hence three movie clips that will play all at the same time if all sliders are moved in the up position.

But here is what happens. I slide one slider up, it loads the movie, great! but when i slide the second movie and my mouse button returns to the up position the first movie flickers and then starts the short clip over...Clip2 begins to play.

I had move my mouse off of the stage and click the mouse button and if all the sliders are in the up position all three movie clips will keep flickering (they turn off for as long as the mouse button is down and then come back on again when the mouse button is up)

what can i do to fix this problem?

Sequential Loadmovies
I have an animation as the base movie, and I'm trying to have it stop in certain places and load another swf, play it, then continue with the base movie, until it reaches the next stopping point, loads a movie, plays, and continues with base movie once again.

Basically I just need to know how to start the next load movie after I have played through the 1st load movie once.

Code:
frame1: loadMovie ( "loadme.swf", 3 );
frame3: _level3._x = 220;
_level3._y = 140;
stop();


And if you have even more time to answer, is there a way to limit the size of the movie loaded. By size I mean x pixels by y pixels big, no matter how big/small the original movie was made in. Kinda like an autofit.


Thanks

LoadMovies And Preloaders
Hey Guys,

I've just been asked by a friend to build a full site in flash. Due to content requirements I'm going to need to load in parts of the site as a user clicks on a navigation button. I know this is pretty standard fare, but could someone please tell me how to do this reliably and efficiently, especially with a preloader? Or could someone point me in the direction of a good tutorial?

Thanks much!

Multiple LoadMovies
I'm producing a portfolio site. The mother flash file contains a loadmovie, call it "portfoliostart.swf." It places this movie into a movieclip instance called "loaderclip."

In portfoliostart is an arrow button that advances the user to the next portfolio item, loading a movie called "portfolio01.swf into the same "loaderclip."

In portfolio01 there is a "back" arrow, which should loadMovie portfoliostart.swf again. However, once I'm into portfolio01, the buttons don't work, and nothing happens.

Any ideas? Is it possible to loadMovies this way, or do I have to UNLOAD a movie first. Help!

Two Loadmovies At The Same Time
I am using 'loadmovie' to stream audio in an swf as background music on my site. However I am also using Loadmovie to load in an swf into one of the sections of my site. When I visit this section and the secong swf loads the streaming audio cuts out. Is there a way of stopping this. I assume the problem is using loadmovie twice at the same time.
Any help much appreciated!
m

Flickering LoadMovies...
Hi,

I've created a movie that loads various swf's into a target movie clip (using loadMovie), depending on which button is pressed by the user.

Since there are 30 different buttons, and the swf's that they load vary in size, I've put a preloader on each swf to be loaded - nothing complex, just a loader in frame 1 and the movie content in frame 2.

This all works fine to a degree. What I'm finding though, is that if I click a button to load in one swf, and the click a different button to load another .swf quickly BEFORE the first has finished loading, all hell breaks loose!

Every swf I try to load after that seems to flicker wildly between it's first and second frames, and even other completely unrelated animations appear to go haywire. The only thing to do then is refresh the browser, which obviously isn't acceptable..

Any ideas why this is happening, and any solutions?

Help massively appreciated as always...

Skratch

Preloading Loadmovies & Pop-ups.
hello actionscripter:

i am importing a swf into my movie, so when i do that, i guess it isn't included in my preloader.is there anyway to have the preloader consider that movie as well?

also,
how can i have a pop up window open with specific size and withou the url and all that stuff when the user clicks on a link in the flash site?

thanks.

Preloader For LoadMovies
Code:
loadMovie("http://www.image.com/image.jpeg", box_mc);
yeah I made the code up, but I have a similar code with an image thats really huge.... so it takes forever to load. How wouldyou create a preloader for this image?

Multiple Loadmovies
Hi,
In fact I am new in scripting.I have ten .swf files and a parant flash file.
.swf files will be loaded in flash's one frame one after another.After loading a .swf file it will be take 2 second and the next .swf file will be load.Thus the loop will continue. It's a banner show.There are no button attached.I only know this
loadMovieNum("Banner01.swf", 01);But it's for only one file. Is anyone tell me the codes of loading multiple movies.
Thanks.

Problem With Loadmovies
hi guys

how are you ?

i hop you will be fine

++++

i have a small prablem in loadmovie ..

the problem is :

i want coordinate location for movie ..

sorry for my bad English

this is an example for my problem

http://www.cars-planet.com/problem/main_Movie.swf

click on home button in the menu .. and see the problem

and this is work folder ( in Attach Files )

thank you

Problem With Loadmovies
hi guys

how are you ?

i hop you will be fine

++++

i have a small prablem in loadmovie ..

the problem is :

i want coordinate location for movie ..

sorry for my bad English

this is an example for my problem

http://www.cars-planet.com/problem/main_Movie.swf

click on home button in the menu .. and see the problem

and this is work folder ( in Attach Files )

thank you

About LoadMovies Into Some Movieclips.
Hi there, currently I am working on a Game-like stage.

The stage will load several XML about the setting of the characters(what they dress)

==========================================

makeCharacter('May', 'happy', 'Male', 20000);
makeCharacter('Tim', 'happy', 'Male', 13000);
makeCharacter('Mary', 'happy', 'Male', 14000);

makeCharacter = function(Name, Expression, Sex, Level){
this.attachMovie("CharacterHolder", Name, Level).init(Expression, Sex, Level);

Character.prototype.update = function(){
Obj=eval(this.$name);
localNode = Obj.$char_XML.childNodes[0];
for (i=0; i<localNode.childNodes.length; i++){
Obj.createEmptyMovieClip(localNode.childNodes[i].attributes.level, int(localNode.childNodes[i].attributes.level));
ElementObj = eval(Obj+'.'+localNode.childNodes[i].attributes.level);
if (localNode.childNodes[i].attributes.id!=""){
fileName = "virtualimage/" + localNode.childNodes[i].attributes.level+localNode.childNodes[i].attributes.description + "/"+localNode.childNodes[i].attributes.id+".swf";
ElementObj.loadMovie(fileName);
}
}
}

==========================================

When I run the function like:
Tim.update();
Mary.update();

Suppose flash will import the XML and load the movies into
the movieclips.

for e.g.

Mary.id#1 --> load a swf (Layer: 14000> 1)
Mary.id#2 --> load a swf (Layer: 14000> 2)

Tim.id#1 --> load a swf (Layer: 13000> 1)
Tim.id#2 --> load a swf (Layer: 13000> 2)

The effect is ok if I loaded only one single character,
but when I loaded 3 characters (Character MC's Layer: 14000, 13000, 20000) the effect is kinda weird...

http://www.magusequine.com/lawfui/problem.jpg

From left to right:
Tim, May, Mary

Suppose the all the layers are with transparent background.
And all are in different timeline, how come the transparent background of Mary become "mask" of Tim's cloth layer??

Any Idea?

Thanks a million!

About LoadMovies Into Some Movieclips.
Hi there, currently I am working on a Game-like stage.

The stage will load several XML about the setting of the characters(what they dress)

==========================================

makeCharacter('May', 'happy', 'Male', 20000);
makeCharacter('Tim', 'happy', 'Male', 13000);
makeCharacter('Mary', 'happy', 'Male', 14000);

makeCharacter = function(Name, Expression, Sex, Level){
this.attachMovie("CharacterHolder", Name, Level).init(Expression, Sex, Level);

Character.prototype.update = function(){
Obj=eval(this.$name);
localNode = Obj.$char_XML.childNodes[0];
for (i=0; i<localNode.childNodes.length; i++){
Obj.createEmptyMovieClip(localNode.childNodes[i].attributes.level, int(localNode.childNodes[i].attributes.level));
ElementObj = eval(Obj+'.'+localNode.childNodes[i].attributes.level);
if (localNode.childNodes[i].attributes.id!=""){
fileName = "virtualimage/" + localNode.childNodes[i].attributes.level+localNode.childNodes[i].attributes.description + "/"+localNode.childNodes[i].attributes.id+".swf";
ElementObj.loadMovie(fileName);
}
}
}

==========================================

When I run the function like:
Tim.update();
Mary.update();

Suppose flash will import the XML and load the movies into
the movieclips.

for e.g.

Mary.id#1 --> load a swf (Layer: 14000> 1)
Mary.id#2 --> load a swf (Layer: 14000> 2)

Tim.id#1 --> load a swf (Layer: 13000> 1)
Tim.id#2 --> load a swf (Layer: 13000> 2)

The effect is ok if I loaded only one single character,
but when I loaded 3 characters (Character MC's Layer: 14000, 13000, 20000) the effect is kinda weird...

http://www.magusequine.com/lawfui/problem.jpg

From left to right:
Tim, May, Mary

Suppose the all the layers are with transparent background.
And all are in different timeline, how come the transparent background of Mary become "mask" of Tim's cloth layer??

Any Idea?

Thanks a million!

Cycling Through LoadMovies
I have a pretty simple flash project, it's one main movie and then 3 smaller movies that are externally loaded into the main movie when a button is clicked. Also the same small movie also loads into the main movie file when the page is loaded.

Well I would like to add some funcationally to it, so when the page loads the main movie starts to cycle, like each movie is seen for 30 seconds, through the other movies regardless of if the button has been clicked or not. But if one of the buttons were clicked the cycling would stop altogether. I've seen a bunch of other site out there have something like this but have been able to track down a tutorial on how to go about doing it. Does anyone out there know a good place to start with this or have some pointers on what to do?

LoadMovies & Synchronization
Dear,
I'm looking for a solution in order too synchronizes two loadMovies:

for example:
loadMovie ("small.swf");
loadMovie ("aeds2.swf");

in order to aeds2.swf play only after small.swf.
Do you have some idea ?

Best regards.

Nested LoadMovies Problem
Can somebody help me with the loadMovie function! I'm trying to load a movie that have a loadMovie trigger in it. Playing the swf file separately works fine but, playing the swf with nested loadMovie from different directory doesn't.

Here's the scenario:
- Main directory, consists of index.html, loader.swf and box sub-directories.
- The index.html calls the "loader.swf".
- Framescript in "loader.swf", loadMovie("box/box.swf", 10);
- Framescript in "box.swf", loadMovie("triangle.swf", 70);
- When I preview the "box.swf" it works fine, it displays content of both swfs.
- But, when I preview the "loader.swf" or the "index.html" it plays the content of itself and "box.swf" but, not the "triangle.swf" which is inside the box.swf.

Multiple Loadmovies Locations
Hey,
I've got around hundreds of buttons laid out around the page - each one with a on rollover command to call a movie - How do I get the movie to appear over the top of the button without having to set the x and y for each seperate movie - how do I code the movie to appear in the same position as the button?

Is this simple?
Any help appreciated
Z

LoadMovies And *.exe Files - HEELLP
Hi again.
I have a movie that has others movies by loadMovies.
But how I make an exe file without a dry cut up to the other movie? Do I have to make loadMovie to others exe files? I hope i was clear cause i need help.
Thanks again
Gpardo

Dynamic Masking On Loadmovies
I want to have a same dynamic mask on my each load movie when it is called.
Actually I am trying to have duplicate movieclip which build a grid step by step and act as a dynamic mask and whenever movie loads it plays and reverses itself on new movieload do the same again.
Help is always appreciated

Thanks.

How To LoadMovies Without A Static Menu All The Way Through
Yes, I am a bit desperate to find out how to Load several Movies swf consecutevely, without a menu that you find all along the pages.

Let' say it's like a video game, where you enter a room and a door leads you to the next room;
so you click on the door (LoadMovie "room1.swf), and once in there, there's another door you click on, (LoadMovie "room2.swf) etc..

So my problem is that I tried the 'level' things, but there must be something I am not doing right coz after clicking on 2nd door I'm stuck in the first room again.
If anyone knows....
please help (my phone line will be cut off tomorrow and I need tosolve this!!!)
Thanx to flash kit and everyone out there! :D

How To LoadMovies Without A Static Menu All The Way Through
Yes, I am a bit desperate to find out how to Load several Movies swf consecutevely, without a menu that you find all along the pages.

Let' say it's like a video game, where you enter a room and a door leads you to the next room;
so you click on the door (LoadMovie "room1.swf), and once in there, there's another door you click on, (LoadMovie "room2.swf) etc..

So my problem is that I tried the 'level' things, but there must be something I am not doing right coz after clicking on 2nd door I'm stuck in the first room again.
If anyone knows....
please help (my phone line will be cut off tomorrow and I need tosolve this!!!)
Thanx to flash kit and everyone out there!

Loadmovies In Container Problem
im loading content MC's in a container with pictures and stuff.
im using this command

on (release) {
_root.site.man.artists.gotoAndPlay("artist");

}

this part goes fine.
but when i want to loadmovie artist2 into the same container with

on (release) {
_root.site.man.artists.gotoAndPlay("artist2");

}

it goes wrong :/

he unloads or something like that on release.

check it out at www.sixofour.org/test-site

choose contact, then artists on the two flyers at the outer right side

grtz&thx

Multiple LoadMovies In One Movieclip
Hey all,

I am making a tilebased game, and have come across a problem with loadMovie.

I have many swf files - one with a sprites movieclip exported to first frame, the others contain tilesets.

Inside the game I need to be able to attach many tiles and many sprites, and have them swap depths with eachother. Loading one tileset swf and one sprites swf.

Unfortunately the tiles are unloaded when the sprites are loaded.

The problem seems simple but I have absolutely no idea how to make it work.

Any ideas or suggestions on what to do?

Visual Preloader For LoadMovies
Hi there, have any of you come across a simple % preloader that works when put at the beginning of a movie that is to be loaded (via loadMovie) into another movie?

I mean, I have a 2 frame % preloading script with visual load-bar that works in all my movies (found it on the net some time back, works great, and my own scripting abilities are very sadly lacking, and always will be...), but when I take a .swf that has this script, and load it into another main movie dynamically when a user wants it...the preloader/scripting don't work, and my loaded movie is just blank until the content comes in.

Has anyone found something that works when loading into another movie?

Specifically, I am building a Flash page that will have a bunch of thumbnails, and the images that are loaded will include text, motion/animation, images, etc., so I want them to be loaded dynamically instead of contained in the main movie, since there will be about 30-40 of them. I would like users to have visual confirmation that, once they have clicked to have content loaded, it is, indeed, loading...in this case, from an external .swf.

Thanks very much, as always...

Shawn

Multiple Loadmovies Using Same Preloader
hello flash kit community goodness
i am producing one main swf file
with multiple jpgs and swfs to be
loaded into the this main swf file
i have created a progress bar movie clip
inside the main swf file
it is a bar and percent loader
i want to use that same progress bar mc
when anything is being loaded into the main clip
im sure this is possible but
i am recent to webdesign and scripting
and the scripting im finding is mostly confusing
any help with understanding how to do this
would be greatly appreciated
bryan taylor robinson

Multiple LoadMovies & 1 Preloader For All?
ok..this is kind of a LONG scenario here..and is actually one of the ending parts of a LONG pet project of mine. Your general click button..load a part or image..click another button loads anohter part or image...and you build something (dress-up doll, shirt design, motorcycles, car mods..etc) type application.

basics:

I have an "application" that loads external.swfs into containerClips. Each button loads a matching external.swf. I have one "transition/preloader" animation/code that I have made modular so I can re-use same code/animation for all externally loaded .swfs. (logic behind it is: button starts the "transition animation" playing and sets a variable for WHAT .swf to load and a variable to WHERE the .swf should be loaded to.

(all containerClips are located inside a mainContainerClip..and each unique containerClip is on its own layer.)

Now.....I have it so when you build your "product"..you can save it. then gives you an ID number...and you can come back and view it or start building again...whatever.

This is the part where I am stuck. when I "load all the saved pieces back in..they load are being called all at once..... so I need a way for my transition/preloader to not only "fire/trigger" when I click my SAVED PROJECT button.."BUT" to NOT play the end of the transition/preloader (outro) until ALL the pieces have loaded.

Heres how I have my movie set up so far:

the button loads the piece: // (your only concerned with the "else" statements/code part..)

Code:
on (release) {
if (_root.frameVar == "loaded") {
_root.subNavContainer.loadMovie("frameOptions.swf");
}else {
//start transition & preloader clip(s)
_root.part = "frames.swf";
_root.indiPartContainer = "frameContainer";
_root.mainTransition_mc.gotoAndPlay("fadeIn");
_root.subNavContainer.loadMovie("frameOptions.swf");
}
_root.frameVar = "loaded";
trace("Frame Section: " +_root.frameVar);
}


this starts my transition animation playing...and a few frames in I have a STOP action...where I have a clip with this code on it:


Code:
onClipEvent (load) {
_root.mainContainer[_root.indiPartContainer].loadMovie(_root.part);
trace(_root.indiPartContainer);
trace(_root.part);
}

which takes the VARS set by the buttons..and loads the correct content into the correct containerClip.

INSIDE this clip....on the FIRST FRAME I have this code for my preloader:


Code:
this.onEnterFrame = function() {
tb = Math.round(eval("_root.mainContainer."+_root.indiPartContainer).getBytesTotal()/1024);
lb = Math.round(eval("_root.mainContainer."+_root.indiPartContainer).getBytesLoaded()/1024);
if (tb>0 && lb>0) {
_parent.gearsClip_mc.percent_txt.text = Math.round((lb/tb)*100)+"%";
//this.stop();
if (lb>=tb) {
_parent.gotoAndPlay("fadeOut");
}
}
}


now everythign works fine as is....and when I click on a one button to load one (1) piece at time..no problems...

its when I have to load multiple parts at the same time....

any ideas on how to approach this?

I posted before I started this project about this concern of mine..and the answer was..(sorta) do something like this in the preloader for checking totalBytes/loadedBytes (trying to adapt it to my scenario here)

Code:
_root.indiPartContainer = _root.mainContainer.container1+_root.mainContainer.container2+_root.mainContainercontainer3;
tb = Math.round(eval("_root.mainContainer."+_root.indiPartContainer).getBytesTotal()/1024);
lb = Math.round(eval("_root.mainContainer."+_root.indiPartContainer).getBytesLoaded()/1024);


open to suggestions...

I see problems with the:


Code:
onClipEvent (load) {
_root.mainContainer[_root.indiPartContainer].loadMovie(_root.part);
trace(_root.indiPartContainer);
trace(_root.part);
}


part..as "this" is what actually calls the "load" normally....

but when I load the "saved pieces" I do it from here (this snippet) of code. (the parts where the help is needed/should be focused is in "AS" tags....but all code is there...)


on (release) {
myTarget = idField_txt.text;
//myTarget = "testLoad";
savedParts = new LoadVars();
savedParts.onLoad = function(success) {
if (!success) {
idField_txt.htmlText = true;
idField_txt.htmlText = "NO SUCH ID#"
_root.loadedMode = "no";
trace("failed to load");
} else {
idField_txt.htmlText = true;
idField_txt.htmlText = "LOADING BUILD ID"
_root.loadedMode = "yes";
trace("load was good");

//Frame Array
var frameArray = [];
frameArray = savedParts.frameData.split(",");
/*
for (i=0; i<frameArray.length; i++) {
//trace(frameArray[i]);
}
*/
_root.savedFrameChoice = frameArray[0];
_root.savedFrame_x = frameArray[1];
_root.savedFrame_y = frameArray[2];
_root.savedFrame_xScale = frameArray[3];
_root.savedFrame_yScale = frameArray[4];
_root.savedFrame_currentFrame = frameArray[5];
_root.savedFrame_rotation = frameArray[6];
trace("Frame Choice: "+_root.savedFrameChoice);
trace("Frame x: "+_root.savedFrame_x);
trace("Frame y: "+_root.savedFrame_y);
trace("Frame xScale: "+_root.savedFrame_xScale);
trace("Frame yScale: "+_root.savedFrame_yScale);
trace("Frame currentFrame: "+_root.savedFrame_currentFrame);
trace("Frame rotation: "+_root.savedFrame_rotation); code:
if (_root.savedFrameChoice != "") {
trace(newline+"Re-Loading frames.swf"+newline);
_root.frameVar = "loaded"
_root.mainContainer.frameContainer.loadMovie("fram es.swf");
}

//Tank Array
var tankArray = [];
tankArray = savedParts.tankData.split(",");
/*
for (i=0; i<tankArray.length; i++) {
//trace(tankArray[i]);
}
*/
_root.savedTankChoice = tankArray[0];
_root.savedTank_x = tankArray[1];
_root.savedTank_y = tankArray[2];
_root.savedTank_xScale = tankArray[3];
_root.savedTank_yScale = tankArray[4];
_root.savedTank_currentFrame = tankArray[5];
_root.savedTank_rotation = tankArray[6];
trace("Tank Choice: "+_root.savedTankChoice);
trace("Tank x: "+_root.savedTank_x);
trace("Tank y: "+_root.savedTank_y);
trace("Tank xScale: "+_root.savedTank_xScale);
trace("Tank yScale: "+_root.savedTank_yScale);
trace("Tank currentFrame: "+_root.savedTank_currentFrame);
trace("Tank rotation: "+_root.savedTank_rotation);
code:
if (_root.savedTankChoice != "") {
trace(newline+"Re-Loading tanks.swf"+newline);
_root.frameVar = "loaded"
_root.mainContainer.tankContainer.loadMovie("tanks .swf");
}
if (_root.savedTankChoice != "") {
trace(newline+"Re-Loading tanks.swf"+newline);
_root.tankVar = "loaded"
_root.mainContainer.tankContainer.loadMovie("tanks .swf");
}

//Engine Array
var engineArray = [];
engineArray = savedParts.engineData.split(",");
/*
for (i=0; i<engineArray.length; i++) {
//trace(engineArray[i]);
}
*/

// etc..etc.. through ALL parts
}
};
//savedParts.load(myTarget+".txt");
savedParts.load("savedBuilds/"+myTarget+".txt");
}




so the question is...you now see how the multiple "re-loads" (if you will) are called. frames....then tanks....eangine..etc..etc al the way through...

how can I use my existing preloader code (and the way it is set up...transition in....preload check/wait...transition out.)

or will I have to make a complete new one? Looks like I might have too eh?..and if that is the only way..any suggestions..

(just take out the frame code in the (duplicate) preloader/transition clip(s) I have now...which does any "loading"...and lave the getBytes part?)


thanks.. I need another pair of eyes on this...Im going crazy! LOL





update:

I figured it out.....all resolved. I "cheated".. I duplicated my transition/preloader clip, instead of trying to use my current one (which was already a generic/reusable one for all the individual parts)...

and I edited my preload code to be similar to this:
code:
this.onEnterFrame = function() {
tb = Math.round(_root.mainContainer.frameContainer.getB ytesTotal()+_root.mainContainer.tankContainer.getB ytesTotal()/1024);
lb = Math.round(_root.mainContainer.frameContainer.getB ytesTotal()+_root.mainContainer.tankContainer.getB ytesLoaded()/1024);

if (tb>0 && lb>0) {
_parent.gearsClip_mc.percent_txt.text = Math.round((lb/tb)*100)+"%";
//this.stop();
if (lb>=tb) {
_parent.gotoAndPlay("fadeOut");
}
}
}


just in case anyone searches...this thread has a solution.

(FMX) Loadmovies And Scenes Problem.. Help
Hello
Thanks for looking at this post
Hope you can help me here... my problem is...

I'm doing a book in flash... I have an scene call "Content"... in the "content scene" I load the chapters using LoadMovie ok?...

I also have another scene call "Tools box" on this scene I have alot of references and tools for the user...

in some cases I have to tell the user to go an see the chapter 3 (for example) on the 3.1.1 sub content.... of that chapter...

here is the problem ... since the chapter 3 is an external movie that is loaded in another scene...

the user might even " not see " this chapter... and go away directly to the Toolsbox...

What I whant is... to have bottons on the "Toolsbox scene"... that go to a specifics frames on the "content scenes" (frames that loads the chapters)... and also go to differente frames of that chapter....

thanks alot for any help...
I hope that here I fine some others Ideas that could work...

thanks alot.
Josue D.
(sorry for the english... I'm learning )

Dynamic Text From LoadMovies?
Okay, I have a movie (layer.swf) being loaded from the main movie (main.swf). Now, there are Dynamic Text Fields in the layer.swf file, and they pull their value from _root.$textspace on the first frame of layer.swf. $textspace is being defined in the main.swf movie, before layer.swf is being loaded.

I've checked the hierachy, and that doesn't seem to be a problem. I am seeing the value being passed fine, but the text just isn't visible. I then went back and defined $textspace in the layer.swf file. When I viewed layer.swf directly, it appeared to work. But when I viewed main.swf and loaded layer.swf, the text has vanished again?

Is this a dumb error on my part, or can you not use dynamic text on loaded movies??

Actionscript is giving me a headache.......I appreciate the input!

Dinamic Text And CSS With LoadMovies
Here is the problem:
I have a very complicated presentation which loads movies inside movies, inside movies.
All text is loaded from variables outside flash with CSS. It all works in the single movies when they are exported, but these movies are all loaded into another movie which is loaded in the root movie. And when I export the main root movie and they are loaded the text doesn't show. It is not a problem of target path cause I tried deleting all variables and just write directly in the text field and the text still does not appear.
Has anyone had this bug? Does anyone know how I can fix this?

Prototypes And Loadmovies Issues
hey all I have swf file that uses plenty of prototypes to animate a set of objects.
It was an open source file. I understood it enough to manipulate it for my own purposes.

The issue is when I loadMovie("boards.swf",_root.load_target, "get");
It loads but all the prototype scripts dont apply to the objects.
The actions are all being loaded but not running.



man it sux big time.
Any one ever encounter this type of problem???

Dynamic Masking On Loadmovies
I want to have a same dynamic mask on my each load movie when it is called.
Actually I am trying to have duplicate movieclip which build a grid step by step and act as a dynamic mask and whenever movie loads it plays and reverses itself on new movieload do the same again.
Help is always appreciated

Thanks.

Loadmovies Navigation Question
here's the problem:

Ive got _root movie that loads the my navigationto the _level1 and the buttons on that level are loading movies on _level5 (supposed to at least)and in the buttons on the navigation there is a movie clip that is activated on the mouse over (including that cuz i'm not sure if that is causing the problem)the navigation level when tested loads the movies on the _level5 but when testing the level0 (root level) the navigationloads but when the buttons are clicked, they don't load it's level5 movies.

can you load movies with a button that is located on a different level than the root movie? if so then what am i missing? The path names are correct.... help please.

Loadmovies In Sequence And The Darned User
Hi,
I have a bunch of mc's in my movie which act like a menu, each of which loads a movie when clicked. It is designed this way to make the initial download fast.
I would like to have the external movies start to load if the user does not make a selection (say they are busy reading part of the page). I can make all the movies load in a sequence no problem, but..
Whats a good way to go about handling the user making a selection which triggers a movie load of their choice in the middle of the load sequence. How will flash react if its loading a movie when they make a selection etc. I know I have read comments about doing this but no actual explanations

thanks mark

Drag Effect Disables Loadmovies Someone Please Help
Can someone please, please please help me?

I think it is simply a level or target thing??

http://www.studioxmedia.com/jane/main.swf
http://www.studioxmedia.com/jane/main.fla


Thanks,
fitchic77

Multiple LoadMovies - Some Fail To Load
I'm dynamically loading different images in my swf. They are actually thumbnails of images that will open a pop-up window with the normal sized picture.

On almost every first time I load the swf, about 3-5 of the thumbnails will load and then Flash will stop. When I reload the swf, Flash will load all of them.

By looking at my internet activity and checking to see if bytes are being transfered back and forth, it shows no activity. It seems that either Flash has not requested the images to my server, or that the server has received too many requests at the same time and disregarded some of them, or it's the end of the world and I wasn't notified.

I get the impression that what's happening is like when a simple html page with lots of images loads but some images do not. After a reload, all the images load.

Is there a limitation on how many loadMovies Flash can call at once? Is it just buggy (ok, I know it is but is there a runaround)?

This happens sometimes with only 2 loadmovies. And it seems to happen more often on Macs than PCs (instead of loading the total of 8 images, it will load 4 on a Mac and 7 on a PC).

Does anybody have a solution for this? Thanks.

Loadmovies Wont Load In Browser
Hi has anyone come across this problem : i built a movie that when you press the nav button it loads a gallery of thumbnails into level one(the movie itself being on level 0) eg- on (release) {
loadMovieNum("imagegallery.swf", 1);}
. the problem is that when i move the html file outside the folder containing the flash files and change the url(so that the html knows where to find the movie)the gallery wont load anymore. the main movie loads fine so i thought the functionality of the movie should be fine, i dont see how the html can stop the level one movie loading?? as i say the level one loads fine if i keep the html in the folder with the flash files.
i even tried including the folder name in the button link eg-
on (release) {
loadMovieNum("flashfiles/imagegallery.swf", 1);
} this just stopped the button working altogether. can anyone help this is driving me mad.
Regards Dave.

Preloading Loadmovies From Host File
please walk me through this...

i have a loadMovie on a movie clip.
it loads a .swf, but doesn't preload it.

how would i go about preloading it?

thanks in advnce.

Bottom Right Registration Points For LoadMovies?
Hello!!

I've searched high & low & tested numerous methods - but no cigar for me so far...
I'm having trouble with the following problem:

I have a main.swf which uses the loadMovie method to bring in external swfs.

I want the movies to all load in aligned to the bottom right.
So the very bottom right corner of my extrnal swf lines up to the very bottom right of my main.swf.

Is there an effective way?

LoadMovies To Line Up To Bottom Right Reg. Point? How?
Hello!!

I've searched high & low & tested numerous methods - but no cigar for me so far...
I'm having trouble with the following problem:

I have a main.swf which uses the loadMovie method to bring in external swfs.

I want the movies to all load in aligned to the bottom right.
So the very bottom right corner of my extrnal swf lines up to the very bottom right of my main.swf.

Is there an effective way?

LoadMovies In Full Browser Flash
Here?s kind of a simple problem that I can?t seem to figure out. I?ve make a full browser flash like in the tutorial. But I want to load swf into the main player.

The problem is for the full browser to really work the registration point of the MC has to be in the middle. So when I load an SWF into the MC it aligns the top/left to the registration point, which basically mean the newly loaded swf (or any loaded swf) won?t be centered in the browser.

Am I missing something?

Thanks for all your help :D

Multiple LoadMovies Loading Random Files
I'm trying to load 2 sets of random files using the loadMovie function, but I can't get it to work.

Sorry to bug you guys/girls about such a simple thing, but I'm completely inept when it comes to programming anything.

So, here are the files I have:
character1.swf - character8.swf
background1.swf - background3.swf

I want it to randomly pick one of my Character files and place it above a randomly picked Background file.

Here's what I have so far:


Code:
char=random(8)+1;
charfilename="character"+char+".swf";
loadMovie(charfilename, _root);
bg=random(2)+1;
bgfilename="background"+bg+".swf";
loadMovie(bgfilename, _root);
I know that having both go to _root is probably one of my problems, but when I try to put them on different layers, it doesn't work. Like this:


Code:
char=random(8)+1;
charfilename="character"+char+".swf";
loadMovie(charfilename, 200);
bg=random(2)+1;
bgfilename="background"+bg+".swf";
loadMovie(bgfilename, 100);
Thanks for any help you can give.

Ahhh, Random Loadmovies With Nice Transitions.
Hi, I am sure this has been done ( but not by me ). I want to have a movie clip holder with randomly does loadMovie on some external swf files. The catch is.... I want to fade the current image into the next one, as if the next image was already there behind it. I keep getting a 'jumpy' transition to the next loadedMovie. I have tried all sorts of stuff with levels, duplicateMovie, but I am sure there is an easier way (which actually works). PLEEEAASSE help, it is really annoying me.

Mouse Trail DRAG Breaks My Other Code With Loadmovies?
I can't believe what a hard time flash is giving me!!! All I did was use a drag effect and it broke my loadmovie's into blank movie clips. I have no idea why...All I know is when I take out the mouse-trailer effect...it works? I think it has something to do with targeting???? (well at least I think so)

http://www.janepark.com/flash/main.fla
http://www.janepark.com/flash/main.swf

If anyone can point me in the right direction, please let me know!

Thanks,
fitchic77

When I Embed An SWF File Into A Page, I Lose All "nested" Loadmovies
I have embedded an SWF (from a sub-drectory different than current url) onto a page. What happens to all my "loadmovie" layers? They do not appear. DOes it have to do with it being a different directory?

I also tried a container movie load with a url like this
....container.swf?path=http://www.mydomain.com/path/test.swf

Then in container.swf I have the actionscript "loadMovie(path, this);"

This yields me better results. But now I find that embedded FLV files in the SWF (nor controls) do not appear.

How do I just embedded an SWF (from a "remote" directory) on an html page and have it work with all sub-pages and embeddings work properly?

Help

Ron

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