ActionScript 2.0 :: Loading Levels - SWF Not Going To 2nd Frame

May 16, 2005

Why my "nieuws.swf' is not going to frame 2 or not showing at all when I press the button with the second piece of code on it? The nieuws.swf has a stop on frame 1 and on frame 2. I can see it right away when I take away the first stop. I use the function playNieuws, to make it all happen.

Code in main movie, first frame:
#include "lmc_tween.as"
this.createEmptyMovieClip('hok1', 1);
with (_root.hok1) {
lineStyle(0.1, 0x666666, 100);
_x = 265;
_y = 216;
[Code] .....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Loading Levels - Nieuws.swf Has A Stop On Frame 1 And On Frame 2

May 16, 2005

why my "nieuws.swf' is not going to frame 2 or not showing at all when i press the button with the second piece of code on it? The nieuws.swf has a stop on frame 1 and on frame 2. I can see it right away when i take away the first stop. I use the function playNieuws, to make it all happen.

[Code]....

View 1 Replies

Actionscript 2.0 :: Way Of Putting Multiple Levels In One Frame?

Jun 30, 2009

I've made it generate enemies and give the player a way to destroy them, i want it so when all the enemies are dead it should move onto level 2, a new frame, or maybe you guys know a better way of putting multiple levels in one frame? so far i have got.[code]

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

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 2.0 :: Loading Movies At Different Levels?

Mar 5, 2004

I have a bit of an actionscripting dilema... I am trying load a movie ontop of another movie, so they are at different levels. This I can do ok, its just that when the new movie is launched and sits ontop of the old movie the buttons from the old are still active and interfere with the top movie. I know I could unload the old movie underneath, but my problem is that I want the user to be able to close the top movie to go back to the bottom movie at the place that they left it.!

View 5 Replies

ActionScript 2.0 :: Loading And Unloading Moviesclips In Different Levels?

Sep 1, 2004

I've got a mainmovie.exe, which creates 4 emptymovieclips as containersall of the containers load an external moviethe one at the top with a menu/buttonsI'd like the buttons when clicked to unload all the containers and reload the original lowest level movie from a particular frame. then it'll go through the process of creating empty clips, and load each external movie againBut since I'm playing the movies in an exe. I dont know how to unload all the containers and start the root/lowest level movie from a particular frame of a particular scene.The main movie is called mainmovie.exe, it creates containers 1 - to 4 as empty ,movie clips.DOes its thing, reaches a particular frame and loads movies into into container 1 - to 3, and topcontainer. Topcontainer is the most important. It has the buttons/menu. WHen I put an "on release action" to unload all the other containers and gotoAndPlay root ->frame 2, it doesnt work. It unloads everything, but wont load goto And Play.I'm left with a blank screen.So frame 2 of root mainmovie.exe

_root.createEmptyMovieClip("container3",3);
_root.createEmptyMovieClip ("topcontainer",4);
setProperty("container3",_x,901.5);

[code]........

View 2 Replies

ActionScript 2.0 :: Levels / Loading A Swf Into The Proper Place

Jul 6, 2007

I am apparently having problem loading a swf onto the proper level. Anyways, the short of it is that I now need to create all my movieclips on their proper layers and when they are needed call them to the screen.My main screen is on the first level/layer. I then created a movieclip on layer two. I then try to load the swf into that MC on layer 2 and it doesn't display.

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

ActionScript 1/2 :: Loading Multiple Levels Into A Main Level?

Nov 12, 2010

How could I make a preloader with multiple levels in as2? Should I use loadMovieNum or the MovieClipLoader class?
 
I want to make a main progress bar, that represents the loading of all the levels, not a progress bar for each level.

View 7 Replies

ActionScript 3.0 :: Platformer - Moving Character And Loading Levels

Jan 28, 2012

I am currently working on a platformer using accelerometer to move the character and xml to load levels as so..
[as]
level.x += (e.accelerationX*40);
if (e.accelerationX > 5) {
e.accelerationX = 5;
} if (e.accelerationX * 40 < 3 && e.accelerationX * 40 > -3) {
player.gotoAndStop(1);
[Code] .....
And it is all added into one movieclip called level. My problem is when the character hits under a platform it will go up it which I don't want it too, I don't know how to fix it heres the gravity code.

View 11 Replies

ActionScript 2.0 :: _level Syntax - Loading External Swf Into Levels?

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

ActionScript 2.0 :: Loading Individual Levels Before Play Them To Remove 1 Long Wait?

Aug 10, 2008

I am currently doing a project which involves quite a large swf file at the end. I was wondering if anyone knows a way that i can easily make it so that at the begging, when first loading up the flash, it just loads the menu and a couple of other frames, but when i go onto play the game, it will load each level just before you play it, so that the player doesnt get bored from waiting right at the begging for a while when they can wait 5 seconds before each level.

Im pretty sure ive seen this done before but im not sure whether it is preparing it in that time, or downloading it. I want it so that there will be a 10-20 second wait for the game to load up, then you go to the menu, press play, loads the next frame, or certain number of frames, you play that level, then it keeps on doing this for all the levels.

View 2 Replies

ActionScript 3.0 :: Partially Loading An External SWF (frame By Frame)?

Dec 2, 2009

I have an application swf that loads a big external swf with all GUI components/assets (skin) in it.I want to display a progress bar during loading of the external asset swf file but the images for the progress bar are also included in the external swf file.Is it possible to load only a portion of the external swf before loading the rest. The idea is to load the progress bar images from the external swf, then construct the progress bar and than load the rest of the swf. I was thinking to put it on different frames. Frame 1 containing the progress bar graphics and frame 2 the rest of the assets.

View 3 Replies

ActionScript 3.0 :: Frame 3 Objects Loading In Frame 1?

Jul 28, 2009

I'm working on a mock project (no real client involved) and just sent the site out to some friends to view and give feedback. All of them saw what I was seeing and said it looked great. One person however, said the site looked like it was loading in weird. He sent me a video of what he was looking at. It seems like the contents of my 3rd frame are already loaded in at frame one and the ones that load in dynamically in frame 3 never come in at all. Lots of things going wrong here. Below is a link to the live site and a link to a zip file containing all working files. Inside the zip is also a couple of video files, one is a video of what the site should look like (Vid1.mov) and the other is a video of what my friend was seeing (Vid2.mov).

[URL]

This link is a zip file of all working files: (please keep in mind that I am pretty new to AS3 and realize that my files might not be built in the best way possible - just trying to get it to work at this point)

[URL]

View 6 Replies

ActionScript 3.0 :: Frame 3 Objects Loading In Frame 1 ?

Jul 27, 2009

I'm working on a mock project (no real client involved) and just sent the site out to some friends to view and give feedback. All of them saw what I was seeing and said it looked great. One person however, said the site looked like it was loading in weird. He sent me a video of what he was looking at. It seems like the contents of my 3rd frame are already loaded in at frame one and the ones that load in dynamically in frame 3 never come in at all. Lots of things going wrong here. Below is a link to the live site and a link to a zip file containing all working files. Inside the zip is also a couple of video files, one is a video of what the site should look like (Vid1.mov) and the other is a video of what my friend was seeing (Vid2.mov).This link is a zip file of all working files: (please keep in mind that I am pretty new to AS3 and realize that my files might not be built in the best way possible - just trying to get it to work at this point)

View 3 Replies

ActionScript 3.0 :: Slideshow Loading In One Frame, Not Loading In Another

Jun 11, 2009

I have two separate slideshows in my document. The slideshow on frame 1 uses  ixia_works.xml, the slideshow on frame 5 uses ixia_windows.xml.  wrote all of my slideshow code on frame 1 and created a variable to hold the xml file.  On frame 5 I assigned the new value of the variable. The slideshow on frame 1 works perfectly; the slideshow on frame 5 won't even load.
 
Code on frame 1:
//in order to work with tweens, necessary to import tween classesimport fl.transitions.Tween;import fl.transitions.TweenEvent;import fl.transitions.easing.*;

[Code].....

View 5 Replies

Frame 3 Objects Loading In Frame ?

Jul 27, 2009

I'm working on a mock project (no real client involved) and just sent the site out to some friends to view and give feedback. All of them saw what I was seeing and said it looked great. One person however, said the site looked like it was loading in weird. He sent me a video of what he was looking at. It seems like the contents of my 3rd frame are already loaded in at frame one and the ones that load in dynamically in frame 3 never come in at all. Lots of things going wrong here. Attached is a video of what the site should look like (Vid1.mov) and a video of what my friend was seeing (Vid2.mov).
 
Also, the link below shows the site live: [URL]
 
This link is a zip file of all working files: I realize that my files might not be built in the best way possible - just trying to get it to work at this point) [URL]

View 2 Replies

IDE :: Loading A Frame In A Swf?

Mar 19, 2009

i've been trying to figure out how to load a frame in a swf by clicking on a button from another swf file ,i not sure the code .i got a swf. named as aboutus.swf then in it there is a button in a movieclip in which you click it , it should go to Services.swf frame 25 which is a movieclip.

View 2 Replies

ActionScript 3.0 :: Loading SWF To Frame Not 0?

Jan 21, 2009

I have been at this for two days and I've tried every suggestion on this website. Either AS3 says it doesn't support it (such as _root, TellTale) or I'm not coding the suggestion right because the code is getting ignoredI get the swf to load fine just not to a specific frame. I need the loaded SWF to start on ("Page_19") or its frame #.

var myLoader:Loader=new Loader();
btn_forward.addEventListener(MouseEvent.CLICK, loadMain);
function loadMain(myevent:MouseEvent):void {

[code].....

View 4 Replies

ActionScript 2.0 :: Loading Swf Into Frame?

Jan 27, 2003

Working in Flash5 - I have an swf file thas like a movie screen the I want movies (external swf) to load into-but I want these movies to fit within a particular area centered on the screen.To test this out I have created 3 animations photo1.swf thru photo3.swf and the screen photogaller.swf.The photogaller.swf starts at a blank screen and has a forward and back button. In the forward button I have this code modified appropriately for each frame:

//this is in frame 2
on (release) {
unloadMovie ("photo1.swf");

[code].....

View 2 Replies

ActionScript 2.0 :: Loading JPG From Different Frame?

Dec 19, 2006

i just knew that when you loadMovie some external JPG. it isn't cached in memory. so when you call the JPG again, you will reload it.then i got answer from here saying that by using MovieClipLoader, you don't have to waste bandwidth and call the JPG from memory.here's quote from the website: "So I can load it everywhere I need it without using any bandwidth. In this way I can attach the loaded resources everywhere in the movie."now the study case for me.- i want to load a JPG in frame 5.- then i want to preload the jpg in frame 1.the reason behind it is simply i want to load the jpg first, then view jpg later without dl it first.the code i use:frame1item is empty movie clipload_text is empty textfieldtotal_text is empty textfield

View 1 Replies

IDE :: Linking To A Certain Frame When Loading A Swf?

Mar 4, 2009

I have a main movie in which all my buttons are, this movie loads the other swfs in a contentHolder movie clip.Now the problem is that I need to link to a certain frame in the loaded swf.

button_btn.onPress = function() {
contentHolder.loadMovie("investment.swf");
};

Now in the investment.swf I want it to go straight to frame 5. I have done lots of looking online, but cant seem to find the answer. I think I need to use variables but am not sure

View 1 Replies

ActionScript 2.0 :: Loading A MC At A Certain Frame?

Jan 1, 2005

how to load a movie clip in actionscript and then have it start playing at a certain frame.

View 9 Replies

ActionScript 3.0 :: Everything Loading On Frame 1 - Preloader?

Sep 2, 2009

I am trying to figure out how to add a preloader to my source, but i have an issue everything i have written is loaded externally through actionscript on frame 2, but it still shows everything loading on frame 1.

Here is what the bandwidth meter shows... it is showing everything on frame 1.

I need the preloader to load on frame1, and its not working. Instead the preloader loads with the rest of the site, and dissapears right away.

View 2 Replies

ActionScript 3.0 :: Loading Next Frame On External SWF

May 14, 2010

I've got a .fla with different buttons. when I klick them different loaders loads ext swfs.

Code:
var myloader4:Loader;
this.revista.addEventListener(MouseEvent.CLICK, movie4Click);
function movie4Click(event:MouseEvent):void {
gotoAndStop("white");
var myrequest:URLRequest=new URLRequest("rec.swf");
myloader4 = new Loader();
myloader4.load(myrequest);
stage.addChild(myloader4);

Underneath the loaders on the label "white" I have to buttons, next and prev. I want to, when I press them, to go to the next frame of the loaded swf. I've got 6 diff ones. (myloader1-myloader6).

View 1 Replies

Loading A Specific Frame In An External SWF

Sep 13, 2009

I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.

View 2 Replies

ActionScript 3.0 :: Loading SWF At Certain Frame Label

Nov 24, 2009

This code works great to pull up a swf at a certain frame label. But if I reuse it someplace else to pull up a different swf, I get errors?
var req:URLRequest = new URLRequest ("scene1.swf");
var loader:Loader = new Loader();
loader.load(req);
addChild(loader);

View 1 Replies

ActionScript 3.0 :: Loading A SWF Into A Specific Frame In A SWF

Feb 2, 2010

I'm having a some trouble with loading an SWF into my main SWF. I have found multiple ways of doing it, but I want to find the most appropriate way for what I'm doing.

Here's what I'm doing:

I have a main SWF with 4 frames. I want to click two buttons that will then load two SWF into frame 2 and frame 3. Below is the script I wrote for the buttons. The earlywork_btn needs to load RColeman_EarlyWork.swf into frame 2. This swf is a slide show. The currentwork_btn needs to load RColemna_CurrentWork.swf into frame 3.

I'm not sure which scripts to use to load the SWF's and how to arrange it in the ActionScript panel.

ActionScript Code:
//
stop();
function onbiographybuttonClick(evt:MouseEvent):void {

[Code]...

View 5 Replies







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