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




_loadMovie Problem



hey everyone...

i used kirupa's (http://www.kirupa.com/developer/mx/p...transition.htm) tutorial to create a movie with buttons that load external movies and works seamlessly.

my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work...

any ideas?

if u need the code let me know to paste it here

many tnx



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-18-2007, 10:19 PM


View Complete Forum Thread with Replies

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

_loadMovie
I am having problems with the_loadMovie command ....i load the movie into the desired target...but once the movie has loaded...it ignores all actionscrpt within that movie...why would that happen..any suggestions will do, thanks.

_loadmovie Problem
Currently I am working on a site, and I was
hoping that someone could lend me some expertise in streamlining. The site is
http://www.startrakstudios.com and as you will see I created a separate
movie for each button - connected using the _loadMovie action. As you may
also see when any of the service buttons(in green) are hit, all graphics
flash off for a moment. Perhaps separation of each service into a separate
movie is not the way to go?

Any suggestions on getting rid of this blackout would be much appreciated.

Thank you for your time.

_createEmptyMovieClip, _loadMovie Positionsing
when in click a button, i want an external movie clip to load, and i want it to load in a specific place. what i have tried below isn't working.



on (release) {
_root.createEmptyMovieClip("item_mc",1);
item_mc._x = 502
item_mc._y = 33

item_mc.attachMovie("WEBsml.swf", "WEBsml_mc",1)
}



why doesnt this work?
please help, thanks

_root/_level/_loadmovie Question... Or Something.
okay, i'm not exactly sure how to explain what my question is, so i'll just say exactly what i'm looking to do... and what i've got so far. here goes.

so here's the basic idea:

i have one main movie clip called "main.swf". This swf has 3 buttons, which load three different "sub" movies... depending on which button was pressed. when it first plays, the main movie also loads one of these "sub" movies, which plays the intro sequence until a stop() command. when a button on the main movie is pressed, the current "sub" movie finishes playing the outro sequence and loads the requested movie. when another button is pressed... it finishes the current movie and loads the requested one... etc.

now, this all works wonderfully, until i try to go one step further. when a "sub" movie is loaded, it too has a few buttons, which when clicked will load their own "mini" movies with intro and outro sequences of their own.

now, here's my code for the first part.. without the "mini" movies part.


-------------------------
IN MAIN MOVIE
-------------------------
----------------
on the first frame
----------------
loadLevel = 2;


--------------
on the buttons
---------------
on(release) {
if(_root.loadLevel==1) {
_root.loadLevel=2;
} else {
_root.loadLevel=1;
}
_level0.destination = "loaded4";
if(_level1) {
tellTarget("_level1") {
play();
}
} else {
tellTarget("_level2") {
play();
}
}
}

------------------------
load a movie somewhere
------------------------
loadMovieNum("loaded1.swf",_level0.loadLevel);


---------------------
IN EXTERNAL MOVIES(on last frame)
---------------------
if (_level0.loadLevel == 1){
loadMovieNum (_level0.destination + ".swf", 1);
unloadMovieNum (2);
}else{
loadMovieNum (_level0.destination + ".swf", 2);
unloadMovieNum (1);
}





i know that it's big on confusing... any help though??

_loadmovie Probs When Uploaded To Web Server
My clients web designer is having trouble posting a .swf with external .swf's loaded by the 'loadmovie' command.

I've told him to put all the files into one directory. But when he embeds the .swf (main movie) into a HTML page, it loses the other .swf's.

Thoughts?

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