actionscript

Actionscript class not found at runtime for BlazeDS communication

We are using GraniteDS autogenerated AS code to map Java remote objects to AS. We have objects that contain List sites in Java so when they are converted to AS it looks like: JAVA: private List<MyObject> territories; Actionscript: private var _territories:ListCollectionView; The trouble is we are using MXML databinding to...

Using standard OS dialog to browse for files and directories in Action Script 3.0

Hello, I know very little about Flash so I apologize in advance for asking what is possibly a dumb question, although I did a fair bit of research before posting. Our current Flash app, written in AS3.0, is able to display a standard OS browse dialog for the purpose of allowing a user to select files. We are using http://livedocs.adobe...

Possible to request gsessionid without a 302 response.

I'm writing a google gdata API client in Flash/AS2 (sadly, moving to AS3 is not an option at this time). Logging in via ClientLogin works fine but subquent requests will return a 302 redirect that includes a gsessionid I am supposed to include with future requests to avoid the 302s. Flash/AS2, AFAIK, does not allow me to actually que...

Flex: calling the embeded swf function still failed, help !!

I am embedding a swf file into the parent swf file and my code in parent swf file want to call the function inside the embedded swf file. It always failed, below is the code. The error is in line: var player:testflv1 = (loader.content as SystemManager).application as testflv1; It can't be compiled because the testflv1 is not recognized...

How to add a preloader

Hi there! First post here. I have a xml video background and need to add a preloader before the video is buffering. The problem is that I am loading the video from xml file and from what I've tried the preloader works for the swf file but not for f4v video loaded externally. Any thoughts? You can check the preview here: http://www.free...

edit flash file scale

hello i have a flash file inside my flash file there is an object on 0X and 0Y i want to modify my file scale so no matter i changed the stage width and height my object will stay on 0X , 0Y ...

ActionScript 3 - Static Versus Instance Methods

Hi guys, I'm working on a video player and I initially developed the player with everything in the .FLA file with no classes. Then I started modularizing my player into classes and realised that my classes are static methods rather than instance methods which doesn't seem to be needed in my player. My question is - is this a bad design ...

How to fix flash objects in specific location in the stage no matter how i resize the flash file

hello I'm working on a project but i have a problem I have an object inside my flash file and i want to lock the object on 0 x-axis 0 y-axis but when i re-size my SWF file my object's location changed to another location how can i fix that ? ...

RegExp for filtering log messages

Hi, I need to filter log messages based on the log level and a text appearing in the log message. These messages are in the following form: 12/23/2009 17:33:26.379 [INFO] TMSNG.Main Channelset configured with url [http://172.16.34.4:8080/tms-flux/messagebroker/streamingamf] 12/23/2009 17:33:26.380 [DEBUG] org.springextensions....

How to find the color under the mouse in AS3

So, this article looks at how to get the color from an image in AS3, and one of the answers suggests a better way to grab colors using the 'draw' function of a BitmapData object. But these are somewhat limiting, I'm trying to implement an eyedropper-type utility and need to be able to know what color the user is seeing at a certain pixe...

Flex: debug the swf file which is embedded in a c# project

In my project the swf file is embedded in a c# winform, the swf and the winform project are both built by myself, is it possible to set a breakpoint in the swf file using Flash Builder? I think the scenario is quite similar to embed a swf file into a complicated html file and still need to debug the swf file, thanks! The problem has bee...

Flex: weird question, can't access application property in init event of SWFLoader

Very weird problem, I am new to AS, but I have to say it's hard to comprehend AS is a modern language: private function completed():void { trace("completed."); var player:Object = (loader.content as SystemManager).application as Object; player.playVideo(); player.setSize(200,300); }...

Javascript nav dropping down over flash, and not intercepting mouse events.

the nav drops down over flash elements that listen for mouse events. (ROLL_OVER) When the nav is in the down position over the flash, I would like to prevent the flash elements under the nav from receiving rollover. This is not the same issue as the common, js/css nav dropping behind the flash. and Im using swfobject 2, & wmode:"transp...

input text and check button

hai guys... My project is to get a input text from user and user can check their answer by simply click on the button check, if their answer is true a message "good job" will be display. but,my code have an error..can u help to check this code 4 me? your help i really appreciate... ans1_box.restrict = "0123456789"; var setUpProblem:F...

LoadVariablesNum in Action Script

Please, need help! LoadVariablesNum How can I do the reverse one? I mean - clear, delete or unload:) this vars? ...

How to make a graphic symbol draggable in FLASH?

Could you tell how the actionscript code would look like for such a job? ...

Action Script Modify Sound Data Real-Time

var sound:Sound = new Sound(); var req:URLRequest = new URLRequest(url); sound.load(url) I want to modify the sound data (an mp3) as it comes in. Specifically, the mp3 will be encrypted using a stream cipher and I want to decrypt the data as it comes in. Is this possible using some type of event? ...

Using getObjectsUnderPoint with a mask

I am trying to find elements underneath the "invisible" part of a mask by using getObjectsUnderPoint, but unfortunately this only works in the visible part of the mask. Does anyone have an idea what the best solution would be to still be able to access elements underneath the invisible part? Thanks! ...

How to highlight cells in datagrid?

How can I toggle cell's background color by clicking on this cell? (Adobe Flash Builder beta 2) ...

How scroll a canvas up? (Writing chat in Flex)

I'm writing a chat client using Flex. The basis for the chat window is a canvas. I've got that showing, but how do I make it scroll up? I want to clip the window so only the last 15 lines are shown. This doesn't appear to be working (nothing moves): <mx:Canvas id="canvas" width="300" height="3000" horizontalScrollPolicy="off" vertic...