Flex :: Looking For A More Efficient Way To Clear Controls?

Jul 28, 2011

In main.mxml I have a bunch of textInput controls a combobox and a few checkboxes that I would like to be able to clear with some sort of loop. Right now, I do it like this:

[Code]...

I read a post on SO that recomended adding the controls to an ArrayCollection with the creationComplete event. I tried that and it worked fine but it was not any more elegant than what I have now. All of these controls are in mxml format and not generated with AS by me. I also tried looping like this:

I can't get past that part though. I cannot find a way to reference the values of the control.

View 1 Replies


Similar Posts:


Actionscript :: Flash Getting VIM To Be Efficient Like Flex

Nov 4, 2009

I'm trying to setup VIM for editing Actionscript 3 for some upcoming Flash projects. I dislike working in an IDE and prefer VIM. Right now, I know that I want:[code]I've tried setting up Omnicomplete but was running into issues.How can I set up Omnicomplete with tab completion properly?Where can I find a good AS3 syntax file?What is a good AS3 compiler for terminal/bash?

View 5 Replies

Flex :: Efficient Way To Parse Font Tag Attributes

Jun 18, 2009

I'm curious how, in ActionScript 3, to parse the font attributes of an HTML formatted content string. Lets take the following example content string:[code]

View 2 Replies

Flex :: Move Efficient Rotation Function Which Can Be Stopped On Demand?

Feb 12, 2011

I have an mxml pie chart, which I would like to rotate slowly prior to a button click, however on click it needs to stop immediately (or at least reasonably quickly) and then the callout labels are introduced with a fade.

I have experiemented with both a timer function to achieve this:

[Code]...

View 1 Replies

Flex - Build Efficient Button Skins With Larger Hitareas Than Visible Area?

Aug 3, 2011

What I'm trying to do: build a super simple button skin (say a small circle when in up state, slightly larger circle when in over / down states) that has a larger mouse hit area than visible area. In other words, I'd like the button to look like a 5x5 circle when in up state, but transition to over state when the mouse is in a 15x15 pixel area around such circle - in order to make clicking on the button easier.

What I've done in the past is to use a transparent ellipse behind the the visible ellipse. This works nicely but seems like a waste of memory (not much, although if you start having a lot of these buttons it adds up) and rendering cycles (transparency). I thought I could avoid this by wrapping the ellipse in a group with a given size and listen to its mouse events, but somehow no mouse events seem to fire on such a group - not sure why.

I guess I'd love to know if anyone knows an efficient way to do this. Also would love to know why such a group won't fire mouse events, but I guess that's secondary. Simple code snippet below:

[Code]...

View 1 Replies

ActionScript 3.0 :: Graphics Clear() Doesn't Clear Bitmap Data From BeginBitmapFill()?

Jul 30, 2011

I'm working on a game whose background has many layers that each scroll at different speeds.

Inside each layer I have a Sprite, I've started using graphics.beginBitmapFill, but what I've found is that the graphics.clear() function doesn't actually clear the contents set by the previous call to graphics.begin.BitmapFill. Each frame, I adjust the matrix to shift the layer as needed.  Then, I call graphics.clear() and graphics.beginBitmapFill() with the adjusted matrix. Since my layers have alphas in the bitmap, I can see the contents that was drawn the previous frame.

View 3 Replies

ActionScript 2.0 :: 2 Player Game Moving Cars Controls Help With Controls

Nov 13, 2005

i have the controls for car number 1 that would be the arrow keys if [code]but how can i make controls for car 2.i wann use wasd but i cant figure out how the key.a doesnt work.

View 1 Replies

Flex :: Possible To Clear A Flex Flash.utils.Dictionary?

Mar 10, 2010

Is it possible to clear a Flex flash.utils.Dictionary? I have a Dictionary that I want to clear (remove all elements).

View 3 Replies

Flex :: Override Child Node Controls In A Flex Tree Control?

Aug 20, 2010

I am currently developing a dynamic LineChart in FLEX 4.I am implementing a Tree control next to my LineChart, which will filter the LineChart dataprovider and lineseries. The tree control has several branches and ultimately 5 children (leaf nodes) at the bottom of the last branch.I need the leaf node/children to be displayed as checkboxes inside the tree control.As I understand,this will require overrides in the TreeItemRenderer class.This is where I am a little confused on how to implement that.Currently I can distinguish between leaf and branches using this code, in my main MXML component.I added this because it may be helpful to some beginning FLEXdevelopers, such as myself, who cannot easily find this functionality documented well:

