Movie Clip Doesn't Talk To UILoader
On my main stage I have an instance of the UILoader named viewer_mc. I also have a movie cllip named thumbs_mc that has thumbnails dynamically loaded from an XML list. All my pieces of code work except the showPhoto function, which constantly yields the error message "1120: Access of undefined property viewer_mc."
I've also tried root.viewer_mc, stage.viewer_mc, _root.viewer_mc, this.viewer_mc, etc. All yield the same error message except this.viewer_mc, which yields a different error message.
I've uploaded my files at http://vicesbyproxy.com/staging/Archive.zip. Here is my code on the movie clip:
Code: var imageLoader:Loader; var xml:XML; var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader(); xmlLoader.load(new URLRequest("data/images.xml")); xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded(event:Event):void { xml = XML(event.target.data); xmlList = xml.children();
for(var i:int = 0; i < xmlList.length(); i++) { imageLoader = new Loader(); imageLoader.load(new URLRequest(xmlList[i].attribute("thumb"))); imageLoader.x = (i * 61); imageLoader.y = 0; imageLoader.name = xmlList[i].attribute("source"); addChild(imageLoader); imageLoader.addEventListener(MouseEvent.CLICK, showPhoto); } }
function showPhoto(event:MouseEvent):void { viewer_mc.load(new URLRequest(event.target.name));
} Here's the code on the main stage:
Code: var minScroll:Number = thumbs_mc.x; var maxScroll:Number = minScroll + thumbs_mc.x - mask_mc.width; var targetScroll:Number = thumbs_mc.x; var scrollAmt:Number = 15; var scrollDirection:Number = 0; var easing:Number = 4;
function scrollLeft(event:MouseEvent):void { setDirection(-scrollAmt); }
function scrollRight(event:MouseEvent):void { setDirection(scrollAmt); }
function setDirection(dir:Number):void { //thumbs_mc.x += dir; scrollDirection = dir; stage.addEventListener(Event.ENTER_FRAME, scrollThumbs); stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling); }
function scrollThumbs(event:Event):void { targetScroll += scrollDirection; /* thumbs_mc.x = targetScroll; if you don't like easing, comment out the next line instead */ thumbs_mc.x -=(thumbs_mc.x - targetScroll) / easing; if (thumbs_mc.x > minScroll) { thumbs_mc.x = minScroll; targetScroll = minScroll; } else if(thumbs_mc.x < maxScroll) { thumbs_mc.x = maxScroll; targetScroll = maxScroll; } }
function stopScrolling(event:MouseEvent):void { scrollDirection = 0; }
left_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollLeft); right_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollRight); I know the showPhoto function is outputting the correct information because a trace statement yields the expected results. I should mention that I'm a beginning coder who doesn't know any programming languages. I extrapolated the code from a Lynda.com tutorial.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 04-24-2008, 06:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Having A Loaded Movie Clip Talk To Another Movie Clip
Here's what I want to do:
Load a clip into my main movie - "loadedMovie"
at the end of the timeline in "loadedMovie" i want a function, perhaps setColor, which will change the colour of another movie clip which sits in the main movie.
Does this make sense? for a loaded movie clip to change the color of an instance of another movie?
Many thanks,
Ray
Loaded Movie Clip To Talk To The Movie That Loaded It
Trying to get a loaded movie clip to talk to the movie that loaded it, but can't figure out the right ActionScript... . i'm using:
on (release) {
tellTarget ("home.swf") {
gotoAndPlay("blank");
loadMovieNum("viewer.swf", 2);
it ain;t workin, i've also tried _parent &
_root - in replace of 'home.swf' to no avail, much thanks to anyone that can help!!!
Why Doesn't This Movie Clip Work Right?
OK, check it out. I have an item in my library called gauge which is simply a graphic meant to represent a variable. When I have the variable declared locally, i.e. in the movie clip itself, it works great. But for some reason I can't get it to function with a global variable from the main movie.
Please let me know what I am missing.
If my description is puzzling or you think you can help but my pathetic rambling is incoherent you can email me at: destinova@alternity.net
Thanks
Movie Clip Doesn't Appear On Stage
Hello.. I don't know what's happening here.. please check this ws:
http://zerodefects.splinder.com ... the polyfiller consists of just a frame with some actionscript that creates an empty movieclip.. places the clip on stage and draws the polys inside...
Now my problem is: I have a new .fla with some layers and action taking place, I want to add that 3d polyfiller on a layer and have it onstage at a given place.. I tried it, published the .fla but the polyfiller doesn't appear at all. I really don't understand what's going on here.. any clue?
Movie Clip Doesn't Move
hello, i returned to flash but have some elementary problems, so much time. ehh.
I created movie clip with some motion tween. In edit mode it's moving nice, but when play this movie on scene 'top level' it doesn;t. There are other symbols in scene and they're moving how I want (they have defined motion tweens in main timeline).
What I need to do, if the movieclip needs to play (like it's defined in its internal timeline) in main timeline ?
greets.
Movie Clip Doesn't Move
hello, i returned to flash but have some elementary problems, so much time. ehh.
I created movie clip with some motion tween. In edit mode it's moving nice, but when play this movie on scene 'top level' it doesn;t. There are other symbols in scene and they're moving how I want (they have defined motion tweens in main timeline).
What I need to do, if the movieclip needs to play (like it's defined in its internal timeline) in main timeline ?
greets.
Duplicated Movie Clip Doesn't Animate
Hi, this is frustrating; I have a movie clip of an animation, and I can duplicate it using DuplicateMovieClip function, but the new clip doesn't animate. What am I missing here?
Movie Clip Doesn't Closed Correctly
I opend the ski movie clip from the pop-up menu but it didn't closed. I put the action layer and added stop:' but it didn't work. I created the new movie clip and put it inside it but it still didn't work
Can anybody help me?
I show you my problem pop-up
click here to see the pop-up menu
Button Within Movie Clip Doesn't Work
hi,
i've created a products movie clip. when you mouse over the products mc, the movie clip has a sub-navbar that tweens horizontally out of the movie clip. when the subnav is done coming out and stops, i have buttons that appear that i would like the user to be able to click on. everything works out fine until i roll over the button the rollover state doesn't work. i have a feeling it is because the button is nested, but not sure.
i set up a simple example here: http://kurtcom.com/examples/jeannettes_damn_navbar.html
let me know if you want me to email you the file as well, thanks!
Edited: 07/23/2007 at 08:43:28 AM by masterkrang
When I Load A Movie Clip Into A Target It Doesn't Appear In The Center
Hi I really need some help on why the movie clip I load into a target doesn't load in the center. Instead it loades on the bottom right corner!
here is the website http://www.hostultra.com/~dushhhhhh/ Click on the "Home" button. It is supposed to load in the box to the right but is out of place. I know the flash is not nice but my main concern is why it wont load in the center. You can download the .fla's I used which are only very small in the bottom part.
Thanks for your help.
When I Load A Movie Clip Into A Target It Doesn't Appear In The Center
Hi I really need some help on why the movie clip I load into a target doesn't load in the center. Instead it loades on the bottom right corner!
here is the website http://www.hostultra.com/~dushhhhhh/ Click on the "Home" button. It is supposed to load in the box to the right but is out of place. I know the flash is not nice but my main concern is why it wont load in the center. You can download the .fla's I used which are only very small in the bottom part.
Thanks for your help.
Removing A Movie Clip From Inside Itself Doesn't Work :(
For some reason, I can't remove a movie clip from inside itself. I even tried using a function on the _root timeline, and calling it from within the movie clip, and it still didn't work.
Here's what I'm currently using to try to remove it from within itself (doesn't work):
code:
removeMovieClip(this);
I also tried this:
code:
this.removeMovieClip();
The function I attempted to use looked like this:
code:
killMe = function (target)
{
removeMovieClip(target);
//This function is on the _root timeline
}
And the call in the movie clip looked like this:
code:
_root.killMe(this);
Any ideas, explanations, workarounds? I did remember to search this time, by the way.
Thanks!
Rick
Edit: I can, however, MOVE the movie clip from within itself
Dynamic Text Doesn't Show Up In Movie Clip?
I have a site going and the dynamic text thats right on the main scene works..
but I have parts that move so like.. I had an image as a BG for this one part and its a movie clip..
And I double clicked it to get into it, and then put stuff in that.
So its like
Scene 1 -> Dynamic Text
works fine
Scene 1 -> midGfx_mc -> Dynamic Text
does not work..
The field is there because i can double click and copy and get the value out of it. Its visible and its alpha is 100.. but you can't see the text.. its there.. the cursor changes over it and you can copy whats in it.. You just cant see it!
Why?
-Thank you
Problem With Movie Clip: Doesn't Play Forever
I would like my movie clip to play forever, (I thought that movie clips did that in essence, play forever) and for some reason it doesn't work. Please, does anyone have a solution? Thanks!
-----
FYI : I previously had problem with this: http://board.flashkit.com/board/show...43#post4114043
and added the following code on Robb@exo suggestion:
function timelineFaster() {
nextFrame();
updateAfterEvent();
}
var tweenFaster:Number = setInterval(timelineFaster, 42);
Movie Clip Button GotoAndPlay Doesn't Work
Hi there,
Been struggling with something easy, trying to make a button using a MC. It's a simple square that goes to full alpha when rolled over, and should navigate to another scene when pressed. The rollover part works fine, but the switch to the scene does not.
The main issue is the onRelease - "ratingsStart" is the frame label name of the first frame in my new scene. When I press the button, it is getting the event - I can see a test message sent via Trace(). But for some reason, it does not load the new scene. I tried the scene name as well, that does not work. I do have a stop(); in frame one of the new scene so it should go there and stop.
Is there a better way or have I made a mistake in my code?
Attach Code
stop();
this.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}
this.onRollOver = function(){
rewind = false;
play(); // play this movie clip
}
this.onRollOut = function(){
rewind = true; //set or rewind switch to true so it will play backwards...
}
this.onRelease = function(){
gotoAndStop("ratingsStart", 1); // name of label in my second scene
}
PLEASE HELP - How Do I Intialize A Movie Clip When Onload Doesn't Work
Hi,
I have movie clip (called MainButton) that I am using as a button and it has an ActionScript function (called Load_Data(str:String) ). I have tested both and they work. Now in scene 1, I have "dragged and dropped" several instances of MainButton onto my stage (from my library) . But when I call each instance's Load_Data(str:String) function from an onLoad event in the Actionscript in the 1st cell in scene1, it doesn't work. Can anyone tell me what event will work? I have to initialize the buttons before the user views the page.
Thank you very much!
Buttons Inside Movie Clip Doesn't Work On Over
Hi all,
please help because i am loosing my head. i'm not an expert flash user but I wouldn't say that I am a novice one either.
Into the problem.
I am trying to do a drop down menu. I have used a movie clip to create the effect and in there are the buttons. I am using the root to control the actions. It works fine but when I add the code for the RollOut event the buttons stop having the over effect like to change the font colour etc.
What am I doing wrong?
I have made a douzen variations and I have attached one of them. (i'm not sure if it's attached though)
here is the code placed on the root for the button Vision Support, that's the only one trying to implement since the morning!
this.support_mc.onRollOver = function(){
this.gotoAndPlay(2);
DDSupport_mc.gotoAndPlay(2);
};
this.support_mc.onRollOut = function(){
this.gotoAndPlay(16);
};
this.DDSupport_mc.onRollOut = function(){
this.gotoAndPlay(70);
};
please please help
Guestbook Doesn't Work When Loaded Into Empty Movie Clip?
I use flash mx (6)
I will initially explain my problem before I upload any files to the forum or the server and pray to god you can help (I have a deadline approaching)
I have made a simple site with some simple transitions. each button on my site loads in an external swf file into an empty movie clip.
One of these swf files is a guestbook which works when i dont load it into the empty clip and test it alone on my server (sending in the guestbook swf, html, php, and empty text file)
Now then, when i load in the guestbook into the main swf, nothing happens on the server when I test it - I am lost and now come to you people for advice. It obviously has something to do with being loaded into an empty movie clip that is causing conflict.
I am very new to actionscript and know nothing about php. As I said earlier, I will upload any files for you to look at but I thought i'd ask first, so you could have a think about whether or not you might be able to help.
I DESPERATELY need help here.
Thank you very much.
Stop Action Doesn't Work Inmovie Clip In A Movie
I have a movie clip that has a stop action at the end of it. I imported it into the library of the movie I want to view it in. Yet when I play the host movie, the stop action in the imported movie clip does not work. It just loops. What's up with that?
T.
Attachmovie Loads A Movie Clip With A Button That Doesn't Rollover
Hey all:
I am using an attachmovie to load a movie clip. The clip loads but the button inside of it no longer rolls over (with up/over/hit states). The whole movie clip triggers the hand cursors. I tried loading just that button with the attachmovie and it loads it but does not rollover either. I don't know if it's a hit state problem or if I am just missing something stupid here.
When I just place the movieclip on the stage right next to the attachmovie version, it works fine ...
Does anyone have any ideas?
Thank you,
- Garrett
Guestbook Doesn't Work When Loaded Into Empty Movie Clip?
I will initially explain my problem before I upload any files to the forum or the server and pray to god you can help (I have a deadline approaching)
I have made a simple site with some simple transitions. each button on my site loads in an external swf file into an empty movie clip.
One of these swf files is a guestbook which works when i dont load it into the empty clip and test it alone on my server (sending in the guestbook swf, html, php, and empty text file)
Now then, when i load in the guestbook into the main swf, nothing happens on the server when I test it - I am lost and now come to you people for advice. It obviously has something to do with being loaded into an empty movie clip that is causing conflict.
I am very new to actionscript and know nothing about php. As I said earlier, I will upload any files for you to look at but I thought i'd ask first, so you could have a think about whether or not you might be able to help.
I DESPERATELY need help here.
Thank you very much.
Skip To Previous Scene From Movie Clip Doesn't Seem To Work Can You Help
Alright im new to flash and ive been teaching myself through trial and error and tutorials etc etc so im not down with all the lingo and my abilities are limited but i can only get better..
i know the basics but at the moment but i have a problem with shkipping out of a mov clip back onto a frame on the previous scene( gotoAndStop("Scene 1", "music"); )
..basically the movie plays and stops and you can then choice to return to the preivous screen on one of the buttons.. you hit the button and the movie continues until the end when it hit a frame that has a action attached to it to send the playhead back to the scene it was originally on.. but the mov instead of going to the previous scene just goes back to the begining of the movie.. it happens when i preview the movie.. but does work when i play it in the editing section by the "enable simple buttons" selection in control..why?
simple question i expect for some of you to answer.. if you can help that would be good...
Last Empty Movie Clip Generated Doesn't Fire EnterFrame More Than Once
Alright, here's the lo-down. I have a flash file that reads and XML file, it creates an empty movie clip in a placeholder (mc_image_holder) for each entry in the file, so 4 entries in the XML file = 4 movie clips inside the placeholder. it does this like so:
Code:
if(success)
{
var nm:MovieClip = mc_image_holder.createEmptyMovieClip("swfHolder"+i,-((i) * 10));
nm.loadMovie(filename);
i++;
filename = flashImages[i].ImageUrl;
if(filename != null && filename != undefined)
fileExists.load(filename)
else
{
finishedLoading();
}
}
in the finished loading function, I loop through the created movieclips (by way of the xml being read in, I know how many objects there are... flashImages) and assign the function lal to the onEnterFrame even for each one of these created movie clips, like so:
Code:
function finishedLoading()
{
var tally = 0;
var myWidth = 0;
for(var j = 0; j < flashImages.length; j++)
{
var mc = eval("mc_image_holder.swfHolder" + (j));
mc.onEnterFrame = lal;
}
}
however, for some reason, the last created movie clip in the place holder never fires the onEnterFrame event more than once, so, If I were to trace the word "hi" I would only get it once, where as if I apply that to each of the other three that are created, it would put it many times, as it should.
Does anyone have any idea whats going on here? Thanks!
Guestbook Doesn't Work When Loaded Into Empty Movie Clip?
I will initially explain my problem before I upload any files to the forum or the server and pray to god you can help (I have a deadline approaching)
I have made a simple site with some simple transitions. each button on my site loads in an external swf file into an empty movie clip.
One of these swf files is a guestbook which works when i dont load it into the empty clip and test it alone on my server (sending in the guestbook swf, html, php, and empty text file)
Now then, when i load in the guestbook into the main swf, nothing happens on the server when I test it - I am lost and now come to you people for advice. It obviously has something to do with being loaded into an empty movie clip that is causing conflict.
I am very new to actionscript and know nothing about php. As I said earlier, I will upload any files for you to look at but I thought i'd ask first, so you could have a think about whether or not you might be able to help.
I DESPERATELY need help here.
Thank you very much.
Skip To Previous Scene From Movie Clip Doesn't Seem To Work Can You Help
Alright im new to flash and ive been teaching myself through trial and error and tutorials etc etc so im not down with all the lingo and my abilities are limited but i can only get better..
i know the basics but at the moment but i have a problem with shkipping out of a mov clip back onto a frame on the previous scene( gotoAndStop("Scene 1", "music"); )
..basically the movie plays and stops and you can then choice to return to the preivous screen on one of the buttons.. you hit the button and the movie continues until the end when it hit a frame that has a action attached to it to send the playhead back to the scene it was originally on.. but the mov instead of going to the previous scene just goes back to the begining of the movie.. it happens when i preview the movie.. but does work when i play it in the editing section by the "enable simple buttons" selection in control..why?
simple question i expect for some of you to answer.. if you can help that would be good...
Check Size Of Movie Clip After It Changed? My Code Doesn't Work. Why Oh Why...
Hello guys
I'm working on a website, where a movieclip change it's size. That's no prob, but then I want something to happen, when it reached the size. And it only works when the movieclip was smaller than the size it reached!
So what I need is a way to check wheneven the mc reached it's final size. This is the code I used so far.
frame1
if (_root.movieclip._width == 550) {
gotoAndPlay(5);
}
frame2
gotoAndPlay (1);
regards
Michael
Image Scroller Script Doesn't Work When Put Inside Movie Clip
I've given up trying to figure this out myself as I'm new to this and desperately in need of help.
I got a script which is an image scroller. I've attached the fla in question and the problem seems to be in the 'controller' MC which you can see in the assets. This is what controls the button actions to the slides.
I want to be able to put this in another movie clip so that I can refer to it from another mc and then this shoudl start playing.
Will really appreciate your help!
BTW I am using Flash MX 2004.
Dynamic Text From .txt File Doesn't Work Inside Movie Clip
Let me start by explaining...
I have a 10 Scene flash movie / website. Everyscene has it's own cool animation. (To see what i mean check out http://69.41.144.121/aerocet/index.html). There are many layers in each scene and each scene has a lot of symbols. I am trying to load text from a txt file dynamically into a movie clip called t_info_text1 which is also inside Symbol 82 which is a symbol of Scene 2. I can't ever manage to see the text in the compiled site. I've tried many different paths the the object and such. Is there just a trick I am missing, or scripting I am getting wrong?
Again:
Textbox instance name about_txt var about
Part of Movie Clip t_info_text1
Part of Symbol 82
Part of Scene 2
Part of SWF
in same directory on HDD is about.txt which contains the following:
&about=Some text about us
in Frame 1 of Scene 2 actionscript reads the following
loadVariables("about.txt",0);
about_txt.embedfonts = true;
I have already embedded my fonts and they work fine, If i paste the text into the textbox it will show up, but if I load it froma text file, it's no go....
What can I do?
Help GotoAndStop Code Doesn't Work After I Convert A Button To Movie Clip
First of all, I would like to apologise for not knowing whether this code belongs to F5 or FMX Action Script. I'm that noobish, yup.
Anyway, what happened in my flash document was, I created a button, "next_btn" with the following commands:
on(release){
//to remove all the splats
for (score=0;score<100;score++){
_root["splat"+score].removeMovieClip();
}
_root.finger_mc.removeMovieClip();
gotoAndStop("s1a2","gamereadys1a2"); //go to next level
_root.s1a1bgm.stop();
}
I also attached a visibility code in a separate, 'Actions' movie clip:
onClipEvent(load){
_root.next_btn._visible=false;
}
onClipEvent(enterFrame){
if (_root.score>=100){
recoverytime++;
if (recoverytime>120){
_root.next_btn._visible=true;
_root.next_btn.swapDepths(1998);
}
}
}
At this point, almost everything worked perfectly. Everything, but one thing. Apparently, the swapDepths command wasn't working. It was then that I thought maybe swapDepths only works on movie clips.
And so I converted the button into a movie clip. I modified the instance names, etc, and almost everything worked. Everything, including swapDepths, but one thing: the gotoAndStop command.
For some reason, when I tested the movie clip (containing a button) out, it removed the splat+score and finger_mc movie clips, as well as stoped the background music from playing. However, it did not go to the next scene and frame as specified by the gotoAndStop command. "s1a2" is the next scene, and "gameplays1a2" is its frame.
Can someone please tell me what went wrong?? All help appreciated.
Help GotoAndStop Code Doesn't Work After I Convert A Button To Movie Clip
First of all, I would like to apologise for not knowing whether this code belongs to F5 or FMX Action Script. I'm that noobish, yup.
Anyway, what happened in my flash document was, I created a button, "next_btn" with the following commands:
on(release){
//to remove all the splats
for (score=0;score<100;score++){
_root["splat"+score].removeMovieClip();
}
_root.finger_mc.removeMovieClip();
gotoAndStop("s1a2","gamereadys1a2"); //go to next level
_root.s1a1bgm.stop();
}
I also attached a visibility code in a separate, 'Actions' movie clip:
onClipEvent(load){
_root.next_btn._visible=false;
}
onClipEvent(enterFrame){
if (_root.score>=100){
recoverytime++;
if (recoverytime>120){
_root.next_btn._visible=true;
_root.next_btn.swapDepths(1998);
}
}
}
At this point, almost everything worked perfectly. Everything, but one thing. Apparently, the swapDepths command wasn't working. It was then that I thought maybe swapDepths only works on movie clips.
And so I converted the button into a movie clip. I modified the instance names, etc, and almost everything worked. Everything, including swapDepths, but one thing: the gotoAndStop command.
For some reason, when I tested the movie clip (containing a button) out, it removed the splat+score and finger_mc movie clips, as well as stoped the background music from playing. However, it did not go to the next scene and frame as specified by the gotoAndStop command. "s1a2" is the next scene, and "gameplays1a2" is its frame.
Can someone please tell me what went wrong?? All help appreciated.
Making One Movie Talk To Another..
I have a timeline (Movie A) that imports another swf file to level 5 (Movie B). I want Movie B to talk to another movie that resides on the timeline of Movie A. Lets call that Movie C. I want Movie B to Tell Movie C to play a certain frame. How can I script this. I'm trying
_level0.fashion_mc.gotoAndPlay("play");
It's not working...
Thank you, Liz
Talk To Loaded Movie
ok... i'm having burnout brain problems... i know i have done this befor....
FlashMX
I'm loadingmovie(myVid,"vid/jimmy.swf")
I can get the loaded movie to talk to the _root by using target...
_root.gotoandPlay"framer11"
but how do i get the root to talk to the loaded movie in target myVid?
thanks in advance
Bobsmo
Talk To Main Movie From A Loaded Movie?
Does anyone know how to send an action from a Loaded Movie clip to the Main Movie Clip? I thought it would be something like this from the loaded from the loaded movie clip:
tellTarget ("_level0") {
_root.gotoAndPlay("next_object");
}
I've tried a few variatins of this and nothing seem to work. I'm actually not even sure it's possible? Is it?
Thanks
Frequent-C
Making A Flash Movie Talk To Me
Can anyone please help...
I would like to build an interactive ‘talking’ flash movie. What I mean is a small movie with a text field, where the user types away and ‘speaks’ to my flash movie and the flash movie responds with phrases and words...
It could be that I ask it a questions and the flash script looks at what I've typed and responds .//..//./.
it can be done but HOW?
heres an example at:
http://www.cactuslab.com
Talk To Loaded External Movie
is it possible for a loaded movie to talk to the movie that loaded it with action script?
and if so how. i've tried using "_root" to get to the root of the main movie but it just goes to the root of the loaded movie.
any ideas would be a big help
cheers
Fozzybear
Making Movie Clips To Talk To Each Other
Hello o' great gods and goddesses of Flash.
I have a movie clip buried within a couple other movie clips and I am unable to use this "child" mc to make things to happen on the main timeline or to have it affect anything "above" it. This would be a "local to global" issue maybe?
Specifically I'm trying to use the onRelease command in a child mc to make the parent movie clip jump to a specified frame as well as change its alpha value. I have limited knowledge and understanding of actionscript II (or even I, for that matter) so please be kind in your explanation.
As always, thanks for the help and for knowing so much.
Talk To Loaded Child Movie
I am running into a problem when trying to talk to a loaded swf.
I'm loading the external movie like this:
contentHolder_mc.addChild( loader );
loader.load( new URLRequest( file ) );
When the file is fully loaded Im firing off the method below. The problem im running into is that the child movie isn't recieving my command as if there was a scope or instance name problem.
This is what I have been trying:
contentHolder_mc.nextFrame();
contentHolder_mc.loader.nextFrame();
loader.nextFrame();
contentHolder_mc.loader[file].nextFrame();
etc., nothing seems to work out.
Does anybody know how to write this method correctly?
Thanks!
[CS3] How To Talk To Dynamically Loaded Movie
hi Guys ,
I have problem in getting variable from loaded movie
Here is the problem
I have two Map movie Movie1 , Movie2
btn.onRelease = function(){
mov= this.createEmptyMovieClip("movie",this.getNextHigh estDepth() );
mov.loadMovie("Movie2.swf");
}
//Now when Movie2 is loaded when i click on btn2 in Movie2 it should give someoutput
but it is nither sending any output nor it can getvalue nither to parent clip ie Movie1 nor to Output window
The code in Movie2 is
btn2.onRelease = function(){
trace("IDs");
}
//I am working on frame 1 only no other frame
Getting External Swf To Talk To The Main Movie
hello,
i'm having bad luck with the forum today! reposting:
i have a question regarding an external swf file talking to the main movie. essentially i want a button residing on an external swf to close the swf file and then send the main movie back to a previous point in it's timeline.
i'm sure i do not have this set up in the most effective way. however currently the button points to an empty frame in the external swf. rather than actually closing it appears to no longer be there.
my main movie is organized into scenes and lables. now that the external swf is not there i want the main movie to be pointed to a specific lable in one of it's scenes.
what code would i need to add to my external swf's button? i've been looking through my reference books but can't seem to find enough information to make it work properly.
as always your help is warmly appreciated!
*thank you*
Aeluv.
Using 'tell Target' How Can I Get A Loaded Movie To Talk To _level0?
I have a loaded movie on _level8 and I want it to be able to tell the movie in _level0 to go to a certain scene. How can this be accomplised because when ever i try using the tell target command in the movie that loads into _level8 to change scenes in _level0 it just restarts the _level0 movie at the begining scene?
Any help would be much appriciated.
Oliver Lillie
Making Duplicate Movie Clips Talk To Each Other
I have two sets of movie clips that have been created using duplicateMovieClip. One set is buttons and the other set is images. I want to turn the visiblity of the images on or off with the buttons. For some reason I am unable to get the buttons to talk to the images. I can make it talk to the original movie clip, but not the duplicates.
A couple things that might be helpful to know...On the button I have
on(release){
box = this._name;
path = _root.pocket.pocketImage+box;
path._visible = 1;
}
Thanks.
How Does A Loaded Swf Talk Back To The Main Movie?
Hi,
I'm new to as3 and have troubles finding the right path for swfs to "talk" to one another.
In my movie, I load an swf "news.swf" into a mc called container_mc.
At one point I want to swap the "news.swf" to "ueberuns.swf" via button click in my main movie, but not directly: "news.swf" has a frame labeled "out", which builds down some elements over appr. 20 frames. In the last frame of "news.swf", I want "news.swf" to either load the next "ueberuns.swf" into that same container_mc of my main movie or have my main movie find out that "news.swf" is through with it's last frame and then throw out "news.swf" and put "ueberuns.swf" in that container_mc.
I already found out that I address "news.swf" by the following code:
if (newsLaden.content != null) {
newsLaden.content.gotoAndPlay("out");
}
where newsLaden is the Loaders name. But how do I get "news.swf" to reply?
Anyone can help? Thanks a lot!
Cheers, Karl
Attach Code
if (newsLaden.content != null) {
newsLaden.content.gotoAndPlay("out");
}
Making Multiple Flash Movie Clips Talk
Hey everyone!
Here is what i need to do...
On my site, i have 3 different Flash Files. Each playing a different part .eg text, content, menu. (because of the design, i can't have just 1 file, plus i want 3 seperate ones~!!!)
Now what i want to try and do, is have the MENU(swf1) target a scene or frame in the CONTENT flash file(swf2)
So that when you click on about us button, it will target (eg.) frame 3 of SWF2, which contains that information!!
ANd also have the MENU(SWF1) be able to also target frames in TEXT(SWF3)
Bassically im guesisng its passing variables to and from multiple movie clips!
i have no where to start.
Has anyone done anthing similar?
or has a FLA i can look at?
or can post some code!!!
Thanks agian KIRUPA!!!
Making Multiple Flash Movie Clips Talk
Hey everyone!
Here is what i need to do...
On my site, i have 3 different Flash Files. Each playing a different part .eg text, content, menu. (because of the design, i can't have just 1 file, plus i want 3 seperate ones~!!!)
Now what i want to try and do, is have the MENU(swf1) target a scene or frame in the CONTENT flash file(swf2)
So that when you click on about us button, it will target (eg.) frame 3 of SWF2, which contains that information!!
ANd also have the MENU(SWF1) be able to also target frames in TEXT(SWF3)
Bassically im guesisng its passing variables to and from multiple movie clips!
i have no where to start.
Has anyone done anthing similar?
or has a FLA i can look at?
or can post some code!!!
Thanks agian KIRUPA!!!
Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.
I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.
If I put the code inside movieclip01
button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}
It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.
I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works
Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)
movieclip01.button01.onRelease=function(){
|