ActionScript 3.0 :: Multiple Loaders Wont Overlap

Feb 11, 2011

I have a menu swf with multiple buttons and an animated logo which is in a loader called myLoader

These buttons are in an MC which uses this[code]...

...and so on with the add.event.listeners and they all work great- they overlap the menu then disappear.

The problem I have is the logo always stays on top of everything. Looks rather stupid, is there a way I can hide this logo behind the swfs while they play?

View 11 Replies


Similar Posts:


ActionScript 3.0 :: Loading Multiple Images To Multiple Loaders With A Loop?

Sep 2, 2010

i have been building a library that has thumbnails which you click to view the full image. i have built the application it works but i want to change the way the image on the actual thumbnail loads using code instead of manually adding the value to the url loader component.

var myX;var instanceN:String;trace(instanceN);var currentLoad:uint = 0;// current loader and image loadingvar thumbnailURL:String;//Thumbnail URLvar thumbReq:URLRequest;// Thumbnail url requestfor(var k:uint = 0;k < iL_btn.length; k++)[code].....

the loop runs fine without the last line of code which i've commented out.the make up of these thumbnails are a uiLoader component which are each inside there own movieClip.what i wanted this to do was every time the loop runs it currentLoad adds 1 to its value then that value is subbed into instanceN:String and thumbnailURL address that bit works the trace statements read correctly.but my issue is using the instanceN value as the instance name path which then loads the current thumbnailURL value which is the URL address for the thumbnail picture.when i try to load the url address using the commented out code above i got the error .TypeError: Error #1010: A term is undefined and has no properties.the trace statements correct values below

the first value is the currentLoad value.

the second value is the instance name path.

the third is is the URL address for the thumbnail.[code].....

View 3 Replies

ActionScript 3.0 :: One Or Multiple Loaders ?

Mar 8, 2010

I am making a web page and i have to load in to main page swf multiple swfs that represent background. First there is a gradient swf than swf with snow particle system. My question is what would be best practice to use one loader for all different swfs that are in the background or should i use different loaders for different swfs?Here is what i mean:

1.) var loader:Loader = new Loader();

I use this loader to load first gradient swf and after it it has completed loading i use same loader to load snow swf.

2.) var loader:Loader = new Loader(); + loader = new Loader();

I use this loader to load first gradient swf and after it it has completed loading i set it again to be loader = new Loader();
and than i use this loader to load snow swf.

3.) var bgLoaderGradient:Loader = new Loader(); + bgLoaderSnow:Loader = new Loader();

I use it to load gradient swf and than i make new loader,

bgLoaderSnow:Loader = new Loader();
to load snow swf.

So what would be best way to do loading of the swfs.

View 5 Replies

ActionScript 3.0 :: Multiple Loaders In Loop?

Jul 6, 2010

in a loop i wish to load a sequence of images in an individual movieclip for each. e.g image0 in movieClip0, image1 in movieClip2 etc...

i've set up the loop and the movieclips are added using an array.

addChild(aMovieClips[i]);

when i use loaders.load(new URLRequest("assets/images"+section+cityCode+i+".png"));

it unloads the previous images and only shows one image in the last movieClip.

I then tried using loader[i].load but this didnt work.

I then tried creating the loaders outside of the loop and then adding them to an array but this doesnt seem to work.

specifically it breaks at aMovieClips[i].addChild(aLoaders[i]);

How do i go about adding a different image to each individual movieClip.

View 5 Replies

ActionScript 3.0 :: Time Out From Multiple Loaders

Feb 25, 2010

Picking up on something wvxvw said recently in another thread:[code]you shouldn't start several loading operations concurrently, you should wait for the first loading to complete and then start another loading, otherwise you are risking to get "request timed out".Had me wondering. I recently changed things around in several of my scripts when I found that running multiple loaders would speed my overall time spent loading by a significant amount (often halving the loading time).So I was curious for some more information and opinions on the matter.[code]

View 1 Replies

Flash - Waiting For Multiple Loaders To Complete

