Set text outlining / border in Actionscript 3.0
How can I set the properties for the text outline / border for each character in a line of text in AS3 ? ...
How can I set the properties for the text outline / border for each character in a line of text in AS3 ? ...
I've been playing a bit with the new flash 10 3d possibilities, and found out that rotating a sprite in 3d is fairly easy: var card:Sprite = new MyCard() card.x = 100 card.y = 100 card.z = 200 card.rotationX = -60 addChild(card) Simple and effective, this shows the card rotated with perspective. Now I want to use an orthographic proj...
Duplicate of this one. What would you use to pad zeroes to the left of a number in Flex/AS3? Is there an equivalent to printf or NumberFormat that does this? I'm looking for the nicest implementation of this or something similar: public function zeroPad(number:int, width:int):String { // number = 46, width = 4 would return "0046"...
I'm creating a basic MP3 player in ActionScript 3. I have a basic progress bar that indicates how much of the song has played. The progress is calculated as a decimal percentage normalized between 0 and 1 as such: var progress:Number = channel.position / sound.length; The problem is, if the audio is still loading/buffering the sound...
One of my favorite features in Eclipse is the templates in PDT. In case you don't know what they are, think of writing "function" and having Eclipse write all the syntactical features and let you jump from variable to variable with a tap of the tab key. So I'm starting to do write AS3 in Eclipse and I miss having the templates at my fing...
I'm playing around a bit with ActionScript. What I want is that I can display a mathematical function from a string. E.g. in my working python script I do something like that: formula = 'x**2 + 3*x' for x in range( 0, 100 ): y = eval( formula ) graph.display( x, y ) I want to port this to ActionScript, but it seems like ther...
Hello, I'm working on an Flex application which uses many objects, e.g. LEDs, bulbs, gauges created in Flash. The objects internally consist of several small MovieClips and have their own logic inside. One of the initial requirements was that the objects have to be loaded at runtime, thus they were exported as SWF, not SWC. However, we ...
With ActionScript3 for Flash Player 9+, what is the nicest way to call a "once-off" function after exactly one frame? I am aware of the Timer class and it's uses, and the callLater method on Flex UIComponents (which, glancing through the source, doesn't look very efficient in this scenario). I'm also aware of setTimeout (in flash.utils)...
The purpose of the function is to covert the background to transparent and then return the bitmapdata, but it seems it do not work. The code is following: private function transparentConverter( source:BitmapData, threshold:Number = 0.1 ):BitmapData { var bitmapData:BitmapData = new BitmapData( source.width, source.height, true, ...
Dears, how can I let an SWF file to retrieve values immediately from Java application that does live calculations (Speed is a necessity). question in other form : how can I give my website browser immediate data - that are bean calculated now - as fast as i can ? ...
I have been playing with Augmented Reality recently (and having lots of fun with it too!!) I have been able to create PaperVision primitives (cube, cylinder, cone, etc.. and work with them) But adding a DAE model is proving to be illusive! var cubeMaterialList:MaterialsList = new MaterialsList( { all: new FlatShadeMaterial(light, 0x0099...
In my Flex application, I call several .NET WebServices that return XML. However, these WebServices all return XML with a namespace. I cannot read/parse the XML without referencing the namespace, meaning that I have to include the following lines of code in each Class that calls a WebService: private namespace PCRWebServices = "xxx.some...
Can anyone explain how to resize the you tube player from with actionscript3.0 code. I can get the you tube player swf to load into my application with the following code, however I am having trouble resizing the player. var request = new URLRequest("http://www.youtube.com/v/_UNgokP71tw"); request.method = URLRequestMethod.GET; youTubeL...
Hi, I'm writing a script to access all dynamic textfields in the library of a flash (fla) file and embed certain character sets. I iterate through all objects looking for textfields, but It seems there are some issues when trying to access members of a group object. It does have children in the flash file, but I can see no way to access...
In which .swc package are the flash.net namespace classes found? I think it is either Flex.swc or Framework.swc but I'm not sure. Cheers ...
I develop with FlashDevelop3 R2 and the Flex 3.3 SDK and there are many occasions where I must use the embed metadata tag as such: [Embed(source="path/to/file")] private var Asset:Class; I understand the above all well and good, and I am thankful it exists because I do not like to open the flash IDE too often. When I am going thr...
Are threads possible in Flash, Actionscript and Flex just like in C# and Java? ...
I have a project where the client can save data from a flex app to their client in xml , something like <xml> <project id='1111'> <data ... /> <data ... /> </project> </xml> this is stored on the flex sharedlocalobject , but if the client creates a new project it overwrites the existing project. How can i store multiple projects in the...
I have a Flash in AS3. I want to dynamically load code that performs some kind of calculations. Is it doable with AS3 (I've read that there is no eval)? Should I use an interpreter in AS3 that gets the data and does the calculations? My first thought was to load an external swf that does all the calculations but I think having an engin...
I need to access an ASP.Net2 page from Action Script 3.0 and I wrote the code in .fla file that access the asp.net page but there is a problem in the accessing it reports to me the following error : Error opening URL 'http://localhost/Trial/Default.aspx' Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://localh...