flex3

How to get Flex Builder 3 to generate two builds: one "-use-network=true", another "-use-network=false"?

I'm building a Flex application that will need run under two different deployment scenarios: First, the application will be hosted on the web. The SWF loads some external resources (images, text) so it requires network access, which is the Flex Builder 3 default build flag "-use-network=true". I don't need to do anything special; it j...

How should I fill a list with a combination of database entries and meta-values?

I am acquiring the contents of a table to fill a dropdown box in a Flex 3 application: <mx:ComboBox dataSource="{myList}" /> The list is populated by the contents of a database table of persons: Public, John Q Doe, Jane ... The combo box, however, also needs to have some other meta-entries in it that do not come from the database: ...

Can I retrieve my Flex .swf and images from different Amazon S3 buckets?

I have a Flex 3 SWF in one Amazon S3 bucket, which dynamically loads images for buttons which are stored in another S3 bucket. I have set a completely open crossdomain.xml file in each bucket, but when I call the SWF from my web site, only a few button images load - and they're just the 'up' or 'normal' state button images (i.e. not 'do...

Problem launching Flex Builder 3.x

I have been using Flex Builder for while, then this just happen, and now it would not launch again. !SESSION 2009-09-01 11:24:33.517 ----------------------------------------------- eclipse.buildId=unknown java.version=1.5.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arg...

Flex layout 2 objects with first one centered

I have two labels (A and B) in a Flex VBox, with the horizontal alignment set to "center". I'd like to set A to be vertically centered (in the exact center of the container) and B to be underneath A (or on the bottom; either will do). What's the best way to rig this? ...

How do I get Flex Builder to use the selected framework?

I'm attempting to create a Flex Project that will cause the Flash Player to cache the Flex framework. Flex Builder comes with Flex SDK 3.2.0.3958 and setting the Framework Linkage to use Runtime shared Library (RSL) under Project Properties -> Flex Build Path will separate the framework from my main application and I see that my project...

Preventing Overwrite of flashlog.txt / filtering flashlog.txt in Flex

Hello, I am trying to make an application that logs particular events in flashlog.txt (the current location) using the trace() function. Right now, the application correctly logs to this file when I trigger the events (pressing a button/closing a dialog). What I would like to have happen is for this data to be saved forever (or until ...

In Flex3, what type is an object property?

I have many Flex objects like this one: public class MyData { public var time: Date; public var label: String; } I am populating this object from a DB record retrieved via AMF that looks something like this: { label: "Label", incident: "2009-08-15 11:12:14.12233" } I want to write a generic value mapper for these ob...

How does one smooth the cursor in a scaled flex/flash application?

I'm scaling my application to fit the browser window. I'm also defining my own cursor using a bitmap and CursorManager.setCursor. The problem: when my app scales, the cursor bitmap is jagged. Is there a way to smooth the bitmap that is use? ...

Suggest a good MVC framework for AS3

I am looking for a framework that can simplify the task of creating new Flash apps. But I don't want to go the Flex route because it's way too top-heavy for the simple widget apps that I need to create. (The payloads often exceed 300k with a Flex app and it can be difficult to control the timeline and animation, etc.) When I Google the ...

Creating Dynamically Flex Custom ItemRender (Constructor)

Hi, am creating some Advanced Datagrid with actionscript. I have created an actionscript class where I extend the VBox object: package core { import mx.containers.VBox; import mx.controls.TextInput; public class customItemRender extends VBox { public function customItemRender(_TextInput:TextInput, _TextInput2:TextInput) { ...

flex video player

Hello Friends In flex video player I want to capture the number of seconds (probably in a variable) that have been played in video so far on some event, say, a button click beside video player. The video may continue playing but I just want to capture that on how many seconds video has reached playing when button is clicked. Please help ...

How to dispatch event between Components in Flex?

Hi,everyone I'm new to Flex.My question is how to dispatch event between components?As far as I know,Flex only bubbles event to itself or its parent. I'm in such a situation: <mx:Application> <com:Component1 id="comp1" /> <com:Component2 id="comp2" /> </mx:Application> In Component2.mxml I have two ot...

Papervision3D; rotate child objects within camera view

Hi all, It's my first time with Papervision3D and I have created a slide show of images that is skewed on the y-axis. Smallest photos on the left, and they increase in size going to the right. So they zoom from left to right, smallest to biggest. I have a tooltip that pops up when you hovers over the photo, but the tooltip also gets...

Adobe Air - MySQL or SQLite

i am very new to Adobe Air and i am having a hard time with it. i want to be able to create a desktop app for clients that communicates with a databse. im currently used to writing everything in php, which then communicates with MySQL. also, i plan on using Flex. 1: does Adobe Air communicate directly with the database? or does it co...

Adobe Air and PHP

i do not fully understand how to communicate between adobe air (using flex3) and php. i do understand that many use AMFPHP and Zend AMF. However, AMFPHP seems to be outdated and Zend AMF (from what i understand) only works with the Zend framework (something I dont use, nor like IMHO). My Question Is: Are there other ways of communicat...

how can i play different swf file by pressing different button

I have made a flash. There are several pictures as buttons on the face,how can i play different swf file by pressing different picture? thanks! ...

flex 3 play effect removedFromStage

Hi, I'm removing a component from the WindowedApplication, using removeChildAt(), and want to play an effect (defined within the component, say mx:Resize) which reduces the height of the component (an hbox) to 0 before it is removed. I was using the removedFromStage event within the component, but it just disappears (without playing th...

Binding a Flex component to a class function

I have several components where I want to enable buttons based on passing a username to a function. I want to dynamically bind the "enabled" property on a button so that if the "somethingChanged" event fires, a button may become enabled or disabled. But, I'm not sure where to fire the "somethingChanged" event. It's possible that I may n...

Skinned Panel content offset in Flex 3

Hello, folks! Here is the problem. I've created custom RectangularBorder and set it as border skin for TitleWindow. After this manipulation inner content of window is starting at 0,0 point of it. How could I set offset of it? Just setting top padding does not work because scroll bar still begins from the top of the window after this ma...