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


Similar Posts:


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

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 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

ActionScript 2.0 :: Add One To The File That Is Loaded Into The Main Movie Main Movie That Is Loading The File?

Aug 3, 2003

using the command:

loadMovie(_root.section, _root.content);how would i work in a preloader bar?? add one to the file that is loaded into the main movie or on my main movie that is loading the file?

View 1 Replies

ActionScript 2.0 :: Control One Loaded SWF File From Another Loaded SWF File

Feb 7, 2005

Is it possible to control one loaded SWF File eg.(MOVIE-1.swf) from another loaded SWF file eg.(MOVIE-0.swf) on a different level? eg. with a syntax like:

onRelease
_MOVIE-1.SWF.gotoAndStop (4)
or:
onRelease
gotoAndStop (MOVIE-1.swf, frame4)

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

ActionScript 3.0 :: Control A Movie Clip From The Main Fla File?

Aug 12, 2011

I am trying to control a movie clip from the main fla file.

Explaining below:--

I have a main file with menu/navigation.
In another swf file which is loading on the main fla file.

In the another swf file I have a moviclip for example sq1. and I have write the code:--

test2.sq1.visible=false; which is by default value.

when this load in main fla file on the click of a btn I want to visible sq1 I write the code like this way:--

MovieClip(this.parent.parent).test2.sq1.visible=tr ue;

the swf is loading in holder moviclip.

But when I clik on btn the swf is loading but the movieclip is not visible.

View 2 Replies

ActionScript 3.0 :: Control A Movie Clip From Main Fla File

Aug 11, 2011

I am trying to control a movie clip from the main fla file.I have a main file with menu/navigation. In another swf file which is loading on the main fla file.In the another swf file I have a moviclip for example sq1. and I have write the code: test2.sq1.visible=false;when this load in main fla file on the click of a btn I want to visible on I write the code like this way:-MovieClip(this.parent.parent).test2.sq1.visible=tr ue;the swf is loading in holder moviclip.But when I clik on btn the swf is loading but the movieclip is not visible.

View 2 Replies

Actionscript 3 :: Delay In Flash Main File When Go To Test The Preloading Bar With Double Control Enter

Dec 28, 2010

I would like to if someone to know why i have so big delay in my flash main file when I go to test the preloading bar with duble control enter... I have enable the status report file in flash wich say to me was I load a class (AS 3.0 Classes Export Frame) but i dont link any class in my file..

View 1 Replies

ActionScript 3.0 ::loaded A Swf Into Main Swf File

Nov 17, 2009

i want to loaded a swf into my main swf file. How do I place it on the main timeline in the main swf. To be exact I have a frame label called about. Where i want the swf to be.[code]

View 7 Replies

Javascript :: Control Loaded Flash File Using Php

Nov 17, 2009

is there a way to write a program in php or javascript that can load a flash file and interact with it? (click on buttons and such)

View 4 Replies

ActionScript 3.0 :: Enable Outside File When Loaded Via Main SWF?

Jul 21, 2009

If I have a main.swf which loads, for example, outside.swf, is there a way to make outside.swf useless if run on its own, but working when loaded via main.swf? The purpose would be preventing people from running parts of a presentation on a CD, forcing them to use only the main.exe projector file. I tried making a Boolean variable called "allowed" in outside.swf telling the movie not to play if it's set to false, and then tried changing this property from main.swf after loading it by calling loader.content, but it didn't work.

I did this:
ActionScript Code:
button1.addEventListener(MouseEvent.CLICK, loadaj);
function loadaj(e:MouseEvent):void {
var MVloader:Loader = new Loader();
var req:URLRequest = new URLRequest("outside.swf");
MVloader.load(req);
attacher.addChild(MVloader);
MVloader.content.allowed = true;
}

View 3 Replies

ActionScript 2.0 :: Text Disappear When It's Loaded As An External Swf Into The Main File?

Nov 30, 2003

I am using the transition preloader on url]... to load in external swfs (http:url...). I have Spark's calendar component on one of the external swfs. All text appears fine when testing the calendar page itself but the text seems to disappear when it's loaded as an external swf into the main file. Is this a path issue?

View 3 Replies

Professional :: Multiple Fla Projects - When Loading Main Swf File 3 Other Swf Files Are Also Loaded

May 31, 2011

I am new flash developer, and inherited a project which has 4 fla project files. When it runs inside a browser, it appears "window" which occupies whole browser. This project is write in Flash CS3. I have few questions:

1). When loading main swf file, 3 other swf files are also loaded. These swf files are communicating with each other through message. When debug the mail swf with CS3, I can set breakpoint and the program can stop only at limited AS files. My questions is how to debug other AS files in other swf file?

2) I used CS5. It seems that I can stop at more AS files, which does not belong to main swf file. Why?

My questions is should I use CS5, which might makes debugging easier? Is it right direction to go to debug multiple swf? (For CS5, I need to fix some code in order to make the program fully working as CS3)

3) What's best tool to use for such project since CS3 is very old. Should I use Flash builder, Flex. Amethyst?

View 1 Replies

ActionScript 3.0 :: External Loaded Swf Completes Playing Should Jump To Main File Specific Frame

Nov 28, 2009

when a external swf file gets loaded into main swf file, i need to detect while playing external file reach to end so that i can unload that file and move to another frame on root of main file. I am not getting how to identify external swf play reach to end so that i can unload swf and jump to root specific frame of main swf.

View 1 Replies

ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?

Jan 17, 2012

I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).

It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?

View 2 Replies

ActionScript 2.0 :: Load Main Swf File (main.swf) On Top Of Background

Sep 24, 2004

I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.

View 2 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







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