ActionScript 3.0 :: External Movies Communication (Array / Functions And Variables)

Jun 23, 2009

I'm new on AS3, I'll try to explain what my project consists: Well, There is a main.fla and It loads external movies triggered by button items. The content animation sequence introduction starts with tweenLite and fills the stage with elements from Library (movieClips, buttons) and some sprites. I've built the intro animation through actionscript. Perhaps I'll need to explain how I did it the TweenLite structure, but the code lines are too long

The transitions / navigation:
Each button before load the external movie has a respective animation that removes the other buttons from the stage. It triggers an "outro" animation and then loads the External Swf.

First:
Each external Swfs contains a removeChild action in a MovieClip that CLOSES and removes the movie.. Like a "pop up" with a close action. After closed It should replay the intro animation and replace the buttons in the stage but it's not happening because I don't know how to communicate between different timelines / external movies.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Access Functions On External Movies?

Jun 23, 2009

I have a doubt about access functions between an MAIN fla and his external Movie.

All I need is to return a variable to the MAIN.fla function as TRUE.[code]...

View 0 Replies

ActionScript 2.0 :: Use Variables (on The Buttons) To Control External Movies?

Oct 14, 2002

I have a movie which is made up:

Level0= my interface layout with buttons

Level1= the different sections of the site, are loaded into this level (eg. home.swf, aboutus.swf etc.)

