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


Similar Posts:


ActionScript 3.0 :: Passing Variable From Main Movie To Loaded Swf?

Sep 4, 2008

i am using flash cs3,i have a main movie that load many swf using a document class..i need to pass "userid" variable from the main movie to loaded swf so they can change their content dynamically.

View 7 Replies

Professional :: Passing Variables To And From Loaded Movie Clips

May 7, 2010

I have a movie clip where I store a value in a variable called "yourname" and then load a different .swf file in level 1. I display the value of "yourname" in a dynamic text box, that works fine. I then move on to a frame where the user has an input text box and can re-enter a value for the "yourname" variable, and then clicks a button symbol to reassign the value. Bear in mind, "yourname" was not originally stored on this level and this movie clip, it is stored on level 0 on the first (main) movie clip.  Here is my code in the button:
 
on (release) {
_level0.yourname = String (inpt_newName.text);
}
 
inpt_newName is the input text box. My intent here is to have a "main" timeline where variables are stored, and then load and unload various .swf movie clips as needed, storing and variables (i.e. decisions) that the user makes.

View 1 Replies

ActionScript 2.0 :: Targetting A Movie Clip - Loaded Into A Container Clip From Main Timeline

Nov 24, 2005

I am targeting a a movie clip. The problem is that all the syntax I have found for targetting clips looks like this: _root.sample_mc.sample2.mc. etc. The problem is, my target clip is in an swf that I've loaded into a container clip from my main timeline. So, essentially, I have a home.swf that loads menu.swf into a container called 'location'. In menu.swf, I have an MC called center, which contains the MC I am targetting called 'target'.

View 2 Replies

ActionScript 3.0 :: Passing Stage/root Variables To Movie Clip?

Oct 12, 2009

Just need to figure out how to pass root level variable to a movie clip which contains a dynamic text box to display the passed variable. How is this possible? I usually use global variables when i was coding in AS2...but it appears this feature is dropped in AS3.

View 4 Replies

ActionScript 2.0 :: Passing Variables - Movie Clip & Accordion Component?

Apr 4, 2010

I am trying to build a Calculator used in health circles to project next year's profit and loss etc. I am using flash cs3 and actionscript2.My flash project is based on accordion component with 6 child panes, each pane having a movie clip with input text, dynamic text etc.I have a couple of push buttons that has click eventhandlers taking care of calculations . All the calculative functions are in the actions layer frame 1.I need help in displaying the same calculated fields as dynamic text in a new movie clip in another layer before printing the same movie clip.The present situation is like this, I am able to calculate all the fields, but when i click a button to show a new movie clip with all the calculated fields, all the variables are displayed as "undefined".

the dynamic variables in the new movieclip is referenced correctly i guess, i use pp_acvcfy = myacc.overheads.acv_cfy; where myacc is the accordion component , overhead the child pane and acv_cfy the dynamic text inside the pane 'overhead'. pp_acvcfy is the dynamic text in the new movie clip. Please help

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

Get An Externally Loaded Movie Clip To Inherit The Playhead Position Of The Main Timeline?

Oct 17, 2009

I have been approached to design a configurator for a new television product. The Application will let users specify the colours of certain parts of the product and also attach addons, which then updates a cost total.

In the main interface i have a looping animation of the product slowly rotating around 360 degrees that i rendered in 3ds max. When a user clicks a button on the interface i need to load an external movieclip on top of the main animation so it looks as though a certain part has changed colour, this i have acheived. The problem is that when i load the external clip over the original, the loaded clip starts playing from frame 1 and i need it to inherit the playhead position of the main animation so the two layered pieces look as though they are rotating as one. I'm sure this must be possible, unless i need to approach the problem in a different way?

View 7 Replies

ActionScript 2.0 :: Check The Currentframe Or Totalframes Of A Movie Loaded Into A 'holder Clip' On The Main Stage?

Feb 7, 2006

Is there any way to check the currentframe or totalframes of a movie loaded into a 'holder clip' on the main stage? Everything i try just comes back with 1 frame despite there being more than that?

View 3 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 :: Passing Variables From External Swfs To Main And Vice Versa

Jan 12, 2010

I wonder if it is possible to pass values from external .swf files to the main projector (.exe) file.? I would also like to know how a button of an external swf file can control the playhead of the main .exe file.

