actionscript-3

How to convert bitmap data into image file in AS3?

Hi everybody , I want to convert bitmap data to an image file like jpg or png file in AS3 can anyone help me? Thanks in advance ; ...

Dynamically load _gallery_ (not album) in SlideShowPro using SWFObject

Hi all. I have been successful in dynamically loading an album in SSP before, but using SSP Standalone. I did it like this: var flashvars = { xmlFilePath: "http://site.com/ssp_director/images.php?album=5" } What I'm looking to do now, though, is dynamically load a gallery when the page loads, using text entered in the javascript, ...

Why compiling in Flash IDE I cannot access stage in a Sprite constructor before addChild while if I compile within Flex it works?

I've created this simple class (omissing package directive and imports) public class Viewer extends Sprite { public function Viewer():void { trace(stage); } } then in Flash IDE I import in first frame this AS: import Viewer var viewer = new Viewer(); stage.addChild(viewer); trace(viewer.stage); and this works as I ...

AMF through a BinarySocket written in .net

Hi All, I have a windows service behaving as a Binary Socket sending data to flex applications. Once I try to send strings or int's or any other native data-type, everything is working great. I even succeeded in sending JSon from the server to the client parsing it on Flex. I want to send AMF objects to the client. Meaning, I have a ...

Stream.play on server side makes video choppy

I have an *.flv file on a FMS. When I play it on the client side the video plays just fine, but when I call Stream.play(filename, 0, -1, false) on the server side the video turns out really choppy. I both cases I use NetConnection to connect to an rtmp and NetStream to play the stream, but in one case I connect to a stream and request t...

Have a link that is imported in xml, clickable to execute a function

Ok, here's the question, I have an xml doc that is being import into an AS3 file and then with .htmlText, appending it to a movie clip. An example of what this looks like is: <abstract><![CDATA[<p><strong>AEO Times Square</strong> Store Wins Prestigious SEGD Merit Award for Dynamic Environments <a href='event:OpenArticle1'>View Article...

AS3 Flex masks with black background from png bitmap

Hi all What I am trying to achieve might be trivial, however I am loading a PNG mask which does not have a transparent background, but rather a black background, with the shape defined on top in white (the actual mask which needs to be applied). Apparently Flex expects me to provide a mask with a transparent background for it to work, o...

as 3 button error

Hello! I'm very new to ActionScript 3.0 and Flash in general. I'm trying to update a website that someone else did with Flash, and am having issues with it. I need a button to link to an outside website, but I keep getting the error "access of undefined property" on my button. I am using cs3 by the way This is my code, any help would be...

use boolean with visible, as3

Is there a better way to do use a use a boolean with visible? I'm setting up animations that have conditions for visibility, and I don't want to use something that performs poorly. This animation blinks 30 times and stops. It works without error, but takes a moment to load. I would like to learn other ways of using visibility with condi...

actionscript find and convert text to url

I have this script that grabs a twitter feed and displays in a little widget. What I want to do is look at the text for a url and convert that url to a link. public class Main extends MovieClip { private var twitterXML:XML; // This holds the xml data public function Main() { // This is Untold Entertainment's Twi...

Flash AS3 - Dispatching Events from Parent Class to Child Class

I think this is a pretty simply problem but I do not seem to be able to pull it off. Basically I have a parent class A, and a child class B. Class A instantiates class B with addChild. There is a shared object which is being updated from a java server (red5) that has an event listener attached to it in class A. I have a function in c...

Disabling repeating keyboard down event in as3

now I'm trying to make the keyboard events to stop repeating. My idea was to have a true and false condition for when the key is pressed so that it wont repeat if the key is down already. //Mouse Event Over keyCButton.addEventListener(MouseEvent.MOUSE_OVER, function(){gotoAndStop(2)}); //Variable var Qkey:uint = 81; //Key Down Event st...

Flash AS3 - How do I access display object in other frames (aka a frame other than one)

getChildByName('name') will work as long as that child is in the first frame. ...

Substrings, timer and LED lights, as3

How would I sync my timer with my LED lights? I don't understand how to to set up the strings and conditions, so that they are unique to each number space. Need a condition and values for each blinker var condition:Number = 5; if(condition==5){ blink.visible = !blink.visible; //blink_.visible = !box.visible; //blink__.visible = !box.v...

Translating CURL to FLEX HTTPRequests

I am trying to convert from some CURL code to FLEX/ActionScript. Since I am 100% ignorant about CURL and 50% ignorant about Flex and 90% ignorant on HTTP in general... I'm having some significant difficulty. The following CURL code is from http://code.google.com/p/ga-api-http-samples/source/browse/trunk/src/v2/accountFeed.sh I have eve...

A* (A-star) implementation in AS3

Hey, I am putting together a project for a class that requires me to put AI in a top down Tactical Strategy game in Flash AS3. I decided that I would use a node based path finding approach because the game is based on a circular movement scheme. When a player moves a unit he essentially draws a series of line segments that connect that...

Load videos (not from youtube) into chromeless player (can it be done ??)

From what I understand the chromeless player.. http://code.google.com/apis/youtube/chromeless_player_reference.html can be loaded as an external swf and can play youtube videos using commands like:cueVideoById, or cueVideoByUrl Both commands apply to youtube videos, but is there a way to have the player load a video let's say hosted on...

How to connect and send data to Bluetooth form AS3 ?

hi everyone, I need to connect and send data to Bluetooth from Action Script 3 (AS3) if there is any idea I'll be glad for your help Thanks in advance , ...

How to compile your flex application for Iphone Using Adobe Flash CS5?

How to compile your flex (Flash Builder) application for Iph*ne Using Adobe Flash CS5? A User can Install an app having it as compiled binary? ...

How to build something like a ViewStack in pure AS3?

Hello, SO How to build something similar to a Flex ViewStack in AS3? What is the best way to build a container with different views that can be switched? ...