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


Similar Posts:


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 :: 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

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

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 3.0 :: Calling A Function From An Extended Class Inside A Top Level Class

Sep 23, 2009

package{
public class Character{
protected var _hp:uint = 50; //Character Health Points
protected var _power:uint = 5; //Damage dealt

[Code].....

I`m instancing a Character and a Player in the Main Timeline, all in frame 1.
When I use: ""player.attack(character)"" it works fine by itself.

So I added the if (defender._hp <= 0) this.win() which gives me the following error:

1061: Call to a possibly undefined method win through a reference with static type Character.

"defender" is a Character instance, "this" is a Player instance and "win()" is a Player method. I try to call the Player method inside a Character method using the Player instance adding the "." and his method name

Do I really need to define the win() function in the Character class? Is there a bypass to use a subclass method in a parent class method if it`s called from an instance of the subclass?

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

ActionScript 2.0 :: Tell If A Level Is Already Occupied?

Jul 13, 2005

i have a menu, and a content area. when a selection is made on the menu, an external clip is loaded overtop of the content area and does an opening animation. the problem is, when another selection is made from the menu, the animation starts the opening sequence over again.

what i'm looking for, is something that says 'if level x is empty, load this clip and play it from frame y. if something is already loaded in level x, play it from frame z'.

View 1 Replies

ActionScript 2.0 :: Loading Var Into Different Swf In Different Level?

Sep 3, 2005

loading var into different swf in different level.

I got the index.html to hold navigation.swf, navigation.swf loads login.swf in level 10 then I got an var coming from the database but login.swf cant receive it (it shows nothing). So I try to use index.html to hold the login.swf then it works, does anyone know why login.swf can't receive the var? If I load into different swf in different leve, does it mean I have to specify the level for the var?

View 1 Replies

ActionScript 2.0 :: Disabling Different Mcs Within Same Level?

Jun 1, 2006

i'm trying to disabled different mcs I have in the same level.

Code:
on (press) {
_parent.selectClip = "p2";
_parent.myFunc();
this.enabled = false
uc.enabled = false
}

when i press this mc with the instant name of "rc", i'll disabled with the code above and it works great.but i have another mc i would like to disable as well which is in the same level of "rc"this other mc has the instant name of "uc" so i tried to do what you see above but only "rc" gets disabled but not "uc" i think i'm getting confuse with _root maybe or _parent...

View 1 Replies

ActionScript 2.0 :: Can Disable A Level (MX)

May 24, 2003

just wondering if it is possible to disable a level much like you can disable a button. If it is possible what would be the best way to do that with being able to toggle on and off with a button on another level.

View 6 Replies

ActionScript 2.0 :: Go To Certain Frame Within Level 0?

May 1, 2007

I am trying to go to a certain frame within level 0. When you are in level 4, for example, and you click the button that takes you back to level 0, I would like to bypass the preloader and initial animation in level 0 and start at frame 3. I would like to think that it's as easy as:


loadmovieNum("main.swf", 0);
_level0.gotoAndPlay(3);

But somehow I'm thinking it's not that easy... Because it didn't work .

View 1 Replies

ActionScript 2.0 :: Xml Load Onto New Level?

Jul 30, 2007

basically - using the kirupa xml photo gallery script[URL] - i am trying to simply load the next image on top of the current image and then unload the previous image - just for a smoother transition. instead of the current image unloading then loading the next image.

View 2 Replies

ActionScript 2.0 :: Referring To One Level Down?

Jan 29, 2008

How do you refer to the level one below the current level . I know _root refers to the bottom level, parent refers to one level above but I don't know what to use for one level below. Otherwise, is there a way to refer to a level by its name?

For my needs, I have a clip portfolio.swf that is loaded into a Base flash file. Within portfolio, is a loaded movie called Gallery.swf. Gallery contains a movieclip called Thumbnails which has buttons to load various image.swf files. Also within Gallery is an empty movieclip called "ContainerMC" which is where image.swf are loaded into when called upon by the thumbnail buttons. From within Thumbnails, I want to be able to refer to that movieclip "ContainerMC" which those selected image.swf files are loaded into. I can't use _root as that will refer to the base flash file. I can't use "this" as that refers to the Gallery file.

View 2 Replies

ActionScript 3.0 :: Deeplinking 2 Level?

May 26, 2010

however he only used 1 level.how would it look like if i wanted to have 2 level navigation?

View 1 Replies

IDE :: Changing Root To Another Level?

Aug 1, 2010

I am trying to use parts of a template for a flash site in my own site.On one of my sites pages I am trying to use a set of buttons and pages. My problem is that the flash buttons & pages from the template are set to the ROOT of the template, but I am putting them on 1 or 2 levels difference on my site.Here is the code for the `release` of the button:

on (release) {
if (_root.link<>num and _root.animation == 0) {
_root.animation = 0;

[code].....

View 2 Replies

ActionScript 2.0 :: Swf Be Loaded To A MC And Level?

Aug 16, 2002

I have a preloader that calls a function to check whether a whole 2nd swf has loaded.

Then when it's loaded it plays the 2nd swf to a traget MC.

But I also need that MC and swf to be on another level.

This doesn't seem to work for me.

host.loadmovie("main.swf", 4)

It ignores the level part and just loads to the current levels host.

View 2 Replies

ActionScript 2.0 :: Loading Swf In Another Level?

Jan 30, 2005

Top level = main.swf bottom level = pagexx.swf (xx = 1,2,3,etc)

Problem: When loading another swf from the main.swf into main.swf, it works fine. But now I have a problem of loading page2.swf from page1.swf which is now opened in main.swf. I've tried using loadmovienum but they overlap each other instead of page1.swf disappearing. Hope I explained the situation well enough. Here's the script from main.swf used to load page5.swf (where all the 5 = page5).

on(rollOver) {
if(_root.link<>5) {
gotoAndPlay("s1");
}

[Code]....

View 6 Replies

ActionScript 2.0 :: CreateEmptyMovieClip--level?

Oct 22, 2002

Here is my loop:

puppycount = new LoadVars();
puppycount.load("puppycount.txt");
puppycount.onLoad=function(){[code]....

it works, but when I click on another button in my movie each movieClip that this script created remains above everything else? Something to do with the levels.

View 10 Replies

ActionScript 2.0 :: Return Value Of Current Level?

Mar 26, 2007

is there a way of checking what level a clip is on currently?

for example, in theory
if(_level.current==1){
blah blah;
}

View 8 Replies







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