Nov 23, 2011

I have an arbitrary number of images I want to load. I want to load them, wait until I get an Event.INIT for each, and only then proceed with the rest of the program. I know I can do that by having an Event.INIT listener update and check some count variable, but is that the standard approach? Is there a more elegant or AS-specific way?

View 3 Replies

ActionScript 3.0 :: Pushing Multiple Loaders Into Array At Once Freezes Flash

Aug 14, 2010

It works fine if I wait until the image is actually loaded (loadComplete) and then push the bitmap I create. If I try to push the loaders like you see here, it freezes up, every time. [code]..

View 5 Replies

ActionScript 3.0 :: Load Multiple External Images Into Mc Instances On Stage / Using Different Loaders

Jul 29, 2010

I'm using this AS to load multiple external images into mc instances on a stage, using different loaders.[code] The external images always load from the upper left corner down,  how can you make the image load from the center of the instance on stage?I found this code below and doubt it will work for me since I have 5 mc instances on different parts of the stage, so the stage wouldnt be a good reference point.[code]

View 1 Replies

ActionScript 3.0 :: Multiple SWF Load - Keeping A Reference To The Loader And The Classes Holding The Loaders

Jul 31, 2009

I'm loading a bunch of SWFs at the same time. I'm using a custom class to do the loading. Most of the time they all load OK, however occasionally one or two will be unloaded (I can see that in the console) before we get to the Event.COMPLETE. The ProgressEvents are all fine - I can see them loading, but then boom - they're unloaded.

I've done a bit of digging around and discovered that this may be a bug in the Loader class where if you are using multiple instances of the class then sometimes one or more will be Garbage Collected before they finish loading and are therefore unloaded. I've tried keeping a reference to the loader and the classes holding the loaders and I'm still having the problem. The solution is to queue the loads and load each swf in order which isn't a problem, just a bit irritating.

View 2 Replies

ActionScript 1/2 :: No Loaders In .EXE?

Aug 26, 2010

My main project loads an external .swf ("room") depending on which button the user clicks. Once that external .swf ("room") is loaded, the viewer chooses a ("demo") .swf to view. For each button click, a loader is to appear showing the viewer that the desired room or demo is loading. All of this works fine for the web...please click the link below to view.
 
The problem exists when I try to publish as an .EXE. We'd like to send these out to prospects on CD and thus I need an .EXE to autorun when insterted in a PC. I've published the main .SWF (overhead map) as an .EXE and burned a cd containing all necessary files. Now when the user clicks a room and then a demo, the loader that shows up fine on the web does not appear...the button stays in the down state until the demo .swfs loads and then the demo appears and plays.

View 18 Replies

Flash Overlap With Z Index?

Oct 25, 2007

I have a flash drop down menu that overlaps a separate flash piece in an HTML page. The example of what I am talking about can be found here: [URL]

When you hover over product types, you'll notice that the drop down falls under the 'water banner'. I have set the z-index of that specific banner to be lower than the flash header but it still did not work. When I change the 'water banner' to a static image instead of a flash file, the menu overlaps without a problem.

This is the style that I have applied to the navigation bar

#flash_piece {
z-index: 1;
position:relative;
top:0px;
}

View 8 Replies

ActionScript 3.0 :: Some Of Clip Overlap Each Other

May 6, 2009

I have 9 movie clips on stage that i am shuffling but some of the clip overlap each other how can i prevent this?[code]...

View 2 Replies

Can 3D Objects Overlap/intersect

Oct 15, 2009

Not sure how best to put this into words  Ddoes the depth manager always keep one on top of another, or can planes intersect, overlap, go through one another?

View 1 Replies

ActionScript 2.0 :: Using HitTest For No-overlap?

Sep 22, 2006

I'm trying to use hitTest so that if any images overlap they will be replaced on the canvass.

ActionScript Code:
function imgSeed(){
for(i=0; i<5; i++){[code]....

although this works, It checks against itself, so it always true at least once, how can I tell it not to check against itself?

View 3 Replies

ActionScript 3.0 :: Sounds Overlap For Self?

Sep 11, 2009

I want to add a lector in every frame with question. Everything works fine if i have 3 sounds of lector. When i add next, more then 3, in 4 frame sounds starting overlap on self.I dunno why, there is no error or warning. Funny is, if i change positions of sound for example add lector to 1,4,5 and 6 frames, overlap starting at frame 6 and next ones. I solved this problem by playing sound with AS3.

Here is a code:
Code:
var soundReq:URLRequest = new URLRequest("1.mp3");

[code].....

View 1 Replies

ActionScript 3.0 :: Overlap A Bitmap To Another?

Mar 29, 2011

how can overlap a bitmap to another, setting the alpha of the top one in a way that I can still see the bottom one?Like if in photoshop I have to levels with one image each and I decrease the alpha of the top level.

View 6 Replies

ActionScript 3.0 :: When Using Loaders For All The Images?

Feb 18, 2011

I'm making an image gallery and am loading about a dozen thumbs that load a larger image when each one is clicked. Works just great so far. But, as expected, there's a little pause before each corresponding large image is displayed.I'd like to eliminate the wait, if possible, so here's my question: As a matter of preference or programing style, whatever you want to call it, do you guys usually load ALL the images first, thumbnails as well as large images, before displaying anything on the stage? Or do you just load each large image when necessary, after its corresonding thumbnail is clicked?Sometimes I see very cool Flash sites that have the percentLoaded line or twirler displayed for what seems like a long time, but then each screen (MovieClip) after that displays fairly quickly and I'm wondering if that's what's happening - all, or at least a LOT of the images are being preloaded

View 3 Replies

ActionScript 2.0 :: _root And Swf Loaders

Nov 9, 2010

Edit - managed to find an answer to this by using _parent instead of _root

I've got a swf loader that loads a swf obviously but in the swf that's being loaded I have a button inside of a movie clip which I use...

Code:
on (release) {
_root.gotoAndStop("page1");
}

When viewing the swf file on its own this works perfectly, however when it gets loaded into the first file it no longer works because the root has now changed to that first file.

View 0 Replies

ActionScript 2.0 :: Sound Overlap And Mov Does Not Work?

Feb 26, 2009

Im using Flash CS3 with Action Script 2. I create a Flash file with few scenes in it. im using movie clip button in every scenes plus i embed .mov file in some of the scenes. I also have sound in every single scenes.

i create btnHDPage1 with instance name hd1 to be linked to scene1 and i create btn2 with instance name hd2 to be linked to scene2. (all these buttons are movie clip buttons). i have a sound and both scenes and a .mov file in scene1

The problem is, when i click on hd1 or hd2, yes it goes to appropriate scene. but the sound is overlapping and when im in scene2 and click on hd1 to go to scene1, my sound does not play and my .mov does not working.

[Code]...

View 4 Replies

ActionScript 2.0 :: Draganle Items Overlap?

Mar 20, 2009

i am doin a room planner where objects can be moved about 2 problems i got so far number 1 how can i make it so the objects can not overlap each other when the user drags them about 2nd problem is is it possible to put a arrow on the corner so when the user clicks it it spins round?

View 2 Replies

ActionScript 2.0 :: Flash8 Random Without Overlap

Aug 1, 2009

I have a screen showing 6 buttons. 3 of these buttons are fixed controls which must always be in view while the remaining three will be randomly selected for each question from a total of about 150 possibilities (do I really have to make 150 differently labeled buttons? (but this is a side issue)). these randomly selected buttons show up at randomly selected screen positions? I'm vaguely aware that X and Y and random will be used here.

The idea is to prevent the user from becoming familiar with the layout and building an intuition which would be counterproductive to the aim of the application. The remaining aspect of this problem after randomizing the position of the three dynamically generated buttons is that they must not overlap the 3 fixed controls which must be always available. I'm sure II could spend weeks on this without a few good tips to point me in the right direction.

View 2 Replies

ActionScript 3.0 :: Scatter Images Without Overlap?

Jul 1, 2010

I am creating a flash website and I want to scatter images all over the screen. Now doing this part isn't that hard, as it seems simply as giving them random coordinates. However I do not want them to overlap each other nor certain areas.I haven't scattered them yet, I've tried though with hitobject etc. How can I solve it so they won't overlap each other?

View 5 Replies

ActionScript 3.0 :: Check If Two Symbols Overlap?

Jan 15, 2011

I'm building a game in Flash (AS3), and I need to check for a 100% Overlap of 2 symbols.

View 3 Replies

Professional :: CS5.5 Buttons State Overlap

Jun 24, 2011

I have designed an interface and on one of the pages there are thumbnails of book covers which you rollover each cover and on the "up and  down" states ive included the blurb which has some details about that articular book. However not all books appear correctly, the blurbs go behind the other book covers. All the books covers are placed on a single keyfame in the timeline, i have tried it on separate layers as well but got the same result. above the screenshot of the problem: Ive tried many ways to fix it and each time it is the same.

View 3 Replies

ActionScript 3.0 :: Snap One Draggable Mc To Another When Overlap?

Oct 28, 2010

i have two draggable mclips on stage and need one of them two snap to the other whenever it passes over it. I tried with f(hitTestObject){ mc1.x = mc2.x; and mc1.y = mc2.y}, but it doesn�t work very nice.

View 1 Replies

ActionScript 3.0 :: Detect If Movieclips Overlap A Little?

Mar 22, 2012

I have two movieclips and I want to test if they have collided. However, I want them to still be able to touch eachother (i.e. no pixels between them) without them registering that they have collided. I'm using the following code but it doesn't quite do the trick for what I am wanting to do:

Code:
thisMovieClip.hitTestObject(thatMovieClip);

View 1 Replies

ActionScript 3.0 :: Drawing API - Solid Overlap?

Feb 15, 2007

I'm trying to simply draw a solid shape consisting of various other shapes, however, when I overlap two shapes, the overlapped area becomes transparent again. For instance:

Code:
var myShape:Shape = new Shape();
myShape.graphics.beginFill(0x000000);
myShape.graphics.drawCircle(10, 10, 25);
myShape.graphics.drawCircle(20, 10, 25);
myShape.graphics.endFill();
this.addChild(myShape);

The above code is AS3, but I believe the same thing happens for AS2 as well. The overlapping area between the two circles is not clack.

View 1 Replies

ActionScript 3.0 :: Random Spacing With No Overlap?

Jan 29, 2009

I like to place lets say 4 movieclips on the stage with a random x-axis, but with no overlap, and if possible also not outside the borders of the stage. Performing the hit test would be not to hard, but then perfomring it again untill it is true, that is the tricky part (for me).

On the other hand I just want to place them visually random on stage, but infact they need to be more or less evenly distributed over the stage width, so maybe another solution is easier?

part of the code:

Code:
else if((i > spacery) && (i <= spacery*2)) {
container.x = Math.floor(Math.random()*800);
if (if (container.hitTestObject(container)){

[code]....

View 2 Replies

ActionScript 3.0 :: Preventing Overlap On Hit Test?

Oct 13, 2010

I have two rectangles, one of which is draggable, and when hitTestObject occurs I want to prevent the overlap.

here is the code:

addEventListener(Event.ENTER_FRAME, detectColl);
redSquare.addEventListener(MouseEvent.MOUSE_DOWN, grabIt);
redSquare.addEventListener(MouseEvent.MOUSE_UP, dropIt);

[code]....

View 2 Replies

ActionScript 3.0 :: Referencing Loaders In An Array?

Jun 28, 2010

I have a project that needs 4 levels of zoom, each with its own image loading in. So, to make things easier on myself, I made an array of the Loaders, so I can instantiate them and hide/display them when I need toHowever, this doesn't work as I had expected. I.e. (using just two level for simplicity):

Code:
private var photo:Loader;
private var photoLarge:Loader;

[code].....

View 4 Replies







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