Targeting MC Inside SWF Externally Loaded.
Ok hi everyone again, I ve been trying to find a solution to thisproblem for days now..here it is...I have a "main" swf that externally loads my "menu" swf. That works fine:)The "menu" swf has buttons on it (movie clips) that when the user clicksthem they supposed to load the sub-pages on top.So I did a second holder MC for that the sub pages will load in to.The problem is that my buttons dont work at all. I tried to trace whatsnot working but could do it. So am pretty much with no hope at the moment.If you have 5 minutes please have a look and give me a tip.On the zip file there is the "main" , "menu" , "new devel" (first sub page) fla.http://rapidshare.de/files/21754798/web_page.rarthanks.
General Flash
Posted on: Wed May 31, 2006 6:45 pm
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
//targeting.from.externally.loaded .swf >[.x.]<
I have a movie called --frame.swf
in it i have a mc that loads external .swf's into it. called holder mc instance name "holder"
--
a button on the _root timeline of frame.swf tells the movie clip to play the timeline of the ext .swf after it has been rested on a stop action
--
on the end of the time line of the ext loaded .swf there is a line of code that basically asks if the variable
profile = 1 if it does it says load profile.swf into the mc called "holder" of the movie frame .swf
---
now heres where I have a peoblem how do i target the main timeline of frame to target the mc w/ the instance name of holder?
i tried
if (portfolio=1) {
_root.holder.loadMovie("portfolio.swf", "holder");
} else if (vision = 1) {
_root.holder.loadMovie("vision.swf", "holder");
}
if you can be of any help ...thanx!
Targeting Mc's In An Externally Loaded Swf
Hi,
I'm trying to target MC's in a swf that im loading into my main swf in a holder mc called 'holder'
In AS2 I would then target them by writing:
holder.myMc etc
but I can't seem to target them properly in AS3 - If I 'Debug > List Object' my swf & all it's clips are there but the path is:
holder.instance9.myMc
Where's does the instance9 Come from?
If i try to include instance9 when targeting it flash tells me its an 'undefined property' & doesnt load the swf as normal.
Code:
function startLoad() {
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest(sitePlan);
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.load(mRequest);
}
function onCompleteHandler(loadEvent:Event) {
holder.addChild(loadEvent.currentTarget.content);
}
function onProgressHandler(mProgress:ProgressEvent) {
var percent:Number = Math.round((mProgress.bytesLoaded/mProgress.bytesTotal) * 100);
txt.text = percent.toString() + '%';
}
startLoad();
holder.p301.addEventListener(MouseEvent.CLICK, showToolTip);
function showToolTip() {
trace('Plot 301')
}
Any tips??
Thanks in advance!
ps. I have just easked a similar question on the end of some one elses post but wanted to start a proper thread on it. Apologies if this is bad form!
Targeting _root. Of An Externally Loaded Swf
Hiya people!
I have a small query about accessing MC's from within externally loaded .swf's.
What I've got is an one swf thats hold the navigation and graphical housing of the site (Logo, headers, footers etc); the content sections are external swf's that are loaded in. So it's pretty much a typical setup.
I have commands within Content.swf that involve going to the root time line of Content.swf:
on (release) {
tellTarget ("_root.productRange") {
gotoAndPlay("2seaters");
}
}
This works fine when I am only veiwing Content.swf.
However, once the Content.swf has been loaded into the Main.swf, and I try and send the same command, up to the _root. timeline (of Content.swf) the output box brings up an error.
I'm guessing this is because the command isn't going to the _root. time line of Content.swf, but to the _root. of Main.swf right?
So how do access the _root. of Content.swf?
I've tried using:
on (release) {
tellTarget ("_parent.productRange") {
gotoAndPlay("2seaters");
}
}
but this doesn't seem to work.
I'm being really dumb I know - but I'm drawing a blank
Cheers,
Deadhands
Targeting Externally Loaded Swfs
Ok guys here is my problem
I have an empty Movie which i named main.swf. on the first frame of main.swf i load another movie called shell.swf into _level100 of the main.swf this has stop and play buttons located in it....now on this timeline i load another movie into _level2 which is the animation to be controlled by those stop and play buttons. However i cant seem to target the animation correctly whne the stop button is clicked the animation continues to play...
any ideas guys?
Problems With Targeting Externally Loaded Swf's...
Hi there!
I have a master.swf where I load files into levels. Now I want a file to be loaded at a specific frame of another loaded file. The thing is that the file holding that frame is loaded into a container movieclip (container) into a file that in turn is loaded into master.swf. Here is the code that I thought would work...but it doesn't work. The home.swf loads right away...
if(_level10.container.topAnim._currentframe=32){
myMCL.loadClip("home/home.swf", 5);
}
I know that it works if I put _level0.myMCL.loadClip("home/home.swf", 5); inside the topAnim movieclip but I thought that it would be nice to have all actions on one layer in master.swf.
It would be very interesting to know this. Help would be very appreciated...
Niklas
Targeting Properties Of Externally Loaded Jpeg
I need to able to set the width of a movieclip to the width of a jpeg that gets loaded into another movieclip. I thought that the movieclip that loaded the jpeg would take on the jpegs hieght and width properties but I was wrong. Thanks
Targeting A Frame In A Externally Loaded Movie
I'm trying to target a specific frame in an externally loaded movie. Basically, I have a music clip loaded externally, and when I click on a button in my main movie, I want to tell it to go to a frame in the external clip which stops the music from playing. Can't seem to get it to talk to the clip. The music clip is loaded into an empty movie clip. The name of the clip is called emptyclip2. There is no instance name as of yet. the clip is not loaded on the root. It is loaded into another clip called "menu". That is the instance name.
Mike
Targeting Problems With Externally Loaded Movie
Hello all. I hope somone can help me with this. I am loading external swf's into a movieclip in the main movie. The targeting problem occurs when I try to control the loaded movie (photo gallery). Normally just writing the entire path works fine for example:
ActionScript Code:
_root.sectionDrop.gal1.GotoAndPlay ...
_root refers to the main movie timeline, and sectionDrop refers to the MC where the loaded movies are, well...loaded.
This is not working however, and my eyes are bleeding trying to figure out what to do.
Please help!
Thank you all!
-Wil
Targeting Problems With Externally Loaded Movie
Hello all. I hope somone can help me with this. I am loading external swf's into a movieclip in the main movie. The targeting problem occurs when I try to control the loaded movie (photo gallery). Normally just writing the entire path works fine for example:
ActionScript Code:
_root.sectionDrop.gal1.GotoAndPlay ...
_root refers to the main movie timeline, and sectionDrop refers to the MC where the loaded movies are, well...loaded.
This is not working however, and my eyes are bleeding trying to figure out what to do.
Please help!
Thank you all!
-Wil
Targeting Programatically Created Movie From Within Externally Loaded Swf
Hi guys, I am trying to use the dynamic image preloader tutorial that I found here, but I am having the following problem.
I have created a movie programatically that is created when the movie plays.
var empty = this.createEmptyMovieClip("container", "100");
empty._x = 300;
empty._y = 300;
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._alpha = 0;
bar._visible = true;
border._visible = true;
pText._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
container.fadeIn();
border._visible = false;
bar._visible = false;
dText._visible = false;
trace(targetMC+" finished");
};
The movie above is created on my main timeline, which also has another movie called 'holder'. I am loading an external swf into the movie called 'holder', which works fine.
The problem comes in when I try to call the dynamically created movie (my_mc) with the following line:
_root.my_mc.loadClip("Designs/Patriot.jpg", "_root.container");
What should happen is the dynamically created movie (my_mc) should load the image as soon as the listener is called, but for some reason it doesn't want to!
The line _root.my_mc.loadClip("Designs/Patriot.jpg", "_root.container"); works fine when it isn't inside of an externally loaded swf, but as soon as it is in the external swf, I get problems. Is there some way to target dynamically created movie's that I am not aware of?
Please help, I am ready to pull my hair out!
Targeting A Frame In The Main Timeline Of The Root From An Externally Loaded Movie
Hi! I'm trying to target a frame called "home_portfolio" on the main timeline from a loaded swf. Here's the code on the portfolio button:
on (release) {
tellTarget ("_root") {
gotoAndPlay("home_portfolio");
}
}
On the "home_portfolio" frame is an action to load the portfolio movie. However, it ignores this.
After reviewing some of the other posts I've changed the code on the portfolio button to be"
_root.gotoAndPlay"home_portfolio"
yet when I publish the swf the output says
Symbol=_bottom nav, Layer=text, Frame=1: Line 1: ';' expected
_root.gotoAndPlay"home_portfolio"
I don't understand why either one of these codes won't work. Can you help? Thanks so much
Controlling MCs Inside Externally Loaded SWFs
I am loading a SWF file on layer1 of my project, and I'm attempting to position it from my _level0 "root" timeline with:
_level1.pledge._x = 256;
_level1.pledge._y = 144;
Alas, I can't make it work. The only MC inside the loaded SWF file has the instance name "pledge", so I figure this should work. What am I doing wrong?
Problem With Externally Loaded Swf Inside My Movie
So my dilema is this. I have this empty fla file with some action script to create a few dynamic movieclips, a movieclip loader object and some instructions for that. what it does is load external swf files into the movieclips. that works just fine. but the thing here is, they load, but, I lose functionality in the buttons and other features that were scripted in the external swf's. Ive been told to try using lock root in the movie timelines and on the movie clips they are being loaded into. no dice. also tried making root a variable name. like : var actualRoot = _root; ... i got nothing. i need help
heres the file
http://www.yousendit.com/transfer.ph...associates.com
dead in the water
chad
Targetting Buttons Inside Externally Loaded SWF
Im having trouble targetting a button named btn1_btn that is located in a movie clip called thumbs_mc. Im loading thumbs_mc into and emtpy movie clip called holder_mc. When i call upon btn1_btn to load Jpeg1.swf do i need to create a new movie clip? I created one for thumbs_mc already. Can i just load Jpeg1.swf into holder_mc? And how in the world do i target btn1_btn from the main movie timeline?
Heres the code im using in the main movie
level1.thumbs_mc.btn1_btn.onRelease = function() {
createEmptyMovieClip("picholder_mc", 1);
picholder_mc._x = 0;
picholder_mc._y = 0;
picholder_mc.loadMovie('Jpeg1.swf');
};
Functions Do Not Work Inside Externally Loaded Swf
Hey so my issue is this. I have a main fla file that loads three external swf files into movieclips that i dynamically created from the main movie timeline. they load just fine. but the thing is, the functions i created in the external swfs do not work. Ive been told its an issue with my levels and their scope. If someone can, please help me with this. and explain levels and scope to me.
chad
here is my work files. the masterfile that loads everything is autoXmain.swf/fla. the rest is self explanatory once u get inside.
http://wa-01.yousendit.com/transfer.php?action=download&ufid=D2FFFFD0297F82DE&rcpt=im@northstarassociates.com
Calling A Function Declared Inside An Externally Loaded Swf
Hi,
I wish to call a function declared inside an externally loaded swf from the parent swf.
main.swf >loads in gallery.swf
I have looked into this and have read a little about casting, yet am still unsure as to how this works and the 'syntax' if you will of doin this.
Obviously in AS2 this was acheived by targeting the ._parent or ._child swf, but in AS3 I am unsure how to do this.
Any help appreciated
Access Classes Inside A Component Loaded Externally
[RESOLVED: see post below]
Hi again!
[Summary]
I use a component (photoflow) to load some images, everything works fine if the component is placed on the stage of swf called b.swf
also, ther's a main a.swf who loads b.swf, and again, the component works.
NOW: a.swf has a document class a.as, and a function to triger some events as the componenet loads, the component has an internal class so that we can control it (add event listeners) from AS, and we have to write:
ActionScript Code:
import com.flashloaded.as3.PhotoFlowEvent;
if I wrote on the b.swf timeline;
ActionScript Code:
import com.flashloaded.as3.PhotoFlowEvent;myPhotoFlow.addEventListener (PhotoFlowEvent.INIT, eventHandler);function eventHandler (eo:PhotoFlowEvent):void { trace("hello init");}
it works, but if i try to write the same code (modified a littel) on a.as it gives me an error:
ActionScript Code:
1046: Type was not found or was not a compile-time constant: PhotoFlowEvent.
I load the b.swf correctly and i can access some text fields inside it using
ActionScript Code:
product_details_swf.Tel.text = "TEL number shows correctly on b.swf ";
[SYMPTOMS]
This happens only when I try to get the import class inside the b.swf, maybe it's a scope problem!
ActionScript Code:
import product_details_swf.com.flashloaded.as3.PhotoFlowEvent;product_details_swf.myPhotoFlow.addEventListener (PhotoFlowEvent.INIT, eventHandler);function eventHandler (eo:PhotoFlowEvent):void { trace("hello init");}// gives same error
[MORE INFORMATION]
I searched on Adobe, kirupa and google about how to access classes of component which are inside external loaded swf but in vain!
Posted also a comment on the component forum but with no answer.
thanx for any help.
Recognizing Within Main Timeline A Button Located Inside Externally Loaded .swf
Hello all. I'm using the preloader like the one rhamej posted here:
http://www.kirupa.com/forum/showthread.php?t=94888
The part of the code I need help with is as follows:
ActionScript Code:
//fire the MovieClipLoader and attach the listener to itvar container1:MovieClipLoader = new MovieClipLoader();container1.addListener(mclListener);container1.loadClip("1_movie.swf", container);//button actions_root.enter_button.onRelease = function() {container1.loadClip("tree20.swf", container);};
I realize the code is wrong. I wondered if it was possible after loading an external .swf ("1_movie.swf") within the container, if you could then press a button (enter_button) located within the external .swf ("1_movie.swf") , and use the preloader code to load another external .swf on release ("tree20.swf"). I'm having trouble because the preloader code is in the main timeline of my main flash file ("index.fla"), and I don't know how to make the preloader code recognize the button located within the external .swf, and use it to load another external .swf within the same movie clip. Any help would be appreciated.
Recognizing Within Main Timeline A Button Located Inside Externally Loaded .swf
Hello all. I'm using the preloader like the one rhamej posted here:
http://www.kirupa.com/forum/showthread.php?t=94888
The part of the code I need help with is as follows:
ActionScript Code:
//fire the MovieClipLoader and attach the listener to itvar container1:MovieClipLoader = new MovieClipLoader();container1.addListener(mclListener);container1.loadClip("1_movie.swf", container);//button actions_root.enter_button.onRelease = function() {container1.loadClip("tree20.swf", container);};
I realize the code is wrong. I wondered if it was possible after loading an external .swf ("1_movie.swf") within the container, if you could then press a button (enter_button) located within the external .swf ("1_movie.swf") , and use the preloader code to load another external .swf on release ("tree20.swf"). I'm having trouble because the preloader code is in the main timeline of my main flash file ("index.fla"), and I don't know how to make the preloader code recognize the button located within the external .swf, and use it to load another external .swf within the same movie clip. Any help would be appreciated.
Help Targeting Loaded Swf Inside Dummy Clip
im trying to optimize my swf's. as told in the tutorial on flash kit. the problem is when i load a swf into a targeted MC that MC disapears. i check ed in the debugger and can not find the targreted MC. but all the loading is working..
my example is:
level 10 loads another swf into level 25. _level25 has dummyMC, which gets various swf's loaded within it. now i want to targret _level25.dummy from _level10, but i cant do it.
i know this is confusing,but any info on this would be helpfull.
thanks----PC Goshen
Targeting Button Inside Loaded MovieClip
Hey there,
I think I am loosing it ...
Anyways, I have loaded a Movieclip onto the stage with:
_root.attachMovie("MCCheck","MCCheck",(1001)); // Attaches the Check Button
_root.MCCheck._x = 82;
_root.MCCheck._y = 202;
and would like to target the button (instace nameis butCheck) inside movieclip or just use a onRelease command to do something. I thought the code would go:
_root.MCCheck.btCheck.onRelease = function() {
trace("go");
gotoAndPlay(1);
//play();
}
But I am wrong.... and suggestion wher I went wrong
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM
1. I have my navigation buttons in level0
2. When a button is pressed it loads an external .swf into the highest empty level
3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.
4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.
The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.
It works fine if you test it on its own. But not when loaded into a Movie Clip.
MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);
Do I have to refrence it differently? Because of where it is situated?
e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();
confesed!
Looping A Loaded An Externally Loaded Mp3
I was trying to loop an externally loaded mp3 and suceeded on my machine, but when I upload the swf and mp3, the function will not work in my browser (IE). I tried a relative path, as well as the absolute URL and neither worked. Here is the code I used to loop the externally loaded mp3:
loopSound = function () {
my_sound.loadSound("whisper.mp3", true);
};
my_sound = new Sound();
my_sound.loadSound("whisper.mp3", true);
my_sound.onSoundComplete = loopSound;
my_sound.setVolume(45);
Any help would be most appreciated, I have wasted a lot of time on this already.
Externally Loaded Swf Does Not Stay Loaded
Hello,
I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.
Any input onto why this would happen would be greatly appreciated.
I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.
EDIT
- I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?
Targeting From Inside A MC
I have a MC with buttons that on press should go to frame # and play.
The buttons were working fine when placed on the main stage but when moved to the movie clip it won't work.
I know it is a targeting problem I just don't know how to fix it.
Can anybody give me a hint?
Thank in advance,
FayeC
Targeting A Mc Which Is Inside Another
Hi, i wanna learn how can i do this:
When i press a movie clip, i want it to activate "A1" movie clip which is inside "A" movie clip.
So on the scene stuff is arranged like that:
root->A->A1
can anyone help me?
Targeting A Mc Which Is Inside Another
Hi, i wanna learn how can i do this:
When i press a movie clip, i want it to activate "A1" movie clip which is inside "A" movie clip.
So on the scene stuff is arranged like that:
root->A->A1
can anyone help me?
Pop Up From Externally Loaded Swf
I have the main index .swf and inside that .swf I have another externally loaded .swf. In that swf though I have a link to a 3rd party website that I need to load in a new window. The standard code that i have been using is:
btn_Up.onRelease = function() {
getURL("javascript:Launch('http://www.somewepsite.com, 600,600)");
};
Where btn_Up is the button. But for some reason because the swf is embedded into another swf it doesnt work. Please help!
Externally Loaded FLV
In my SWF fie, I have an externally loaded FLV file.
I now want to add another FLV that will load and play automatically when the first one is finished.
I actually want the SWF to jump to a new scene when the first movie is done.
How can I do that/ what the actionscript?
Steven
Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.
Externally Loaded Swf
Hello all,
I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:
_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();
How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.
Ryan
HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum("<A href="http://www.geocities.com/krizinxgren/7UP.swf",0">http://www.geocities.com/krizinxgren/7UP.swf",0); please ignore the geocities address OK the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody
thanks all
K
HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum(http://www.geocities.com/krizinxgren/7UP.swf,0); please ignore the geocities address, the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody
thanks all
K
Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.
Externally Loaded Swf
Hello all,
I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:
_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();
How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.
Ryan
Externally Loaded Swf
This is probably covered somewhere, but I am loading an external .swf into my main movie and i am just wondering if the actionscript works in the external swf. I see what i am assuming are pages with an external load and most have a preloader. How does this work.
Using PHP In An Externally Loaded SWF
:?
I've constructed a site in Flash, using an external loader. The tutorials on this site are great, thanks. I've made a contact page that uses php script, which has full functionality when previewed OR viewed as an independent HTMP page. However, when I submit contact info from the live site, I never receive any email. Can anyone tell me why this is??
I've tried everything I can think of, and have allowed every file in site folder access through the Flash Player Control Panel. I followed Lee's tutorials for both external loaders and the php contact page extactly.
Thanks in advance for any help!
http://www.simplypilatesnashville.com
Targeting Inside Scrollpane
I've got a scrollpane placed on the main timeline. It's instance name is "thumbScroller".There is a movie clip inside the scrollpane and it's instance name is "tnailStrip". There is a movie clip inside that movie clip with the instance name "stripOne". There is again a movie clip inside that movie clip with the instance name "pb1".
I want to reference that "pb1" from the main timeline. What is the path? It seems like it should be:
_root.thumbScroller.tnailStrip.stripOne.pb1
but that doesn't work. How do I do it?
Targeting A Mc Inside A Button
Hi,
I'm having problems with targeting a movieclip inside a button. What i want to do is play the last half of a movieclip nested in the "over" state on the button when the user rolls out of the button. I have marked the 2nd half of the mc with a flame label, but cant seen to target the frame correctly. What script should i use to do this?
scene name = "main"
button name = "homeButton"
movieclip name = "homeOver_mc"
flame label = "rollOutHome"
Targeting Inside/outside Instances (F8)
Alright, no matter what I try, when I try to target an instance that exists within an instance, it doesn't work. Someone please tell me how.
Or, likewise, how can I target something outside the parent instance? I need that too.
Targeting An MC Inside A LoadMovie
Currently I'm using the following script...
_root.createEmptyMovieClip ("bg", 1);
_root.bg.loadMovie ("pictures", "pictures", 1);
...to create an MC in which to load an .swf file. Everything works as planned, but can I target an MC within the newly loaded "pictures." For example, can I target the MC "dog" that is located in the .swf "pictures" that was loaded into the empty MC "bg"?
Targeting Frames Inside Mc's From .as
using this code:
PHP Code:
package {
import flash.events.*;
import flash.display.*;
public class mainMenuMC extends MovieClip {
public function mainMenuMC() {
// Event Setup.
test2.artist_btn.addEventListener(MouseEvent.CLICK,navigationClicked);
test2.contact_btn.addEventListener(MouseEvent.CLICK,navigationClicked);
test2.gallery_btn.addEventListener(MouseEvent.CLICK,navigationClicked);
test2.web_btn.addEventListener(MouseEvent.CLICK,navigationClicked);
}
// Event Handlers.
private function navigationClicked(Event:MouseEvent):void {
var frmLabel:String='';
switch (Event.target) {
case test2.artist_btn :
frmLabel="artist_frm";
break;
case test2.contact_btn :
frmLabel="contact_frm";
break;
case test2.gallery_btn :
frmLabel="gallery_frm";
break;
case test2.web_btn :
frmLabel="web_frm";
break;
}
MovieClip(root).gotoFrame(frmLabel);
}
}
}
the frames are labelled inside test2, test2 is inside mainMenuMc.
i thought it would be like actionscript where i could use:
MovieClip(root).test2.gotoFrame(frmLabel);
but this brings up:
PHP Code:
ReferenceError: Error #1069: Property test2 not found on portfolio and there is no default value.
at mainMenuMC/navigationClicked()
any ideas?
Targeting Inside Instances
Alright, no matter what I try, when I try to target an instance that exists within an instance, it doesn't work. Someone please tell me how.
Or, likewise, how can I target something outside the parent instance? I need that too.
|