ActionScript 2.0 :: Handing Over Variables Between Levels?

Nov 9, 2005

there is the main SWF which loads and external SWF. On the external SWF through XML I post a variable on _level0 like this:_level0.selection = arg;the "arg" is another external SWF, trace works fine. Then I`m trying to load this SWF that is defined by the "arg" (_level0.selection) into a container.

This:
_level0.containerMC.loadPic(3);
works, this:

[code]......

View 13 Replies


Similar Posts:


Flash8 :: Setting Up Variables In Different Levels?

Dec 25, 2010

Actionscript Code:
if (Key.isDown(attack2Key)&&shot2reload == 0) { for (i=1; i<2+1; i++) { shot2++; shot2reload = 30 var newname =

[code].....

View 1 Replies

ActionScript 2.0 :: [F8] Java Handing Xml To Flash?

May 20, 2008

Has anybody had any experience having Java handoff a xml string to flash. I have been searching online for code examples but haven't been able to find anything.

View 3 Replies

ActionScript 3.0 :: Resetting MovieClip Between Levels And Passing Required Variables

Nov 25, 2010

I'm currently working on my first flash game and have managed to near enough get everything working. I can play each level individually by manually changing the variable 'level =' (to whichever level I want to play) in the actionscript. Now I need to find out the correct way to reset the movie after each level but still pass the 'currentTime' Timer variable and the 'level' variable over... Would I use variables I have saved in the init() function...

View 16 Replies

ActionScript 2.0 :: Get The Levels Of Volume (peak Levels) Of Multiple Sound?

Jan 9, 2005

I believe that my question here is a little hard, or maybe impossible. But here it goes:

How can I, in Flash, get the levels of volume (peak levels) of multiple sound frequencys from an audio file, so that flash would recognize them?

View 1 Replies

Swap Levels On Rollover?

Jul 6, 2009

I'm planning navigation for my new site (see screen grab of proposed navigation corner). I want the words to swap levels and appear in front of others on roll over.

OK, just found this tutorial [URL] but I put the buttons into the MCs.

*BUT* - I want them to return to their original positions on RollOut - is this possible. I tried duplicating the code but substituting rollover to rollout and set the parameter to 0 or 1 or 2 to make them go back to a level I want them at.

View 8 Replies

Can't Unload Movies On Two Different Levels

Jun 1, 2009

I am having trouble with unload an loading movies. Basically I am loading a movie into a container, which works a charm:

[Code]....

I want to unload them both when a close button is pressed on the third loaded swf? Also, ideally I would like to add that second movie clip into a container, so I can position it correctly, but when I try copying the code I use on the first, it doesn't seem to work...is it to do with the "root" bit perhaps?

View 3 Replies

ActionScript 3.0 :: Target Two Different Levels?

Aug 15, 2009

On frame 30 of my root timeline, I have dragged five different instances from my library onto the stage. I gave each one a distinct name, oneBtn, twoBtn, threeBtn, fourBtn, fiveBtn. I added a MouseEvent for each of these five objects, and ran a Trace to make sure I am able to identify the objects. At first, I used e.target.name but it returned instanceXX (instance23, instance84, instance83...). I think this happened because within each of those buttons, I had a movie clip within it so I can apply filters to them. I decided to trace e.target.parent.name. On two of the five objects, I was able to trace oneBtn, and twoBtn. On the other three, I still got instanceXX. I tried tracing e.target.parent.parent.name and I was able to trace the other three buttons, threeBtn, fourBtn, fiveBtn.
 
how come I need to target two different levels (e.target.parent.name & e.target.parent.parent.name) on my objects when I dragged them from the library and placed them onto the stage within the same timeline?

View 4 Replies

Professional :: Set Levels For External Swf's?

Jun 20, 2010

im using flash cs5, as2.i have a main index fla that loads into it 5 swf's.i need these 5 to be loaded into a lower level than the main index fla (index has to be the highest level)[code]

View 45 Replies

Access Levels And Root?

Oct 8, 2010

I cant believe how the simpliest things are more complex to do in AS3.I tried to target a movieclip from inside another movieclip called bat_mc and these dont work!root.ball_mc.gotoAndPlay(2);orlevel0.ball_mc.gotoAndPlay(2);

View 1 Replies

Flash :: Dragging On Different Levels?

Apr 26, 2010

I have a flash project with three non overlapping panels (visual spaces) each of which contains different movie-clips. Each movie-clip in a particular panel is the child of that panel.Now, I want to drag one of the movie-clips from one panel to another (remove it as a child from the first panel and add it to the other) without a jitter and proper drag.What is the appropriate way to handle the drag architecturally

View 1 Replies

ActionScript 3.0 :: What The Alteration Is \ It Used To Be Levels?

Aug 17, 2009

Now I know that you smart people know what the AS3 alteration is...Do you guys mind saying what it is...I know in AS2 it used to be levels but now it is...?

View 9 Replies

ActionScript 2.0 :: Fade Between Levels In MC?

Feb 22, 2006

but is there anyway to fade the levels of a movieclip.

basically i keep loading jpgs, into a level of a movieclip. now i want to create a fade between one to the other. figure easiest way would be to have the jpgs load onto next level with alpha 0.. then once loaded alpha to 100 and unload the bottom jpg from previous level.

View 3 Replies

ActionScript 2.0 :: Playing MC's On Different Levels?

Jun 18, 2006

The problem I'm having is loading my info boxes. Basically, I want the the info boxes to stay on the middle of the main stage and also make the scroll mc non selectable (so that other mc's cannot be selected). I've been trying for ages to get this working but can't seem to make the buttons play the relative info box movie clips.Currently, the info box mc's are in the same movie clip as the mask & scroll mc. However, the buttons I want to activate the info box mc's are in the scroll mc. If I put the info boxes in the same mc as the buttons then it works fine but doesn't keep the info box moie clip in the middle of the stage as you can still scoll/select other itms in the mc.

View 1 Replies

ActionScript 2.0 :: LoadMovieNum From Different Levels?

May 19, 2008

MainMovie = level 0
Navbar = level 10
submovies = level 2

In MainMovie I load my navbar in level 10. Then from the navbar I load the submovies into level 2 (that way, the navigation is always on top)

My questions is, This works find locally, but when i upload the submovies won't appear when clicking the navbuttons.

I have tried relative paths, absolute paths, keeping it in the same folder, etc..

View 7 Replies

ActionScript 2.0 :: Communicating Between The Levels?

Jul 18, 2008

I want to load in a new _level *.swf. This new level contains a button which will have a stop command, which I want to work with an MC in the _root *.swf level.

_level1

Code:
loadMovieNum("level2.swf",2);

View 2 Replies

IDE :: Saving Levels In Flash MX

Dec 12, 2008

does anyone have an fla file that saves levels that i could see because i have tried but the code i have does not work, or code that works well

View 3 Replies

IDE :: Loading Movies From Different Levels?

Oct 1, 2009

I am creating a presentation which has a main flash and then 3 sub categories to it. Main.fla is nothing but a container to load the other movies into. I could get the the first movie (movie1.swf) to load onto main.swf by using the foll code:

this.createEmptyMovieClip("empty_mc",1);
empty_mc.loadMovie("movie1.swf");
empty_mc.x=0;
empty_mc.y=0;

Now the problem is in movie1.swf the menu is like on the 3rd level, i.e. main stage>menu_mc>menu (where the buttons are).

How can I add a code on level "menu" so that when I click button2 or button3 it loads movie2.swf and movie3.swf respectivley onto the main stage. Makes sense or am making it too confusing..

I want to try this breaking a big movie into smaller parts functionality so that I can understand flash more.

View 1 Replies

ActionScript 2.0 :: Possible To Preload Into Levels?

Jul 21, 2004

Is it possible to preload movies into levels just like you can preload them into movieclips? I want my different movies to be loaded into levels so when a button is pressed, they are already loaded and ready to go. This is what I have so far.[code]...

View 4 Replies

ActionScript 2.0 :: Flash8 256 Levels Of Recursion?

Nov 4, 2009

I want a button to trigger 2 different sounds, but want to 2nd to play at the exact point at which the first finishes.The code I have is:

Button.onrelease = function () {
sound1.start();
this.onEnterFrame = function() {

[code]...

I get the following error during playback:"256 levels of recursion were exceeded in one action list. This is probably an infinite loop. Further execution of actions has been disabled in this movie."

View 3 Replies

ActionScript 3.0 :: Loading Music For Different Levels?

Aug 1, 2011

I have a game that has different music files for different levels. It doesn't make sense to load the music for level 2 in frame one and I don't want to load the music for level 3 until level 2 has commenced. Is there anyway to control how the music is loaded? The music is in the library.

View 2 Replies

Create Context Menu With Two Levels?

Oct 2, 2010

Can I create context menu with two levels, like this (Show, Quality > (High, Middle, Low), ...)?

View 1 Replies

ActionScript 3.0 :: What Need To Write So That Levels Swap Out?

Nov 16, 2010

I'm getting used to AS3.I'm customizing an 2D tile game engine I got from here: URL...I tried to add an array of levels. But the problem is the levels get added on to the pre-existing level instead of replacing it.What do I need to write so that the levels swap out? I attached the script below.[code]

View 1 Replies

ActionScript 3.0 :: Controlling Different MovieClips In Different Levels?

Feb 4, 2011

I have a movieclip on the main timeline with instance name "rpm_display". Inside that movieclip I have another movieclip with instance name "dial_graphics". My actionscript is on this timeline. The tween that uses "dial_graphics" drives "rpm_digital.rpm_counter.text" to compute a value based on the tween position of "dial_graphics".
 
I need to move the movieclip "rpm_digital.rpm_counter.text" outside of movieclip "rpm_display", but it will not work when its on the main timeline. I have tried having it on the main timeline and putting the actionscript there too using "rpm_display.dialgraphics", but this did not work...
 
should i use _parent? Not too familiar with AS3.
 
My CODE:
 
stop();
import fl.transitions.Tween;import fl.transitions.easing.*;import fl.transitions.TweenEvent;

[Code]....

View 9 Replies

Make Different 'levels' In Flash, Without Mc's Being Maintained?

May 7, 2011

I started working on a very simple game with a friend a week ago, but now I can't seem to solve one problem:

Every level I 'attachMovie' and 'duplicateMovie' the 'hero', blocks, ground and pigs. But when you either lose or win a level, those mc's keep existing in all the other frames...

just to show you how I instantiate those movieclips:

_root.attachMovie("ground", "ground", _root.getNextHighestDepth());

and for example going to the main menu when lost is like:

gotoAndStop("main");

I've got four frames in my timeline: main menu -> choosing level -> level 1 -> level 2

View 1 Replies

ActionScript 2.0 :: Loading 50 Clips Into Levels?

Feb 7, 2009

for(i=1; i<50; i++){
loadMovieNum("a.swf",i);
}

This simple script loads 50 of "a.swf" into my movie however you can only see one on stage.I can use a create emptyMovieClip with coordinates to accurately place all the clips on stage,however I am trying to use just levels, instead.I have tried....

for(i=1; i<50; i++){
loadMovieNum("a.swf",i);
mc = loadMovieNum("a.swf",i);
mc._x = 50*i + 50;
mc._y = 30*i + 50;

How can I load and place all 50 accuratelty.

View 1 Replies

ActionScript 3.0 :: Apply Levels To A Bitmap?

Feb 11, 2009

Is there a way to apply levels to a bitmap like in photoshop?

basically I want to make an image only black and white (I do not mean grayscale I mean only black and white).

View 2 Replies

ActionScript 3.0 :: Event Listener Between Levels?

Aug 24, 2009

im making a sniper game, and im currently working on the second level, but when you go out of the first level into the second level briefing, i get this in the output:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at sniperperson_fla::MainTimeline/thefunck()

[Code]......

this leads me to beleive the event listeners of the first level still exist, should i remove these, and recreate new ones for the second level, or is there a way to use them for the second level too?

View 6 Replies

ActionScript 3.0 :: Xml Drop Down Menu With 3 Levels

Jun 30, 2010

I'm working on a xml driven drop down menu, does anyone knows

how to traverse data from xml.

View 1 Replies

ActionScript 3.0 :: Volume Levels Between Flvs Are Very Different

Jan 31, 2011

I made a video player that plays through flv videos one after another for an in-store display. My problem is that volume levels between flvs are very different, one flv volume levels would be louder than other flvs vice versa.So I'm thinking if I could equalize the volume levels using sound channel but have no idea where to start. Can anyone point me in the right direction on how to properly adjust/equalize volume levels so they all sound the same?

View 4 Replies







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