ActionScript 3.0 :: Deleted Objects Still Taking Processing Power

May 2, 2010

I have this little crumby thing I'm working on. And in it, I draw a circle with a radial gradient fill. Then I add that circle to the array: "colourSplodeArray"

I have another circle that bounces around and hits walls, "creating" the previously mentioned circles. (So I have one that is not in the array, the rest are)[code]...

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Representing 3D Objects - Processing Power?

May 20, 2010

I'm making a 3D program and I've already made the back end which calculates where each object's polygons should be. However, I can't seem to find a quick way of drawing them without having to remove and redraw them each time, which I'm sure would take a lot of processing power, knowing the way that Flash does things. So is there a way to draw a shape (a quad in this example) and then alter the shape's color and the position of all of its corners in the next frame without taking a huge load of processing power? I would really like to be able to do this to at least 20 polygons, hopefully more, within the span of one frame at 20 fps.

View 3 Replies

ActionScript 2.0 :: Saving Processing Power [MX]?

Nov 4, 2002

I have an MC that occurs many times on the stage, and each one has a motion, and random scaling script in it. Would I save computing power by not having a script in each MC but rather assign them all to a prototype?

View 14 Replies

ActionScript 3.0 :: Deleted A Project In Flashbuilder And It Seems To Have Deleted Everything

Dec 15, 2010

I deleted a project in flashbuilder and it seems to have deleted everything. how can i get this back?

View 1 Replies

ActionScript 3.0 :: Taking Bitmapdata Of An Image Scaled Down With Overlay Objects On The Image?

Apr 26, 2009

hi guys, i got this image i scaled down by .5. The user is then allowed to add objects to the image such as flowers that are sprites in the library. So basically, a jpeg that is 800 x 800 is down to 400 x 400 on the stage and the user is able to add objects to overlay the image.

i want to save the image with the flowers and objects back to its 800 x 800, how do i redraw this image using bitmapdata properly?

View 2 Replies

Flash :: Fastest Way To Get Power By 2

May 24, 2011

The question is simple; I need the fastest way to calculate power 2. I need that for this formula which calculates distance between 2 points.var Dist:int = Math.sqrt( (mmx - ox) * (mmx - ox) + (mmy - oy) * (mmy - oy) );

View 2 Replies

ActionScript 2.0 :: FMX Power-Up's Not Working?

May 13, 2003

why aren't they working? need any more details?

View 3 Replies

ActionScript 2.0 :: [FMX] Power-Up's Not Working?

Mar 27, 2009

why aren't they working? need any more details?

View 1 Replies

Creating A Game / Adding Power-ups

Sep 6, 2009

I've been wanting to learn to work with Flash for awhi l e and decided to start learning by attempting a game. I found a decent tutorial for a space shooter and used it to create the basic code (firing, etc...) and now I've been figuring out how to add other elements (splash screen/scrolling screen).now I'd like to add power-ups but can't figure out how.I've created a graphic, turned it into a movie clip, but can't think of what to define for its actions.

View 2 Replies

ActionScript 3.0 :: Capture Power Of Sound

Sep 3, 2011

I have a problem with the sound capture of my Microphone in Actionscript 3.0.Particularly I would like to capture the "power" of sound, better if in decibel.Does a method / attribut of class Microphone exist.

View 6 Replies

Flex :: Power Function Fit To Data Set

Jun 6, 2010

I have a set of data (in ArrayCollection) and I need to fit a power function { f(x)= B + x^alpha } to it, before display in LineChart. As result I need the alpha and B paremeter.

View 1 Replies

AS3 :: C - Implementation Of Upper Power Of Two Algorithm

Mar 1, 2011

I have been trying to implement the Round Up Power Of 2 algorithm outlined in the following link in AS3.

[Code]...

The algorithm works great for most of the values I've tested. It is mentioned that this will return 0 when given an input value of 0 which is technically incorrect but I'm ok with that output. What I'm not ok with is when given an input of 1 I get and output of 1. I'm thinking that this must be a caveat of AS3 and its wonky uint implementation but I can't seem to figure it out. I have also tried using the >>> logical shift operator to the same result. My C is a little rusty, but I'm not sure how this would even return 2 in C. Can someone explain to me whats going wrong here? I assume if an input of 1 was a special case it would have been mentioned in the above link.

