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


Similar Posts:


ActionScript 2.0 :: Reference The Clips That Were On Those Levels?

Jan 12, 2004

What I want to know is - if you build a swf that has lots of levels (say from using createEmptyMovieClip), and then you load that swf into a movie clip(containerMC) on another swf - does the first swf still contain all those levels? Or is it flattened?

And if it is flattened - how do you reference the clips that were on those levels? Can you just use _root.containerMC.instancename? where instancename is the name given to the clips that were created inside the createEmptyMovieClip.

View 14 Replies

ActionScript 2.0 :: Control Different Levels And Movie Clips?

Jun 30, 2009

I want to control elements and movie clips from deep within an another movie clip

for example I have a button inside of a movie clip � So

_root > Symbol 1 > Symbol 2 ( Symbol 2 is the button )

Now I have another MC on the main stage that has an animated MC in it.

So

_root > Symbol 3 > Symbol 4 ( Symbol 4 is the animated item )

So now lets say I want to be able to click ( or rollover ) on the button ( Symbol 2 ) for the animation to go to a specific frame and play

I have this all the time where I am struggling to control stuff deep within from other stuff deep within an MC.

View 1 Replies

ActionScript 2.0 :: Load External .swf's Into Levels Or Empty Clips?

Jan 30, 2004

Is it better to load external .swf's into levels or empty clips?

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

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 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 3.0 :: Accessing Clips Inside Clips Of Dynamically Generated Clips

Jan 15, 2009

For loop generates clips containing clips. I need to access a specific clip (look_back) within the parent clip generated by the loop. Not sure how to do this.[code]

View 1 Replies

Loading Movie Clips From A Button?

Feb 28, 2010

I have three movie clips, called clip1, clip2, and clip3 that are in my library but not on the stage.

On the stage, I have a movie clip of a curtain that is a button. How can I make it so that clicking my button (which makes the curtain rise) will load and play one of the movie clips in the library?

View 1 Replies

ActionScript 3.0 :: Loading Movie Clips One After Another?

Feb 22, 2009

I have 16 movie clips on separeted layer on frame one on the timeline and I want to start one after another with a delay of one second between each of them. I feel like it should be easy, but I didn't find the solution so far. Anybody with a real life exemple, a tutorial or what method to use?

View 3 Replies

ActionScript 2.0 :: Loading Movie Clips?

Sep 30, 2003

have a movie and want to load external swf files into the middle section. my navigation allows users to access from 10 buttons. i can load the swfs either thru reateEmptyMovieClip, or loadmovieNum. but i can't seem to control the levels. that is previous movies can be seen underneath the new loaded movie... i need to clear previous movie clip before loading the next, i think??here is createEmptyMovieClip code.

this.createEmptyMovieClip("generic_mc",2);
generic_mc.x=0;
generic_mc.y=62;

[code].....

View 6 Replies

ActionScript 2.0 :: Loading And Unloading Clips?

May 18, 2002

When my flash site loads the menu is displayed on the left and an animation on the right. When I click on a menu item I want the animation on the right to change to a new clip. How do I do this.

View 3 Replies

IDE :: Loading Random Sound Clips?

Aug 26, 2009

I was wondering if somebody could point me in the right direction to be able to load in a random sound clip (from a set of 5 or more mp3s) when the user rolls over a button. I can't seem to find a way to do this.

View 14 Replies

ActionScript 3.0 :: Loading And Unloading Movie Clips?

Mar 12, 2010

SO what I have here is a simple menu with 5 buttons. I have event listeners attatched to each button that loads an external swf each time each button is clicked. Im trying to wrap my head around a solution to unloading the movie clips. as it is each swf is just getting loaded on top of the other one when the button is clicked.

