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


Similar Posts:


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

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

Xml :: Representing Nested Folders As DisplayObjects

Apr 21, 2011

I'm working on a world builder that will load a toolkit which is represented by an xml document. The document will look similar to the following:[code]Now, I want to be able to represent this structure in flash. Vertical layout is easy enough, simply placing the elements from top to bottom. It gets mind-boggling when I need to do the following:Be able to click any folder and have all its children hidden/shown.Position the elements horizontally based on hierarchical position (indent children of folders, children of the child folders, etc)Position the folders/tools vertically when folders above and in the same "directory" are hidden.It either sounds a lot easier than it is, or I'm missing a vital and obvious step.Just to save confusion - when I make reference to "folders" and "tools", these are a MovieClip which is a simple block with text over it, like:[code]

View 1 Replies

Actionscript 3 :: Representing A Monopoly Board In Flash?

Aug 1, 2010

I'm brand new to Flash (and game programming, really), but want to learn a bit of it. My overall learning project is to create a Monopoly clone in Flash. nfortunately, I'm struggling to get over even my first hurdle-how to create the board graphically, and how then to deal with it in the code. So far, my thoughts are to break the board down into the different sizes of tiles (the normal property ones, the corner 4 and a large one for the middle section), then somehow place these all in the correct position relative to each other and keep that positioning correct as the pieces (and thus the camera view) move about the board.

Is this a good approach, or is there a better one? where I can find a tutorial specifically on creating board games in Flash (any sort really, wouldn't have to be Monopoly but just a game that has a board which tokens move across - and preferably which has to pan as well).

Also, as an aside, is there any way to have a dynamically coloured rectangle in a flash MovieClip (like you can have dynamic textboxs)? I ask because it would be useful if there was, as I could generate every property tile with just one MovieClip which took a name, a value and a colour...

View 4 Replies

ActionScript 3.0 :: No Faceleft Position In Any Of Numbers Representing Frames

Aug 10, 2010

I'm having a problem that is kind of hard to explain. I have a player character on the stage and a player class controlling the character. He moves right responding the the keyboard input fine, but when he moves left, the character has to face right for one sequence during the animation. There is no faceleft position in any of the numbers representing frames in the array controlling the walk left animation so I don't know why the player character is doing this. Here's some of the code I am using.[code]

View 3 Replies

Flash - Creating Animating Sphere Representing Earth?

Feb 9, 2010

I want to create an animating sphere representing the earth but here is the catch I want the users to be able to spin it round in real time, what tools will do the trick?

View 3 Replies

Professional :: Music Game - MovieClips Representing Notes Of Piano

Jan 18, 2011

I am programming a music game where there are five movieclips (acting as buttons) representing five notes of a piano. When the user clicks on each one, they play a note. I would like to know how I can program it so that if the user clicks a specific five note sequence, it will trigger an animated movieclip in the timeline.

Example:
Note_1 + Note_4 + Note_2 + Note_5 + Note_3 = Animation_movie
I am using Flash CS4 and Actionscript 3.

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

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

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

Java :: Get Started On A Simple Physics Based Game (with Angle / Power)?

Nov 28, 2011

Basically there will be a club and a ball. You can control the power and angle to hit the ball. How do I go about implementing this? Is flash the easiest way to go? I want to implement this as a facebook game. Any game libraries specific to this I can use to quickly implement a basic version? I am comfortable with Java and PHP.

View 1 Replies

ActionScript 3.0 :: Power And Angle To Shoot The Arrow Back - Changing Distances Between The Player

Sep 24, 2010

So I've set myself a little project to build a bowman game. Everythings working smashing until the math at the point where the computer needs to figure out the power and angle to shoot the arrow back at you. What I've been working off is my knowledge from applied-math classes in school. I've been using the following formula where g is gravity, t is time (this would be in frames for flash), sx is the distance between the players, u is the initial force of the arrow and a is the angle we need to find. With a bit of moving around to seperate the angle, this becomes For my AS3 this translates to:

[Code]...

What happens is that it always fires the projectile at a very low angle that doesnt change to match the correct circumstances and I can't figure out how to get around this. Changing the force doesnt make any difference and the program will need to get around changing distances between the player so this math is pretty necessary (I think). Any math heads out there know what I should change?

View 1 Replies

ActionScript 2.0 :: Processing XML From Within A Class?

Jan 9, 2009

The XML file is formatted like this:[code]The traces are all for debug purposes.If I place this code into the actions panel of the first frame of the flash document (without the thisObj:TriviaGame = this part), everything works fine and I get correct traces.If I place this code within TriviaGame.as, all of the traces print 'undefined', but it claims to have opened the file correctly.I've found a lot of XML tutorials on this site, but none of them seem to deal with processing XML from within a class file--they all put the code directly on the frame.

View 2 Replies

ActionScript 3.0 :: Edit The XML Before Processing?

Apr 21, 2011

I have to use an XML that starts as follows:

base.xml

Code:
<mythuitheme>
<window name="backgroundwindow">
<imagetype name="backimg">

[code]...

However, to render it thus appears to me the following error: Error # 1083: The prefix "size" element "small" is not determined.

Code:
<mythuitheme xmlns:size="localhost">

How can I make this change to the XML dynamically in Actionscript 3? Without changing the file directly.

PS: I have another XML (theme.xml), where the problem is to have repeat the same node name, identical in everything, for example:

Code:
<buttondef name="WIFI_TRACKING">
<image>buttons/WIFI_TRACKING_off.png</image>
<activeimage>buttons/WIFI_TRACKING_on.png</activeimage>

[code]...

How can I, dynamically, eliminate one of them?

View 7 Replies

ActionScript 3.0 :: Processing MovieClip By Name

Aug 26, 2011

I have a large amount of MovieClips and I want to change the ones of class "Circle". So far no problems. However, I want to change the ones with name "S2" to another frame than the rest. I have tried several methods, but couldn't get it to work.

Code:

for(var i:int=0;i<numChildren;i++) {
if (getChildAt(i) is Circle) {
if (MovieClip(getChildAt(i))._name == "S2") {

[Code].....

View 2 Replies

ActionScript 2.0 :: XML To Array Processing ?

Nov 21, 2008

I've got a function that loads an XML file, and processes it into an array. Outside the function, if I trace for any of the contents of the array, it comes back undefined. What I've noticed is that the trace command is triggered before the array has been populated, even though the function to populate the array is called prior to the trace command.Here's the code:

Code:
var playListArray = new Array();
var myXML:XML = new XML();
myXML.ignoreWhite=true;[code]......

View 1 Replies

ActionScript 3.0 :: Delay The Processing Of Code For 1 Second?

Oct 13, 2009

I am looking to delay the processing of coding for 1 second. A user will hit button and some of the coding is processed, a delay will then take place for 1 second or so and then process the rest of the coding. Does anyone know ho to achieve this?

View 8 Replies

ActionScript 3.0 :: Custom Forms Are Not Processing

Jul 4, 2011

I have created 3 forms.The forms appear to operate correctly.You receive an error message when the form hasn't been filled out correctly and when you fill the form correctly it appears to process the forms information.However the information is never received in my email account.I am assuming there is an issue with the php file.URL..

View 11 Replies







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