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
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-21-2002, 04:09 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Is It Possible To Load Movies/images In A Dummy Clip Inside A Button?
I do a lot of localization, and i don't want all the possible languages inside my .swf. Also there are occasions that only a .jpg is available.
Is there a way to achieve the result you'd expect from
CODEthis.myButton.createEmptyMovieClip("dummy", 1111);
this.myButton.dummy.loadMovie("images/" + langage + "/myImage.jpg");
Targeting MC Inside SWF Externally Loaded.
Ok hi everyone again, I ve been trying to find a solution to this
problem 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 clicks
them 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 whats
not 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.rar
thanks.
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
Targeting Movie Clip Inside Of Button
I have a movie clip that is inside of a button. I have action script asigned to the button. I can't for the life of me figure out the path to the movieclip to tell it to gotoAndPlay(); I thought it would just be button_instance_name.movie_clip_instance_name.goto AndPlay(frame);
But that is not working. Is there something I should know about targeting movie clips inside of buttons.
Thanks
Targeting Inside An External Clip ? Noob Help
Hey everyone.
Just wondering how do I target a button instance inside a mc that I load in externally....
1. Here's how I load the clip in....
Code:
var mcl_G1:MovieClipLoader = new MovieClipLoader();
var mclL_G1:Object = new Object();
mclL_G1.onLoadProgress = function(target,loaded,total) {
loader_G1.percent_G1.text = Math.round((loaded/total) * 100) + "%";
}
mclL_G1.onLoadInit = function() {
loader_G1._visible = false;
loader_G1.percent_G1.text = "";
}
mcl_G1.addListener(mclL_G1);
this.b1.onRelease = function() {
loader_G1._visible = true;
mcl_G1.loadClip("JROSS_G1.swf",holder_G1);
}
2. And here's how I've been trying to load in other swfs in parallel using a button inside the first loaded ext mc...
Where does the external mc filename come into the targeting? Knowing that JROSS_G1.swf is the ext file and b_020 is the button I'm trying to target ??
Code:
//
var mcl_P1:MovieClipLoader = new MovieClipLoader();
var mclL_P1:Object = new Object();
mclL_P1.onLoadProgress = function(target,loaded,total) {
loader_P1.percent_P1.text = Math.round((loaded/total) * 100) + "%";
}
mclL_P1.onLoadInit = function() {
loader_P1._visible = false;
loader_P1.percent_P1.text = "";
}
mcl_P1.addListener(mclL_P1);
this.loader_G1.JROSS_G1.panel.b_020.onRelease = function() {
this.loader_P1._visible = true;
mcl_P1.loadClip("020.swf",holder_P1);
}
Anyone?
Targeting Button Inside (attach)movie Clip
im trying to get a button working that is inside a movie clip.
the movieclip is given a linkage identifier (container_id and name as container_mc) as it is inside the library and not on the stage.
The movie clip has three buttons inside it.
I have the following code on each of the button
Code:
_root.containerBase_mc.scrollUp_btn.onRelease = function() {
trace("scrol upn");
};
this.containerBase_mc.scrollDown_btn.onRelease = function() {
trace("scrol down");
};
this._parent.containerBase_mc.close_btn.onRelease = function():Void{
trace("close me");
}
as you can see my desperate attempts to get this working
none of the trace actions work...
any help?
thank you.
Targeting A Loaded Movie Clip
Here's my problem, I have navigation buttons on the root timeline that load different swf's into a target movieclip.
Example:
loadMovie("Videos2.swf", Target_mc);
Is there a way I can tell the the loaded movie Videos2.swf to go to a certain frame and play from the root timeline?
I can adjust all the parameters of Target_mc, _x, _y and _alpha but Target_mc.gotoAndPlay(50) doesn't work, neither does Target_mc.play(). Any help would be greatly appreciated.
Thanks in advance
Targeting Loaded Clip To Play
Here's the scenario:
Master movie with 2 frames.
AS on first frame (second frame has nothing):
Code:
_root.imagePath = "/images/flashHeaders/";
if ((var1 == undefined) or (var1 == "")) {
var1 = "default";
}
_root.loadedClip.loadMovie(imagePath+var1);
stop();
3 MC's are present on the main timeline: movieFrame, loadedClip and preloaderCheck.
preloaderCheck has this AS on it
Code:
onClipEvent (enterFrame) {
totalBytes = _root.loadedClip.getBytesTotal();
loadedBytes = _root.loadedClip.getBytesLoaded();
if (totalBytes=loadedBytes) {
_root.movieFrame.gotoAndPlay("open");
_root.gotoAndStop(2);
}
}
So the external file gets loaded into 'loadedClip' MC on the root timeline. The external file has a stop(); action on the first and last frame of it's timeline. At the end of the 'movieFrame' timeline there is this AS:
Code:
stop();
_root.loadedClip.play();
What I'm wanting to do is when the movie frame is finished playing, tell the loaded clip to play. Obviously it's not working, and I know there's nothing inside loadedClip to play since it's just an empty container, but how else would you target the loaded clip?
Thanks for any help.
Problemo Targeting Loaded Clip
hello all,
I've been fiddling around w/this annoying little problem for the past 2 hours.
I'm not able to target a button that is located on an externallly loaded clip. I've traced the reference of the button and everything seems to line up (the target path I was using seems correct), but it just doesn't work. It seems so ridiculous that such a simple thing could behave so oddly.
Anyone else ever run into this? Anyone else ever thought that the office gremlins got into their machine while they were gone?
thanks for any help!
here's a chunk of the code I'm using
for (j=0; j<items.length; j++) {
item = items[j];
flyin_panel_mc.content_holder_mc["sub_btn_"+j].onRollover = function() {
//failure to work occurs here//
};
}
Targeting A Timeline In An Loaded Movie Clip
Can anyone tell me what's wrong with this code? The swf successfully loads where I want it to, but I'm having trouble moving the new movie clip to a specific keyframe in the timeline.
Code:
on (release) {
_parent.productImage.loadMovie("./flash/BT_Closeup.swf");
_parent.productImage.gotoAndStop("set2");
}
Quick Question About Targeting A Movie Clip From Different Loaded Mc
Okay here's the problem. I have my main .swf movie that has it's main stage. When I click a button in the main timeline of that movie, it loads up a new .swf into a movieclip with the following instance names:
on(press) {
loadMovie("music.swf", "_root.emptyclip");
}
//where emptyclip is the actual instance name of the empty movieclip
Now, in the actual music.swf timeline (which obviously is totally another separate .fla file), I have another button which again loads another .swf into an empty mc on the main stage of the music.swf file.
The script for that button is the following:
on (press) {
loadMovie("about.swf", "_root.musicHolder");
}
So, now what I want to do is find the target path for a dynamic text box located on the main stage of the music.swf timeline from the about.swf movie timeline. I know there must be some sort of thing that I must not be doing correctly.
As I am preloading the movie in the about.swf file, I want the dynamic content, like the bytesLoaded, etc. to be shown in a dynamic text box located on the stage of the music.swf timeline.
I know that is a mouthful and sort of confusing but please help me whoever that can. I would really appreciate it. Thanks!~
-Ninu
Input Text In A Clip That Is Loaded Inside Another Clip Not Working
Hello,
I have an input text field inside a clip that works as it should but when I load that same clip inside a parent clip I am unable to edit the input text, and any text that I had inside it doesn't display.
This occurs even when I use just plain _serif fonts instead of the embedded fonts from my library. I'm not sure if this is a font issue or if it's a limitation of flash, and i'm seeing the same sort of thing happen with a compiled component that I downloaded.
I'm compiling for Flash player 7 and AS 2.0 using MX 2004 7.2
I would greatly appreciate your suggestions, (god willing) fixes. I am about to pull my hair out...
Cheers,
Drew
Loading A Clip Inside Another Loaded Clip?
Is it possible to loadclip one clip inside of another loaded clip?
using
Code:
mcl1 = new MovieClipLoader();
mc1 = _root.createEmptyMovieClip("clip1_mc",_root.getNextHighestDepth());
mcl1.loadClip("clip1.swf", mc1);
works fine, it loads the movie clip to _root.
but if i wanted to add another using
Code:
mcl2 = new MovieClipLoader();
mc2 = _root.clip1_mc.createEmptyMovieClip("clip2_mc",_root.clip1_mc.getNextHighestDepth());
mcl2.loadClip("clip2.swf", mc2);
but this does not work.
is it possible to create a new movie clip inside a loaded movie clip and then load a movie clip into the first movie clip?
Targetting A Clip Inside Loaded Swf
Hi
I need to target 2 movie clips inside an external laoded swf, from 2 buttons in the main stage. Dont know how to target them. Hotels.swf is the swf that has 2 clips inside it.
This is my code:
var mc_New = pinkie_mc.createEmptyMovieClip("abcd", 1);
mc_New._x = 100;
mc_New._y = -120
mc_New.loadMovie("hotels.swf");
Thanks
Koosha
Control Inside Of A Loaded Clip
Hi friends;
I have a clip that loaded in my main movie, my loaded clip has 4 frame that I want control that from main movie.
I mean that I want gotoAndStop(2) or 3, 4 or 1 but I want do this from Main movie but I cant do this. Please help me. Its important to me to do that.
Drag Drop Inside Loaded Clip
Hi, i have created a drag and drop clip that works fine. If i load it into another movie clip ("container4") the drag works but it doesnt drop in the alocated place.
This is the current script i am working with
on (press) {
//Start Dragging Movieclip Behavior
startDrag(this);
//End Behavior
}
on (release) {
//Stop Dragging Movieclip Behavior
stopDrag();
if (this._droptarget == "/green_box") {
_root.green_box.gotoAndStop(5);
}
}
Any ideas guys?
Thanks,
Mark
Targetting Inside A Loaded Movie Clip
Hello all, here's what I'm trying to do:
Code:
loadMovie("test.swf", mcBox);
if(mcBox.box.hitTest(mcDot)){
trace("it hit")
}
Basically what I'm trying to do is load a swf into a movieclip, and then run a hit test on a movieclip within that loaded movie. It doesn't feel that targetting individual instances within loaded swf's is working, even though it will trace a valid pathway.
Any comments?
Load Moive(.swf) Into A Dummy Movie Clip
Good day,
I would like to know how to load my movie(.swf) into a dummy movie clip in Flash MX
The motive is to reduce my load time.I understand the theory but don't know how make it work.
The purpose:
I want the .swf files remain in the visitor's browser cache, therefore it will appear instantly when the visitor load it again.
hmmm.... i hope someone will underrstand what i am trying to say...
Check If A Variable Inside A Movie Clip Is Loaded
Hello
I have a movie clip, wich has one pop up menu with buttons. Each button sets a variable and then plays an animation in scene 1, at the 2nd keyframe.
Now, I want the 10th keyframe on scene 1 to check what variable was loaded, and then load a .swf file.
Here´s the code of one of my buttons (inside the movie clip):
on (release) {
load = "images";
tellTarget ("_level0") {
gotoAndPlay("Scene 1", 2);
}
And here´s the code on the 10th keyframe on scene 1:
if (load == "../:images") {
loadMovieNum("images.swf", 1);
} else if (load == "../:teams") {
loadMovieNum("teams.swf", 1);
}
stop();
Thanks
Gabi
Check If A Variable Inside A Movie Clip Is Loaded
Hello
I have a movie clip, wich has one pop up menu with buttons. Each button sets a variable and then plays an animation in scene 1, at the 2nd keyframe.
Now, I want the 10th keyframe on scene 1 to check what variable was loaded, and then load a .swf file.
Here´s the code of one of my buttons (inside the movie clip):
on (release) {
load = "images";
tellTarget ("_level0") {
gotoAndPlay("Scene 1", 2);
}
And here´s the code on the 10th keyframe on scene 1:
if (load == "../:images") {
loadMovieNum("images.swf", 1);
} else if (load == "../:teams") {
loadMovieNum("teams.swf", 1);
}
stop();
Thanks
Gabi
Controlling Navigation Of A Movie Clip Inside A Loaded Swf From Main Timeline
Hi,
I am using the two lines of code below in my main movie to laod another swf into level 50 of the main movie. I then want to control an instance of a movie clip inside the loaded swf called background but the second line (goto) does not work.
Code:
loadMovieNum ("desktops/"+backgroundimage, "50");
_level50.background.gotoAndStop(2);
The first line definately works fine.
Does this mean the hierarchy is such that I should be saying _level50.loadedswf_name.background.gotoAndStop(2)
In which case is there a way of giving the loaded swf an instance name when I load it. Or am I completely wrong?
Thanks again
Robin
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?
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.
Targeting A Variable Inside A MC?
I have a movie clip called curtain_mc with this actionscript inside:
onClipEvent (load) {
stop();
f = false;
}
onClipEvent (enterFrame) {
if (this.f == true) {
this.nextFrame();
} else if (this.f != true) {
this.prevFrame();
}
}
On my first frame I have this:
play_btn.onPress = function() {
btnHandler();
};
var btnCounter = 1;
function btnHandler() {
if (btnCounter == 1) {
_parent.curtain_mc.f = true;
btnCounter++;
trace(btnCounter);
} else if (btnCounter == 2) {
_parent.curtain_mc.f = false;
btnCounter = 1;
trace(btnCounter);
}
}
I would like to change the variable 'f' from true and false by clicking a button but the actionscript on my keyframe doesn't recognize the actionscript in my movieclip?? I know its a targeting issue, but not sure how to alter it in order for the two to talk to each other??
Targeting Mc Inside Of A Loop
I have this loop as part of the timeline of an swf loading into a parent movie:
Code:
var TNsHolder1 = this.createEmptyMovieClip("TNsContainer1_mc", this.getNextHighestDepth());
var maxTNsInRow = 6;
var TNsWidth = 0;
var TNsHeight = 0;
for (var i:Number = 0; i<=(_root.artTNsArray.length-1); i++) {
var TN = TNsHolder1.createEmptyMovieClip("TN"+i, TNsHolder1.getNextHighestDepth());
var TNt = TN.attachMovie(_root.artTNsArray[i], "TNpic"+i, TN.getNextHighestDepth());
var TNb = TN.attachMovie("boxFrame", "boxFrame"+i, TN.getNextHighestDepth());
TNt._alpha = 100;
TNb._alpha = 100;
TN._x = TNsWidth;
TN._x = TN._x;
TN._y = TNsHeight;
TN._y = TN._y;
if (i == maxTNsInRow-1 || i == ((maxTNsInRow*2)-1) || i == ((maxTNsInRow*3)-1)) {
TNsWidth = 0;
TNsHeight = TNsHeight + (TN._height) + 10;
} else {
TNsWidth = TNsWidth + (TN._width) + 10;
}
TN.id = i;
TNsHolder1["TN"+TN.id].onRollOver = _root.boxOvrIn;
TNsHolder1["TN"+TN.id].onRollOut = _root.boxOvrOut;
TNsHolder1["TN"+TN.id].onRelease = _root.TNtPress;
};
The functions it is calling (_root.boxOvrIn, etc) are located on the timeline of the main (parent) movie:
Code:
function boxOvrIn() {
var tnZoomXIn_Twn = new Tween(this, "_xscale", Regular.easeOut, this._xscale, 107, .2, true);
var tnZoomYIn_Twn = new Tween(this, "_yscale", Regular.easeOut, this._yscale, 107, .2, true);
var tnZoomAOut_Twn = new Tween(this, "_alpha", Regular.easeOut, this._alpha, 50, .3, true);
}
Here's my dilemma,
"this" (in the function) is referring to what in the loop is declared as TN. That is fine and works as it should. How do reference TNt and TNb (both nested inside of TN)? Using this.TNt doesn't seem to do it. It appears the function only knows that this=TN but nothing beyond that...
any ideas?
Targeting M-clips Inside ScrollPanes
Hi
I'd like to know if there is any way to give a movie clip loaded into a scroll pane an instance name - so you can target objects inside it from other parts on the stage?
I've got a movie clip "Script Boxes_mc" made up of text boxes with the Scroll Bar component attached to each.
This movie clip "Script Boxes_mc" is loaded into a Scroll Pane Window via the linkage ID in the Library. [ linkage ID is also "Script Boxes_mc" ]
the Movie clip loads "Script Boxes_mc" fine but without the scrollbars attached to the text boxes.
I've tried targeting the text box from the scroll bar componet through the parent clip eg. ScrollPane_mc.Script Boxes_mc.textboxA
But I havent obviously named the instance of "Script Boxes_mc" that is loaded into the Scroll Pane.
Is there a way to do this, or is there something else going on - like problems embedding components within others??
Hope this makes sense! I'll keep on truckin with it anyway!
Cheers
Robyn
Targeting Button Inside Attached MC
If I've got an invisible MC on the main timeline with the instance name "invisMC" and I've attached a MC and created the instance name "attachedMC" and that MC contains a button with the instance name "yesButton". Can I target that button from the main timeline. The route I tried didn't work. This is what I thought:
Code:
_root.invisMC.attachedMC.yesButton
Targeting Inside A Scroll Plane
Ok I have a movie clip inside a scroll plane. I also have a menu which I want to target the movie clip.
how should I do this?
_root.scrollplaneInstance.movieInstance....
Is this right?
as it doesn't seem to work.
Targeting Components Inside A Scrollpane
targeting components inside a scrollpane is really what I would like to do. is there a way to target a specific part of my MC contained in my scrollpane?
example:
i have 10 paragraphs of text in a MC which is called up in a scrollPane and I want to target specific paragraphs in the MC using buttons (button 4 would bring paragraph 4 up tp the top of the scrollPane (similar to anchor tags in HTML)
I don't know what I am doing wrong:
on (release) {
_root.color.textContainer.textOne.scrollBarAsset.s crollTrack_mc.setScrollPosition(10);
}
or what is the best way to acheive this
Targeting A Label Deep Inside Other MCs
Using MX2004 Pro.
Can someone either tell me what I'm doing wrong, or point me to a thread?
I have the following setup:
_root.scrollPaneInstance.containerMC.contentMCInst ance
I want to target a specific frame in contentMC by pressing a button on the main timeline.
My button on the main timeline has the following code:
Code:
on(release){
gotoAndPlay("_root.scrollPaneInstance.containerMC.contentMCInstance.frameLabel)");
}
How do you enter a long path when the correct usage for gotoAndPlay is gotoAndPlay(framenumber) or gotoAndPlay("framelabel") ?
I've searched the board and found similar things but nothing seems to be working.
TIA.
Neumy
Targeting From Inside A Graphic Element.
I have a button inside a graphic element. This is present on all scenes of my movie.
Then I have a MC which is found on scene "home", frame label "portfolio02". The instance name on stage of that MC is "mcport". Inside this "mcport" I have a frame label "fashthumb"
Is it possible to target that frame label "fashthumb" within the MC (instance name on stage) "mcport" found on scene "Home", frame label "portfolio02" from the graphic element found on every scenes of the movie?
What code should I use on the button then?
I tried this, but it only works when I'm on the same scene that is "home", "portfolio02". It doesn't work from other scenes:
on (release){
_root.mcport.gotoAndPlay("fashthumb");
}
Targeting MC Nested Inside External Swf
Hi, guys.. a lil' help here, Please..
I'm trying to target a MC nested inside external swf.
Here is my case:
I have a button inside this movie call Movie1.swf
and i want this button to target a MC nested inside the external swf call Movie2.swf (which i loaded to an empty MC of the Movie1.swf with the 'loadMovie' to target).
I named the empty MC with the instance name 'holderMC'
and the MC of the Movie2.swf 'myClip'.
Anyway, i'm trying to get the 'myClip' MC to play when the button is clicked.
I know that i have to target them using their Instance names.
But i have tried so many ways & i just can't get to it.
I can only get to the root of the external swf but not the clip inside it.
So, can anyone out there gimme a lil' direction or write a bit of script sample maybe..? Any help at all would be greatly appreciated.
Thank U
Targeting MC Nested Inside External Swf
Hi, guys.. a lil' help here, PLEASEEE...
I'm trying to target a MC nested inside external swf.
Here is my case:
I have a button inside this movie call Movie1.swf
and i want this button to target a MC nested inside the external swf call Movie2.swf (which i loaded to an empty MC of the Movie1.swf with the 'loadMovie to target').
I named the empty MC with the instance name 'holderMC'
and the MC of the Movie2.swf 'myClip'.
Anyway, i'm trying to get the 'myClip' MC to play when the button is clicked.
I know that i have to target them using their Instance names.
But i have tried so many ways & i just can't get to it.
I can only get to the root of the external swf but not the clip inside it.
So, can anyone out there gimme a lil' direction or write a bit of script sample maybe..? Any help at all would be greatly appreciated.
Thank U
OnClipEvent Inside External Swf Targeting
I've been asked this question several times and don't have an answer so I'm hoping someone can shed some light on this for me. People using the form mailer decide to load it externally and when they do they discover that the form won't go to the "thank you" frame. The onClipEvent (data) I assume fires but then you have
ActionScript Code:
_root.nextFrame();
which works fine when the external is tested as the main movie. Now, I've tried using
ActionScript Code:
this._lockroot = true;
on the main timeline of the external swf and that didn't work. What is the secret to firing an onClipEvent inside an externally loaded swf?
Targeting A Button Inside A Movieclip
Hello,
This is probably a Flash 101 question but I'm trying to target a button inside a moveiclip that will then move to another frame inside the movieclip and stop. The moving part isn't the problem. As it is good practise to have all of your script in frame 1 of the movie, this is what I'm trying to do. I can get it to work if I stick to script on the button itself but can't seem to it from frame 1. The button instance is called "next_btn" which is inside an mc with an instance name of "bride_mc".
Please help before I become a vegetable!
Targeting MC Nested Inside External Swf
Hi, guys.. I'm a new member here.
So, "Hello everybody.."
Anyway, I need a lil' help Pleasee..
I'm trying to target a MC nested inside external swf.
Here is my case:
I have this button inside this movie (Movie1.swf)
and i want it to target a MC nested inside an external swf (Movie2.swf).
This is what i did. I load the Movie2.swf into an empty MC of the Movie1.swf with the 'loadMovie' (to 'target' not 'level').
I gave an instance name of "holderMC" for the empty MC (holderMC is inside Movie1.swf)
and an instance name of 'myClip' for the MC inside the Movie2.swf.
Anyway, i'm trying to get this "myClip" MC to 'gotoAndPlay' certain frames of it when the button inside the master movie (Movie1.swf) is clicked.
I know that i have to target them using their Instance names,
and i have tried so many ways but i just can't get to it.
The most i can get to is the _root of the external swf (Movie2.swf),
but i can not get to the clip inside it.
Anyone have any ideas HOW TO?
Please.. I'm lost here.
Any help at all would be greatly appreciated.
Thank U
Targeting Movie Clips From Buttons Inside Mc's
I have a movie clip in SCENE 1. The movie clip contains a button. I want to use that button to target a movie clip on SCENE 3?
Or from that same button (in the movie clip, which I use to rotate the buttons on stage)in SCENE 1, how do I target a frame in SCENE 3?
I think the changing of scenes is crossing me up.
Thanks
Anthony
Targeting Videos Inside A Flash Player(CS3/AS2)
Hello,
I recently built a video player in AS2, you can view it here, http://www.toyassociation.org/AM/Tem...ContentID=6760. There were two things I was hoping to do with it but wasn't sure how to proceed and was hoping somebody here could provide some tips/feedback.
1. I would like to be able to link directly to each video from another web page, email etc, as opposed to just the page where the player is housed.
2. The video window is a separate swf that gets called into a movie clip inside the main swf file when a thumbnail is clicked. When closed it refreshes the entire Flash file causing the sliders under each section of the video library to revert back to their original position. I would like to make it so that upon closing the video window, the sliders stay wherever they were before the user clicked on the video thumbnails. I've tried the unload, unloadMovie and fscommand code to no avail.
Thank you in advance for any help.
Targeting HTML Frame Inside A Frameset
Hi all
Similar questions about framesets have already been answered and i understand how getURL works. I recently came up with this problem though:
My client wanted an intro page in flash that has some buttons. Each button must target a nested frame inside a frameset. (ie when someone clicks on "pictures" the frameset should open and in the main frame the "pictures" section should be loaded. In the top frame i have a flash navigation). I must stress that the flash intro runs before the frameset loads. Any ideas?
Thanx in advance
Targeting Videos Inside A Flash Player
Hello,
I'm new to this site and Flash as well. I recently built a video player in AS2, you can view it here, http://www.toyassociation.org/AM/Tem...ContentID=6760. There were two things I was hoping to do with it but wasn't sure how to proceed and was hoping somebody here could provide some tips/feedback.
I would like to be able to link directly to each video, as opposed to just the page where the player is housed, from another web page, email etc.
Currently, the video window is a separate swf that gets called into a movie clip inside the main swf file when a thumbnail is clicked. When closed it goes back to frame 1 of the main swf. This means the sliders under each section of the video library revert back to their original position. I would like to make it so that upon closing the video window, the sliders stay wherever they were before the user clicked on the video thumbnails.
Thank you in advance for any help.
|