View 1 Replies

ActionScript 3.0 :: Flash To Mimic Power Point?

Dec 10, 2008

I need a good Flash strategy for creating an ordinary PowerPoint presentation. We always need very media-rich presentations (PP is weak in this area). So far we have relied on embedding a Flash object in PP. This turned out to be a bad move because many of our clients deal with the Defense Department and are not allowed to D/L and install the latest Flash player. I have found that publishing a Flash movie projector (.exe) that advances slides like a PP is a good solution. The problem is that I have to put buttons on each slide and write unique functions to advance the slides I would like to be able to simpley click the mouse or use the arrow keys (like PP) for navigation. Should I use the "Flash Slides Presentation" template?

View 2 Replies

Actionscript 3 :: Shooting Projectiles Given An Angle And Power?

Dec 31, 2011

I'm doing a prototype game like Worms and I would like not only to shot, but also see the whole projection curve where my shot will travel before it hit the ground. The only information given by the player is an angle and a power. There is also some level elements like wind and gravity.

Can I have a code for the projection curve? its like a parabola I think. I research about parabola but I had some difficult to apply these math formulas into the programming code.

View 1 Replies

ActionScript 2.0 :: Math Power Function In Flash 8

Apr 9, 2006

How can I make Flash calculate the value of the function y= (1 - x^2)^3 where x is the user input value?

View 3 Replies

Professional :: Make An Animation Of Electricity Going Through Power Lines?

Aug 26, 2011

[URL]I'm trying to make an animation of electricity going through power lines.. (and just drawing lines in general) and I like how it was done in this video. I'm just not sure how to go about doing it.

View 1 Replies

All Symbol Tweens Got Deleted?

Oct 1, 2010

I was sorting my symbols in my library moving them to folders and what not and then saved it, did some more drawing etc. Then tested movie and noticed that all my symbols are gone on my timeline, also noticed whenever there is a tween the symbol got deleted from that to. I was so pissed, I undo'd as far as I could go and it wasn't enoughI have ALL my symbols in my library, just ALL of them got removed from my timeline... there is a lot of them.

View 2 Replies

All Symbol Tweens Got Deleted

Oct 1, 2010

I was sorting my symbols in my library moving them to folders and what not and then saved it, did some more drawing etc. Then tested movie and noticed that all my symbols are gone on my timeline, also noticed whenever there is a tween the symbol got deleted from that to. I was so pissed, I undo'd as far as I could go and it wasn't enough -_-

I have ALL my symbols in my library, just ALL of them got removed from my timeline... there is a lot of them.

View 1 Replies

ActionScript 2.0 :: MC Gets Deleted Before It Can Hit The Last Coords

Mar 8, 2005

I'm trying to save some CPU resorces here but donno how.. my MC script is deleted before it can reach the current point.. what should I do?..

[Code].....

View 3 Replies

ActionScript 2.0 :: Particular Mc To Be Deleted From The Array?

Mar 2, 2005

I am doing a small test with arrays. I have 5 purple movie clips, their instance names are: p1,p2,p3,p4,p5.

I have declared an empty array called purple. On press of each mc I want the particular mc to be added to the array, and on press again I want the particular mc to be deleted from the array.

However, this does not work, it seems to be deleting the lastly added mc name from the array no matter of which mc I unpress.

I am new with arrays, I am using pop and push. I will upload my file. Could someone have a look at it please? Is there another array command to add and delete the particular mc which is presses and unpressed, and not the one that was last added to the array?

View 1 Replies

ActionScript 2.0 :: MC Gets Deleted Before It Can Hit The Last Coords?

Mar 8, 2005

I'm trying to save some CPU resorces here but donno how.. my MC script is deleted before it can reach the current point.. what should I do?..

