ActionScript 2.0 :: Create A Level Select Screen So The Buttons Unlock Complete A Level?

Apr 22, 2011

im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:

on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}

[Code]...

View 0 Replies


Similar Posts:


ActionScript 1/2 :: OnLoad Working At _root Level But Not At Mc_target Level?

Aug 26, 2010

I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF.  Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1.  When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1.  However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not.  Here's my AS2 code:
 
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{    trace("loaded"); //This works    removeMovieClip(mc_Empty1.mc_FadedBg); //This works}

[code]....
 
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not. 

View 3 Replies

ActionScript 3.0 :: Application Level Vs Document Level Class Paths?

Oct 2, 2010

This is making me a little kooky today. I thought I could defined a library path in PREFERENCES > ACTIONSCRIPT > ACTIONSCRIPT 3.0 SETTINGS then that library would be available to all AS3 FLA files, but that doesn't seem to work for me. If I use the PUBLISH SETTINGS and define the library path everything is fine.

Is there something that I could have done to disable the application level class path functionality? I guess I'm trying avoid having to set the library path for every new FLA I'm making.

View 1 Replies

ActionScript 2.0 :: Load Swf From Third Level Into Container In First 'home' Level

Dec 26, 2011

I'm doing a bigger aplication in flash (as2).Image, there is a main "home" flash with several menu buttons.Clicking these buttons, I load external swf into an empty container in this "home" flash.[code]clicking buttons in this second level, will load external movies into an empty container in this SECOND LEVEL swf.This works fine, but now, coming to the THIRD LEVEL (don't think there will be more in the future) problems come up, some scripts won't work.Now (I'm a as2-beginner) I think, loading external swf ALLWAYS into containers in the first "Home" flash should solve the problem.But I don't know, how to load an swf from the third level into a container in the first "home" level.In the "home" level, I have a "close" button, that will unload the container content.I need to go to a certain scene "content_2" in the home swf, too.

View 7 Replies

ActionScript 2.0 :: LoadMovie - Jump To Level 2 Upon Completing The First Level?

May 9, 2004

i have game im doing, and i want it to jump to level 2 upon completing the first level, but the problem is, the level 2 is a seperate swf, i've tried to use

Code:
on (release) {
loadMovie("level2.swf",2)
}

View 3 Replies

Calling A Swf From1st Level To Go From 3rdlevel To 2nd Level

Dec 2, 2009

I have called main.swf into a container in index.swf.

myMCL.loadClip("main.swf","container"); is an action on my Index.fla timeline.

I have my navigation on index. (i wanted it to go on main, but the nature of the animation meant it had to go on index)

I need to call "home.swf" into "main.swf" from the navigation button in Index.swf.

When I had the navigation on "main.swf" this was my code to call "home.swf" into the page.

on (release) {
Preloader_mc.gotoAndStop("home");
}

("home") is the label name where the preloader is for home.swf

how to call the preloader for home into main.swf from "INDEX.SWF INSTEAD OF MAIN.SWF"

View 5 Replies

ActionScript 3.0 :: Calling Swf From Second Level Swf To Affect Top Level

Feb 2, 2010

I have a file1.swf which loads file2.swf into it. Within file2.swf i have a button that when clicked needs to remove file2.swf and load file3.swf into its place.

View 2 Replies

ActionScript 2.0 :: Link To One Level Below The Current Level?

Sep 16, 2004

Is there a way to link to one level below the current level? Instead of saying _root.level1.level2.level3, something like: ../level3 ?

View 4 Replies

ActionScript 3.0 :: Crossdomain Policy File On Root Level Cannot Be Deployed On Root Level? 

Jan 14, 2009

Situation:

- We have a Flash application located on a SAP EP (let's say ep.x.com)

- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)

- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices

Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.

- A crossdomain policy file on root level cannot be deployed on root level

- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.

Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.

Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.

- SAP / Adobe always features the close relationship between their technologies.

Question:- What could we do?

- How does the Visual Composer works around that problem?

View 1 Replies

ActionScript 2.0 :: Load A Movie To Level 1 That Deactivates The Movie In Level 0 Without Unloading It?

Nov 5, 2004

I have a movie that's 500x400 px in level 0 and has lots of thumbnails with pictures that I want to open. the thumbnails open a 500x400 px movie above the other but on level 1. the problem is that when the new movie loads on level 1, the thumbnails on level 0 (that are now hidden by the new movie) are still active, and if i click anywere in the movie on level 1, it trigger an action from level 0. Is it possible to load a movie to level 1 that deactivates the movie in level 0 without unloading it?