Because each of these sections has both an 'in' and 'out' transition, i want to use variables (on the buttons) to control these external movies that are loaded into the main movie (im even starting to confuse myself

basically in a nutshell... can you use buttons which control a movie ,which has been loaded at another layer, using variables....

View 1 Replies

Actionscript 3.0 :: Access External Functions And Variables?

Aug 26, 2009

All I need is to acess the External Movies functions, variables and the External MAIN TIMELINE to control the loaded content.

How do I do that?

I've traced the content just to give a better idea about my Structure[code]...

View 4 Replies

ActionScript 2.0 :: MX Communication Between Movies?

Jan 14, 2003

I've got an html page with 2 different movies: 'movie1.swf' and 'movie2.swf'. Is there a way that 'movie1.swf' can play to a certain frame and when it reaches that frame, can tell 'movie2.swf' to start playing? The thing is they are 2 separate swfs rather than 2 movie clips within the same swf.

View 3 Replies

ActionScript 3.0 :: Communication Between SWF Movies On Different Browsers?

Feb 17, 2009

I was wondering if it is possible for two instances of the same SWF movie (for simplicity) running on different browser windows (or tabs, for that matter) to communicate with each other?

I guess the key question is that are there facilites built into AS 3.0 that allows an SWF to "listen" for different events or notifications coming from other browser windows/tabs? I know this might be an application or sandbox security violation, but I would like a new instance of the same SWF to cause the older one to close itself.

View 3 Replies

ActionScript 2.0 :: Communication Between Movies - OnRollOut Function?

Sep 26, 2005

I am having trouble making 2 movies communicate with one another. One movie (series) is embedded into the other (content2). 'content2' is a horizontal scroll menu of images. 'series' is a movie that holds 'content2' and contains a mask which will reveal everything upon the rollover of the 'series' button. I can get the scroll to show and work when the button is rolled over but it fails to hide on roll out.

Here is the code I have used on the roll over button called 'series':
Code:
stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
sym2.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
[Code] .....

View 1 Replies

ActionScript 3.0 :: Loading External Variables To Be Split Into An Array?

Apr 22, 2009

I'm migrating an old project to AS3 and I'm having some problems make the conversion.

I have a text file called "variables.txt" formatted like this (note the jump form p9 to p11) Quote:

&p0=1|0|4|1|8|0|0|29|14|1|6|0&
&p1=1|0|4|1|8|0|0|29|14|1|6|0&
&p2=0|0|11|0|25|6|1|125|86|3|8|0&
&p3=0|0|1|0|0|2|0|26|17|0|2|0&
&p4=4|1|3|1|17|5|1|33|15|3|4|0&

[Code]....

What I'm trying to do is convert all those text variables into an array that will be accessible throughout the presentation.

View 5 Replies

ActionScript 3.0 :: Communication Between Variables In Other Classes?

Jul 19, 2011

I need to know how to reference variables in other classes. I have been avoiding this by referencing variables from the Main class, where they are created. But at this point I would like to be able to have the option and it would make me a better programmer.

Say I create a movieclip in the Main.as

Code:
public var Enemy_mc:Enemy = new Enemy();
addChild(Enemy_mc);

[Code].....

How do I do that^ without creating a variable in Main.as and having it check Background.as for variable updates?

Can I do something like "Main.Enemy_mc += 5;" like I can do in Main.as to variables that I have created in Main in other classes?

View 2 Replies

ActionScript 2.0 :: Calling Functions Of Attached Movies

Jul 22, 2006

I am attaching a bunch of instances of a movieClip to my stage and I want to call a function in this movie clip that I'm attaching however I don't seem to be able to access the movieClips functions. Is there any known reason why this may be happening, something I don't know about attached clips? I'm doing something similar to whats below

Code: myPointer = attachMovie("libraryName","myNewName",newLvl); myPointer.doMyFunc(); I know the clip is attaching correctly because I can see it, but I can't seem to access any functions within the attached clip. I also know that "myPointer" is correctly addressing the attached clip because I can change the clips properties such as width and height.

View 1 Replies

ActionScript 3.0 :: Communication With External Swf Loaded Into Mc?

Sep 6, 2011

wf which loads an swf into a movieclip called content_mc here is the code located in the blank swf
 
startLoad ("startPage")
var loadedSWF:Loader
var content_mc:MovieClip=new MovieClip();
function startLoad (SWFname:String){
loadedSWF = new Loader ();

[Code]...

View 12 Replies

Actionscript 3.0 :: MainTimeline Communication With External SWF

Nov 27, 2011

I have an external swf called "lakefillpreloader.swf." It works, except when I put it in another swf, called lakefillwireframe. I get Error#1010 for the lines about ButtonMode and the EventListeners that gotoAndStop at different frames. What do I add to my code?

Lakefillpreloader:

Code: Select allclose_btn.visible=false;
buildings_text.visible=true;
//defines measurements, in pixels
const PANWIDTH:Number=10061

[Code].....

View 1 Replies

ActionScript 3.0 :: Possible To Make External SWF Communication?

Jul 2, 2009

I was wondering if there was a way to have an externally loaded SWF file have a button that can communicate to the file that it was loaded into. I have a bunch of buckets that I'm loading in externally that and I would like for each of them to have their own back button that tweens the content in the SWF off stage but also to have a movieclip in the main file tween back on.

View 1 Replies

ActionScript 2.0 :: Preloader For External Swf's - Doesn't Work For The External Movies?

May 22, 2005

... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:

[Code]...

View 5 Replies

ActionScript 2.0 :: [mx]passing Variables Between Movies?

Feb 19, 2004

I want to know how I can pass parameters between 2 swf files..

View 7 Replies

ActionScript 2.0 :: Pass Variables Between Movies?

May 29, 2002

I'm trying to do a demo with a fastforward button and a rewind button that will go to the next scene and previous scene...however, due to the format that my predecessor created used...I'm stuck with alot of scenes. The navbar (ff and rewind buttons) is in a .swf file called main. The actual demo is in demo3.swf. I created a loader scene to redirect to the correct scene (when ff and rewind are hit), how to pass the variables needed from the main movie. What would be the correct syntax or steps?

View 11 Replies

ActionScript 2.0 :: [mx] Passing Variables Between Movies

Feb 19, 2004

I want to know how I can pass parameters between 2 swf files..

View 7 Replies

ActionScript 2.0 :: Passing Variables Between Movies?

Sep 4, 2002

I have been receiving great help for the past few days on many different things, and now I have another issue. I am creating a form in an SWF that pops up in a window over my main site. Is there a way to pass the information that the user submits in that form to my main movie? Or will I have to embed the form movie into my main movie? Is there a tutorial dealing with this? Also, since I'm asking, is there a way to save information to a text file using ActionScript or Flash, or whatever? I was thinking the other thing I could do would be to save the information in a text file, then dynamically load it in a text box on the main site.

View 1 Replies

ActionScript 2.0 :: Loading Movies/variables?

Jul 7, 2002

I subscribe for this forum becausethis r the actions i have in my level 1

on (rollOver) {
startDrag (this, false, 250, 270, 750, 520);
Mouse.hide();

[code].....

View 7 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 :: Permit The External Communication: Security.allowDomain

Sep 27, 2010

I have a small problem with the security function. I have made a small banner there post a titel from a RRS feed. The RSS feed coms form extern domain. When I run the banner local it's work out perfect, but online it dosent works I use this code to permit the externe communication: Security.allowDomain([URL]);

[Code]...

View 3 Replies

ActionScript 2.0 :: [mx] Making Variables Available In Streamed Movies?

Jan 11, 2011

I am loading various movies into a "shell"movie as and when they are needed using loadMovie... However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path...

_root.holder_mc.loadVariablesNum("scorevars.php"," post");

But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact...

View 1 Replies

ActionScript 2.0 :: Passing Variables Between Flash Movies (again)

Dec 23, 2002

Basically I have a button which can be clicked to load an external movie, the external movie loads an ASP script.Dependent upon the button clicked I want to be able to execute different SQL statements.

View 4 Replies

ActionScript 2.0 :: Making Variables Available In Streamed Movies

Feb 24, 2004

I am loading various movies into a "shell"movie as and when they are needed using loadMovie.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path _root.holder_mc.loadVariablesNum("scorevars.php"," post");My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.

View 5 Replies

ActionScript 2.0 :: Addressing Class Variables Which Are Movies?

Sep 1, 2006

I'm having a bit of a problem with this. I have a class- MiniMap which extends the MovieClip class.This class has a variable which is itself a movieClip, this movieClip is a small window which can be moved around on the map to select which portion of the miniMap will be shown in the bigger map.

How do I refer back a events on the class variables to effect the host class?

[Code]...

View 4 Replies

ActionScript 2.0 :: Passing Variables Between Movies And Do Action

Apr 14, 2002

I have two movies: m1 and m2. In m1 I set a variable to variable="yes". Now, I want m2 to read the variable and do an action depended on the variable (see the example below).

This is the AS in m1:
on (release) {
docufield = "background.txt";
}
And this is the AS in m2:
this.loadVariables(docufield);

View 7 Replies

ActionScript 2.0 :: [mx]Making Variables Available In Streamed Movies?

Feb 24, 2004

Scenario:I am loading various movies into a "shell"movie as and when they are needed using loadMovie... No problems there.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the completepath..._root.holder_mc.loadVariablesNum("scorevars.php"," post");But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.

View 5 Replies

ActionScript 2.0 :: Pass Variables Between Flash Movies?

Nov 16, 2003

is it possible to pass variables between flash movies...

i.e. if you had 2 (or more) seperate flash movies in an HTML page, can you control one with the other?

View 2 Replies

ActionScript 3.0 :: Javascript Communication - Pick The Right One From The Array And Run The Function Based On What Button Pushed

Feb 4, 2009

I have a javascript array and a function on my html page, and I need actionscript to be able to pick the right one from the array and run the function based on what button I pushed. My javascript is:

[Code]...

I'm a little lost on the AS part of it, what would be the best way to have the each different button run it's respective part in the JS array/function?

View 5 Replies

ActionScript 3.0 :: Send Variables Between Flash Movies On Different Machines?

Apr 7, 2009

I want to send variables between flash movies on different machines. How can I go about doing something like this?

View 4 Replies







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