I have this map of tasks. and each map have these houses which when clicked will take you to a certain task(external swf). and when accomplished should have a button to take you back to the map(main swf), and also the button to send a value to the main swf that the task is accomplished.

View 2 Replies

ActionScript 2.0 :: Preloader Movie Clip - Once It Is Loaded Somehow It Doesnt Go To The "main" Scene?

Dec 25, 2002

I have this Preloader movie clip on one scene called "preloader" then i have content on the second scene called "main".The preloader works fine, its just that once it is loaded somehow it doesnt go to the "main" scene.This is the AS on the preloader MClip ::

onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();[code].....

View 14 Replies

ActionScript 2.0 :: Passing Variables From Loaded Swf?

Jun 29, 2008

so I have menu.swf that uses loadClip to bring in data.swf

Depending on what button is pressed I want menu to read menuHeight = 4600; from data.swf

in data swf I declare the var as _root.menuHeight = 4600;

and in menu.swf I try to read it as normal. menuHeight.

Shouldnt this work since the _root. of data.swf is the _root. of menu.swf?

View 2 Replies

ActionScript 2.0 :: Passing Variables To Loaded Swf?

May 15, 2011

i have a swf file that i am loading into a parent movie and i need to pass some variables to the loaded movie, unfortunately i do not have the original fla file of the movie being loaded in so i cannot use _root or _global ect..the swf that is being loaded in works fine and originally intended to have the variables passed though flashvars, is there any way i can pass these variables though the parent without having to change the fla of the loaded in swf

View 1 Replies

ActionScript 3.0 :: Passing Variables To Externally Loaded SWF?

Jan 30, 2011

how can I pass variables to externally loaded SWF written in AS2 ?

View 0 Replies

ActionScript 2.0 :: Passing Variables From Loaded SWFs

Jun 26, 2007

I'm working in a modular app and I'm having trouble passing variables between a Parent and it's loaded Child SWF file. The Child SWF has a single object called hotSpot_mc. The Parent has a frame called frame_mc to load the Child. I'm trying to pass the value of bHotSpot, which is turned on and off when the user mouses over the MovieClip. Testing shows that the value is being set in the Child but not in the Parent, where it remains undefined. Should I be using shared objects or do I just have to use better targeting?

Here is the parent SWF

