LoadMovie Target Vs. LoadMovie Level
can someone please explain to me why when I load an external movie as a target, the action scripting in the loadedmovie doesn't work. But if i load the movie into a level it works fine. I want to load into a target beacuse I want it positioned in a specific co-ordinate.
thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-19-2002, 05:14 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Target Loadmovie From Different Level?
Hi
I am having a hard time finding the correct syntax for loading a movie into a movie clip on a different level (ie. loading "test.swf" from level3 into "movie" clip on level0)
I'm sure it must be something simple but I can't seem to hit on it.
Derek
LoadMovie. Into Level Or Target MC?
Just wanted to ask all the super pros that we have gracing us with there presense on this forum:
I have to learn how to properly load an control other SWFs (i learned how to load them and i guess i also understand how to target them).
Which is better, to load into levels or to load into target MCs?
Pros and cons?
LoadMovie Into Level, Then Target An MC In That Level
Hi -
I am loading an .swf called "nav.swf" into _level16 of my main movie. Within nav.swf there are MCs in the root which I would like to target from the main movie.
I have tried the following:
_level16.nextButton._visible=false;
and
_level16.nextButton._visible=0;
with no luck.
when i trace _level16.nextButton I get undefined returned.
am I using the correct syntax here?
thanks!
HELP With LoadMovie: When I Load Level 1, Level 2 Disappears And Shouldn't
Hi I have a problem...
I have a movie on level 0 with menu buttons A, B and C. Every button loads a new movie (movie A, movie B and movie C) and they all load the movie in level 1. I have another movie containing the music (movie MUSIC).
When I load the site (level 0) I first load the music (movie MUSIC) in level 2 with a loadMovie(2) and later I let the user choose if he wants to see movie A, B or C by loading them with loadMovie(1). Unfortunately when the user clicks on a button to load any of the three movies A, B and C, the music MOVIE disappears and therefore the music stops. I need the movie MUSIC to be in the top-most level and to load before the other movies do, that's why I have it in level 2, so the controls (play, stop, volume) are always on top of all other movies loaded.
Can you please help me make the music play without the music MOVIE disappearing and stopping when a movie UNDER/BELOW is loaded in a level lower that the music movie's level?
Thanks a lot!
LoadMovie In A Target Without Inherit Of Target Properties?
hi,
I load a SWF-FILE in a target MovieClip with loadMovie(). After that I want to read the _width and _height of loaded MovieClip (from the SWF-FILE), but I only get the properties of the target MovieClip.
loadMovie ("test.swf", "dummySwf");
trace("height:"+dummySwf._height+"width:"+dummySwf ._width);
//put out the properties from target, not from new clip :-((
any idea?
thanks
LoadMovie To MC Or LEVEL?
Ok, here is the question, is it better to load a movie into a Movie Clip (loadMovie("mvy.swf",containerMC);) or into a Level (loadMovie("mvy.swf", _level1);)? The differences that I see are as follows:
Loading into a Movie Clip you can inherit the properties of that movie clip (rotation, scale, alpha, ect.) making it easier to place the loaded movie. The bad thing would be that if you use _root. you are now talking to the timeline of the loading movie.
Loading into a Level you are more or less sticking a swf right on top of your current movie. But you also don't have to worry about _root. because it will still reference the loaded movie timeline. If you need to affect the loading movie you can use _level0.
So is this all correct? If so, which is the better one in general? Or is it entirely dependent on the situation that you are using the movies?
I hope to see a good discussion on this.
Steve "Happy_Dog"
Flashing Between Loadmovie @ Level
Hi-
Thanks for reading my post. This is sort of a complicated question...
The issue is screen flashes in between loadmovies (set at level one), when played back through another swf at level 0.
Ive got a blank movie (soundtrack only) set at level 0, which uses a LoadMovie to play a seqence of .swf's at level 1.
The swf's playing at level 1 have no Actionscript in thier timelines; all actionscripting happens in the movie at level 0, with the loadmovie scripts placed in accoradance to the length of the particular .swf being loaded at level 1.
This seems to work fine, the .swfs being called to level 1 playback, and the soundtrack on level 0 works correctly in the sequence.
The problem is that there is a flash, a blank screen, in between .swf's called by LoadMovie during playback.
Ive checked the timelines of each of the swfs playing at level one, and confirmed the bg color and frame rate are the same for all of the swfs.
Any thoughts? thanks again.
Loadmovie & Level Problemo
I have a clip on a loadmovie level3 This clip have to tell an other clip on an other loadmovie ( level2) to go to frame 10
I try this but doesn't work!!!
this is the code...
on (release, releaseOutside) {
tellTarget (_level2.root.myclip) {
gotoAndPlay(10);
}
_root.gotoAndPlay("Fermeture");
}
I also try this:
tellTarget (_level2.myclip)
doesn't work!
help plz!
benjamin
Help With Loadmovie / Level / Swapdepth
i've posted this in general, but now think it's probably better in here!
i've searched this forum and read:
http://www.macromedia.com/support/f...levelsdepth.htm
this is what i'm trying to do...
i have base movie on level0 (this has my navigation on)
then i load a movie into level3
then when i wish to load another movie in i wish to load it ON TOP OF the current movie until all the transition effects have loaded in the new movie. for example, the old movie is still visible behind the loading movie, and eventually the loaded movie (when loaded) will eventually cover the old movie (hope this has been explained easily enuff to understand!!)
i have tried to implement the anyMovieClip.swapDepths(depth);
method but can't get it to work.. is it because this is for a movie clip and not a movie?
i'm trying to create transitions similar to that on www.2advanced.com
any help will be save the hair on my head!
BTW - i can't load the new movie into a higher level as i won't know what movie is currently loaded and what level it is currently on.
the fat cat who's funky!
LoadMovie Level Problem
I've been using loadMovie(); within a containerMC to gather various swf files to play at run time.
When loading the swf in the containerMC, I use the following code:
firm.onPress = function () {
_root.mcContainer.createEmptyMovieClip("containerT xt",1);
_root.mcContainer.createEmptyMovieClip("containerI mg",2);
with(_root.mcContainer.containerTxt){
_x = 0;
_y = 25;
loadMovie("swf/txtswf/iFirmTxt.swf", 1);
}
with(_root.mcContainer.containerImg){
_x = 195;
_y = 0;
loadMovie("swf/imgswf/iFirmImg.swf", 1);
}
}
The problem I'm having is this, the "created" movies aren't actually loading into _level1 and _level2. Can someone fill me in on what I'm doing wrong here? I obviously don't have a firm grasp of loadMovie();.
Loadmovie To Holder Or Into Level?
Lets say i want to create a full flash site. And my different sections will have some mild interaction. SHld i load the sections into levels or make placeholders in the main timeline and load them inside? which one is better?
Loadmovie, Another Level Problem
I have a movieclip, and a button in that movie clip. On release of the button, I want a new .swf to load in a higher level.
But when I click on the button, nothing happens.
If the same button was placed on the stage (and not in a MC on the stage) it works fine.
LoadMovie Into Container Or Into Level?
Can anyone explain why when I load my movie into a container_mc it never actually plays correctly, but when I load it just into a level it plays fine? Is there anyway around this? Loading my movie into a level works okay but it makes the movie more difficult to work with and seems like a weaker way of doing it.
Thanks
LoadMovie Level Question
Hi,
Not quite sure how to explain this but here goes.
Right, I am loading multiple movies each containing images, into a portfolio site. There is a list of buttons, each loading a different image (thus a different movie). When I load in the movies, they overwrite eachother and the previous dissapears before the next has time to load. Is there a way I can make them always load over the previous no matter what order the buttons were pressed.
Basically I want to be able to somehow +1 to the current level the movie is loaded into so the next loads over the top of it rather than removing it.
Hope that makes sense,
-Dave
Loadmovie Order (or Level)?
I'm looking for help controlling 3 stacked up movie clips.
I want the user to click a button which will determine the order of the movieclip.
I have:
1 button ('button')
3 movieclips with 3 different swf files in them ('movie1' 'movie2' movie3)
Now if the user clicks on 'movie2', i want movieclip2 to be placed on top (picture the user pulling out a piece of paper from a stack and placing it ontop)
here's the code i'm working with so far:
button.onRelease = function() {
loadMovie("sample1.swf", movie1);
loadMovie("sample3.swf", movie2);
loadMovie("sample2.swf", movie3);
};
but i know theres a way to have the user determine the level order, but not quite sure how....can someone help?
Loadmovie Level Problem
how can i change the following script, so the movie that loads lastly comes up on front of other one? i need the last one to load on front of the other so it would be nice to know how to assign it a higher level. i tried getnexthighestdepth but had no success...
PHP Code:
if (_global.page == 0 & _global.picloaded == 1){
_root.content_photos.createEmptyMovieClip("mc1", 1);
_root.content_photos.mc1.loadMovie ("introduction.swf", "mc1");
}
if (_global.page == 1 & _global.picloaded == 1){
_root.content_photos.createEmptyMovieClip("mc1", 2);
_root.content_photos.mc1.loadMovie ("design.swf", "mc1");
}
LoadMovie In Higher Level In Different URL
ok....i'm really new at this, but i have been getting the hang of actionscripting. this is my dilemma. i have two swf files now.. a main, and a target. when published, i have moved and resized them to be side by side the way i like. i would like it when i click on a button on the main, the target movie changes to another movie. i know i need to use loadMovie and change the level. i did so in the action of the button on the main. but it loads the new swf inside the main.. not the target. how do i get it to direct it to the target's url? i would greatly appreciate it if someone could help me out.
thanks.
Unable To Get LoadMovie To Level 1
I am preparing a FLA presentation that uses an external SWF as a navigation drop-down menu:
http://www.medelmarketing.com/beta/intro.swf
The drop down is hidden but can be made visible by putting the mouse in the upper left corner. From there you should see a list of items. I used the behavior function to load this into an empty movie clip, but I want the menu to be over the text on the slides. I am creating this using "Flash Presentation" mode, with nested screens, et. so I am not sure if that is the problem. The menu screen AS is on the top "master" layer and reads as follows:
on (rollOver) {
//load Movie Behavior
if(this.loader_mc == Number(this.loader_mc)){
loadMovieNum("navtop.swf",this.loader_mc);
} else {
this.loader_mc.loadMovie("navtop.swf");
}
//End Behavior
}
I tried establishing a level, but with no success. Any ideas?
(And yes, I will be working on pre-loader icons at the next step :)
Thank you for any help...
J
LoadMovie / Level Ordering
script:
button1.onPress = function ()
{
_root.container.createEmptyMovieClip("pagecontaine r1", 1)
loadMovie("page1.swf","pagecontainer1");
pagecontainer1._x = -327 ;
pagecontainer1._y = -247 ;
}
button2.onPress = function ()
{
_root.container.createEmptyMovieClip("pagecontaine r2", 2)
loadMovie("page2.swf","pagecontainer2");
pagecontainer1._x = -327 ;
pagecontainer1._y = -247 ;
}
button3.onPress = function ()
{
_root.container.createEmptyMovieClip("pagecontaine r3", 3)
loadMovie("page3.swf","pagecontainer3");
pagecontainer1._x = -327 ;
pagecontainer1._y = -247 ;
}
Effect/Problem:
when i click button1, page1.swf is loaded into mc "pagecontainer1"
when i click button2, page2.swf loads into new mc "pagecontainer2" above mc "pagecontainer1" (this works fine and is how i inteded transition to occur so that old page below is still visible while new page loads above)
when i click button3, page3.swf loads into new mc "pagecontainer3" over mc "pagecontainer2" (new page transition over old, works fine)
Problem is when I reach button3 and go back and click button2, or button1 I want these pages to load again above the currently loaded page3.swf. However instead it loads hidden beneath last loaded movie instance "pagecontainer3"
My intent is to have 5 navigation buttons. any initial button which is clicked will load the first intended page. Any subsequent button clicked must always load page above previous, while previouse is still in place(not removed)
any solution is greatly appreciated.
Regards
Loadmovie Barging Into Level 0
Hey out there;
I'm the guy that found out flash crashes after 16000 frames, so now I'm splitting the movie into 4 movies, and am finding i'm opening up a can of worms.
First issue I'd like to ask your help on- my books say nothing, can't find tutorials, on and on...
Base movie is level 0. I wanted to make the viewing experiance seamless even though it's now 4 movies instad of 1. So i thought i'd put some script along the base movie, telling it to loadmovie 1 ect, (preloading it in a sense, instead of attaching it to say a button at the end of the base movie). I assumed that loadmovie 1 would load in AFTER base movie had finished playing - well you know what happened - level 1 movie barges right in on top of base movie and starts blathering on.
Any way to make load movie...
A) preload
B) and then wait its turn
If I Have An Exe File, And Then Loadmovie At Level
zero. What will happen? Assume the following....the swf file that I load into level 0 isn't an executable. So, would the user, who presumably doesn't have a flash mx player, NOT be able to see the flash file once the new one is loaded?
Am I making sense here?
I'm doing a cd rom project, and am concerned that if I make the first file an executable, then what happens when I swap out level 0 with a regular file?
Can I use load movie with another executable file?
Thanks.
How To LoadMovie Always On _top Level?
Last edited by OficinaDsG : 2005-12-01 at 04:56.
How to loadMovie always on _top level with random position like this guy?
http://www.danielklajmic.com/
Regards and thanks!
HEAVYWEIGHTS: Level Ref Prob After LoadMovie
I have persisted to make a variety of preloaders, trying to make the all singing all dancing contraption. However, loadMovie always seems to stuff me up.
If I use loadMovie("myMovie.swf", "mc");
and yes the variation of it clip.loadMovie as well
then the movie that is loaded is all out of whack .. the code within the movie being loaded has a lot of refernces to levels, which are all thrown seeing as the swf is attached to an mc, which of course moves it up one level. If I use loadMovieNum and load it into level 0 .. the getBytesTotal command does not seem to calculate the total for both the preloader AND the swf that is being loaded.. it only traces the preloader's size in bytes .. I've forced the trace to run in a massive loop .. but it only traces the preloader's size.
ALSO .. the Movieclip.getBytesTotal command .. is quite frustraing seeing as this is what the documentation states:
"Method; returns the size, in bytes, of the specified MovieClip object. For movie clips that are external (the root movie or a movie clip that is being loaded into a target or a level), the return value is the size of the SWF file. "
BUT .. when I run a trace it will only trace the mc's size in bytes .. I cant win .. nothing will function properly .. I am using MX and would have posted under MX section .. but the actionscript forum seemed to be more appropriate.. thanks in adv
Button In MovieClip To LoadMovie In Level?
I have a Button in a MovieClip that is placed on the main timeline. I need the Button to LoadMovie into a different _level. How do I get the button in the movieClip to do this? Thanks.
Diabolicalbutter
Big Problem With Level, LoadMovie, Container
Hi,
I have 3 swf :
main.swf
menu.swf
data.swf
The main.swf contains menu.swf and data.swf.
In the main.swf :
loadMovieNum("data.swf", 4);
container.loadMovie("menu.swf", 11);
The data.swf is always over the menu.swf and I don't understand why?
I tried with 2 containers and 2 loadMovieNum but it doesn't work !!!
Any Idea
thanks
Loadmovie Gives Graphic Errors On New Level
HI
I'm using 2004 mx and when loading a movie on a new level, let's say 1, it leaves some weird graphic vertical lines at the right when
i scale it wihtin my browser [pc+mac, all major browsers checked].
I even 'downplugged' it to flash 6, but same error....
The code from the 2nd movie is : [i frame movie with 1 actionscript in 1 frame] But I cannot see the error that's making the wierd vertical line see:
www.multimediaal.nl/workshops/carlfried
[go to : portfolio, commisioned and scale the browser smaller, it leaves a vertical strip at the rigth!]
------------------------------------------------------
as code for loaded movie in level1, in 1 frame
------------------------------------------------------
var tnNr;
spacing = 0;
container._alpha = 0;
border._alpha=0;
_global.current_gal = 0;
var curLength;
MovieClip.prototype.loadPic = function(pic, id) {
info.text = "";
this._alpha = 0;
this.loadMovie(pic);
temp = this._parent.createEmptyMovieClip("temp2", 998);
temp.onEnterFrame = function() {
var t = container.getBytesTotal(), l = container.getBytesLoaded();
//zodra geladen bytes == totaal bytes geladen dan verder resizen imageobject
if (Math.round(l/t) == 1 && container._width != 0 && container._height != 0) {
var w = container._width+spacing, h = container._height+spacing;
border.resizeMe(w, h, id);
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.resizeMe = function(w, h, id) {
var speed = 3;
container._alpha = 0;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
//plaatsing automatisch gecentreerd
//container._x = this._x-this._width/2;
container._x = 400 - this._width/2;
container._y = this._y-this._height/2;
//container._y =
info._y = Math.round(this._y+this._height/2)+5;
info._x = container._x;
container._alpha += 5;
if (container._alpha>90) {
info.text = id;
container._alpha = 100;
delete this.onEnterFrame;
}
}
};
};
function galleryChoice(q) {
pArray = new Array();
tArray = new Array();
iArray = new Array();
//array met info voor BREEDTE van de thumnails
bArray = new Array();
my_xml = new XML();
for (var j = 0; j<curLength; j++) {
this.th_nav["thmb"+j].removeMovieClip();
}
my_xml.ignoreWhite = true;
my_xml.onLoad = function(loaded) {
if (loaded) {
gallery = this.firstChild.childNodes[q];
curLength = gallery.childNodes.length;
_global.nrgalleries = this.firstChild.childNodes.length;
trace("aantal galleries : "+nrgalleries);
//trace("aantal pics tot : "+totaalpics);
for (var i = 0; i<gallery.childNodes.length; i++) {
pArray.push(gallery.childNodes[i].attributes.source);
tArray.push(gallery.childNodes[i].attributes.thumb);
iArray.push(gallery.childNodes[i].attributes.title);
bArray.push(gallery.childNodes[i].attributes.b);
}
}
delay = setInterval(makeButtons, 50);
};
my_xml.load("onderhoud/slides/gallery.xml");
}
function makeButtons() {
tnNr = 0;
j=-1;
clearInterval(delay);
for (var i = 0; i<tArray.length; i++) {
j++;
trace("j is "+j);
var thb = th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
thb.id = i;
thb._y = -260;// zet buttons op vaste hoogte
breedte = int(bArray[j-1]);
if (j==0){
xpos = 55;
} else if (j>0){
xpos = xpos+breedte+5;
}
var newtopleft = xpos;
thb._x = xpos;
trace("breedte: "+breedte+" - xpos : "+newtopleft);
}
//next button uit bij laatste gallerij
if ((current_gal+1)==nrgalleries){
trace("laatste gal");
voor_but._alpha=20;
} else {
voor_but._alpha=100;
}
loadButtons();
}
function loadButtons() {
var tbox = th_nav["thmb"+tnNr].box;
tbox.loadMovie(tArray[tnNr]);
temp = this.createEmptyMovieClip("tmp"+tnNr, 999);
temp.onEnterFrame = function() {
bt = tbox.getBytesTotal();
bl = tbox.getBytesLoaded();
if (bt == bl && bt>4) {
nextButton();
delete this.onEnterFrame;
}
}
}
function nextButton() {
if (tnNr<tArray.length-1) {
tnNr++;
loadButtons();
} else {
activateButtons();
}
}
function activateButtons() {
mainButtons();
for (var i = 0; i<pArray.length; i++) {
var but = th_nav["thmb"+i];
but.id = i;
but.onRelease = function() {
container.loadPic(pArray[this.id], iArray[this.id]);
disButtons2(this.id);
};
}
container.loadPic(pArray[0], iArray[0]);
disButtons2(0);
}
//button functies aanmaken mbv array
butArray = new Array();
butArray = ["gal1_btn", "gal2_btn"]; //hier online en offline
function mainButtons() {
for (var i = 0; i<butArray.length; i++) {
this[butArray[i]].id = i;
this[butArray[i]].onRelease = function() {
galleryChoice(this.id);
disButtons(this.id);
};
}
}
function disButtons2(d) {
for (var i = 0; i<tArray.length; i++) {
if (i != d) {
this.th_nav["thmb"+i].enabled = 1;
this.th_nav["thmb"+i].box._alpha = 100;
} else {
this.th_nav["thmb"+i].enabled = 0;
this.th_nav["thmb"+i].box._alpha = 50;
}
}
}
function disButtons(d) {
for (var i = 0; i<butArray.length; i++) {
if (i != d) {
this[butArray[i]].enabled = 1;
this[butArray[i]].gotoAndStop(1);
} else {
this[butArray[i]].enabled = 0;
this[butArray[i]].gotoAndStop(2);
}
}
}
disButtons(0);
galleryChoice(current_gal);
LoadMovie Problem - Level Overlapping, Please Help.
Hi Everyone
I am having a problem with the LoadMovie action, All files are attached.
There is a top 10 flash file which shows the 10 top items, Please click the 1st item and it will load the next SWF file named "item1.swf". It works fine and load the swf, but if you move the mouse pointer across the file you will see the button links still active but the button were in the main file.
After loading the new flash file in the level 1, the links are appearing invisibly, and working even. both flash files are calling different XML files.
Please check if its a LEvel Control probelm?
I am stuck in this part please help, really appreciate any solutions.
Regards
F.
LoadMovie Problem - Level Overlapping, Please Help.
Hi Everyone
I am having a problem with the LoadMovie action, All files are attached.
There is a top 10 flash file which shows the 10 top items, Please click the 1st item and it will load the next SWF file named "item1.swf". It works fine and load the swf, but if you move the mouse pointer across the file you will see the button links still active but the button were in the main file.
After loading the new flash file in the level 1, the links are appearing invisibly, and working even. both flash files are calling different XML files.
Please check if its a LEvel Control probelm?
I am stuck in this part please help, really appreciate any solutions.
Regards
F.
LoadMovie Is Above Content Yet Level Is Lower?
Just got back from vacation and its time to get back to work .
I am currently working on a website and will be loading the content in via loadMovieNum. I will load each one into level1, as by the time it is actually loaded the previous content will be unloaded. Here is the were the problem lies. I have some buttons that are being created dynamically so I have used swapDepths on them to get them above level1 so that they will appear on top of that content. But it doesn't work. I have put a trace(getDepth()); on each instance and the info reports _level1, and my buttons report _level1300, _level1301, _level1302 & _level1303. So why does the content on level1 appear above the content on level1300+?
I faintly remember reading somewhere that each clip has it's own range of levels, does this equate to why I am having problems?
thanks in advance.
web
Slowdown With Loadmovie Even Replacing On Same Level
I have a very strange problem and have looked around the net to no avail.
If I use loadmovie to load the same swf into the same level even if I have a movie on level 0 and load into level 0 to replace the other movie, the movie slows down more and more each time I try to load into the level.
Has anyone seen anything similar? has I have tried everything I can think of to fix this.
Thanks
Michael.
Edited: 04/21/2007 at 12:59:54 PM by Michaelcov
Can I Loadmovie To New Level With A Particular Position And Fade In?
I know how to load an swf into a target MC. This allows me to postion, scale and fade in the new swf. But then all scripting has to be modified to point to variables and MC's at _level.MC.var
I therefore want to just loadmovie to a new level and not have to worry about variable references. But I want to control postion and fade in/out of new swf.
Is this possible?
RR
LoadMovie Into Target MC
URL: http://www.b2r.org.uk/matt/index.htm
OK - I have an SWF file with a banner at the top and buttons at the bottom. I want the buttons to load separate SWF files into the central area where I currently have a movie clip with the instance name "content". The reason for this is:
a) users can choose to download as little or as much as they want.
b) I want separate files to load while retaining the initial SWF file on the page, so that people aren't reloading all the same objects several times.
Basically, I want to treat separate SWF files like movie clips that I can call into play with interactive elements on a parent page. Is this possible????
I am still trying to understand the basics of actionscripting, so please keep answers straightfoward! Thanks in advance for any help offered!
Can't Loadmovie Into Target
Hi,
ok, here's my problem.
In a new frame, I'm trying to load a movie into a target (empty MC). But it seems like what i did was not working, could anyone help?
here's my script.
loadMovie("home.swf", "_root.main");
I've also tried
loadMovie("home.swf", _root.main);
but that didn't worked either. I have tried loading the new MC into a higher level too. But then I have problems with targeting MCs within that newly loaded MC.
Any help would be appreciated.
LoadMovie + Target
I am experimenting with the loadMovie command in order to load a small movie (titlea.swf)with a streaming sound and small animation from online into another movies main timeline. I have got this to load into level 1 fine. However I would like it to load in place of another movie clip(greentarget) on the main timeline. So far nothing I have tried has worked. I have tried the following scripts.
Please can someone help.
on (release) {
loadMovie ("titlea.swf", "_root.greentarget");
}
on (release) {
loadMovie ("titlea.swf", "greentarget");
}
on (release) {
loadMovie ("titlea.swf", "greentarget");
}
LoadMovie (target)
Hello.
Im building a site which involves loading separate swf’s into an empty movie clip (target).
However using this technique appears to cause the stub file to bypass the preloaders on the incoming swf files.
Does anyone know what my problem is and how I overcome it.
Loadmovie Using Target
Hi,
I want to load a swf into a blank MC on the stage. it is working but it is replacing the the whole .swf. I only want to load a few pictures in the top right corner of the screen. not replace the whole screen with the pics. my code is
on (release) {
loadMovie ("constance.swf", photoHolder);
}
I'm using flash 5. please help
thanks in advance
Loadmovie Target
hi!
in my site i have a main page("index.swf) that has a nav bar(intstance name "nav") and a main screen,which all the data/pics apper on.
with the nav bar you click a button(total of 9)and each one load a movie(mc1,mc2,ect.) to the main screen.
now in each movie you have more buttons that load more swf(one button to be correct)so in each movie that i load into the main page("index.swf"),i have few more load movie's for swf.
at first i used load movie into level but was ok as log as load a swf without any loadmovie inside it.so i use this code:
for the mc1 to load a swf:
on (press) {
_root.movie1.loadMovie("clip1.swf");
}
movie1-a mc inside mc1 that load the clip1 into it
for the index.swf:
on (press) {
_root.nav.loadMovie("mc1.swf");
}
nav-the mc in the index.swf that the movie load into:
the problom is that the movie load but in a diffrent possition,it is load into the bottom of the screen.
i can really use some help on that!
Thank you!
Target.loadMovie
have a XML sub-menu and I want to load an external .swf on click
Is this the only action script I need on my main timeline?
target.loadMovie("gameday.swf")
stop();
Here is my XML sub-menu code:
<SubMenu label="Game Day" bgColor="0x999999" bgAlpha="65" borderThick="" borderColor="0x999999" borderRound="0" font="arial" fontSize="11" fontColor="0xffffff" usingEmbedFont="false" bold="true" italic="false" link="http://www.ssdfsdfwsdf.com" targetWin="_self"/>
Do I use the link? Or the targetWin=" " ?
Thanks for your help in advance.
LoadMovie And Target
I've never used the loadMovie function before so I'm really not sure what I'm doing wrong. I have a button. When you push the button, an .swf file (or .jpg, I need to be able to load both into different clips with different buttons and the problem is the same) should load into a rectangular target area. The target area is a solid black rectangle movie clip. Both the .swf and .jpg file are in the same folder as my flash file. When I press the button nothing happens, I don't even get an error message when I go to test it. The strangest thing is that when I try and use the same button with the same on handler to load the same .swf file into a layer (layer 1, if it matters) everything works perfectly. Thank you, my script is posted below, nice and short but it still doesn't work.
Attach Code
on (release) {
loadMovie("Art_Toggle.swf", "_root.mov_mc");
}
Target LoadMovie()
Hi,
is there a way to target loaded movies other than through loadMovieNum() or creating localConnection?
Thx!
LoadMovie Into Target
Hello everyone. I am having a problem using the Loadmovie command into a target. Basically, my site uses emptymovieclips to load the various elements of the site. For instance, for an emptymovieclip with instance name <holder>, I use the following code:
OnClipEvent(load) {
_root.holder.LoadMovie("bubbles.swf");
}
This does not seem to work correctly. Bubbles.swf is an swf that displays bubbles that have been generated using the duplicatemovieclip command. However, when I try to load this movie, it only displays one bubble.
I have also tried using the following command which DOES work:
OnClipEvent(load) {
LoadMovie("bubbles.swf",25);
}
Why isn't the loadmovie into target command working? Thanks for all your help.
LoadMovie - Target MC
Does a movie loaded into a target movieclip automatically unload the current occupant?
Loadmovie/deactivate Buttons On Lower Level
Hi:
On my level one SWF, I have a page with a bunch of buttons on it. Each button leads to a larger picture. Right now, when I do a loadmovie to get to the larger picture (on level 2), the buttons underneath on level 1 are still active - which I do not want.
As per some advice on another board, here is my most recent attempt at a script to control this, which I have attached to the first button on the level 1 swf:
on (release) {
loadMovieNum("larger_sink_1.swf", 2);
_level1.MyButton133.enabled = false;
_level1.MyButton133.enabled = true;
}
I'm sure it's ME making some sort of mistake here, but I can't figure out what it is!
Also, I'm still wondering if I need to give each button an instance name in order for the above code to work, or if the name given to the button in the library will suffice. When I tried giving the button instance a name, I got this error message:
WARNING: This movie uses features that are not supported in the Flash 5 player
Symbol=sink_movie, Layer=photos_1, Frame=12: Flash MX Button Instance Name
Thanks!
LoadMovie Problem - Can Go Down A Folder Level But Not Back Up
Hi - need some help please!! - I have a clip that has an area into which external swfs are loaded into. The area is named 'clipholder'. The contains a menu that you select various items and the appropriate clip loads in. Works fine. Some of these loaded in clips have sub-pages. These subpages can all be accessed from a submenu and they all load. But if you then try to access another subpage on the same level as the loaded in subpage or try to move up a level to the parent page of the subpage, I just get a blank page loaded in.
The code to go from a menu item to a subpage is:
Code:
on (release) {
unloadMovie(_root.currentLoadedMovie);
_root.currentLoadedMovie = "overview_ourexperience.swf";
trace(_root.currentLoadedMovie);
loadMovie("swfs/overview_pages/overview_ourexperience.swf", _root.clipholder);
}
and the code on the buttons on the subpages are (Moving from overview_ourexperience back up to overview.swf):
Code:
on (release) {
unloadMovie(_root.currentLoadedMovie);
_root.currentLoadedMovie = "overview.swf";
trace(_root.currentLoadedMovie);
loadMovie("../overview.swf", _root.clipholder);
}
I did a test on the subpage and clicked the button and the overview.swf loaded in on top of the buttons. I reasoned that maybe it saw the subpage as the _root but I don't know how to get the button to communicate with the clipholder to load in the correct page.
I know this is tough, but anyone have any ideas?
cheers
frank
Unable To LoadMovie At Topmost Level At Any Given Time With Nav
I have a navigation that contains 8 buttons.
Those 8 buttons are to load 8 seperate .swf files.
Any of the 8 buttons can be clicked on at any time.
So, lets say the user clicks button 3 and it loads 3.swf and then the user then clicks on button 7 to load 7.swf. I want 7.swf to load on top of 3.swf so that you can see it preload over the top of 3.swf. Each of the .swf files has a preloader in it so as it loads it covers up the previous content. How can I make it so the current button that is clicked will load the .swf file in the top most layer each time? Because the user has the ability to select any of the 8 buttons at any time you can't just stack blankClips and have them load in those because 8.swf may be selected after say 5.swf or vice versa. I have tried everything I can think of. I have tried to work with layers. I have tried to swapDepth. I have tried levels. I can't figure this one out. Does anyone know how to make sure that a .swf will load on top of any other existing content at any given time? If needed I can send you a file. Thanks.
LoadMovie(swf File) Into A MC Doesn't Work, But Into A Level Does.
My problem is that if I load a swf file into a level, it functions perfectly (executing actionscript). If I load the same swf file into an empty movie clip created at runtime, the swf file displays, but none of the actionscript in the imported swf executes.
(Error Code) =
Frame 1:
_root.createEmptyMovieClip("test",20);
Frame 2:
test.loadMovie("mainmenu.swf");
stop();
I don't get anything except the background on the mainmenu.swf
(Works when loaded into level)
Frame 1:
loadMovie("mainmenu.swf","_level1");
this functions fine. Is there something I need to know in order to load a swf into a MC and make it execute properly?
Preloader To LoadMovie On Target
I got a problem with my Flash project. Hope someone can help.
There are two flash files. First one call: host.swf is for host the dependent swf files and the second one call:home.swf with a preloader and the homepage.
host.swf contains one scene with a target to place LoadMovie and UnloadMovie.
Target name: target
Action Layer's first frame: loadMovie ("home2.swf", target);
Action Layer's second frame: stop ();
home.swf with two scenes, one with a preloader and then the second scene is homepage.
preloader 1st frame:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = math.ceil((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Homepage", 100) {
gotoAndPlay ("Homepage", 1);
}
Preloader 2nd frame: gotoAndPlay (1);
home.swf work itself fine. Loader bar progress 1%-100% then goto the next scene. But, when this launch through the host.swf, begins 100% with frozen progress bar. After the total bytes loaded goes to the next scene.
How can I fix the problem? any comments.
Loadmovie>target Preloader
I have asked this question like a thousand times and I don't know if I am unclear or anything but it never works! So please help me with this.
What I want to do is create a preloader for a movie which I then will load into a target/mc. I know how to make a procent preloader for a movie which is loaded into a level but when I us the same script for a movie which loads into an mc the scipt checks the kb loaded of the movie it is loaded into which of course already is loaded.
Please help!!
|