ActionScript 2.0 :: External SWF - Controlling Main Timeline

Mar 21, 2009

I'm having a bit of time getting this to work.
Setup like this: Main mov:
Nav1 is clicked and loads in external swf. In the swf that was just loaded there is button to call another external swf on the main movie's timeline. I'm trying make a "lightbox" effect. Where you click on the external swf and the screen darkens and a swf is loaded on top of it. Above the loaded swf. Of course on a new layer.

PHP Code:
This is handling the swfs that get loaded in
EXTERNAL SWF LOADER
_root.page_mc.preloader_mc._visible = false;
_root.page_mc.preloaderText_txt._visible = false;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
[Code] .....

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Controlling 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 1 Replies

ActionScript 2.0 :: Controlling Movieclip From The Main Timeline?

Jun 26, 2008

this ex. .fla controls the mc from itself but i would like to control it from the main timeline, ive tried a number of things but cant seam to get it to workthe .fla is here.and the code is here if you dont dl the .fla:

Code:
onClipEvent (load)
{

[code]........

View 5 Replies

ActionScript 2.0 :: Controlling Main Timeline From Dynamic .swf?

Aug 12, 2008

I have a main.swf which plays, then stops, loads a dynamic .swf... And what I want is, from either the dynamic .swf or the main one, when the dynamic .swf is finished, the main .swf will continue/play.

View 1 Replies

ActionScript 3.0 :: Controlling Main Timeline From Loaded Swf?

Feb 22, 2011

So basically I have two swfs, main.swf and level.swf.. main.swf simply has two frames, first one has the code below to load level.swf and the second frame has some text in it, it's labelled "theend".

Code:
var request:URLRequest = new URLRequest("level.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);

level.swf is more complicated, it's a little game and blah blah, but the thing is that I have a button (cnt_btn) in the last frame. I'd like this button to go to the second frame ("theend") of the main timeline.

View 2 Replies

ActionScript 3.0 :: Controlling Main Timeline In A Movie Clip?

Nov 5, 2010

How would one on a specific frame inside a movie clip cause the main timeline to go to a certain frame label?

I know how to use gotoandstop(), but i can't seem to find a working, correct syntax variable that accesses the main timeline and not the movie clip's timeline.

View 3 Replies

Movie Clip Button Controlling Main Timeline?

Jan 4, 2012

I'm in the process of designing this site as a portfolio for my art and am in the process of creating and laying out the galleries. My idea was to create movie clip animated buttons that would react to the roll over stuff. I got that part to work the way I wanted it. But now, I can't seem to figure out how to put a "Gotoandplay" type of code on the buttons so that the timeline would jump to the appropriate frame and play. (I put an "on(release) gotoandplay" on it the way I would put it on a button but it never responds. I have a couple of buttons that work fine with a "geturl". so I thought a "gotoandplay" would work fine. If this can be figured out in a way that I can easily use it for all buttons with just the frame number needing alteration, that would be best. After you click the splashpage door jpg, there will be a piece of paper on the floor. That is a button which should trigger the animation that starts at frame 114. When clicked, the page lifts up and spread open to two pages. But it never reacts

[URL]

View 6 Replies

ActionScript 3.0 :: Controlling Movieclip From Main Timeline & Child?

Sep 26, 2010

This code is currently contained within my "mc_1" movieclip. I want to be able to have this code on my main timeline, however no matter what I try I constantly get errors, multiple different versions. I've tried adding mc_1 infront of everything, but that just gives an output error about a Sprite.Also, I'm currently using visible to control whether the back image to the textbox should show - What I'd really like to do is control it using a child, but they're movieclips not buttons, so when I try to addChild within the function it errors saying I'm trying to control a movieclip within a simplebutton function.

import flash.events.MouseEvent;
stop();
mc_textbox.visible = false;

[code].....

View 12 Replies

ActionScript 3.0 :: Controlling Main Timeline With Nested Button

Jul 12, 2010

i've made a drop down menu that works fine as it goes for dropping down when moused over the button which triggers is menu. but when im trying to add functionality which is triggered by the nested buttons that drop down i cant control the frame position of the main timeline does anyone know how i can do this.

View 1 Replies

Actionscript 3.0 :: Controlling Main Timeline From A Loaded MovieClip?

Mar 17, 2009

I am building a website in as3. As of now this is what I have. My main file has a button on it and builds a movieclip to hold loaded movieclips.

The file runs and loads about.swf into the main file. When the button is pressed it tells about.swf to play the exit animation.

All of that is working. What I want to happen now is once the exit animation finishes I want the about.swf file to tell the main timeline to load a new movie.

I can control loaded movieclips from the main timeline I just do not know how to control the main timeline from loaded movieclips.

View 5 Replies

ActionScript 2.0 :: Buttons In Movie Clips Controlling Main Timeline?

Aug 5, 2004

Ive been having problems getting buttons within a movie clip to control the main timeline and switch scenes. Ive tried everything from _root.gotoAndPlay to with(_parent) and such.

View 1 Replies

ActionScript 2.0 :: Controlling Multiple Movie Clips With 1 Set Of Code On The Main Timeline?

Jul 19, 2011

So I have been trying to figure out a way to control multiple clips using the same "on press" & "on release" statements located on 1st frame of main timeline. A variable is being set to a value that correlates to the name of each movie clip as an interaction occurs.Ex: user clicks from a selection of buttons & depending on the button clicked it sets clipNum = "1" through "21".What I want is to have something like the following code that will give the user the ability to click and drag the clip with code on the main timeline similar to the following:

_root["drag_" + clipNum].onPress = function () {
startDrag (_root["drag_" + clipNum]);
};

[code].....

View 2 Replies

Professional :: Button Inside A Movie Clip Controlling Main Timeline?

Mar 10, 2010

I have a movie clip on the main stage- inside that movie clip is a button- I want that button to contol a function on the main timeline-

example: Button Script

closeAll_btn.addEventListener(MouseEvent.MOUSE_DOWN, goCloseAll);
 
function goCloseAll(e:MouseEvent):void {
****don't know what to put here to activate "closeAllOpenMovieClips" function on main stage****
}
 
example: Main Stage Timeline Script
 
function closeAllOpenMovieClips():void {  trek_mc.gotoAndStop(1); lost_arts_mc.gotoAndStop(1);  rain_mc.gotoAndStop(1);  vintage_mc.gotoAndStop(1);}

***don't know if I need more script on Main Stage Timeline that just "function" ***

View 5 Replies

ActionScript 3.0 :: Controlling Main Swf With External Swf?

Aug 27, 2009

My main flash file is setup with a scroll pane component. The scroll pane is loading an external swf. This external swf has a button that when pressed I want to load another external swf into the scroll pane in the main flash file. How do I make the button functional? Is it using sprites? If so, could someone direct me to a tutorial?

View 1 Replies

ActionScript 3.0 :: External Swf (as A Subpage) Controlling The Main Swf

Nov 25, 2009

At the moment I am working on a flash website. There is a main swf with the menu, which loads external swfs as subpages. These external swfs contain some html text. Now I want to have a link inside this html text to another subpage.

[Code]....

But this doesn´t work. It seems "page_2" or "page_3" gets never dispatched.

View 5 Replies

ActionScript 2.0 :: Controlling Main Movie From External Swf

Nov 5, 2008

I have two files main.swf and external.swf i have use the following script on main.swf to do animation

import mx.transitions.Tween;
import mx.transitions.easing.*;
[Code]....

which work perfectly fine. Now due some reason i had to place the navigation bar in the external movie clip , in external.swf Using the same script how can i control the textBox animation which is on the main.swf??

View 1 Replies

ActionScript 3.0 :: Controlling Timeline Of External Swf?

Jun 3, 2010

Just wondering how to control the timeline of an external swf loaded into the root of your main timeline, from within nested movieclips on your main timeline?I can successfully control it once it's loaded from within the function that assigns the external swf a MovieClip var, but I want to control it from deeper in my main swf.1. I've loaded an external swf into the root of my main swf.2. After loading, I assign the external swf a MovieClip var, and then set up a button to control the timeline of the external swf:
 
function dataOnLoad(evt:Event): void {
var myClip:MovieClip = evt.target.content;
function updateSwf(evt:MouseEvent): void{

[code].....

View 6 Replies

ActionScript 3.0 :: Flash - Controlling External Swf Timeline?

Jan 7, 2011

I've having huge problems trying to control a internal SWF from my main movie.Here is how it works,main movie (loads swf1 and swf2)I need to make the button on SWF control de swf2 timeline.

View 2 Replies

Actionscript 3 :: Controlling External Swf(Scenes, Frame) Inside Main Swf?

Jan 8, 2011

Am gonna create an encyclopedia program, consist many of Chapter. I have difficulties about controlling external swf inside my Main swf. This is my Main.as in Actionscript 3

public class utama extends MovieClip {
var loader:Loader;
var urlReq:URLRequest;[code]........

Am using eksternal page as a Chapter, and A Chapter consist of many Pages (it using Scene)
For an example :

Chapter 1 --> Page 1 it will be represented as hal1.swf-->Scene 1
Chapter 1 --> Page 2 it will be represented as hal1.swf-->Scene 2

Now, How to control it, I still didn't get it ??

View 1 Replies

ActionScript 3.0 :: Edit Main Timeline From An External Swf?

Mar 2, 2009

I have been going crazy all weekend trying to figure this out. All I want to do is communicate with the main timeline from a loaded external swf. So, I have loaded a external swf called "test.swf" from the main swf called "basetest.swf"So, on basetest.swf I have this code, simply loading test.swf:

var request2:URLRequest = new URLRequest("test.swf");
var loader:Loader = new Loader()
loader.load(request2);

[code].....

View 4 Replies

ActionScript 3.0 :: Accessing Main Timeline From An External .swf

Apr 29, 2010

I'm definitely more designer than flash developer (as most of you might know. At least those that hang in the lounge or Arena). I need to know how to allow a loaded .swf file to control the main timeline in AS3.

I have a container .swf that includes global controls (jump menu/volume control) and branding. Loading a swf for the dialogue boxes (timeline animated ... although I realize there may be better ways to handle it). Another swf for a simcity-ish illustration that has animated elements with various states. I need all to be able to communicate with each other. I was able to load the movies no problem. Even communicate with the loaded ones from the main timeline. Just need to be able to go the other way.

View 2 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 :: Linking External SWF To Main Timeline?

Feb 27, 2012

keyframe one - dialogue / conversation with characters ( then a button is triggered to call an external swf [placed at keyframe two] )keyframe two - the external swf game. i want to put a button that makes you go back to the main timeline once you're done with the game and proceed to keyframe three (that's the problem. i dont know how to declare and make that button work)keyframe three - dialogue / conversation again .

keyframeone [main timeline]

Code:
...
memory_t.addEventListener(MouseEvent.CLICK, recalltraining)
function recalltraining(e:MouseEvent):void{
gotoAndStop(2)

[code]....

View 0 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 2.0 :: Reference Main Timeline From External Swf

Dec 13, 2006

im trying to tell my main movie to goto a certain movieclip in the timeline from my loaded external swf heres the code Im working with,[code]I can tell the script is executing because the external movieclip unloads itself but the main movie does nothing.

View 1 Replies

ActionScript 3.0 :: Access Main Timeline From External Swf?

Jul 16, 2007

my main application is a sprite heres my code:

package {
import flash.display.Sprite;
import flash.display.Loader;
import flash.events.Event;

[code]...

when my main app is a MovieClip (extends MovieClip) is working.but my main app is a sprite i take this message cannot convert ROOT@16b26df1 to flash.display.MovieClip.can i change this line

MovieClip(this.parent.parent).traceMe();

to something like this Sprite(this.parent.parent).traceMe();

View 13 Replies

ActionScript 2.0 :: Call Main Swf From External Swf's Timeline?

Apr 17, 2008

I've got a movie with a few buttons in it. When you click on one of the buttons an external swf opens. At the same time a large, quare, white movieclip opens at the back of the external swf (the white mc is in the main movie). Okay, so for so good.
In the external swf there is a close button. When you click the button, the external swf goes to frame 14 to show a short closing animation. The last frame contains the following code:

TweenLite.to(_level0.contentback_mc,1,{_alpha:0});
this.unloadMovie();

The first line is to make shure the large white mc becomes transparent again. The second line is - ofcourse - to unload the external swf.

The problem is that the first line doens't work. When I trace the first line from the main movie, the output contains '_level0.contentback_mc;

Oh, and the external swf is loaded in an actionscript generation container (contentback_mc).

View 1 Replies

ActionScript 3.0 :: CS4 - Communication Between Loaded External Swf And Main Timeline?

Feb 4, 2010

I'm having issues with an animation and need to get it functioning properly. I've posted two example/demo files to illustrate desired functionality.The main timeline (testMain.swf) consists of a loader, section/slide one content, and a button (bttnClick) set to load an external swf (external.swf).

external.swf contains two additional sections/slides and two 'next' buttons (bttnEnter with 'bNextOne' & 'bNextTwo' instance names) to navigate. When the second 'next' button (bNextTwo) is clicked I need the loaded external swf to fade out revealing the original main timeline (testMain.swf) and returning/stopping playhead at the 'slideOne' frame label. Does the external swf need to be unloaded even though users will most likely go back to it? What�s the best way to handle this?

If you could assist with the external swf fadeout to main timeline, the return to 'slideOne' frame label, and insight as far as the best way to return to the external swf.

View 2 Replies

ActionScript 3.0 :: External Swf Button To Move Main Timeline?

Jan 20, 2011

i made a main(parent) page that loads an swf which has a button(a1) which on click i need it to move the timeline of the parent
 
i wrote this code to the external swf and tryed many commands such as Object(root).gotoAndStop(1);
 
a1.buttonMode = true;
a1.addEventListener (MouseEvent.MOUSE_UP,a1a);
function a1a(event:MouseEvent):void { 
}

View 3 Replies

ActionScript 3.0 :: How To Preload External SWF File Into Main Timeline

Mar 19, 2009

In trying to keep file size down for download time... I have a SWF file that I have placed using the "UILoader" component (not sure if this is the correct thing to do)... what I would like to work out is how to make a preloader within my main timeline for this SWF file when it comes in. I hope that makes sense - I am very new to all this and struggling with terminology etc. I figured Actionscript would be what I need - but no clue right now...

View 10 Replies







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