MovieClip.prototype.moveIt = function() {
this.onEnterFrame = function() {
menu._x = Math.round(border._x - ((border._width/2) + 68))+5;

[code].....

View 3 Replies

ActionScript 2.0 :: Math Power Function - Where Both X And Z Are User Input Values

Oct 30, 2008

I want to make a function like y= (1 - x^z), where both x and z are user input values. How is that possible?

View 1 Replies

ActionScript 3.0 :: Object Not Deleted From Memory?

Oct 11, 2009

what I have is:

- listener added with weak refference, therefore it shouldn't keep the GC away

- object set to null

- trace of the object m shows null

- debugger shows the value of m as null

But the "frame" trace still keeps on appearing, so where exactly is that object and how to check for it, how to delete it and kill it. I know that listeners keep objects in the memory, but then how to find them, and at the end of the day also used weakReference=true while assigning it, so that should take care of it. What exactly is going on here?

View 2 Replies

Professional :: Get Deleted Files By Flash Cs5?

Sep 7, 2010

I created a empty folder on my desktop "Test" and then in the create a new project thing I linked it to the test folder, and then in the settings I clicked on delete project folder and it gave me two options and by mistake I selected the second one and then my worst nightmare, all my multimedia files which were on my desktop got deleted. I tried running 5-6 data recover softwares but none of them and I mean none of them found the files deleted by flash. All were showing me the files those were deleted by Shift+Delete, but that I dont want. How can I get those files which were deleted by flash cs5.

View 12 Replies

Flex :: Utility To Indicate Why An Object Can't Be Deleted?

Sep 21, 2010

Is there any utility that indicates in a comprehensible way what is referencing and object and why it can't be garbage collected.

View 2 Replies

Actionscript 2.0 :: Reuse A Deleted Function?

Oct 24, 2011

We area trying to create a virtual world application. We are using hitTest to make the avatar enter the room. That hitTest event is inside an onEnterFrame event of the avatar so every time the avatar is on the stage it runs the function and detects if it hits the hot spot or not.

So onEnterFrame we have: (shortURL is a variable that points to the movieClip)
Code: Select allif(this.hitTest(shortURL.detectRoom1)){
attachDialogue(1, "room.swf");
}

[Code].....

The code works, however when the user clicks on no, the dialogueBox still appears since the avatar still hits the room's hotspot. If I remove the commented "delete attachDialogue" clicking the no button will remove the dialogueBox movieclip without any problems. However when the avatar walks on other hotspots it doesn't call the function again.

Are there other ways how we can remove the movieclip and set the attachCounter to 0 when the no button is clicked? Or how can we reuse a deleted function?

View 1 Replies

ActionScript 2.0 :: How To Get Deleted OnEnterFrame Back

Mar 31, 2004

If I delete the "onEnterFrame" with this code:
myClip.onEnterFrame=function(){
____if (this._x<300) this._x+=5;
____else delete this.onEnterFrame;
____// to erase it, but you can simply empty it
____// else this.onEnterFrame=null;
}
How can I turn it on again?

View 2 Replies

ActionScript 2.0 :: MovieClip Gets Deleted For No Reason?

May 4, 2008

I'll cut to the chase, here's my code:

Code:
function loadThumbs(){
for (var i = 1; i <= totalImages; i++){

[code].....

View 3 Replies

Professional :: Feature To Disable System Screensaver & Power Saving Features

Nov 20, 2007

Please provide the feature to disable the system screensaver & power saving features while a video object is currently playing a video. I get this request all the time when developing video players and now that the netflix player provides this feature it is becoming a must have in the online video market. If you know other solution which does not require .net, silverlight , or any other browser plugin besides flash please let me know.

View 1 Replies

Flash :: Python - Text-based One-on-one Chat With Interface: What To Power The Backend

Apr 22, 2010

I'm building a website where I hook people up so that they can anonymously vent to strangers. You either choose to be a listener, or a talker, and then you get catapulted into a one-on-one chat room. The reason for the app's construction is because you often can't vent to friends, because your deepest vulnerabilities can often be leveraged against you later on. (Like it or not, this is a part of human nature. Sad.)

I'm looking for some insight into how I should architect everything. I found this neat tutorial, [URL], which suggests using python & stackless + flash. Someone else suggested I should try using p2p sockets, but I don't even know where to begin to look for info on that.

View 4 Replies







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