ActionScript 2.0 :: Load Movie And Pass The Variables Needed From The Main Movie

May 28, 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), but I'm not sure how to pass the variables needed from the main movie.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Pass Variables Between Different Movie Clips (.swf's) On Main Movie

Jun 4, 2002

Make things very simple, I need to pass variables between different movie clips (.swf's) on my main movie. It seems as tho my variables are only local, not global, i just need to know how to initialize global variables, and how to use the global variables in my other swf's.

View 14 Replies

ActionScript 3.0 :: Flash - Pass Variables From One Movie Clip's AS File To Main AS File?

Jul 7, 2010

how to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?

Code:
public class robotMC extends MovieClip
{
public function robotMC()
{

[code]....

View 5 Replies

ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

Dec 23, 2004

I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.

View 2 Replies

ActionScript 2.0 :: Targetting - Use LoadMovie() To Load Movie Into Main Movie - Buttons No Longer Work

Oct 1, 2003

I have a movie. In it are some buttons and a dynamic text field. When I press the buttons is should load text from a database into the dynamic text field. If I run the movie by itself (ie. not by LoadMovie()-ing it into a different movie) the dynamic text field gets filled with text and all is well and good. However, when I use LoadMovie() to load this very same movie into my main movie, the buttons no longer work; the text field stays empty.

[Code]...

View 9 Replies

ActionScript 2.0 :: Pass Variables To A Duplicated Movie?

Jan 19, 2005

just wondering if theres a way to pass variables to a duplicated movie.Ill be creating duplicate movies very fast (about 20 per second)and want them each to have differrent variables to work with.duplicating with that , and i want to pass 3 variables to the new movie clipdot.duplicateMovieClip("dot"+currdot, this.getNextHighestDepth(), {_x: xpos, _y:ypos});

View 3 Replies

ActionScript 3.0 :: Pass A Variable From A Main Movie To An Attached Movieclip?

Mar 28, 2012

I have a Flash Professionl AS3 project I am working on.

I have this in a main movie:
 
but1b.addEventListener(MouseEvent.CLICK, fbut1b, false, 0, true);
function fbut1b(e:MouseEvent):void{
var mc:documentwindow_mc=new documentwindow_mc();
mc.x=450;

[Code].....

The issue I have is I need to do this 40 times.
 
Is there a way for me to use the same documentwindow_mc movie clip and pass a variable to change the "documents/print2flashdocument1a.swf", part?
 
How could I do this from the fbut1b function?

View 3 Replies

ActionScript 3.0 :: Refering Variables Into A Parent / Main Movie

Aug 4, 2010

I've build several movies which all work fine, but ultimately they need to run inside a Main movie which acts as a holder for the various child movies which load into it.Everything is working fine but not when they're loaded into the main movie. The main problems seems to be that the main movie has common component which relate to all the loaded child movies.Consequently the main movie has several instances - but how do I refer back to them in the child movieclips?I can't get the child movie clips to compile if I remove the references but ultimately the child movie clips need to speak to instances and functions in the main movie.Also, I've got a global function to hold the global variables but this method seems frowned on. But I need the global variables all the time and in all the movie clips.

View 3 Replies

ActionScript 3.0 :: Accessing Variables In Main Flash Movie?

Jan 23, 2012

1. I made a variable in main.swf, var num:Number = 5, and then i load home.swf, how do i access the var num from home.swf ? In AS2 i can use trace(_root.num), how do i do this in AS3?

2. How do i access a movie clip from different loaded SWF file?

View 9 Replies

ActionScript 2.0 :: Load Swf Movie Into Mc "container" On Main Movie?

Feb 22, 2003

i have following problem i load swf movie into mc "container" on main movie. i made rectangle, changed into mc, gave it instance name "block"

when i use the container.setMask(block) line this results in the movie playing but no mask what do i do wrong this time ?

View 2 Replies

ActionScript 2.0 :: Passing Variables From A Loaded Movie Clip To Main?

Mar 2, 2007

I can't seem to load a movie clip, and then pass some variables from that loaded movie clip back to through stage_mc it is loading into - to the SubClip.

The structure is as follows:

Main
>SubClip
>>Stage_mc

Where the new movie clip is loading into stage.

I need to pass two variables from the loaded clip into the SubClip. Simple vars to fill some dynamic text in SubClip.

I've done the whole _root.myvar thing, _parent, and _global.

View 5 Replies

ActionScript 2.0 :: Referecing Main Movie Variables Inside An External Swf?

Nov 13, 2007

I'm having some issues referencing variables in the main movie.On the 1st frame of the main movie I have: var testvar="testing123";On the main movie I have a movieclip with an onRelease event handler that is defined with:loadMovie("Slideshow.swf",1);Slidwshow.swf contains:trace("From the main movie: " + _parent.testvar);however the trace statement prints "undefined" instead of "testing123"

View 7 Replies

ActionScript 1/2 :: Load Movie - Randomly Load Other Swf's (individual Ads) Into Main Swf After

Apr 2, 2009

I am pulling double duty with this question as it serves two purposes. I am developing a total flash controlled ad system for myself, but also need to use the same theory for a project for work.

Concept: I have a main movie (ad rotator system) that I then want to randomly load other swf's (individual ads) into this main swf after a set period of time. The random load I got set no problem. The problem I am having is to get it to move to the new Frame label of the main movie which then loads the smaller swfs. I am using the LoadMovie with nInterval time delay command in flash to load the movies.

[Code]....

View 5 Replies

ActionScript 2.0 :: Access Variables On Main Scene From Inside A Movie Clip?

Jun 30, 2005

How do I access variables on the main scene from inside a movie clip.

I have a variable called player health, and inside the movie clip I want to do this, playerhealth -= 20, but its not working

View 10 Replies

ActionScript 3.0 :: Pass Variables From .as To Main Project

Nov 11, 2009

Im trying to pass a number to 1 function in my .as... In 1 part of my project i want to sent a number to .as function, and in another part i want to receive another value... like this.... The sintax is wrong, but i think i can made myself easier to understand...

[Code]...

View 0 Replies

ActionScript 3.0 :: Pass Variables From .as To Main Project?

Nov 11, 2009

Im trying to pass a number to 1 function in my .as...

In 1 part of my project i want to sent a number to .as function, and in another part i want to receive another value...

like this....

The sintax is wrong, but i think i can made myself easier to understand...

-----------------------------------------------------------------------
In this part i want to send a value to my .as function...
Ultimo(var int guardaultimo = 1);

[Code]....

View 8 Replies

Professional :: Load Swf Files In Main Movie?

May 27, 2011

I have the following to load swf files in my main movie. The first swf files that loads has a movie FLV file in it. When I unload that swf file, with the below, the swf seems to get removed, but the audio of that flv keeps playing. What do I have to do, to completely remove that swf file.  

private function loadNewSection(e:ProjectEvent):void
{
while ( content_mc.loaderClip.numChildren > 0 ) {
content_mc.loaderClip.removeChildAt(0);

[Code].....

View 3 Replies

ActionScript 2.0 :: CS4 - Can't Load SWF Gallery Into Main Movie?

Feb 21, 2012

I want to load the image gallery into my main movie.I have tried using the Loader component so that I can place the gallery in the middle of the main movie but the gallery just doesn't load correctly! I want it to load inside the Loader box in the middle of the page but it kicks the images out to the edge of the main movie.I suspect I need to edit the AS of the gallery.fla to specify the width of the SWF gallery inside the Loader, so I can send that to you via email - can't post it here cos its too long.

View 6 Replies

ActionScript 2.0 :: Load A Swf File Into Main Movie?

Jan 30, 2003

when i load a swf file into main movie.I get no animation from swf.... it's like frozen. But the swf itself works fine.

View 8 Replies

ActionScript 2.0 :: Load A Movie Into An Empty Mc On The Main .swf

Feb 18, 2004

_root.loadMovie(_root.gamename, _root.game); ... that is the code im using to load a movie into an empty mc on the main .swf This code is in a movie that is also loaded from an empty mc in my main .swf 'gamename' is defined in the _root movie and 'game' is the instance of the empty mc where I want it to load. However, when the swf loads, it just loads at 0,0 in my main .swf and not where the instance of game is located.

View 2 Replies

ActionScript 2.0 :: Use The Icons To Load URLs Within The Main Movie?

Jan 27, 2010

Using an AS2 Carousel type menu with XML powered icons - and I'm trying to use the icons to load URLs within the main movie - in other words, load SWFs into the movie as opposed to external links. Someone here (thirdCherry) was kind enough provide this for internal loading targeting a movieClip:

//on release function
function released()
{
getURL(this._parent.url);

[code]....

View 1 Replies

ActionScript 2.0 :: Load External Swf Files In A Main Movie?

Sep 20, 2010

I am trying to load external swf files in a main movie.I have created 3 different movies. Main movie is named "Container". Another 2 movies are named "movie1.swf" and "movie2.swf".Main movie "Container" is having some navigation buttons and template sort of thing in it. On the lowest layer in main movie I have created an empty movie clip in which I am trying to load "movie1.swf".Now problem is when I load "movie1.swf" instead of loading the external movie in target mc, it clears all the contents in main movie.

View 3 Replies

ActionScript 2.0 :: TellTarget - Load It Into The Main Movie It Won't Work?

Aug 5, 2004

I have an all flash site that i'm making to learn flash MX 2004. I'm loading external swf's into a main page to make it all flow and easy for the browser to chew. i got a page that uses tellTarget to start rollovers and advance a movie. here's the script for one of the buttons...


Code:
on (rollOver) {
tellTarget ("/swift"){
gotoAndplay (2);[code]....

that works perfectly but when i load it into the main movie... it won't work...how to _root.,_parent, or this. is to make it work.

View 1 Replies

ActionScript 2.0 :: When Load Swf Into Main Movie It Wont Loop

Aug 17, 2004

in my external swf i have this code in the last frame:[code]so its looping through some animation over and over but when i load that swf into my main movie it wont loop, it plays the entire timeline over again, what am i doing wrong?

View 5 Replies

ActionScript 2.0 :: Load External MAC(ish) X Menu Into The Main Movie?

Mar 2, 2003

loading external mac x menu into my main movie. My main movie contains emty mc named "container" to load external.swf's and another emty MC named "menu" to load external "menu.swf" the problem i have once i load menu.swf into a level of my main.swf then the menu functions won't work at all.

View 4 Replies

ActionScript 2.0 :: Perspective (Flash MX) - Load Swf Into A Main Movie

May 29, 2003

I am trying to create a starfield effect. I have gone through the tutorials here and elsewhere and come so far. I am attaching the fla file along with the code. The motion as you can see is jerky. Cant figure out what am i doing wrong. Another thing. I am trying to load this swf into a main movie using the following script:

[Code]...

View 4 Replies

ActionScript 3.0 :: Button To Load Movie On Main Stage

Mar 19, 2010

Im trying to load a movie using a button. I just want the button, when hit, to load an external .swf file inside the movie clip playing.

In AS1, (I never did learn AS2) this is what the button command said

on (release) {
loadMovieNum(�About.swf�, 0);
}

So how would this translate into AS3?

View 1 Replies

ActionScript 2.0 :: Load Swf Into Main Movie It Wont Loop?

Aug 17, 2004

ok, in my external swf i have this code in the last frame:

gotoAndPlay('cloudstart');

here is my loadmovie code:

_root.load.loadMovie("logo.swf");

so its looping through some animation over and over but when i load that swf into my main movie it wont loop, it plays the entire timeline over again, what am i doing wrong?

View 5 Replies

ActionScript 2.0 :: First Load Variables And Then The Movie?

May 26, 2010

So I have used this code:

_root.loadvars = new LoadVars();
_root.mainoslataus.onLoad = function(succes)
{[code]...........

The problem is that I want to use it at the preloader frame, and display it same time when flash file is loading. But it won't work, it loads when the file has fully loaded, and then its too late.I know that I could use another swf to load this swf and display it then, but its not what I want.

View 0 Replies

ActionScript 3.0 :: Load Movie Clip And Control From Main Timeline?

Jun 30, 2010

Trying to load a movie clip into another movie clip and control the loaded clip timeline from main stage.

Code:

var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("Transcription-RNAChain.swf");

[code]....

The movie appears to load, as it appears on the stage, but it throws the following error in the debugger on frame 1:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

Additionally, I'm getting neither the result of function loadingError or function finishedLoadingFunction.

View 3 Replies







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