Code:
// Load the child SWF into frame_mc
loadBackground("Room_1.swf");
function loadBackground(backgroundName:String):Void {

[Code].....

View 1 Replies

ActionScript 3.0 :: Passing Variables To And From Externally Loaded SWF?

Jul 13, 2011

Then there is an external SWF that is loaded by main.swf. I am trying to get this external SWF to check the value of "myVar" and depending on what the value is, send the playhead in the main.swf to a certain frame. have it almost working, but it is giving me problems. And I am not sure it is the best way to do it.On the timeline of main.swf is a movieClip called "BG". It has 6 frames. the first frame declares that variable, and each of the other 5 frames, set the value of it. I need the external swf to check the value of "myVar" to detemine where to send the playhead of the mian.swf. So on a frame in the external SWF, I have this code:

Code:
MovieClip(parent).addEventListener(Event.ENTER_FRA ME, fl_EnterFrameHandler); function fl_EnterFrameHandler(event:Event):void { dispatchEvent(new Event("myVar_value", true)); }

[code]......

View 13 Replies

ActionScript 3.0 :: Movie Clip On Main Timeline Receiving Input From Nested Movie Clip

Feb 23, 2011

I've got a main timeline .swf file called "blank.swf" which contains nothing but two blank movie clips one called called "pproduct", the other called "ppalette". In the script frame of this main timeline I use the simple "Loader = new Loader();" method to load a URL of an .swf file into the "ppalette" movie clip. The "ppalette" movie clip contains several color chip buttons, each of which use the same Loader method above to load an external .swf into a clip. Here's what I want to do: let those color chip buttons, when the "blank.swf" file loads, be used to load an .swf movie into the "pproduct" clip on the main timeline. I'm wanting to be able to swap depths with various movie clips which will take out the movie which has the palette, but I want whatever that palette has loaded in the original "pproduct" clip to stay there.

[Code]...

View 3 Replies

Actionscript 3 :: Access Variables Of The 'main' SWF From A Loaded SWF By SWFLoader?

Jan 31, 2012

I'm working on a website built in Flex, but the SWF file after compiling is very large. The websites has multiple pages. So I thought to create a new MXML project for every new page and load it with SWFLoader. I've found this example:

[Code]...

View 1 Replies

ActionScript 3.0 :: Reading Variables In Main Clip?

Jul 6, 2010

I have an app that sets a user id on the main timeline (main). It then loads a swf (loader) which loads another swf (video). The video clip needs to access the user id set in the main clip. Previously the video clip was embedded in a movie clip the main clip and I used this:

var xeniumImageLocation:URLRequest = new URLRequest("data/photos/"+ MovieClip(this.parent).uid +".jpg");

Which worked great. Unfortunately it no longer does after breaking the clips apart.

I have read through various articles and can't seem to find an easy way to target the main clip. I'm guessing there is a way that is as easy as AS2 but I don't know the proper syntax.

View 9 Replies

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

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 2.0 :: Passing 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 clip

dot.duplicateMovieClip("dot"+currdot, this.getNextHighestDepth(), {_x: xpos, _y:ypos});

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

Data Integration :: Passing Variables From .swf Extenstion To Movie?

May 21, 2006

I have html code

<param name="movie" value="movie.swf?var=a&vari=b"
/>
<param name="quality" value="high" />

and I need to pass var and vari variables and its values into the actionscript. How it can be done?

View 1 Replies

ActionScript 2.0 :: Passing Variables To Skip Flash Movie?

Jun 19, 2009

When you click on a link, it takes you (_self) to an "in-between" page that contains another Flash movie (that tells customer to be sure to come back to our page in the future). This Flash movie is coded so that it automatically opens a new window (_blank) to a different site. Then, HERE IS WHERE I HAVE MY PROBLEM, the original page (which is now hidden behind the new window) redirects you (_self) back to the homepage. SOOOO, when your on the new window, you can hear the lady's voice in the background.

NOW, what I want to do is to pass a variable so that, when you get redirected back to the homepage, it skips the lady speaking and goes directly to the looping slideshow.For example, "if F=1, gotoAndPlay(346);"I know that's not proper actionscript, I'm just saying what I have in mind.I've never passed variables before, so the more detailed the better.Note: I am using Flash CS3 and Dreamweaver CS3 (.asp)

View 2 Replies

ActionScript 2.0 :: Target A Loaded Movie Within The Main Timeline And Stop Sounds In That Particular Movie Only?

Apr 14, 2004

Is it possible to target a loaded movie within the main timeline and stop sounds in that particular movie only?

View 4 Replies

ActionScript 2.0 :: Resize External Loaded Movie To Main Movie

Jan 9, 2010

my problem is that i need to make a reisze, cause the screen resolution for other users. My main and news movie works perfect, but the others movies re-scale everything bigger. The problem of the external loaded movie is: this movie needs the funktion:

Stage.scaleMode = "noScale";
Stage.align = "TL";

If i dont have this code inside the movie is not going to resize fullscreen into the main movie. Inside this movie im scalling photos and some mc's You can take a look what i mean under: [URL]

If you take a look to the bar where the Number of pictures (30) are you will see that the lower bar and the pictures is not going to scale to fill the full screen if i delete the this code;

Stage.scaleMode = "noScale";
Stage.align = "TL";

View 3 Replies

ActionScript 2.0 :: Loading A Movie Clip From A Loaded Movie Clip

Feb 18, 2009

I've been trying to load a movie clip from a movie clip that has been loaded. I am trying to provide a simple means to change the look / feel of the flash application by placing the graphics and controls into a second swf. Each different screen is represented by a different movie clip that is in the second swf. So I've got app.swf loading ui.swf. I want to load screen1_mc from ui.swf.

The app.swf is loaded by a master swf. There may be multiple copies of the app.swf that can be loaded by the master.swf and each app.swf could be configured differently. For each "unique" app.swf it is stored under a unique folder that is not known to me in advance. Since I don't know the unique folder in advance, I can't use import / export for runtime sharing. Is there any way to load the movie clips from the loaded movie clip? (Basically, I want to treat the ui.swf as an extension to the library.)

View 0 Replies

ActionScript 2.0 :: Loading Movie Clip Into Loaded Movie Clip?

Mar 16, 2005

I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me.
So, I have a main menu flash file that functions like the one in this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.

I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it.

View 5 Replies







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