flex

NativeProcess API Java Debugging?

What is your way to debug Java side when nativeProcess.standardInput.write method is invoked by Flex side? I know that it is possible but don't know how? ...

How to add Facebook Like button to a Flex app?

I am working on a Flex AS3 application and wanted to add the Facebook Like button inside the app. I am unable to find any API or anything apart from the http://developers.facebook.com/docs/reference/plugins/like code generator. Any ideas on how this might be accomplished? I am quite new to the recent changes in the Facebook Platform, s...

Change the background color of a Flex toggle button

What is the easiest way to change the background color of a toggle button when it is selected? I've tried creating a custom skin for the button and applying it to the downSkin property, but I can't figure out how to change the background color from within the skin. Also I'd like to avoid using an image as a background if possible. ...

Is their a way to convert DocX, OpenXml, or RTF to TextFlow in AS3?

Basically we want to be able to open up a docx file in as3 or Flex 4 and convert it to a text flow while preserving formatting, embedded images, tables, columns, etc. I know theorectically it's possible as the new Text Layout Framework is powerful enough to pull it off, but I haven't been able to find any case where someone has achieve...

Flex vs ExtJS for internal system front end, what are their strengths and weaknesses?

Looking back at an internal system I just built, the common server / page model with minor use of Ajax for some UI components. I'm not sure if I'm satisfy with the end result because it seems like we spent too much time on the frontend. Not a big fan of going through all the trouble for styling and making sure the CSS works right. So ...

Flex - Menu Created On Button Click

I created a Button in MXMXL. On button click, I create a Menu as a child of the Button. I am using an XML datasource. The reason for creating it this way, was due to the amount of custom skinning involved. A popupmenubutton was not an option. Anyway, so my question is this: when clicking the button, the menu is displayed. However, if you...

Flex State transition questoin..

Hi I am trying to create the transition between states. The first state transition works fine(state1=>state2), but the second one is acting weird(state2=>state3). After clicks the button to change state2=>state3, some text areas which are belong to state2 show up and stay on the screen. I am not sure why. I would appreciate it if some...

Help with Music Video App.. Filtering data lists and "Next Video" button function

I have two lists.. I need help filtering one list when an "Artist" is selected in the other.. I also want to play the next video when the "Next Video" button is selected.. Here is a link to an example with a few videos.. http://www.yourtimeisborrowed.com/bin-release/gg.html View source is enabled so feel free to grab the code.. I wil...

Drying out/refactoring flex/actionscript code

I have something like 10 components that have code that's very similar, except for the target that it's applied to and some other minor differences. For example, I return xml to component1 and component2 that differs in this way: component 1: event.result.names.name component 2: event.result.phones.phone I then bind these to a List, ...

Flash Player 10.1 causing sandbox violation no previous version caused

This is a WTF moment for me. Working with a SWf where it's worked all along, loading data from http://akmi.kaltura.com. But, now, if you switch from Flash Player 10 to Flash Player 10.1, I get the standard security sandbox violation: * Security Sandbox Violation * Connection to http://akmi.kaltura.com//index.php/partnerservices2/...

pass FileReference between two flash movies

Hi I have an html page with a flash object that provides video chat using stratus. I want to enable file sharing from a different UI on the same html page. I want to use the same stratus connection to send the file. Is it possible to create a small flash object that will present a browse button and let the user choose a file and then p...

Flex Menu Control - Click a button and a menu is displayed. How can I click that button a second time and hide that menu?

Hi, Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening. Now, I rigged it up by setting a var to open and closed, s...

How to implement server-side filtering w/ flex 4

I've got Flex 4, Zend and php. I've set up paging in my datagrid but how do I do server-side filtering? I have about millions of records so obviously can't do client side filtering...I've been googling all day w/ no luck. Anyone been able to do it or can point me to a tutorial? ...

Problems with using MXML components as ActionScript classes

I have two MXML component files and try to work with them as classes. One of them has a simple function: GUIFriend.mxml <mx:Script> <![CDATA[ public function createName(f:Friend) { return 'friendProfile: ' + f.uid; } ]]> </mx:Script> And the other tries to use it: GUIFriendContainer.mxm...

How does a Consumer know what Channel to use in a ChannelSet?

If you subcribe a Consumer in Flex, you need to assign a ChannelSet to the Consumer. In my case, I create a ChannelSet and then add a Channel to that ChannelSet. Apparently, the added channel is the current channel of the ChannelSet. But what if I would add two Channels to the ChannelSet? Do I need to set the currentChannel before subcr...

Compiling with Flex4 SDK

I'm trying to compile an existing Flex3 project with the Flex4 SDK. I'm getting this error: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to tru...

Mouse coordinates action

Is there a way to do it in Flex to say: if mouseClick x<300&y<200 currentState=''; Thanks, ...

Where is the normal button skin

I'm trying to copy/modify the spark skin for the default button, but not sure how to find that skin. When I hover over <s:Button and Ctrl + Click it, it takes me to the Button class, but there isn't any skin information there. ...

Flex/Actionscript : How to change property (label) of all buttons?

I'm new to Flex/Actionscript and have a very basic question. Let's say I have about 100+ buttons. They all have the same label. Now I want to change the label for all with a click. I could give them IDs and then run a for loop, but I'm searching for a neater solution. Thanks for help. Update: Hm, it doesn't work because label of but...

Dynamically Resizing Flash Object to Fill Window

I have a Flash/Flex object (Flashlight-VNC), which I would like to dynamically resize to fit the entire window after pressing a button in the Flex app. This would preferably happen without restarting the Flex app (and therefore the VNC session). I would just use the built-in Flash fullscreen mode, however Adobe's somewhat silly security ...