ActionScript 3.0 :: Control Main.swf Through Loaded.swf?

Jun 7, 2009

I'm trying to control my main.swf through a loaded .swf.

My goals are. 1. load the external swf into main.swf and have a movieclip in the external swf play. (the movie clip in the external swf should play without any code, however, when the external swf loads, the movie clip goes to the last frame of itself for some reason)

2. I have an "X" button on the loaded.swf itself that should dismiss the loaded swf and cause my navigation on my main.swf to reappear.

Here is my loader code in main.swf:

Code:
var _urlx:Loader = new Loader();
_urlx.load(new URLRequest("loadBlank.swf"));
var _url1:Loader = new Loader();

[Code]....

As of now, my navigation in main.swf does reappear when the "X" in the loaded.swf is clicked, but I need a way to unload the currently loaded swf when the "X" button is clicked..

I've tried remove child, checking to see if the loaded child is not null, but that didn't work either...

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Control Main Timeline From Loaded Swf

Aug 24, 2010

I'm using a textfield for debug information.I'm loading an swf on the main timeline and I'm showing the status in the debug textfield.[code]I'm loading a png file in the loaded swf. , I'm trying to show the status of the png file as I showed the status of the swf.[code]I can't control the main swf from inside the loaded swf. Even gotoAndStop or calling a function doesn't work.Do I need to add something when I load the swf, saying it's a MovieClip or something?URL...

View 3 Replies

ActionScript 2.0 :: Control Main Swf File From Loaded Swf?

Jun 26, 2005

In my main swf, I m loading 1 swf file which is having 1 mc and in that there is 1 btn.

what i want is when a user will click this btn of my loaded swf i want to move to another scene of my main swf.

How can i do it? I tried to search the ans in forum bt could not trace out.

View 6 Replies

ActionScript 3.0 :: Control Main Timeline From Loaded Swf?

Nov 2, 2010

i have a simple swf called site.swf that loads a menu with UILoader called menu.swf, from menu i'm able to navigateToURL but i also need that it goes to frame 50 in menu.swf..

View 2 Replies

ActionScript 2.0 :: Control Button Swf Loaded Into Main Swf

Nov 10, 2002

Im am loading a movie into the main swf.The man question is how do i control button swf loaded into the main swf.how can it goto play the next frame on a load movie

View 5 Replies

ActionScript 3.0 :: Control The Property Of An Object In Main Stage From A Loaded Swf Timeline

Oct 11, 2010

i have a UILoader that loads an image from an xml list when you click its thumbnail ( in its thumbnails mc on mainstage aswell) thing is, i have another UILoader on the layer above that loads in a swf ( a slideshow that fades in and out the pictures when they change to the next, with all the coding on frame 1, frame 2 only has a stop and some code for when the mouse is idle for 5 secs it goes back to frame 1) so when you go to "portraits" it takes you to frame "x" where the slideshow ( loaded external swf ) starts playing automaticly right, if i click any thumbnail the slideshow goes to frame 2 ( wich is perfect and the mouse idle thing i wanted works great ) the ONLY THING IS

after the slideshow runs by default for the first time ( i enter the category portraits ) and i click any thumbnail ( moving slideshow swf to frame 2 enabling mouse idle event ) and the mouse is idle ( so it does the event and starts playing the slideshow again ( goes back to frame 1 ) ) I CANT MAKE THE UILOADER OF THE THUMBS IMAGE TO DISSAPPEAR!

View 5 Replies

Professional :: Control Swf From Main Timeline?

Jul 13, 2006

i know i've done this before! i have a swf. 4 labels. a stopat frame 1. i embedd this into my main timeline. i have 4 butons inan MC in my main project, going to specific labels in my maintimeline, where i have the following code, attempting to load theswf and jump to that label:

this.container_shell.loadMovie("interact01.swf");
interact_shellb.gotoAndStop("label1");

its not working. the swf loads, but i can't jump to thelabel

View 5 Replies

ActionScript 3.0 :: Control Main Swf Through External Swf?

May 9, 2010

ive figured out timeline transitions, and timeline based preloaders......so now i have a problem.....i have my MAIN swf file that i load all my pages in externally ( external swf files )....when i click a button ( for example ) my "about us" button - the transition begins....i have a keyframe with the following code on frame 40 ( inside a movie clip named "pages" in my main SWF where all the buttons/transitions are ):

var Xpos:Number=0;
var Ypos:Number=0;
var swf:MovieClip;

[code].....

View 9 Replies

Actionscript 3.0 :: Control Main Swf From External?

Apr 26, 2010

I will try to explain this as easily as i can.

I have a holder swf called holder.swf

Within this i am loading in external swf files. Each externally loaded swf is put into each frame of the loader page.

I have created a string to navigate through the timeline when either next_btn or prev_btn is pressed.

The probelm im having is that in one swf file there are two buttons which determin which way the story goes (eg. with pressing yes_btn goes to section2 with no_btn go to section2a)

How do i communicate from this externally loaded swf to affect the main timeline of my holder swf.

