actionscript-3

Handshake between a socket server and Flash AS3

Hi, What's an example of a simple handshake between a php socket server and flash? A test I can run command line would be ideal, since I don't have a server for this experiment. I'm need a good example that's easy, and something I can run off my laptop without internet:) Thanks FLASH CLIENT //SOCKET CLIENT IN FLASH AS3 var xmlSoc=ne...

show button after some time delay in actionscript3

I've been working with actionscript 3.0 and have an array that gives me some text and a button on each new page (clicking the button gets me to the next text-page and button). I'd now like my button to not appear on each page immediately, but time delayed, maybe wait 10 seconds or so before it appears. Does anyone have an idea how I coul...

Need help from Flash/AS people...

Let me preface by saying I have no Flash/AS knowledge really at all. My boss built a site in Flash and is asking if I can figure out how to load images into a gallery using XML and animating the images. I have no idea where to start, but since I'm our web developer, I'm trying to come up with something. Let me know if you have any gui...

Stratus (RTMFP) simple interaction user-user example.

Hi guys, do anyone know a link or example that shows how to communicate two users using Stratus?, I know that Adobe site has some examples.. but they are all related to video streaming and so.. Thx in advance. ...

populating and and accessing data from a value object

I have have a problem loading and accessing data from a value object in my new project.. I load an xml file via a service, which contains title and locations of asset files, I need to be able to access the location of an asset file by specifying the title and retrieiving it from a value object.. I'm using the Robotlegs framework, here's ...

[AS3] convert a dynamic string name in a movieclip to make an addchild

i have to make an addchild to a movieclip, but i really don't know how to make it with a dynamic name. for example private function buttonClicked(nameOfTheButt:String):void { thumbs.addChild(nameOfTheButt); } buttonClicked("homepage"); obviously there's a casting error, im tryin to make an addchild to a string... how can i solve...

How to prevent flv hotlinking?

I am loading an flv file from an s3 location. I want to revent its hotlinking. crossdomain.xml does not seem to work for flvs Anybody has nay idea, why crossdmain does not work? and what are the ways we can prevent other flash containers to extract the content from our location? ...

How can I change the color of a sprite without changing the color of the border?

I have this code public function TalentBox(x:int, y:int, arg_color:int = 0xFFFFFF):void { this.graphics.beginFill(arg_color); this.graphics.lineStyle(1.0, 0x000000, 0.7); this.graphics.drawRect(0, 0, 7, 13); this.alpha = 1.0; this.x = x; this.y = y; this.graphics.endFill(); } Where I construct the class (th...

flash remoting CS5

I am trying to add the remoting scripts in flash CS5 However, the actionscript is fine, the problem is i cant find the flash remoting component in any of the components panels. Any suggestions? ...

[AS3] get stage.stageHeight or stage.stageWidth from imported class

hello! can you tell me a simple and clean way to pass the dimension of the stage to another class, imported in my documentclass? thanks a lot! ...

ActionScript 2 - ActionScript 3: common subset?

I'd like to automatically generate ActionScript classes for a flash client side of one of my projects. (These projects have a formal way of describing my models that is already used to generate SQL and a admin interface). Now, the ActionScript should/could be compatible with ActionScript 2 and 3. Is there a description of a maximal comm...

I have a 4 x 4 grid how can i programmatically work out if a random number is the far right square

so say i have a grid: 0 - 1 - 2 - 3 4 - 5 - 6 - 7 8 - 9 - 10 - 11 12 - 13 - 14 - 15 (but will be more rows...) how can i find out programmatically if a random number (within the range of the numbers) is equal to the far right number: 3,7,11,15...? thanks ...

Actionscript-3 namespaces and dynamic types?

Okay, so this is a strange one... Is it possible to add namespaced members to anonymous or dynamic types? Say, if you wanted to "flag" a builtin type as "touched" for example? Earlier I thought about adding hidden members to StyleSheets and their inner styles and wondered how I'd prevent them being overwritten or serialized or whatever...

ActionScript Continuously Dragging Objects Within Bounds From Off-Stage Mouse Coordinates?

is it possible for flash to detect off-stage mouse coordinates in order to continuously drag an object within its bounds while the mouse is moving outside of the stage? for example: i have a draggable red square on my stage. the stage is the bounds of the drag. if i drag the red square to the bottom of the stage and continue to drag ...

FLV video tagging using ActionScript 3

Hi all, I would like to tag some parts on screen (like tagging people's head in photos in Facebook) in video (in certain second). Videos are in FLV format, video on demand. Is there any library that I can use to tag the video? or I can only use a cue point? Environment: Flash Media Server Flash CS4 (ActionScript 3) Other informatio...

How do I send a video stream to a Red5 server using Flex?

I'm trying to send a video stream to a Red5 server using Flex. My Red5 setup seems to work for remote method invocations and shared objects, but I've yet to succeed in getting video working. This is the AS3 code that connects to Red5: # connect to RTMP server netConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);...

Which Flash/Actionscript IDE to use -- if one should be used at all?

I've always used the built-in IDE, but I've been gone from Flash since ActionScript 2.0 in Flash MX... I'm coming back to Flash, and I notice there's a number of IDE's (some of which cost more than the Flash upgrade). So... question for Flash/Actionscript 3 developers -- which IDE to use, if at all? ...

create .flv from images

Hello!!! I need some suggestions about to create .flv from 1000 images. The application I'm building will be use flash to show the .flv, and the server, who have red5 rtmp and php5. The server will be do the conversion from .jpg to .flv. I searching information but I didn't find which language can be the best to do conversion, or some...

Dynamically setting xml by string concatenation

I'm trying to read xml fields (with actionscript 3), but the problem is that I choose which field to read dynamically. For example, I may need to read test19 or test39 or test12 or anything else. var value:Number = event.result.test19; var value:Number = event.result.test39; var value:Number = event.result.test12; Is there a way to co...

Flash CS4 vs Flash CS5 Actionscript - Should I upgrade?

From the perspective of coding, what are the major improvements from Flash CS4 to Flash CS5? ...