flashbuilder

Breakpoints working in MXML files, but not ActionScript files : Flash Builder 4

I am trying to debug the Flex application. I am able to set breakpoints in mxml file, and application breaks on those breakpoints. But when I set breakpoint in as files, I don't see the breakpoint marker, though in breakpoints window I am shown the line no. And when I start my debugging session, the application does not break at that poi...

How do I create an automated task in Eclipse? Maybe a plugin?

Using Eclipse 3.5 (FlashBuilder), I'm doing a bit of AS3 work. With the in-house MVC framework I'm using, When I create a view - I need to make a change to quite a few files. Its a simple process but its tedious and would work absolutely fine using some sort of automation. Is there a plugin that allows me to do this? Monkey doesn't w...

Flash Builder project : no build done

Hi all, I created a new Flex project with Flash Builder 4. My project must used Flex 3.x (so only MX). I copied all my sources files in my old project (created with Flex Builder 3). All is ok. I updated the argument compiler line too. But, no build is done. Even after a project clean ... What's happen in your opinion ? Thank you very...

dynamically populating textfields in Flashbuilder

I'm trying to wrap my brain around getting data into my project in a way that I can use.. I want to use MySQL & PHP my Flashbuilder app and I'm not populating a datagrid so...... For simplicities sake, In my database table I have 3 columns "ID, Title & Content". I want to use this to populate the different states in my flashbuilder pr...

Counting the number in an Array

Hi, I'm using a PHP Script to create XML. Which pulls through the data from a Database. I have an video list, which pulls through X amount of videos. But I want to show them 5 at a time. I want to hide a button once it reaches the amount of videos in the XML. Hope there's enough detail in this question. My script is as follows..... ...

Are environment variables available to FlashBuilder?

I'm not sure I'm using the right terms. Long ago I tinkered with Eclipse and recall there were "environment variables" that could be specified in project settings and compiler directive fields in the GUI itself to customize builds. I believe the syntax was similar to ant properties, like ${env.HOME} for inserting the user's home direct...

Accessing itemRenderer instance flash buiilder 4

My setup is pretty basic. I have an s:List with a custom itemRenderer and a dataprovider. What I would like to do is access the generated instances of the item renderer but I have no idea how. Here is the code for the list: <s:List id="layersList" borderVisible="false" allowMultipleSelection="true" ...

Accessing scrollbar in a group component Flex 4

This is the setup. I have created a timeline with a playhead. When my playhead is dragged I would like the timeline to scroll with the drag. So far, the only way I can do this is by setting clipAndEnableScrolling to true. But in this case I lose the scrollbars(not to mention the impact on my view). So what I would like is to set this pr...

Flex 4 Application Skin - Create Footer

Hi, I'm trying to create a skin for my Application in Flex 4. I started with editing the Application wireframe skin found at /flex4-sdk-folder/frameworks/projects/wireframe/src/spark/skins/wireframe/ I need a skin upon applying should provide a header, content area and a footer. I set the controlBar visible in the normal state so that...

Flashplayer processes not closing when testing in flex / flashbuilder

Having this new problem with flash builder where I run a debug flashplayer, close out the flash and it doesn't always kill the process. Sometimes it does sometimes it doesn't, leaving me, after a while, having 10 or more flashplayer tabs on windows still open. I try to close them using the task manager with no luck. This hasn't always ...

ActionScript dispatchEvent silently fails with 'Asynchronous viewer update' message

I'm manually dispatching a propertyChanged event from my model only to never have it be caught. When I try to debug and step into (F5) the dispatchEvent call I get FlashBuilder error "Asynchronous viewer update" displayed twice. Does anyone have an idea why this might be failing? Possibly cyclical references? I have tried using weakRef...

Flash Builder 4 code navigation disables for imported maven projects

Hello, has anyone encountered the following trouble with Flash Builder 4 Eclipse plugin: after I import some flash projects from poms (import -> existing maven projects) and set their type to flex library or flex project manually, flash builder code navigation stops working for these projects - you cant' click on method name to go to its...

Using a button within flash movie in flex/flash builder

Is it possible to build a UI with Flash CS5 that contains multiple buttons, and then have flex listen to those button events? My current plan is to load the SWF with SWFLoader and attaching listeners to the buttons in a onComplete event would be the proper way to set it up, however i cannot seem to find a way to access the buttons thems...

Error #2025: The supplied DisplayObject must be a child of the caller.

Hello, I am very new to programming in FLEX. I have inherited a FLEX 4 project that invokes web services to display data to the end user. My default package has one .MXML file, that has the component references to the Login screen (another .MXML file) and the Main screen (yes, another .MXML file). The login process works fine. I have...

AS3/Flash Builder: Conditional Metadata Tags?

I'd like to be able to have my SWF compile to different sizes based on whether I'm debugging or creating a final build. Is there a way to accomplish this in Flash Builder? I'm using the [SWF] metadata tag to format my SWF. My initial impulse is to create some sort of logic around said tag, but I've a feeling that won't work. Thanks in...

Why does the FLEX 4 LineChart Legend stop displaying colors when LineSeries's lineStroke attribute changes?

Hello, I am implementing a LineChart in FLEX 4. I have the chart working well except I do not like the default colors and cannot use them, as they do not relate to my data very well. For instance, Orange is not a great default color for my data column "Outdoor temperature". I would rather override it and use a green color if possible. ...

How do I save a flex application snapshot to a file with PHP and then display it in the browser?

I'm trying to save a snapshot of a component in my flex app that is then sent to a php script to be saved and then spit back out into the browser window. I can't seem to get this to work. Here's my FlashBuilder code: private function saveImage():void { var parameters:String = "snapshot=" + takeSnapshot(this); var variables:UR...

Why does FLEX LineChart render before HTTPService object request supplies data

Hello, I am having trouble binding a LineChart to XML data via HTTPService object. Here is my code: <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ui="flex.utils.ui.*" xmlns:charts="flex.utils.ui.charts.*" layout="vertical" horizontalAlign="center" verticalGap="2" paddingBottom="0" paddingTop="10" xmlns:...

FlashBuilder/FlexBuilder hyperlink code navigation and f3 open declaration problem

Hi: I am having an issue in FB4 where some classes are not accessible through hyperlink navigation (Command-Space) or Open Declaration (F3). The classes ARE available through Open Resource (Shift-Command-R) and the project compiles fine when I use them. What's especially strange is that only SOME of the classes in each packager are ava...

How to remove undesirable text/HTML tags from FLEX LineChart's custom dataTips?

Hello, I wrote a function to override my FLEX LineChart's datatips because the default datatips were ugly and rather boring. I finally set the style I wanted but am now having some problems removing un-necessary tags from being displayed in the custom datatips. For example, the datatips now display things like this: "<b>Humidity</b></...