private function treeClick(e:ListEvent):void {
_selectedItem = Tree(e.currentTarget).selectedItem;
if(mainTree.dataDescriptor.isBranch(_selectedItem)) {[code].....

I am looking at the TreeItemRenderer override class from the following example here: In the example, they override the "createChildden" super function to add checkboxes to the tree control.My question is, can I override the createChildren function directly in my MXML component, and not have to use an entire class file to override this functionality? Must I re-invent the wheel to do this?Also, how can I distinguish that my treeItem is a leaf node and not a parent, in the override function? I only want to add checkboxes to the leaf nodes, how can I differentiate? The following example adds checkboxes to all branches and leaf nodes, but I want to add checkboxes only to leaf node/children. How would you approach that?

override protected function createChildren( ): void
{
super.createChildren( );[code]............

Here is my tree tag:

<mx:Tree id="mainTree" dataProvider="{treeData}" itemRenderer="TreeCheckBoxItemRenderer" labelField="@label" showRoot="false" width="100%" height="100%" itemClick="treeClick(event)" />

View 1 Replies

Flex :: Where Are The Libraries? Can I Clear The Cache?

Jul 15, 2009

Where are the signed, cached flex libraries on a windows / mac / linux system? They don't appear to be in my browser cache... so where is adobe keeping them? I found the files. But can I clear the cache? After trashing the files in windows, I don't see the files get downloaded again (with fiddler).

View 2 Replies

Actionscript 3 :: Clear DateField In Flex 3

Oct 10, 2009

there's no way to clear a date after it has been inserted! I had to add an ugly button near it to clear it programmatically..

View 1 Replies

Flex :: Clear A Cell In A DataGrid?

Oct 27, 2011

I have an editable datagrid with a dataprovider which is basically Numbers. Is it possible to delete a value? When I do it it puts a 0 in that cell but I really need an empty value, like a Null or a NaN whose are going to be cleaned later with a labelFunction. BTW I also need the cells to keep the 0 if needed to.

View 1 Replies

Flex :: Clear An Index Property In A ValueObject?

Jul 26, 2011

I have used the index of a value object to map to a screen object so that new items added index as -1, -2, -3, -4, -5 etc. Now that I am ready to add these new objects to the database I want to clear their index value so that I can run a createService on them.

It wont allow me to delete object.property and setting it to 0 or trying to set it to null will not allow the object to be created in the database.

What other method can I use for clearing the property?

View 1 Replies

Ios :: Creating Own IOS-controls With Flex

Feb 6, 2012

I was looking into creating iOS-apps (especially for the iPad) with the Adobe-Flex framework. It looks very promising to code apps this way. Is it possible to create own controls/widgets? In the far future I might want to create my own kind of gantt-calender or whatever. Is something like this possible and are there any good tutorials/book out there?

UPDATE: I want to create iOS Components that I can use in Flex. Controls, that are not aviable by default in Flex. Is that possible? By derivating or something?

UPDATE 2: In the meanwhile I found FlexLib to be useful. How hard is it to create stuff like this on your own? Especially for mobile devices. Are there any good tutorials, books, etc.

View 2 Replies

Flex :: Clear The Text Field Or Destroy The Object?

Jun 24, 2009

I have a text field, which holds the session value. Now while when i do logout operation.. clearing the text field does not work...

sessionHold.text = ""; The above code does not work, its not clearing the session value in the field.

appSes = event.result as Array
var vinoth:String = String(appSes[0]);
Alert.show(vinoth);
sessionHold.text = appSes[1];

View 1 Replies

Flex :: How To Clear Existing List Data Values

Feb 17, 2010

I would like to know how to delete(clear) the existing list data values before binding new values. I'm using the list for binding data dynamically using http services. When I make a new call to the service, I want the exiting items to be flushed and bind the newly retrieved data to the same list. How can I achieve this?

View 2 Replies

ActionScript 3 :: Flex - Socket - Amf - NetConnection - Rtmp ... Getting Clear

Feb 22, 2011

How to understand binary data transferring between flash client and server? How do rtmp-servers work? How is video transferring between server and client? What's the difference between using Socket and NetConnection? Is rtmp-server just a socket server supporting amf serialization? I'll be very happy, if someone explains me these aspects.

View 1 Replies

Flex :: Clear AIR Mobile Application Data In IntelliJ?

Mar 9, 2012

I'm developing a mobile AIR application using IntelliJ.

When debugging in Flash Builder there is an option to clear to application data on each (debug) launch of the ADL (see screenshot below) However, I can't find this setting in IntelliJ or some ADL parameter to force a clear on each new debug session. I was wondering if such an option exist in IntelliJ or ADL.

A little background: I'm using the PersistanceManager in the application to store some user settings and I want to be able to start the application without the saved settings from my previous run. Using this setting in Flash Builder does the trick, but I'm having no luck with IntelliJ.

View 1 Replies

Flex :: Cannot Tab Between Controls On A Modal Popup?

Sep 25, 2009

Create a modal popup to popup with popupmanager (mine is a group with a skinnable container inside of it)Put field components (textinputs) on the modal popup Attempt to tab between controlsTab switches to controls behind the modal-popup and ignores the fact that the modal is there. The tab loop only contains controls behind the modal. I've tried everything from setting tabChildren, to hasFocusableChildren. I can't implement IFocusManager as it's Halo and my modal is a Spark group, but would that work in some capacity? It really seems like Flex just ignores the modal in its focusmanager.

View 3 Replies

Flex :: Add Controls To The Title Bar Of A Panel?

Jul 8, 2010

I'm trying to implement a collapsible TitleWindow popup by adding a handle to the top right corner of a Panel control. Unfortunately, the image that I add as the handle doesn't show up when the control is drawn. I can trigger a redraw by changing the source of the image, so apparently it's there, but it's somehow hidden. Is there a way to make this Image control visible to the user?Here's the code for the window:

package
{
import mx.containers.Panel;

[code]......

View 2 Replies

Actionscript 3 :: Add Flex Controls To Project?

Nov 24, 2010

I have a pure AS3 project that plays video from youtube (chromeless player). I need to add some controls to manage this player. I don't know how to do that? If I just add mxml file into the project nothing happens. How to bind this file to as3?

View 4 Replies

Flex :: Use ItemRenderer In Mx.controls.TextArea?

Jun 21, 2011

I want to integrate itemrenderers in a TextArea. The purpose is to visualize keywords with their own easy interface while the user still can treat the whole thing as normal text to select the font, fontsize, etc.

[Code]...

View 1 Replies

Flex - Import Mx.controls.Alert?

Oct 25, 2011

I got a strange problem. Just using Flash Builder 4.5 and trying to use the Alert Popup for some user messages.

[Code]...

View 2 Replies

Flex :: Clear Or Reset The Preferences For Adobe Flash Builder?

Jan 17, 2011

I am using Flash builder 4 to both build and manage (via cvs) projects. In recent days my designer has been having trouble committing to CVS, leaving a project blocked. I have troubleshooted troubleshot tested CVS and it is working fine (others can commit and retrieve without a hitch).

in an effort to start from scratch - I have removed the flash builder application (dragging it to the trash, its a Mac) as well as using the uninstaller (which does not work as well as I would have thought), but on reinstall - all preferences are still there - CVS connection and all.

is there a file or set of files I can delete to reset all of the prefs for Flash Builder (built on eclipse if that helps)?

View 1 Replies

Flex :: Clear Shared Objects When Browser Closes Abruptly?

Jun 7, 2011

How to clear the shared objects when user closes the browser abruptly?If the user opens the same application in two tabs, and user tries to close any one of the tab, we have to listen only the closed tab event.

View 1 Replies

Flex :: Style Elements Reference For Controls?

Aug 22, 2009

Is there any documentation link where I can find list of styles applicable to flex controls? In particular the AdvancedDataGridControl. Like border, border-left,top,bottom,indent, etc like list of all possible style elements.

#1: Link provided by Lior below is the complete list.
#2 : found this looks quite cool.

View 2 Replies

Flex :: Why Can't Import Mx.controls Into ActionScript Project

Oct 1, 2009

I'm trying to do a simple import into an ActionScript Project that I've created in Flex Builder:

import mx.controls.Label;

It won't let me. Code hinting shows no 'controls' after mx.

View 1 Replies

Flex :: Force All Controls To Render At Start?

Oct 4, 2009

When I try to access the hidden TABs of my tab navigator control in action script, it returns a null error. But it works OK if I just activate the control in the user interface once. Obviously the control is not created until I use it. How do I make all the tabs automatically created by default ?

View 2 Replies

Flex :: Programmatically Add A Set Of Controls With Some Amount Of Pixels Between Them?

Nov 8, 2009

I need to programmatically add a set of controls with some amount of pixels between them. I can't seem to find how to do this in the Flex docs.

View 4 Replies

Flex :: Set Up Projects That Reference Common Controls?

Mar 30, 2010

I'm not a flash developer, I'm having issues figuring out how I should set up these two projects that I have in Flex Builder.I've already created projA which has a .mxml that references several custom controls & skins from com.xxx.controls within projA.I now have to build projB which also has a .mxml that will create a different .swf. I want to use some of the same controls from projA.I currently build projA through the command line and nant and will need to do the same for projB.

Should I create a new project to move all of the common controls into? How do I then use this library project in both the projects & compile via command?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved