ActionScript 2.0 :: Load Certain Things After Everything Necessary?
Jun 17, 2009
Is there a way to have it so a Preloader only loads necessary things for the game? I want to have it so you don't have to wait for all the cutscenes(all located in their own MC) in the game to be loaded in order to play it: you can just wait until the cutscene is needed, and when it is, the AS can be told to load an MC which contains it.
View 1 Replies
Similar Posts:
Feb 8, 2011
In my game, Ive got a HUD, (heads up display, life bar, points scorer etc...) and when an enemy comes onto the stage, the lifebar is appearing behind everything else, and it should really be the thing that's infront of everything else. Is there like a line of code and a function or variable I should declare or import that allows me to create depth and put my lifebar at the front.
View 2 Replies
Oct 7, 2010
I'd love to know how to make click and drag two different things. As it believes the drag function is also a click. Also I'd love to know how to set it so that ALL movieclips stop when they reach say -10px from each side?
View 2 Replies
Mar 27, 2008
I'll try to explain the general operation of my program, and that might shed some light on my issue. I have a menu with 50 different small postcards. When one is chosen, the program zooms it up in order to fill the screen, populates some data which is unique to each postcard, and "flips" it so you can see the writing on the back. The postcard is a movieclip which imports a front image, 3 back images, and some XML text. There are some buttons on the "back" of the postcard to choose to look at a few images and text.When you choose to close the postcard, it flies away. I use the same movieclip for all 50 postcards, and just change the images and text that I load.
Once the postcard flies away, I want to remove it from memory. It won't happen with removeChild() as that keeps it there in case I want to reference it again I guess, and I have tried setting the postcard variable name to "null" without much success.I add listeners to the buttons on the postcard when I instantiate its class, so I am not sure if I have to remove them in order to get the garbage collector to deal with it. But, I also don't know what I don't know about removing things from memory. In one section of the Flash docs (Working with display object containers) it says:
"The removeChild() and removeChildAt() methods do not delete a display object instance entirely. They simply remove it from the child list of the container. The instance can still be referenced by another variable.(Use the delete operator to completely remove an object.)"And, at another place in the docs (the script reference about removeChild()) it says:
"Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance. The parent property of the removed child is set to null , and the object is garbage collected if no other references to the child exist. The index positions of any display objects above the child in the DisplayObjectContainer are decreased by 1.
View 6 Replies
Sep 15, 2008
I have a movie clip on the stage. In the main .as file, I can easily access the instance i.e., myMovieClip_mc.x = 10; How do I do that from a class in my "classes" package? I am passing the stage instance into the constructor of the class, so I would think something like myStage.myMovieClip_mc.x = 10 would work, but it comlains that it is null.
View 1 Replies
May 8, 2009
Is is OK to use on listener for multiple events on the same object?I have this for a FLV component and it seems to work. Is that legit?[code]
View 3 Replies
May 23, 2009
Is it just me or are others having problems loading things like html an fla files?
View 3 Replies
Dec 21, 2009
I want to develop a player, which shows imagesMost of the things can be done SAMPLE :[URL] but I am so much confused about the progress bar or scrubber which can be moved or how to arrange with respect to time just like VIDEO Player every image will have to play 10 sec , so if 20 images , so there will be 200 sec so how i should control this time bar or even when user move the scrubber, it moves to exact image with respect to time
View 2 Replies
Sep 1, 2010
I have a menu movieclip that has 800 x 22 px i need to embed this flash menu in a jsp page and make that the displayed menus got outside of this size and overlay the contents of jsp. kinda of what does the menus of the adobe page
View 1 Replies
Dec 2, 2010
I have flash cs4 and cant find the Up, Over, Down, hit button things
View 2 Replies
Jul 20, 2011
How do I put things above an mx:HTML element? No matter where I place the code it's always under the <mx:HTML> element.
Example:
<mx:Canvas x="50" y="50" width="50" height="50" backgroundColor="#ff0099"/>
<mx:Label x="150" y="50" color="#ffffff" text="CAN YOU SEE ME?"/>
<mx:HTML x="0" y="0" width="500" height="500" location="[URL]"/>
<mx:Canvas x="50" y="50" width="50" height="50" backgroundColor="#ff0099"/>
<mx:Label x="150" y="50" color="#ffffff" text="CAN YOU SEE ME?"/>
View 2 Replies
Oct 4, 2009
So the MouseEvent.CLICK event works just fine when i don't have the setChildIndex, but when i do nothing happens anymore. Here is the code:
var kake:Kake = new Kake();
kake.x = 87.5;
kake.y = 358.5;
addChild(kake);
setChildIndex(kake,2);
[Code]...
View 3 Replies
Apr 29, 2010
After solving my previous problem I have encountered another.Basically I have 3 things moving around in it and when they hit other items they have different reactions to different numbers.hen the number 5s hit the number 2 I want them to be changed into a number 0. I have tried a few things including removeChild but I get an error that its not referenced.
ActionScript Code:
const MAP_WIDTH = 16
const MAP_HEIGHT = 11
[code].....
View 3 Replies
Jun 1, 2010
I have a game with 10 levels. At the end of a level, my document class (parent of level instances) executes this statement:
ActionScript Code:
removeChild(level1);
addChild(level2);
[code].....
View 3 Replies
Aug 7, 2005
Im doing a thing where you "build" a watch.. you specify how much of each part you want and then submit... i think i need something simialar to if/else so that...
textbox.iron = "3" && silver = "50"
then textbox.result = "failed"
I need something like that.. but in actionscript
View 2 Replies
Apr 11, 2011
I have a bit of a problem because i'm new to as3 and want to create a field around the object in which it could later on notice things. Things inside this field are seen and those outside not.
View 8 Replies
Feb 6, 2005
How do you make a button, to where you press it, it plays a different frame from inside a defferent movie clip? Where that button is outside that movie clip.
View 5 Replies
Mar 23, 2005
I'm trying to make this script work in which two things should happen onRlease of a movie clip. In the script below, the "transition" plays but frame 18 doesn't..even though the path is right. I even tried frame label even that doesn't work. The script is on the clip itself.
_root.navbtns_mc.webnav.onRelease = function() {
_root.transMC.gotoAndPlay("transition");
_root.navbtns_mc.webnav.gotoAndStop(18);
}
View 10 Replies
Mar 17, 2009
how do you make things have a glow effect in flash 8? its probably some action script.
View 3 Replies
Jun 28, 2009
I have some AS3 code that does two things. Only I want the 2 things to happen 10 seconds apart. The lines of code look like:
var myTween:Tween = new Tween(yellow, "x", Bounce.easeOut, startValue, finishValue, duration, true);
var myTweenBlue:Tween = new Tween(blue, "x", Bounce.easeOut, startValue, finishValue, duration, true);
Right now, they happen at the same time, but I would like them to happen a few seconds apart. I have seen where I can pause the timeline, but in this case, the timeline is already stopped. these actions are triggered by clicking on a button. So Im not sure how to make it so the two actions happen a few seconds apart.
View 2 Replies
May 21, 2009
Currently I'm working with Flash CS3 but can upgrade to 4 . . .I'm wondering if there is a way to speed up the process of animating certain things. For instance, if I make an animated subject and then want to make ten or twenty from the same template with the same objects, but each object will follow a different animated path in the new animation, i. e., in the new swf file.
Should I rely on using code to animate objects? I'm trying to avoid repeatedly dragging the same movie clips from the library to the timeline and setting tweening each time. Sometimes I need to do this action 50 or 60 times per animation, and it's the same two or three movie clips each time--it's very tedious. Also, each animated movie clip must be in sync with music . . .
View 3 Replies
Jun 6, 2010
I'm trying to allow all things oitside of the stage peramiters to be visible in the browser screen so certain elements can be longer than the stage and still be shown Can't remember if it's a flash thing or an html thing.
View 6 Replies
Jun 22, 2010
I have one button, that when clicked should display several images, one at a time. At the minute they are all just coming on together, how do i seperate the functions so they come on individually, for example like bullet points, e.g click once and image1 appears, click again and image2 appears etc... so eventually all of the images are on screen, but they don't all just appear together, if that makes sense!
View 4 Replies
Apr 12, 2011
The AVM verifier when encounters and error, writes to flash log. In the documentation it says that verifier will visit "all possible branches" where jumps might take it. However it is still pretty confusing when trying to follow the output. how to interpret it properly? The whole flow seems confusing. For example what are the meanings of the following markings.
[Code]....
Further, there are machine instructions and Machine State with registers, scope stack and operand stack. I understand when I see instruction and later a state modified, e.g. PushFalse would make a Boolean appear on Operand Stack - (Boolean[B]). But sometimes state is written even without an instruction preceding it, in combination with MERGE FIRST, MERGE CURRENT, etc. What does that mean?
View 1 Replies
Nov 12, 2010
I'm building a game that is relatively heavy. I load the essential assets before rendering the game, such as sounds, classes, movieclips and bitmaps. Now my question is... There are some none essential assets that I want to load in the background and not in the main load to speed things up for the user. But, apart from consuming the user's bandwidth...I have the feeling the animations slow down if they are running while the assets are loading in the background.
View 2 Replies
Oct 15, 2011
Do you think the arrival of the new Flash Player 11 which is much more powerful allowing to render 3D games much faster will change the flash world significantly?Will we see a whole new era of 3D everywhere? new 3D games on the web, new 3D games on facebook, new 3D stuff everywhere... new IDEs for the 3D capabilities? a boost in the flash 3D engines such as Away and Alternativa? And most importantly for developers, is it going to create a lot more job oportunities for specialized developers with new skills?
View 5 Replies
Nov 3, 2011
so i've been following this tutorial on youtube about buttons and how to make them trigger certain things using AS3 Anyway, here's my code:
[Code]...
What suppose to happen is when i mouse over the button, some things appear, when the hover is off, everything goes back to normal The problem: When i mouse over the button, everything start blinking and the "some things" start appearing and disappearing while i hover over the button. When i remove aOut event and function - everything works like it should - "some things" appear when the button is hovered and stay there because there's no aOut code.
Tested the same thing using MouseEvent.CLICK instead of MouseEvent.MOUSE_OVER. When it's just by itself - works fine. I clicked the button and things appear. But when I add MouseEvent.MOUSE_OUT, nothing happens at all. The button becomes unclickable.
View 4 Replies
Mar 26, 2004
I want to use this magnifying glass as a feature in a slideshow I'm making. magnifying glass I am loading swfs into an empty mc using
on (release) {
loadMovie("3.swf", "_root.textframe");
}
The magnifying swf works just fine by itself, but when loaded into the mc in my main swf, it doesn't work. I figure it has something to do with parent/child relationships in the code...and I tried a few permutations. to no avail.
View 7 Replies
Dec 19, 2006
im working on a simple effect, but for some reason it just seems like the object is getting bigger, opposed to me zooming in on the object?
anyone got any good advice on how to make it seem like im zooming in instead of the object looking like it's getting larger?
View 2 Replies
Apr 22, 2007
is this possible? i have a box with falling stars and i want the stars to fall out of the box and be visible in html.
View 5 Replies