actionscript-3

Mesh simplification

I wish to develop a softare for 3D object compression (by polygon reduction) in flex using papervision 3D. Could you please suggest me an efficient algorithm for the same? ...

Mesh simplification

Possible Duplicate: Mesh simplification I wish to develop a software for mesh simplification (3D object compression) in flex using papervision 3D. Which algorithm will be the best one to implement? ...

Manually setting object's position or have the object do it all?

I'm stuck thinking about the best way to go about setting a line segment's position, I have a class Line(length, angle, previous) being called from a class Polygon.. Right now I have: public class Line extends Sprite { public function Line(length:Number, angle:Number, previous:Line = null) { if (previous != null) { ...

ActionScript Encapsulating a Static Function

i would simply like to encapsulate a function in it's own .as file, but i can't quite get it. package { public class NumberAdd { public function NumberAdd() { public static function myNumber(val:Number):Number { return val + 2; } } } } this i would call it like th...

As3 printing problem, blanks swf after print or cancel

Hey all! ok back at another issues in as3 printing //Function to print entire screen function printFunction(event:MouseEvent):void { var myPrintJob:PrintJob = new PrintJob(); var oldScaleX:Number = root.scaleX; var oldScaleY:Number = root.scaleY; //Start the print job myPrintJob.start(); //Figure out the new...

Flash Player 10.1 for Flash Professional CS4 playerglobal.swc?

Adobe released projector, debugger and plugin for Flash 10.1 yesterday. on my Mac i've installed the standalone player and debugger in Adobe Flash CS4/Players/ and Adobe Flash CS4/Players/Debug respectively. however, i think i need to download the globalplayer.swc for 10.1 so that Flash CS4 IDE is directed to use the new players. i'...

how to embed php with flex

I want to make a software in which few part of interface should be displayed in php and few part in flex then how i should do this ...

Flex XMLListCollection sort on nested tags

Hi all, I have a requirement of sorting the <ename> in the XML with in the branch. The XML goes like this: <company> <branch> <name>finance</name> <emp> <ename>rahul</ename> <phno>123456</phno> </emp> <emp> <ename>sunil</ename> <phno>123456</phno> </emp> <emp> <ename>akash</ename> ...

Flash AS3 button eventlistener array bug

Hi there, this is my first time posting a question here. I have an array of 12 buttons on a timeline that when first visiting that part of the timeline, get a CLICK eventlistener added to them using a for loop. All of them work perfectly at that point. When you click one it plays a frame label inside the specific movieClip and reveals...

a mathematical problem

Hi i need a function that should give me a 10th or 100th array, for example if i pass 5, it should return 1 to 10 if i pass 67, it should return 1 to 100 if i pass 126, it should return 101 to 200 if i pass 2524, it should return 2001 to 3000 Any guidance? ...

How do I programmatically trigger a mx:Button click event?

Consider the following mx:Button: <mx:Button click="doSomething()" id="myButton"/> Is there some way to programmatically emulate the user clicking the button? One obvious way to do it would simply be to call doSomething() which would give the same end result as clicking the button. But I'm specifically looking for ways to emulate the...

TextArea component is null on applicationComplete event

I have a weird issue (weird because it is specific to one component) with applicationComplete in a fairly simple application. All the UI components are declared in MXML. I can access them all in applicationComplete, but not a spark.components.TextArea component, named taStatus here; it is null in the handler. MXML looks sort of like t...

AS3 URLRequest in for Loop problem

Hi guys, I read some data from a xml file, everything works great besides urls. I can't figure what's the problem with the "navigateURL" function or with the eventListener... on which square I click it opens the last url from the xml file for(var i:Number = 0; i <= gamesInput.game.length() -1; i++) { var square:square_mc = new squa...

Is it possible to capture the screen and save the image in actionscript 3?

I need to capture whats currently shown in my app and save it as a image, is a flash app running locally, without apache, just a flash app with AS3, is it possible? Ive seen many solutions googling but all need a webserver and this app is running as a desktop app. Thanks in advance. ...

FLVPlayback, go fullscreen smooth?

Hello, Im looking into using and customizing FLVPlayback in a project. How to go about this is clear, but I noticed 1 anoying thing. When going fullscreen, first Flash player goes fullscreen and then briefly shows the FLVPlayback component in its original size, before jumping to show the video itself fullscreen. I noticed on Youtube th...

Print a bitmap without printing a sprite?

Following up from: http://stackoverflow.com/questions/3021557/as3-printing-problem-blanks-swf-after-print-or-cancel I am trying to comeup with a function to print without creating a sprite, because that's what it seems to be causing my problem: public function printScreen():void { var pJob:PrintJob = new PrintJob(); ...

Blank Swf after printing from another app.

Ok, so i am having a problem, where i developed an app that uses the webcam, adds an image and then takes a picture, well, i implemented textbook style the printjob, and well everytime after printing my swf goes blank. http://stackoverflow.com/questions/3021557/as3-printing-problem-blanks-swf-after-print-or-cancel But now i have been c...

Problems unloading xml (movieclip) when changing to another frame

I need some help. I loaded xml on a movieclip and i also have a button to go to another frame but the xml keeps loadding!! what can i do to remove the xml each time i click on that button? I'm using flash cs4 AS3.Please help ...

This Question about how do i learn from basic As3 to advanced as3

This Question about how do i learn from basic As3 to advanced as3 , as i want to become professional in as3.And work as freelancer. can anybody guide me how to reach to the peak of Action-Script-3. This question seems to be really funny to many but this is the most basic question in my mind 1) which way to go. 2) what steps i should fo...

AS3: how to get current calendar week

How can I get the current calendar week with AS3 ? I've not found any information by using the official adobe online-reference (check: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Date.html) or using google's web search. Thank you soo much! Kind Regards, msec ...