a sample of a button code is:
var hList = hardwareDisplay;hardware_mc.addEventListener(MouseEvent.CLICK, hListDisplay);function hListDisplay(event:MouseEvent):void{  hList = new

[code]....

View 5 Replies

ActionScript 3.0 :: Loading Audio Clips After Frame One

May 12, 2010

The project I'm working on consists of a bunch of pages, each with narration. Each page is a separate frame on my main timeline. Due to all kinds of issues I was having, I am now loading in the audio via actionscript, rather than placing an instance of it into an object and going from there. The issue I am now having is that when I tried to simulate a download, the movie would sit on frame zero until all audio was loaded, so it took a long time to get to my preloader, and by then the movie was just about finished loading.

It was suggested that I uncheck "export at frame 1" on my audio files, but now I am getting errors that I am making a call to a possibly undefined method (random audio file name of choice). If I am loading my my audio via actionscript, do I have to load it all in on frame 1? And if so, is there any way for my movie to get to my preloader before trying to load things? I have also tried setting my publish settings to export my classes on frame 2 or 3, in the hopes of it getting as far as my preloader before stopping, but no luck so far.

View 12 Replies

ActionScript 2.0 :: Loading Data From Xml Into 3 Different Movie Clips?

Jan 28, 2009

I am trying to load data into 3 different movie clips. (content_mc, content2_mc and content3_mc). Each movieclip will get one image and two bits of text (picture, who and bios <== instance names)

Those 3 movieclips are inside of another movieclip, contentHold. That movieclip is setup to scroll vertically ( I was able to do that myself ).

SO my problem is I have that I can't figure out how to load the data into the 3 movieclips as I want to.

I have attached my .fla and .xml file from the project.

View 3 Replies

ActionScript 2.0 :: Loading Movie Clips From Library?

Jan 30, 2009

I'm new to AS but have some coding background (php, sql, vba) and some basic (non-AS) Flash skills.I want to create a bar chart a bit like this: http:[url].....Really would like some sample code if poss. This is my thinking:

1) Each section of the bar chart will be a movie clip, mc_2, mc_3 etc.

2) There will be an array with Qty, Type, Desc and Name of movie clip (e.g. mc_3).

3) There is a generic bar chart "block" movie clip in the library ("Block")

4) So I plan to loop through the array, attachMovie for each iteration, resize the Movie proportionate to Qty, and colour it by Type.

Problem is: (1) I don't know the right functions to use; (2) Are mc_2, mc_3 INSTANCES of my generic movieclip, "Block" ? (3) should the code sit on the timeline? (4) do i need an empty movie clip to attach the library item to?

Code:
Pseudo code:
n=length of array
for (var i:Number = 0; i < n; i++) {[code]....

The final thing would be a bit more complex with frames etc, but generating the movies would be a start.

View 2 Replies

ActionScript 3.0 :: Loading Different Movie Clips To ScrollPane?

May 6, 2010

The site is structured with all content inside entireSite, with two further movie clips nested myMenu, which contains all the button movieclips (rollovers etc) and AS to navigate the site and another entitled allPages which contains all the content.

on entrance to the site i want a grid of images appears which is scrollable using scroll pane. I have managed to achieve this just on a standalone .fla following this tutorial with the code

[URL]

scrollPane.source = myContent;
scrollPane.setSize(556, 300);

with the code sitting on the main timeline

now i have structired my site properly im having difficulty getting it to load correctly. I have the correct instance names for scrollpane and the linkage for the movie clip i want to load. im just wondering that now my scrollpane is nested in entireSite then allPages that the code will not recognise it?

How do i make it point to it? Also, as i move between different pages of the site more content will require a scrollPane, can i just use different instance names to do this?

Or should i go about removing the movieclip in scrollpane and adding a new one?

View 0 Replies

ActionScript 2.0 :: Loading SWFs Video Clips One After The Other?

Aug 20, 2007

Using Flash 8 and CS3.I have video clips that are SWF's and want to load them into a blank movie clip one after the other automatically. So when one movie ends the other one will load up and play.I have tried using a wait function and it didn't work, it just kept playing the 1st clip over and over again.

View 1 Replies

ActionScript 2.0 :: Loading Into Clips Created By For Loop?

Nov 28, 2008

why this won't work?

Code:
var base:MovieClip = this;
// initiate

[code].....

View 1 Replies

ActionScript 2.0 :: Loading Dynamic Images Into All Clips

Oct 13, 2002

i know there been a lot of poasts on this but none of them. I am duplicating a movie clip called "thumb" on my main timeline. they are named by number (1 to 233) within each clip i would like to load an image

[Code]...

the reason i have put in 10.jpg is just to get it loading one image into all clips. But its not loading the image into any. the trace is bringin back each MC's name fine when i remove the if(_name != "thumb"){ it loads the image into the duplicated original MC so im completely confused. this is the duplication script on the first frame of my Main timeline

[Code]...

View 2 Replies







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