View 3 Replies

Variables Within Movieclips That Control Main Timeline?

Aug 26, 2009

I built my website on the main timeline with a fade in animation...stop(on the page) and a fade out animation. At the end of this fade out animation i would like it to call upon a variable to know what page to go to next.I am trying to tell my main timeline to gotoAndPlay a frame based off of a variable within a movieclip(about_mc this movieclip contains another movieclip which acts like a button(factsheet_mc)) that i have set in my main timeline.I set the variable with:

var buttonFrame; in the first frame of the main timeline

then within my movieclip i have another movieclip which tells my main timeline to play the out fade and remember a variable:

this.onRelease = function(){ --------"this" meaning the movieclip factsheet_mc------------ [code]........

View 1 Replies

ActionScript 2.0 :: Control Mc By Main Timeline Position?

Oct 2, 2009

I have a mc with thumbnail images ('thumbs_mc'). Within 'thumbs_mc,' I have mc instances that change alpha on rollon and rollout. When clicked, these mc instances also control the main timeline. That's all good and working fine.Now, however, I want something over each thumbnail to indicate which of them is currently active. (I thought about using the same mc for both the mouseover and current marker, but it's problematic since rolling off the mc sets the alpha to 0, destroying the current marker.)

So I figured that I could use another mc (one instance is 'mark_red_btn') and just control its visibility, based upon the where the playhead is in the main timeline.This is what I have in the first frame of the mc that contains the thumbs the mouseovers and the current markers:

mark_red_btn._visible=false;
if (_root._currentframe == "red") {
mark_red_btn._visible = true;
};

Unfortunately, it is not working. The mc 'mark_red_btn' stays invisible even when the main timeline is on the frame labeled 'red.'

View 9 Replies

Movie Clip Control Main Timeline?

Dec 22, 2009

I am simply trying to tell my main timeline to go to the next frame when a movie clip reaches the end of its timeline (using AS3). Here is what I have which does not work.

Code:
MovieClip(root).gotoAndPlay(nextFrame);

View 2 Replies

ActionScript 3.0 :: Control Main Stage From MC Menu?

May 3, 2010

I want to have a hidden menu so I have put some buttons in a MC and added it to the main stage but I am having trouble controlling the stage with the buttons in the movie clip. I think I need to reference the main stage some how... parent or something like that but I'm not really sure and don't know where to put the code.

Code:
stop();
import flash.events.MouseEvent;

[code]....

View 2 Replies

CS5 :: Float Window To Control Main Timeline In It?

Jul 29, 2011

I'm an ActionScript noob so I'll try as best I can to explain what I need to do. I have a project where I need to have a floating window that controls a main timeline. The idea is to have a floating window that can be seen only by the operator. This window would control the main timeline or content on a separate screen viewable to the audience. So I'll be using a dual monitor setup. The controller window would have about 40 buttons on it that would turn items on or off on the main timeline. This seems like a relatively simple thing to do but being the noob that I am I'm not sure how to go about it. I essentially need one flash file, the controller, to talk to the other one, the content.

View 3 Replies

ActionScript 2.0 :: Nested MC Control Main Timeline MC?

Dec 1, 2011

actionScript 2.0
flash mx4 pro

here is a description of the flash movie.I have a map of the world on the main timeline that is a movie. The map is compiled of buttons that navigate the main timeline to named frames. -Ex. If you click Africa from the world map you are taken to the �Africa� named frame on the main timeline. This works perfectly.At the Africa named frame on the main timeline I have replaced the world map with a large map of just Africa. This large Africa map is a movieclip instance that has script on it to be draggable. This works perfectly.

The Africa map contains little movieclips that blink. I would like the little blinking movieclips to control the alpha of a movieclip (when rolled over/off) that is on the main stage and timeline.

View 4 Replies

ActionScript 3.0 :: Slider To Control Main Timeline?

Sep 9, 2009

What code would I need to take the Slider Component and have it control the Main timeline? I have created a presentation with audio embedded and images coming up and moving as the person is talking about it. I need a way to scrub back and forth down the timeline.

View 28 Replies

ActionScript 3.0 :: Access A Control In The Main Timeline?

Nov 18, 2009

I need to access variable that lies on the main timeline first frame from a action script inside a movieclip that is inside a movieclip.

View 2 Replies

Professional :: Loadmovie - Button In That SWF Control Main?

Aug 17, 2011

I have a main SWF that is comprised of scenes. I have buttons that go between those scenes at the bottom (prevscene, nextscene). This works well. On the last scene, I have it loadmovienum and it loads an SWF that has a few scenes in it. It also has the buttons to go between those scenes, which works well.My issue is the first scene of that SWF that is loaded in the main SWF needs to have a button that will send the main SWF to the previous scene in it. Of, conversely, I need the buttons in the main SWF to tell the loaded SWF to go nextscene/prevscene.

View 3 Replies

ActionScript 2.0 :: External Swf To Control Main Timeline?

Feb 9, 2009