View 1 Replies

ActionScript 2.0 :: Disable Buttons On Level 0

Nov 6, 2004

I have a couple of buttons on a movie in level 0, and those buttons load movies right on top of this one but to level 1... how can i disable buttons on level 0 as soon as level 1 loads, and vice versa, need to enable them when i press the button on level 1 that unloads this movie..

View 1 Replies

ActionScript 2.0 :: Blocking Buttons On Level 0?

Jun 9, 2008

made a site with several buttons that load other .swf on level 1 which cover the entire stage, but the buttons that are on level 0 can still be clicked on. Is there anyway to block these buttons while the level 1 .swf is playing

View 1 Replies

Buttons Effecting Parent Level States?

Oct 27, 2011

As I am finally dipping my toe's into AS3 from years of AS2, I am having an issue for my menu buttons (which are within a movie clip) effecting the activation of movie clips that are featured on the main timeline.

I can get this to run how i want it when each menu button is on the main timeline (by using the 'the click to go to Frame and Play' code snippet)...but when these button are within a movie clip, I can't figure out where in the code i have to add the _parent. command ?

I have attached the .fla to see what I have done. I am keen to keep using the code snippets scripts.

View 2 Replies

ActionScript 2.0 :: Disable Buttons On Lower Level Swf?

Mar 4, 2006

Hiya, I am learning loading movie clips dynamically using the loadMovieNum() function but have run into a problem. When I load a movie into the next layer up from the current movie I still get the hand appearing over where the buttons from the movie on the lower level are (though the lower level movie and its buttons are not visible).

Is there any way I can stop this happening or am I going about things the wrong way?

View 7 Replies

ActionScript 2.0 :: Controlling MovieClips (SWF) In Same Level With Buttons

Mar 4, 2002

I have a movie (back.swf) and this calls into another (menu.swf, level20). I want to control the movie clips to the level0 with the buttons on level20. I do that but I can't control in a random order.
For example:
I press button 1 and play movie clip 1.
I press button 2 and play movie clip 2.
But if I press again button 1 don't play it.
And if I press the button 3 play the movie 3 but don't allow to return to the button 1 and 2.
Every movie clips are in level0.

View 1 Replies

ActionScript 3.0 :: Create Top Level Classes?

Nov 21, 2010

what is the meaning of top level classes. and how to create toplevel classes.

View 1 Replies

Unable To Create A Second Level In Flash?

Apr 5, 2011

I made a game in flash, and the first level of the game works, but after you complete the level, I am unsure of the coding to test and see if all of the enemies, since they are movie clips, have been unloaded from the flash, so it will move on to the second level. I know there is a way to do it, I just don't know exactly how, to do it, nor do i know where to look to get help with it.

here's the coding i've done so far.

this is the coding I've put one of the enemy characters, who is a movie clip, they all have different values to make things interesting.

