actionscript-3

User Initiated Pop-up Window within Flash ad.

I am currently working on a flash ad for a local bank. One of the frames of the animation requires that the disclaimer text be displayed. I am attempting to create a tab within the ad that if clicked will allow a small window to slide up (roughly half the height of the medium rectangle), display the disclaimer and then close. This would ...

RTMP stream not found in AS3

Working on creating a video player, and for some reason the rtmp stream is not found. I must be missing something obvious, but can't seem to find where. The stream i am testing with is rtmp://cp67126.edgefcs.net/ondemand/mediapm/osmf/content/test/akamai_10_year_f8_512K which is definitely there. package { import com.bfwpub.data.*; ...

As3 movie clip resize.

Ok so I have 3 movie clips that are setup in rows. I need these movie clips to be positioned in a certain position and each of the elements in side of them in another position. Now in order to do that I have to set the width so that I can put the rows where I need them however after setting the width and then adding a child to it seems t...

Encode/Decode CMYK Images from Flash Player

I'm currently working on an image editor in Flash Player, and I need to be able to export CMYK images to my server. I'm completely new to color profiles and the like, and I was wondering how I could accomplish this. I am pretty sure all images in Flash Player are ARGB, so is there a way to convert the values properly? ...

How to send PUT HTTP Request in Flex

I want to send HTTP PUT Request on one URL to update that content of XML via using API. URL is like this: https://domainname.com/someurls/id.xml I want to update that content. But When I am sending this PUT request, I have seen that in Network Monitor of Flex 4, Its going as the POST request on this web, while I am setting method as P...

Facebook Sharer from Embed Flash Application

Hi guys, I have a small problem with a the Facebook sharer.php! I'm developing a small flash application (kind of slideshow) that will be embed into different website. In the application there is a button that send a request to Facebook to share a link. So based on the Sharer.php doc, I send a request like this : http://www.facebook...

Cannot access a property or method of a null object reference.

I try to do preloder in Flex for my project written in Flash. I make this with the help of this site link text My Flash project have next source in main class called Game stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); private function keyDown(event:KeyboardEvent) { if ...

How To Hear Back From PHP Component Of File.Upload in Flex

http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_7.html When calling File.upload - how can the server communicate arbitrary information back about the upload? The Event.COMPLETE event that fires after upload only seems to contain a reference to the uploaded file, not any information that the serv...

Why is my URLLoader returning no data?

in AS3 I'm trying to load a URL (a Yahoo address) into the application so I can process the source code and pull things out of it. However, when I load it, or any other page, I get 0 bytes back. Here's my current code. private function doSearch():void { var req:URLRequest = new URLRequest("http://yahoo.com"); ...

[Actionscript 3] Get the byte length of a string

Is there an easy way to get the byte length of a string in AS3? String.length works in many cases, but breaks if it encounters mulibyte unicode characters. (in this particular case, I need to know this so I can preface messages sent across a TCP socket with the message length. This is in standard netstring format e.g. "length:message,")...

what's the difference between MXML and Actionscript3

what's the difference between MXML and Actionscript3 when we need to use MXML ?? ...

How do I append an item to my dataProvider? (Flex)

What I would like to do is simply add to a dataProvider, but when I do, I get an error. Here's the code I'm trying to run... dg.dataProvider.addItem(obj.ResultSet.Result[i]); It's inside a for loop, using i as the integer. It works great doing... dg.dataProvider = obj.ResultSet.Result But that won't work for me, because I need to...

How to copyPixels() on AS3 from a huge BitmapData?

I need to load a very big image on AS3 (currently sized at 8192x8192). I am aware that it does not fit any of the limits imposed by Flash regarding drawing to screen or creating a BitmapData of that size. I just want to load the image so I can copyPixels() some parts of it here and there. The thing is, I'm loading the .jpg file of that ...

Regular Expression - How to find the <%@ %> line in the file?

I found there is a bug in this highlight editor: http://cshe.ds4a.com/ The following ASP.Net code can't be highlighted correctly <%@ Page Title="<%$ Resources: XXX %>" Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %> The problem is about the regular expression, how can I find this whole line by regular expression? ...

Socket error - sometimes???

Hey, so - I have this Socket (not XMLSocket, just Socket) client. I also have a custom PHP script on my server, that listens on port X. My client tries to connect to it. Everything works fine, the security and communication, sync and whatever else. But - the Flash Player (AIR runtime actually) shoots an error when trying to connect, bu...

Actionscript 3: What's difference between interface and abstract and when to use them..?

Hi guys I was wondering the differences between abstract and interface in actionscript 3 and when to use them..I have searched google but still couldn't understand them....I hope someone here can give me few tips...Thanks a lot!!! ...

In ActionScript 3, tracing all properties of a value object

I have a number of value objects and I want to be able to create a function within it to trace out the properties and the values without specifying them directly. It will allow me to use the same code in all value objects as opposed to referring to variables within the value object. Ideally, I would like to replace the code in blogURLV...

Custom calender Component

Hi , I need a Date custom component which is date should be disable when selected the calender icon. If any one have pls share me. thanks, Ravi ...

how to get flv frame rate in as3??

Well, i have to set the stage frame rate according to the frame rate of the flv and I will have differnet flv with different frame rate so i have to get frame rate of FlV using action script ?? Is there any method available in Video Class of ActionScript?? ...

ActionScript 3.0 how many loaders?

Hi, I want to load 2 different elements on my flash video: First is a dynamic photo (I take the specific number from an external variable) Latter is a swf video... My question is? I'm new to AS3, I saw that I need a loader and I can load everything.. but how many loaders I must have? Can I use only one changing the function called on ...