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
Similar Posts:
May 16, 2008
I'm trying to test which .swf is currently loaded into a certain level. Is there a way to do this?
What I'm attempting is to load content for a portfolio into the main swf. However, if the "home" content is already loaded and the "home" button is clicked, I don't want it to reload.
By the way, I'm using AS 2.0
Also, is there an easy way to split the scenes in a .fla into separate .fla's?
View 1 Replies
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
Sep 12, 2005
I am having difficulty making the buttons of the 3rd level load the final set of external swfs and keep doing the smooth transitions they are supposed to, with midframes and outros. Somehow I am messing up the paths. I have several buttons in each level and they all work fine except the very last level.Below are a characteristic string of button AS for each level:
Main timeline:
on (release) {
if (_level0.currMovie == undefined) {
_level0.currMovie = "firm";
menu.loadMovie("firm.swf");
[code]....
All buttons inside assoc.swf are not working. I played around with the paths, but obviously I am missing something very simple and very ellusive about pathing. If I change the path in firm.swf so that _root is _lever0, then THOSE buttons stop working.
View 3 Replies
Feb 18, 2008
i read about the tutorial on loading external swf into levels. I have the following codes in Layer Frame 1:
Code:
loadMovieNum ("World.swf", 1);
_level1.gotoAndStop(2);
stop();
When i execute this code, world.swf is loaded, but i cannot get it to go to frame 2, and even if i use _level1.stop(); or _level1.trace("HI");,
View 2 Replies
Jan 30, 2004
Is it better to load external .swf's into levels or empty clips?
View 2 Replies
Oct 14, 2003
im using a load targetscript to load external swfs into the main timeline of my movie, however im keeping much of the other layers/mc's loaded, and the external swf is loading over them, the level the blank movie clip is created in doesnt seem to be working propperlly?? whats going wrong?
[Code]...
View 4 Replies
Dec 20, 2010
everything was going fine on a website project I've been working on, until yesterday. I'll try to explain the whole scenario first, and I'll put the code in here too so anyone can try to figure out what is wrong. Here's the breakdown of the site:
1) There is a MAIN SWF file that plays an intro and then stops on the last frame with the "Main" Navigation buttons.
2) Inside the Root folder where the MAIN SWF resides, there is another folder called "swfs" which contains six main external navigation pages, as well as another folder called "galleries" which contains additional external swf files for six gallery pages.
3) On one of the layers of the MAIN SWF, there is a movie clip called "mySWFLoadingClip" that the "Main" Navigation buttons load and unload the external swf pages onto. These all work perfectly. The problem start on the next step. This is the code I used for the navigation buttons on the MAIN SWF timeline:
[Code]...
If anyone can help me figure this out I would be really grateful. This is a very important project and the deadline is coming up very soon. Please help me figure out how to load an External SWF onto the main time line and then load an additional external swf from within the first external swf. I'm stumped.
View 3 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oct 2, 2010
Can I create context menu with two levels, like this (Show, Quality > (High, Middle, Low), ...)?
View 1 Replies
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
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
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
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
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