I apologise because I know this has been covered but none of the code I've found seems to have sorted my problem.On my main timeline (_level0 right?) I have the following code:

var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("container2",2);
container2._x=28

[code]......

View 9 Replies

ActionScript 3.0 :: Control Main Timeline Using Localconnect

Jul 15, 2011

I need to control the main timeline in one swf with several external swfs on enterframe..In other words.I have several html pages with one common header witch contains a swf.. I want to control the timeline of this file (just pointing to a specific frame ) with help of external swf files that tells the main movie where to go when the page loads. eg html_1 to frame1.. html_2 to frame2..

View 8 Replies

ActionScript 2.0 :: Button Control Over Main / Sub Timeline

Jul 1, 2004

I have 2 scene, using button to swap in between file. If the button is in maintime line i can swap in between but my button is inside a movieclip in scene_1. After I click it reload the scene_1 and my script on button is:
on (release) {
nextScene();
}
Is it using
_root or
this.(dot)
.

View 6 Replies

ActionScript 2.0 :: Control External Swf From Main Timeline?

Oct 26, 2005

I have a external SWF loading into a target on my main swf. Is there a way to control the timeline from the loaded movie from the main timeline. So , control B timeline from A. I've tried mcholder.gotoAndPlay (2); but it won't work. Also, how can I get the mumbers of frames from the external swf into the main timeline. Will a global variable work?

View 1 Replies

ActionScript 3.0 :: Control The Main Timeline From Within A Movieclip?

May 20, 2009

How can I access the main timeline from inside a MovieClip. In short words I would like to be able to move the main timeline from a MovieClip, for instance if I have a MovieClip called myMc and I want the main timeline to gotoAndStop in frame (3) when myMc is done paying.

View 2 Replies

ActionScript 2.0 :: Button Control Over Main/sub Timeline?

Jul 1, 2004

i hav 2 scene, using button to swap in between file.if the button is in maintime line i can swap in betweenbut my button is inside a movieclip in scene_1. After i click it reload the scene_1,and my script on button is

on (release) {
nextScene();
}

[code].....

View 5 Replies

Control MovieClip Inside Button From Main Timeline

Aug 13, 2011

I have a movieclip inside the OVER on a button, right now I have an animation that causes the button's brightness increases from 0 to 10 over 24 frames and then come stops because of a stop (). I now intend to add an animation after stop () which gets the button's brightness goes back to 0 again when you no longer hold the mouse over the button. I would therefore like to make some kind of mouseOut event that allows Movieclip go to the next frame. I have tried to insert a target path but it seems that it can't reach the movie clip inside the button.

View 1 Replies

ActionScript 3.0 :: Control Main Timeline With Class File?

Jan 13, 2009

I have a menu btn that is created via an external class. I want to move the main timeline of my flash file to a frame label but I'm having a hard time referencing the main timeline via my external class code.

How do I control the timeline via this external class.

View 3 Replies

As2 :: Control Mc Button Based On Main Timeline Position?

Oct 2, 2009

I have a thumbs_mc with thumbnail images. Within thumbs_mc, I have a transparent overlay_mc that functions as a button. Mouse over the overlay_mc and the alpha chages so there is a tint over that particular thumbnailWhen overlay_mc is clicked, the main timeline goes to a particular frame label.What I need to do is have the position of the playhead on the main timeline also determine the alpha of the overlay_mc so the viewer knows which thumbnail is playing.

View 1 Replies

ActionScript 3.0 :: Using A Mc To Control The Main Timeline With Multiple Scenes?

Jul 19, 2010

I have a main timeline that has 27 different scenes. I have a movie clip that is an "on call" navigation menu for the main timeline. I can call the menu once, and it will go to the first place I want it to go. However, I cannot seem to figure out how to get it to go away to be able to call it again. I get the "must be child of caller" error. how to get rid of it each time I use it?

View 2 Replies

ActionScript 3.0 :: Button On Main Timeline Control Movieclip?

Oct 16, 2010

I have a stop on my main timeline. At the stop I have a movieclip play. In the movieclip I will have a video play. After the video plays I have a button for the user to continue play until the end of the movieclip. Once the movieclip is done I want to resume back to a specific frame in my main timeline.

View 3 Replies

ActionScript 2.0 :: Three Main Keyframes - How To Control Loop Function

Jan 4, 2009

I have a flash piece with 3 main keyframes/story ("story1", "story2" & "story 3") that cycles (and loops) from story to story, and 3 buttons that stop the cycle and take you to one of the stories

So on my first frame I have:
_root.mainMC.playing = "true";
function playOn(frame) {
/gotoAndPlay(frame);
}

Then on each keyframe I have:
stop();
setTimeout(this,'playOn',2000,"whatever the next frame is")

Then on button I have:
on (press) {
_root.mainMC.playing = "false";
gotoAndStop("story3");
}

I think somehow I have to have the button clear the function because for example, if I am viewing story 1 during the cycle and click 3, it goes to 3 and then quickly goes back to 2 and then stops on 3.

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved