actionscript-3

How hard would it be to manipulate a 3d model in flash with the mouse?

Using a common flash 3d library such as Papervision3d or away3d & as3dmod or better create a Flash 3d object manipulator that: Loads a complex 3d object (for example a pottery item) Allows a user to rotate the object Allows a user to grab vertices with the mouse and stretch them like so: Drag on x-axis(symmetrical - changes affect a g...

FLAR inverted marker

Does someone knows where can I find some information how to detect a "white" marker on a black page? ...

Array Vs ArrayCollection in Flex

Hi, Can any one Explain the Difference between the Array and ArrayCollection in Flex? Thanks, Ravi ...

Billboard orientation toward camera (point) without normals

So I have a circle of planes which get constructed as: plane.x = Math.cos(angle) * radius; plane.z = Math.sin(angle) * radius; plane.rotationY = (-360 / numItems) * i - 90; which calculates how many angular slices there are for total number of planes (rotationY) and places each plane into it's place on a circle of radius. then to upd...

1009 error "swf works fine" AS3

MY MOVIE WORKS, BUT I'M NOT SURE WHAT I BROKE. 1009 error says it "Cannot access a property. I'm using "if" conditions to trigger gotoAndPlay. What would be the best way to code this? //Error #1009: Cannot access a property stop(); //meter var timer:Timer = new Timer(300);//1000 = 1 sec timer.addEventListener(TimerEvent.TIMER, onTi...

Is it possible to bubble a MouseEvent by z-index instead of hierarchy?

I have two components being absolutely positioned within a container (they are MapSymbols on an ILOG Elixir map, if that helps). Each component is a VBox with an Image and a Label. Images have functionality tied to the Click event; labels do not. The problem is when 2 items are positioned so that the label of one is above the icon of an...

How to pass Object tag PARAM value into Flash?

Hey everyone, today I'm trying to get a link to an XML file passed from the Object Embed code into my Flash movie. (Not using SWFobject). I have 1 swf file that should be able to connect to 3 different XML files. Attempt 1 Below is the HTML code (I'm trying to get theXML path): <div class="left"> <h2>300 x 353 Green Accent Color</h2...

Countdown "gotoAndPlay" AS3

My timer counts down from 60 to zero. I want my movie to go to the next frame at zero count. How would I make a condition to go from frame 1-2? I need to find the right operator and values, but I get lost in the strings. WHAT I'M TRYING If (something is <> == true false); gotoAndPlay(2); stop(); // var timer:Timer = new Timer(100, 30...

Flash AS3: Problems linking a class to a symbol, classpath not found

Im having problems with classpaths. I have used them before with "import" but I'm not able to link a class directly to symbol in the library. I have a class c:/myfolder/src/myclass.as . In prefernces > AS3 settings, I have c:/myfolder/ as default classpath. I click linkage on the symbol and enter src.myclass . When I click the chec...

Actionscript 3 Reference to public static var in array not working

Hello, I'm setting up a class of public static vars that are to be BitmapData. The problem I'm having is I can't seem to reference the vars dynamically in an array, making it impossible to give them values without some serious procdedural style coding. This is what it looks like package com.myPackage{ import flash.display.*; im...

Flash movie being scaled without me asking

I've been developing a web based pure ActionScript-3 (no MXML involved) videogame using FlashDevelop, and have had no real surprises so far. I've recently tried moving my project over to the trial (but fully functional) of Intellij-Idea and have found that while the .swf produced by Intellij still functions, it has somehow been scaled ...

Help me summarize these scripts.

its like pyramid where each object will have 2 object under it for 4 layers. if (myXML.MEMBER[1].@AVAILABILITY=="NO") { circlesArray[0][0].mouseEnabled=false; TweenLite.to(circlesArray[0][0],0.8,{tint:0x333333}); manArray[0][0].mouseEnabled=false; TweenLite.to(manArray[0][0],0,{tint:0x666...

Actionscript 3- How to create User Accounts, sign-ins, and admin accounts!(possibly with an API)

Hey, How would you, in actionscript 3 make a way to create, log-in, sign-out, etc. of user accounts? I'm mostly looking for an API i can use and if there is, how would I use it? Alternatively, if there is no way to do it in AS3 as that is a longshot, how could I do it in html using dreamweaver? FYI: this is for a website. thanks for y...

Why are my component's unscaled width/height zero?

Why are unscaledWidth and unscaledHeight tracing to 0 when the calling component doesn't explicitly set a width and height? (If calling component does set width and height, they are tracing to the set value.) Shouldn't measure() force the minimum width and height? package { import flash.display.Graphics; import mx.core.UIComponent; ...

AS3 Code generation from a wsdl

As part of a nightly build i want to automate the generation of action script classes like Flex does but in an automated fashion. So I'm looking for an equivalent tool to flex builder 3's Import Web Service functionality, but accesable to a Hudson nightly build using ant. Any idea's on tools to achive this. ...

loading swf from AmazonS3 - crossdomain policy

Hi, Looking for a little help if anyone has any experience with this. I have a flash app sitting in domainA which needs to load a swf which comes from an Amazon S3 bucket. On load I get the following error. "Error #2044: Unhandled securityError:. text=" I have put a crossdomain file in the bucket and presumed that would do the trick. A...

Resources for Learning Pure AS3

Similar question: http://stackoverflow.com/questions/92602/best-resources-for-learning-as3 I am interested in learning AS3 and have downloaded FlashDevelop and played around with it a bit, learning some of the fundamentals. However, when I attempt to start on any relatively simple project (eg. a multipage document) I get completely lost...

string to instance name in action script 3

Hi, i'm having some problems with as3 var eventChildren:XMLList = eventInput.channel.children(); var nr:Number; nr=0; for each (var eventInfo:XML in eventChildren) { nr++; trace(eventInfo.title); var ev="ev"+String(nr); var titl="title"+String(nr); trace(ev); trace(titl); var newEV:Object = Object(ev); ...

Is there an AS3 Minify? How do I minify actionscript3?

I've found several javascript minify tools however they do something weird with open and close braces, even though ActionScript is based on ECMAScript it doesn't seem to work. Wondering if anyone knows of an actionscript3 minifier that I could use. Anyone? ...

Can I get changeWatcher to fire when XML is appended to?

So I had a requirement to add an undo function to my app and I discovered this nifty ChangeWatcher class, but it's not doing exactly what I want and I'm hoping someone knows how. ChangeWatcher seems to monitor assignments to the variable reference. So when I say: myXML = <xml/> it fires off it's function just fine and dandy, but wh...