onClipEvent (enterFrame){
if(_root.spaceship._y>_y) {_y +=5;}
if(_root.spaceship._y<_y) {_y -=5;}

[Code].....

View 2 Replies

ActionScript 2.0 :: Disable Buttons On Lower Level So TAB Will Not Call On Them?

Apr 18, 2005

I have a site with the main content loading on _level2, then I have a contact page that loads over _level2 on _level5. The contact page has a bunch of input text fields, if you use the tab button to go to the next text field it calls on clickable objects on _level2 as well as the text fields... is there a way I can write a script to disable all clickable objects on _level2 while the contact section is loaded, and then enable them once more when I unload _level5?

View 1 Replies

ActionScript 2.0 :: How To Create 3 Level Tree Menu

Aug 15, 2005

Is't possible to create a 3 level tree menu? just like below:

[code]...

All the flash menu i found are only have second level

View 5 Replies

ActionScript 2.0 :: How To Stop Buttons To Show In Lower Level Movies

Jan 6, 2005

When you have movies in a layer, how can you stop the buttons of the underlying levels from showing through. I don't want the user to think that there is a button on the level showing because the cursor turns into a hand....plus also when clicked it does activate the lower movies actions.

View 1 Replies

ActionScript 3.0 :: How To Create Package Level Global Variables And Constants

Dec 1, 2009

I'm having a little issue understanding scoping in this package environment. My question is this: Is it possible to declare globally visible variables and constants? I tried this with no successful results:

PHP Code:
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.net.URLRequest;
import games.mineAllMine.MineAllMine;
[Code] .....

View 6 Replies

Actionscript 3 :: Create A Multi-level Dungeon Adventure In Flash CS4?

Apr 6, 2011

I'm trying to create a multi-level dungeon adventure in Flash CS4. The layout is an instance created of a symbol called Level, within the symbol are multiple wall subsymbols (wall), instances of Wall. There is a collision routine to stop the player walking through the walls, called from Wall.As.Level is drawn about the centre point (0,0).When I create an instance on the stage of Level (level), the collision tester is using the xy coordinates for the walls drawn about 0,0, not the "real" xy where it's appearing on the stage. So what I need to know, is how to "update" the xy for each wall subsymbol with the live stage information, overriding the XYs drawn in the parent. It has to be updated unfortunately (I can't keep it static), as the levels are big so have to scroll.

View 3 Replies

ActionScript 3.0 :: Create User Interaction Simulating The Use Of A Spirit Level?

Jan 18, 2012

I need to create a user interaction simulating the use of a spirit level showing that a rectangular object on the stage is level. It doesn't have to actually work like spirit level, basically just has to give the impression that it has worked like one.

Maybe make the bubble of the spirit level should move (become animated) when being dragged to the object, then settle (animation come to a stop) when dropped in place on top of the rectangular object? Although I am unsure of the code to go about this?

View 4 Replies

ActionScript 3.0 :: Create A New Movieclip For Each Top-level XML Node And Include In The Movieclip Two Separate Textfields?

Jun 4, 2009

My goal with this actionscript is to create a new movieclip for each top-level XML node and include in the movieclip two separate textfields, an image, extend the movieclips to two row if necessary, rotate each movieclip differently depending its parity and add a hover event based on the movieclips instance name. I have achieved each goal except for the hover bit. The reason I cant access the instance name outside of the for loop is because the instance name only lasts for duration of the loop. Here is my current code (at pastie address).

[URL]

View 3 Replies

ActionScript 1/2 :: "A.swf" On Level 0 To A "B.swf" On Level 1 With A "gotoAndStop(5)?

Aug 17, 2011

how i can refer from a flash "A.swf" on level 0 to a "B.swf" on level 1 with an "gotoAndStop(5). I tried it with:
 
loadMovieNum("B.swf", 9), gotoAndStop(5);
 
and other variations. It didn´t work anytime.how it can work?

View 1 Replies

ActionScript 2.0 :: How Many MC In A Level

Oct 18, 2004

Is it possible to check the number of movieclips in a level?

View 1 Replies

ActionScript 2.0 :: [CS3] Keep Button On Top Level?

Feb 18, 2009

I am working on a project and have a print function that basically does a screen grab and prints it out. I load a number of external swfs into levels of the main swf.I want the print button to stay on the top level. Is there a way to define what level a button is on?I want to define the button on level 20. I contemplated loading it in as another external movie clip, but the script won't work if I do that.

View 1 Replies

ActionScript 3.0 :: XML Still Consider To Be At A NOOb Level

Feb 4, 2010

I have a two questions regarding XML and AS3. Even though I've been using flash for a few years now I would still consider myself to be at a nOOb level... Question One: Basically I have a website (all in flash) and there's a passworded section for clients to access their own information. Previously I've done this by adding the username and password info into the flash movie itself each and every time I have a new client - which works but is very time consuming (considering the number of clients I'm getting now). Is there a way that I can put all the names and passwords into an xml file, and flash checks it?

Question Two: Up until now, once a client has entered their username and password it takes them to a new .swf that has their info in it. And once again, I've been creating separate swfs for each clients (and again, time consuming). What I would love is after they've entered their username and password it takes them to a different scene or frame (still in the original swf) that has dynamic text fields that load the info from an xml file. I assume that these questions have relatively simple solutions, but I'm not sure how to do it.

View 9 Replies

ActionScript 3.0 :: Finding Level Of Swf?

Feb 4, 2012

My main loads an external swf. Then it creates a bunch of ball movie clips on the stage. I need to reference the content from labeled frames in the external swf. In AS2 all you had to do was use _level.

View 6 Replies

ActionScript 2.0 :: Start Certain MC's On A Set Level?

Aug 16, 2004

is there a way to add some code in the first frame of the main movie's timeline that sets certain MC's that i specify into level 1000?

i'm going to be using swap depths for a project but i need certain clips to always remain on top no matter what. the swap depth of the other movies will constantly be raising them by 2 levels, so i figure i'll put the ones i need on top on level 1000 as the others should never reach that high.

i was thinking i'd have to either add an array with the MC's i need moved to level 1000, or make them _global. and set a property to that somehow.

View 3 Replies







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