flex3

Flex appending history tracking elements below application

I've got a Flex application that uses link buttons. As soon as I incorporated the link buttons (I assume) the Flex framework started putting history tracking elements below the app in the DOM. For example IE6-8 get an iframe element with id of ie_historyFrame, chrome/safari get a safari_rememberDiv and FF gets a firefox_anchorDiv. Now, ...

How to protect access="remote" funcitons in CFCs from snoopers?

One of the great features of CFCs is the ability to reuse the code for both a straight .cfm page and for Flex apps. One such app that I devleoped uses Flex for it's charting capabilities and needs access to a 'getResults()' function in the cfc. All of this content is behind an authentication mechanism, but since the cfc will open itsel...

Action Script Prototypes and dynamic function creation

Does anyone know how AS3/Flash runtime handles trying to modify the prototype when working between sandboxes. In particular I create object O in sandbox A, then pass it to SandBox B. What is the effect if code in sandbox B tries to modify the prototype ? (do the objects in A of the same class see this ?). Can Sandbox B overwrite publ...

adding a custom event listener in as3

I've done a lot of reading through forum posts and tutorials, but I still can't wrap my brain round events and event listeners. I have a pretty simple example, but I can't get it to work. I have an arrayCollection of custom objects in a repeater, when one of those objects is clicked, I want a different componenet to display data associa...

How to convert bytearray to image or image to bytearray ?

How to assign bytearray value to panel background image. If anybody have idea or experiance plz help me to overcome the problem. BRIEF EXP: I have panel control and want to load image getting from webservice as a backgroundimage. So i used setstyle() but its not accepting that image. so how to add that image into my panel background i...

Flex 3 - how to select an item in the list as default ?

how to select an item in the list as default default selected item say of index 0 I tried stuff like this -- listid.selectedIndex = somevalueinmyprogram - 1; // 0 but when i debug this i get _selectedIndex = 0 selectedIndex = -1 and default value is not selected why so? [i have already checked for the obvious that somevaluef...

stop object referencing in as 3

Hi all, I have an object and a temp object now if i do tempObj = obj and change stuff in tempObj they changes have an effect on obj is there a way i can stop it from doing this? Regards Mark ...

Error when trying to debug Flex Application.

I am using windows xp and flex builder 3. Here is the error: Error Screenshot I am trying to debug a flex application by toggling a break point. When I try to debug, I get the above error. so far the only thing I installed is flex builder 3. ...

updating byte count on label through ProgressEvent

Hi, I have main.mxml and an external class com.audio.AudioPlayer.as AudioPlayer loads an audio file and has an event for counting bytesLoaded and bytesTotal. I would like to push the bytesLoaded information continuously as its being loaded into a label on main.mxml from the ProgressEvent.PROGRESS snd.addEventListener(ProgressEvent.PRO...

Flex Giving user ability to change TabNavigator Labels, and send to database

Hi I am wondering how i would enable a user to change the label on a tab navigator, eg double click the tabs and let the user rename the tab. ...

Mouse position on screen in flex

I am trying to obtain the actual mouse co-ordinates on the screen so I can create a Native Window at that position but I dont seem to be able to find the right way to do this correctly. I have tried various things, the closest thing I have at the moment is: this.contentMouseX and this.contentMouseY This gives me the coords on the cur...

Using mx:RemoteObject with web2py's @service.amfrpc decorator.

I am using web2py (v1.63) and Flex 3. web2py v1.61 introduced the @service decorators, which allow you to tag a controller function with @service.amfrpc. You can then call that function remotely using http://..../app/default/call/amfrpc/[function]. See http://www.web2py.com/examples/default/tools#services. Does anybody have an example of...

Flex Warning: Unable to bind to property 'foo' on class 'Object' (class is not an IEventDispatcher)

I know this is a fairly simple question, but I'm sure I'm not the first to have it, and won't be the last, so I thought it might be a good idea to get the answer in Stack Overflow for the benefit of everyone else, as well as not bugging my local Flex guru. I've got an object that contains a dozen or so fields I want to bind to form elem...

Using FlashVars with Flex 3

I'm trying to pass parameters from HTML-land to Flex-3 Flash-land, and can't seem to get it to work. Here's what I've got (basically the default template, modified with FlashVars): <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="${application}" width="${width}" height="${height}" codebase="http://fpdownlo...

Is it possible to create a MovieClip using ActionScript 3 code or MXML?

I'm using the Flex 3 SDK and the free FlashDevelop IDE. As I don't have FlexBuilder or Flash CS4 Professional I cannot make MovieClips graphically. So instead I want to create a simple MovieClip using code or MXML. For example, lets say I want to create a MovieClip with 3 frames, and load a bitmap into each frame to create a simple ani...

Best approach to change variable values in a compiled SWF file

Is it possible to change the value of a variable in a compiled SWF (using as3) via a servlet (say on a per session basis) before return the modified SWF back to the client. I notice there are a few command line utils as Open Source, but these seem to focus on AS2. Is this possible with AS3 code? What libs are available do this from ja...

Share your experiences with Guasax flex/Air framework.

Did anyone use this framework yet? please share your positive and negative stories. ...

Code completion for non .as documents in Flex Builder

Is there any way to get ActionScript code completion to work fpr files that don't have the .as filetype? We're using .es for server-side ActionScript and would want Flex to treat them like regular AS-documents. File types can be bound to editors, which brings code highlighting to our .es docs, but code completion still does not work. ...

Reordering of item in TileList with dataChangeEffect does not work as expected.

I currently have a TileList with a custom itemRenderer based on a VBox. I have bound the DefaultTileListEffect to the itemChangeEffect property on my TileList. However, I've run into a weird problem when I drag an item to a new location in the TileList. When going through the sequence of events (in this case, FadeOut, Move, FadeIn) th...

flex tree with dotted horigental and vertical lines

i need code for flex tree with dotted horigental and vertical lines ...