Re: [flexcoders] Detecting Enter Key After Editing a Datagrid Control

2009-01-02 Thread Manish Jethani
On Thu, Jan 1, 2009 at 3:29 PM, blissweb wrote: > Is there any quick way to run a function after someone hits enter > after editing a datagrid cell. > > Ideally I want it to move to the next field if tabbed and insert a > new row if they hit enter. > > I see there is a enter= for TextInput... bu

Re: [flexcoders] 1180 Error

2009-01-02 Thread Manish Jethani
On Fri, Jan 2, 2009 at 3:46 AM, jason1701e wrote: > I have the following Address Class: > > package com.jherrington > { >public class Address >{ [snip] > The problem is that I receive an 1180 Error saying the following: > Call to a possible undefined method Address. Is your Add

Re: [flexcoders] ToggleButtonBar with one or more ComboBoxes instead of buttons: How to build it?

2009-01-02 Thread Manish Jethani
On Fri, Jan 2, 2009 at 11:06 PM, Alan Shaw wrote: > The dataProvider would be like a Tree's, so for example an array where some > of the elements are leaves (-> buttons in the bar) and some are arrays (-> > dropdown lists in the bar) (no deeper arrays, and no folder names). I want > the user to

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Manish Jethani
On Fri, Jan 2, 2009 at 6:09 AM, Mike Oliver wrote: > Thanks, so this script would go within the > > > > > > Right? Yes. Manish -- http://manishjethani.com

Re: [flexcoders] CSS style in itemrenderer

2009-01-01 Thread Manish Jethani
On Wed, Dec 31, 2008 at 9:34 PM, vincy8080 wrote: > Why is the CSS style not applied to my button in the datagrid > itemrenderer (see code below)? What should I do to apply the style > "buttonStyle" to the button in the itemrenderer? Well, it seems the DataGrid just overwrites your 'styleName' s

Re: [flexcoders] hideing a tab in a TabNavigator

2009-01-01 Thread Manish Jethani
On Wed, Dec 31, 2008 at 8:16 PM, btroop202 wrote: > How can I hide a with AS3 when a if condition is true. So it would > show in the TabNavigator sometimes. The only way to do that is to remove the child from the TabNavigator (and add it back later). You can disable the tab though by setting 'en

Re: [flexcoders] Canvas with MouseEvent and Button with MouseEvent

2009-01-01 Thread Manish Jethani
On Thu, Jan 1, 2009 at 2:14 AM, rockorgames wrote: > hello, im trying to this, > > a canvas and a button inside the canvas.. > > and both the button and canvas has click events.. my problem is: > > if the user clicks the button, both the button click event and the > canvas click event are firing..

Re: [flexcoders] Can't remove an object?!

2009-01-01 Thread Manish Jethani
On Thu, Jan 1, 2009 at 6:30 AM, Nate Pearson wrote: > I'm adding this opaque loading overlay to my application when it > loads. It's just a VBox. I'm pulling out my hair, any help is > greatly appreciated! > > Here's what I do: [snip] I'm not sure I understand where your problem is. When are y

Re: [flexcoders] itemRenderer ComboBox

2009-01-01 Thread Manish Jethani
On Fri, Jan 2, 2009 at 3:59 AM, Mike Oliver wrote: > it looks to me like it is better to use a label function to render the > display value and leave the combo box for itemEditor. > > That still leaves the question on how the ComboBox will display the Option > Label when in edit mode. The ComboB

Re: [flexcoders] Re: how to scale an entire flex application including text and images

2009-01-01 Thread Manish Jethani
On Wed, Dec 31, 2008 at 12:20 PM, johndoematrix wrote: > hi i have tried to use preinitialize="systemManager.stage.scaleMode = > 'showAll'" but the one half of the application cannot be seen. am i > doing it wrong? Try 'exactFit'. See the docs for StageScaleMode for the difference. Manish -- h

Re: [flexcoders] Font loaded by StyleManager.loadStyleDeclarations(fontName, true) resets any new text formatting set via setTextFormat

2008-12-31 Thread Manish Jethani
On Wed, Dec 31, 2008 at 3:12 AM, Andriy Panas wrote: >> First of all, getTextField returns an IUITextField, and there's no >> method called setTextFormat on IUITextField. So you're casting the >> object to its actual type, UITextField, and then calling the >> setTextFormat method on it. That's no

Re: [flexcoders] how to scale an entire flex application including text and images

2008-12-30 Thread Manish Jethani
On Tue, Dec 30, 2008 at 6:48 PM, johndoematrix wrote: > hello guys... i thought by using % width and height would help scale a > flex application depending on different screen sizes but i realized > that the controls such as text are not scaled which leads to scroll > bars being created. this make

Re: [flexcoders] Controlling browser window state during navigateToURL

2008-12-30 Thread Manish Jethani
On Tue, Dec 30, 2008 at 8:41 PM, simonjpalmer wrote: > I want to place a link on my app which starts a static HTML help page > in a new broswer window and I want to control the appearance of the > browser window that gets created. If I were doing this in HTML I > would use JavaScript window.open

Re: [flexcoders] combobox arrow size and vertical line

2008-12-30 Thread Manish Jethani
On Tue, Dec 30, 2008 at 9:38 PM, flexaustin wrote: > Is it possible to skin or change the size or shape of the arrow on the > combobox control? Also can you remove or change the vertical line that > separates the arrow button from selected item/label? You'll have to make your own skin. ComboBox

Re: [flexcoders] Re: Text components in VBox item renderer

2008-12-30 Thread Manish Jethani
On Tue, Dec 30, 2008 at 5:26 PM, arieljake wrote: > My understanding was that Text cannot be expected to wrap if it is > given a percent rather than an explicit width. Am I mistaken? The Text measurement algorithm (or the VBox layout algorithm) may have changed. This appears to work now. The reas

Re: [flexcoders] Text components in VBox item renderer

2008-12-30 Thread Manish Jethani
On Tue, Dec 30, 2008 at 12:05 PM, arieljake wrote: > I have been reading for hours on the net about this issue..anyone see > why this is not working right as a list item renderer? The Text > controls are not sizing right, their height is not growing as > expected. The title only shows one line, th

Re: [flexcoders] ToggleButtonBar with one or more ComboBoxes instead of buttons: How to build it?

2008-12-29 Thread Manish Jethani
On Tue, Dec 30, 2008 at 5:46 AM, Alan Shaw wrote: > Requesting advice on how to get started making this custom component. A combo box is not exactly a button, so my first question is, how is this "ToggleButtonBar with ComboBox" going to behave exactly? Manish

Re: [flexcoders] Change Color of panel from a function

2008-12-29 Thread Manish Jethani
On Tue, Dec 30, 2008 at 10:23 AM, timgerr wrote: > Hello all, > I am having troubles finding information on how to change the border > color of a panel from a function, here is my code: [snip] http://blog.flexexamples.com/tag/bordercolor/ You'll have to call the setStyle method on the Panel obj

Re: [flexcoders] Extends the layout manager

2008-12-29 Thread Manish Jethani
lute' and then set the 'x' and 'y' properties on the child objects (A, B, and C instances). You can use constraints-based layout properties like 'left', 'right', horizontalCenter', etc. Manish -- Manish Jethani http://manishjethani.com

Re: [flexcoders] How to interact with the contents of a SWF loaded into Flex?

2008-12-29 Thread Manish Jethani
On Tue, Dec 30, 2008 at 2:55 AM, Kearney Buskirk wrote: > The problem: from buttons in Flex, how to control going to a frame or frame > label in a timeline, in a SWF made in Flash 9, which is then loaded into a > Flex project by a SWFLoader component. There will be buttons for next and > previous.

Re: [flexcoders] Searching Multi Demensional arrays

2008-12-29 Thread Manish Jethani
erty as the key. map[obj.path] = obj; Later you can access any object by its path: someObj = map[somePath]; This is typically how you'd do it in AS3/Flex. Manish -- Manish Jethani http://manishjethani.com

Re: [flexcoders] re-passing variable arguments?

2008-12-29 Thread Manish Jethani
On Tue, Dec 30, 2008 at 4:28 AM, toofah_gm wrote: > I have a method that accepts variable arguments like this: > > public function doSomethingThenContinue(continueFunction:Function, > ...args) > { > // execute some code that does important stuff > > // call the continue function now that we ar

Re: [flexcoders] DataGrid Sorting

2008-12-29 Thread Manish Jethani
On Mon, Dec 29, 2008 at 7:29 AM, Manu Dhanda wrote: > I have CheckBox as an itemrenderer. and a custom sorting function for one > another column. > > But once I sort that another column and after that try to use checkbox(to > select items), why every selection of checkbox make a call to that cust

Re: [flexcoders] AS3- error adding datagrid column itemrenderer

2008-12-28 Thread Manish Jethani
On Sat, Dec 27, 2008 at 2:10 PM, wcso_lawdog wrote: > _categoryColumn.itemRenderer = gridCombo; * error line See if this works: import mx.core.ClassFactory; _categoryColumn.itemRenderer = new ClassFactory(gridCombo); Manish

Re: [flexcoders] Center a Popup window

2008-12-28 Thread Manish Jethani
On Sun, Dec 28, 2008 at 5:40 AM, sundaramoorthy kanagarajan > Manish, > faultCode:Client.Error.MessageSend faultString:'Send failed' > faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: > Failed: url: 'http://localhost:8080/billing/messagebroker/amf'' I'm not sure what web

Re: [flexcoders] Center a Popup window

2008-12-28 Thread Manish Jethani
On Sun, Dec 28, 2008 at 5:13 AM, Dan Vega wrote: > I get a compile time error if i do this > > _renamedir = new RenameDirectory > //add modal window > PopUpManager.addPopUp(_renamedir,Application.application,true); > //center modal window >

Re: [flexcoders] Center a Popup window

2008-12-27 Thread Manish Jethani
On Sun, Dec 28, 2008 at 2:52 AM, Dan Vega wrote: > This is my example. I am not creating one as it is already available, just > trying to add it and center it. > > _renamedir = new RenameDirectory > //add modal window > PopUpManager.addPopUp(_renamedir,this,true

Re: [flexcoders] Center a Popup window

2008-12-27 Thread Manish Jethani
On Sun, Dec 28, 2008 at 2:19 AM, Dan Vega wrote: > I forgot to mention, I am inside of a custom renderer. I tried both > suggestions and they did not work. Here's a small example: http://www.adobe.com/2006/mxml"; xmlns="*"> You could run the testIt method from anywhere (even

Re: [flexcoders] Font loaded by StyleManager.loadStyleDeclarations(fontName, true) resets any new text formatting set via setTextFormat

2008-12-27 Thread Manish Jethani
ant to get around that, it should be okay to pass false as the second argument to loadStyleDeclarations as long as your external stylesheet really does not affect any existing objects on the screen. -- Manish Jethani manishjethani.com

Re: [flexcoders] Center a Popup window

2008-12-27 Thread Manish Jethani
On Sun, Dec 28, 2008 at 12:51 AM, Dan Vega wrote: > I am trying to center a popup window that is being displayed from a tree. If > you just call the static centerPopUp it centers it in the tree. When you add > the popup though i noticed the second argument is the parent object. How can > I get a r

Re: [flexcoders] datagrid's performance

2008-12-25 Thread Manish Jethani
On Thu, Dec 25, 2008 at 1:19 PM, Fu Di wrote: > if i write code like following "draggableColumns = false > ,resizableColumns = false and sortableColumns = false" in datagrid, could > i get better performance? No, not really. You won't see any difference until the user actually interacts w

Re: [flexcoders] Wrapping Text or Bitmap

2008-12-25 Thread Manish Jethani
On Thu, Dec 25, 2008 at 10:31 AM, shardul bartwal wrote: > I want to know about the wrap in flex.How can we wrap any Text or BitmapData > in the Flex.If any body have any idea please suggesst. I'm not sure what you mean by wrapping BitmapData. For text, the Flash TextField class has a 'wordWrap'

Re: [flexcoders] How to know which DisplayObjects are underneath another?

2008-12-24 Thread Manish Jethani
On Wed, Dec 24, 2008 at 11:20 PM, huhgawz wrote: > Let's say you have a Canvas in which you create multiple instances of a > Circle randomly positioned. Then you want to know which Circles are > underneath the top most Circle (talking in z-order terms) in order to hide > them all. var n:int = c

Re: [flexcoders] commitProperties() and navigation container children

2008-12-24 Thread Manish Jethani
On Wed, Dec 24, 2008 at 9:42 PM, Sergey Kovalyov wrote: > Long time ago I have asked the question regarding commitProperties() > implementation in the container that might be a navigation container child: > http://www.mail-archive.com/flexcoders@yahoogroups.com/msg47993.html > > Unfortunately, I

Re: [flexcoders] compc -include-namespace question

2008-12-23 Thread Manish Jethani
On Wed, Dec 24, 2008 at 6:11 AM, aaron smith wrote: > Oh wait, I see it. > > So I could define map a namespace in the application tag to the > comipled namespace. like... xmlns:foo="http://example.com/foo";> And that would allow me to use > . Right? Thanks again. That's right. The namespace name

Re: [flexcoders] Re: Best practices for the naming of item renderers ?

2008-12-23 Thread Manish Jethani
On Wed, Dec 24, 2008 at 5:30 AM, João wrote: > For example, a List component shows Users. Each user has a picture and > some data, shown thanks to an ItemRenderer class. I would like to know > if there are best practices for naming ItemRenderer classes. I don't know about best practices, but in t

Re: [flexcoders] Re: Performance and UI failing to update?

2008-12-23 Thread Manish Jethani
On Wed, Dec 24, 2008 at 2:23 AM, Amy wrote: > --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: >> >> A quick google indicates that, as Manish says, current thinking is > to >> use timer for this type of work. > > I'm not sure I agree with this, since a timer can't react before the > next

Re: [flexcoders] Re: Display only part of a canvas??

2008-12-23 Thread Manish Jethani
On Wed, Dec 24, 2008 at 4:07 AM, jmfillman wrote: > This crops the scroll area only for items after the last included > item. Take the following example: > > > http://www.adobe.com/2006/mxml"; > layout="absolute"> > > includeInLayout="false" visible="false"/> >

Re: [flexcoders] What is '*' in class type?

2008-12-23 Thread Manish Jethani
On Tue, Dec 23, 2008 at 10:35 PM, luvfotography wrote: > public function parseResult( result:*):Array { > > if( result is XML || result is XMLList ) { > . . . . > ... > > > what is the '*' , is this the same as (result:object) ? > where result can be any type of object? If

Re: [flexcoders] Flex 3 Button with drop down list of other options

2008-12-23 Thread Manish Jethani
On Wed, Dec 24, 2008 at 2:01 AM, jeremysavoy wrote: > Not sure how to implement this. I want to have a button, that has an > option for a drop down list that may display other options. For > example, and "Add" button, with the option to "Add Based on Selected > Record" similar to the Run butt

Re: [flexcoders] Re: Display only part of a canvas??

2008-12-23 Thread Manish Jethani
On Wed, Dec 24, 2008 at 2:36 AM, jmfillman wrote: > I appreciate the responses, but I do not believe this will accomplish > what I need. Masking is the closest so far, but the scroll bars > create a problem. > > Simply making items hidden, does hide viewable items, but leaves the > container with

Re: [flexcoders] compc -include-namespace question

2008-12-23 Thread Manish Jethani
On Wed, Dec 24, 2008 at 1:33 AM, aaron smith wrote: > Does the -include-namespace correlate to the mxmlc > namespaces.namespace switch? Also, (this is kind of broad), but in Yes. > what situation do the namespace flags need to be used? I'm thinking > it's for the namespaces in mxml (like ) Thank

Re: [flexcoders] Performance and UI failing to update?

2008-12-23 Thread Manish Jethani
On Tue, Dec 23, 2008 at 7:05 PM, Charlie Hubbard wrote: > The parsing of the XML is done separately from the iteration, and > each iteration of the loop over the nodes is done using > UIComponent.callLater(). So my algorithm looks pretty close to > something of this form: > > function doIterati

Re: [flexcoders] Wrapping Text in Alert

2008-12-23 Thread Manish Jethani
On Tue, Dec 23, 2008 at 9:05 AM, Stephen More wrote: > On Mon, Dec 22, 2008 at 5:39 PM, Manish Jethani > wrote: >>> Is there an easy way to get text inside of a mx.controls.Alert to wrap ? >> >> It already wraps. >> >> >> >> Perhaps you want t

Re: [flexcoders] Display only part of a canvas??

2008-12-23 Thread Manish Jethani
On Tue, Dec 23, 2008 at 5:41 AM, jmfillman wrote: > I have a Canvas that with a height of 3000. For some users, I only want > them to be able to view and scroll a portion of the height of the > canvas, say 1200-2200. It can vary from user to user, and some will > need to see the entire height. I'

Re: [flexcoders] Point to the start of the textbox

2008-12-23 Thread Manish Jethani
On Tue, Dec 23, 2008 at 2:35 PM, kotha poornima wrote: > 1. Textbox width is not sufficient to the data in the control So if i want > to see the endpoint of the data iam moving my cursor to the end of the > control(ie textbox). There's a property you need to set. It's called verticalScrollPositi

Re: [flexcoders] Re: Creating UTF8 strings from hex bytes encoded as text

2008-12-22 Thread Manish Jethani
On Tue, Dec 23, 2008 at 3:53 AM, biosmonkey wrote: > I still am not clear on why I had so much trouble with trying to use > strings (why can't I just concatenate the codes?), but this works so > I'm not really going to investigate it any further! Concatenating the bytes is exactly what you're do

Re: [flexcoders] Wrapping Text in Alert

2008-12-22 Thread Manish Jethani
On Tue, Dec 23, 2008 at 3:54 AM, Stephen More wrote: > Is there an easy way to get text inside of a mx.controls.Alert to wrap ? It already wraps. Perhaps you want to reduce the width of the box? -- http://manishjethani.com/

Re: [flexcoders] Creating UTF8 strings from hex bytes encoded as text

2008-12-22 Thread Manish Jethani
On Tue, Dec 23, 2008 at 2:35 AM, biosmonkey wrote: > I have a need to take a string that is encoded as hex bytes and decode > it into a utf8 string. > For example, the sequence: > e8 8b b1 e8 aa 9e > should display two Japanese characters. You could do this: var s:String = decodeURICompon

Re: [flexcoders] Rendering Problem

2008-12-22 Thread Manish Jethani
On Mon, Dec 1, 2008 at 6:06 AM, Rafael Faria wrote: > What could be causing problems with rendering?! I have this > application that every now and than flicks, the background goes white > for a second than get back to normal. Its not really something in > particular because that happens in a coup

Re: [flexcoders] Loading network SWFs from SWF hosted on filesystem (SWF is not a loadable module

2008-12-22 Thread Manish Jethani
On Sun, Dec 14, 2008 at 1:03 AM, hughesmatt78 wrote: > "A SWF file may also call Security.allowDomain() with the wildcard > parameter "*" to allow any domain. > This is necessary to allow a local-with-networking SWF file to > cross-script a network SWF file." [snip] > SimpleModule.mxml (the mod

Re: [flexcoders] FlexTasks: Compc for Flash Player 10

2008-12-22 Thread Manish Jethani
On Mon, Dec 22, 2008 at 4:04 AM, Robert Stehwien wrote: > Also recommend you make sure you are using the 3.2+ SDK > $ which compc > /Applications/Adobe Flex Builder 3/sdks/3.2.0/bin/compc Actually the version option will give you the version number. $ compc -version Version 3.2.0 build 3958

Re: [flexcoders] Re: mailto from textarea in AIR application - line breaks fail in windows

2008-12-22 Thread Manish Jethani
On Tue, Dec 23, 2008 at 1:01 AM, cedar.rabbit wrote: > Thanks for the response. Yes, I tried: > > escape(ta.text) > > which is the same thing as escaping the "body" var I would think. It gave me > the contents > of all the text, but on a single line, i.e, without any carriage returns. So > o

Re: [flexcoders] FLVPlayback using a Tree Control

2008-12-22 Thread Manish Jethani
On Mon, Dec 22, 2008 at 5:31 AM, Jesse wrote: > private function changeHandler(event:ListEvent):void > { > var selectedXML:XML = event.target.selectedItem as XML; > > if (selectedXML.name() == "video") > { > xPhoto = selectedXML; > } > } > private function nextFLV(e:Event):void > { > ? > } [s

Re: [flexcoders] how to manage display of 2 images inside a VBox?

2008-12-22 Thread Manish Jethani
On Mon, Dec 22, 2008 at 10:14 PM, kearney_buskirk wrote: > The situation: a large photo jpg and a small text png are vertically > constrained within a > VBox. The small text png is positioned below the photo in the layout. > > The problem is the small file loads first at the top of the VBox and

Re: [flexcoders] Flex 3 checkbox as itemrenderer in datagrid, "selected" property boolean not working

2008-12-22 Thread Manish Jethani
On Mon, Dec 22, 2008 at 10:42 PM, jmsavoy wrote: > I have a checkbox as an itemrenderer in a datagrid as follows: > > > > selected="{data.Sent}"/> > > > The value "Sent" is a text string either "true

Re: [flexcoders] few compc questions

2008-12-22 Thread Manish Jethani
On Sat, Dec 20, 2008 at 1:13 AM, aaron smith wrote: > Yeah that -include-libraries worked. Strange as it isn't documented in > the compc help, or the online docs for compc. How did you come about > finding that? I gave the '-help' option to compc on the commandline. bash$ compc -help include

Re: [flexcoders] Button with Icon and two labels one with Left align while Other with right Align

2008-12-22 Thread Manish Jethani
On Sat, Dec 20, 2008 at 1:20 PM, Ashish Verma wrote: > I tried the same. but how to fine tune all the methods like meaure, update > list, label properties with this new textfield. and main problem is that the > alignment is apply only for button not for textfield. please provide some > work around

Re: [flexcoders] How to make the TitleWindow resizeable by the user?

2008-12-19 Thread Manish Jethani
On Sat, Dec 20, 2008 at 12:58 AM, luvfotography wrote: > How can I make the TitleWindow resizeable by the user? > i.e. let the user click-drag the corner to resize the window? This has probably been asked a million times. http://www.google.com/search?q=resizable+titlewindow+flex Essentially, yo

Re: [flexcoders] Button with Icon and two labels one with Left align while Other with right Align

2008-12-19 Thread Manish Jethani
On Fri, Dec 19, 2008 at 5:36 PM, Ashish Verma wrote: > I am creating a button in flex. which would have an icon and two labels. The > First label will contain the command text while other could contain shortcut > key. I want all the shortcut keys should be right aligned.it should retain > it's st

Re: [flexcoders] Image loader flicking help

2008-12-19 Thread Manish Jethani
On Fri, Dec 19, 2008 at 5:29 AM, Rick Denney wrote: > I am new to the world of Flex 3/AS3. What I am doing is streaming jpeg > images though an image loader and mx:Image. [snip] > My question is: > > Is there a way to disable the mouse events when the cursor is moved > over the streaming image

Re: [flexcoders] TileList itemRenderer help

2008-12-19 Thread Manish Jethani
On Fri, Dec 19, 2008 at 10:53 PM, lelander wrote: > I build a custom itemRenderer in actionscript for a TileList, that displays > an image and > positions it on the bottom of the tile. I want to be able to programatically > control the size of > the tiles and create an effect when they are res

Re: [flexcoders] few compc questions

2008-12-19 Thread Manish Jethani
On Fri, Dec 19, 2008 at 3:36 PM, aaron smith wrote: > -Does anyone know what the "-include-resource-bundles" switch does with compc? It includes the specified resource bundles and any dependencies. compc -output myResources_en_US.swc \ -include-resource-bundles foo.bar.tooltips -locale=en_U

Re: [flexcoders] DataGrid - Properties as Lines and Items as Columns

2008-12-19 Thread Manish Jethani
On Fri, Dec 19, 2008 at 10:15 PM, Saulo Brust wrote: > How can I invert the behavior of DataGrid component, so that > properties are lines and items are columns? You have data like this: Name, City, Zip Manish, Copenhagen, 129813 Tom, San Francisco, 89126 You want to make it like this: P

Re: [flexcoders] Re: An other custom event

2008-12-19 Thread Manish Jethani
On Fri, Dec 19, 2008 at 2:18 PM, lorenzo.boaro wrote: > is it correct that i create a custom object and dut put it in my array > like previous one? I actually wrote a blog entry about this. http://manishjethani.com/guaranteeing-enumeration-order But I'm a bit lost now. It looks like you're try

Re: [flexcoders] Help with Panel Container layout

2008-12-18 Thread Manish Jethani
On Fri, Dec 19, 2008 at 12:05 PM, brucewhealton wrote: > I'm reading about the Panel Container in Flex 3 and at one > point I'm told that this has a series of four layout handles. Each of > these can be set to anchor, unanchored or center. I'm not seeing how > that is done. I've used Pan

Re: [flexcoders] Re: Get Children function

2008-12-18 Thread Manish Jethani
On Fri, Dec 19, 2008 at 12:02 AM, Tracy Spratt wrote: > Be aware of deferred instantiation. Only the children that have been viewed > by the user will be instantiated. Deferred instantiation should be no problem for accessing the immediate children of a ViewStack object.

Re: [flexcoders] Re: An other custom event

2008-12-18 Thread Manish Jethani
On Thu, Dec 18, 2008 at 11:32 PM, Manish Jethani wrote: > On Thu, Dec 18, 2008 at 10:56 PM, lorenzo.boaro wrote: > >> when i try to rint the object fields are not in the correct order... >> tuesday 45 >> production test >> monday 23 > > The order cannot

Re: [flexcoders] Re: An other custom event

2008-12-18 Thread Manish Jethani
On Thu, Dec 18, 2008 at 10:56 PM, lorenzo.boaro wrote: > when i try to rint the object fields are not in the correct order... > tuesday 45 > production test > monday 23 The order cannot be guaranteed in a for loop. You can instead store the fields as an array of name-value pairs and iterate over

Re: [flexcoders] VSlider, snap to tickmarks?

2008-12-18 Thread Manish Jethani
On Thu, Dec 18, 2008 at 10:49 PM, aphexyuri wrote: > I've got a slider that has different values based on params passed to > it. I populate the tick marks with an array of possible values the > slider can have, and would like to snap the thumbs to the tickmarks. I think your best bet is to subcl

Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-18 Thread Manish Jethani
On Wed, Dec 17, 2008 at 9:26 AM, devenhariyani wrote: > Does anyone know where I can find some good examples of flex apps > written completely in ActionScript 3? I did some quick searches on > Google, but didn't find much. This viewer app is done in pure ActionScript 3 using the Flash Player API

Re: [flexcoders] Image

2008-05-23 Thread Manish Jethani
On 5/22/08, Laith Juwaidah <[EMAIL PROTECTED]> wrote: > Sorry, I copied the wrong line, it's giving the error on loader.mouseEnabled > = false; You have to set mouseEnabled on the contentHolder object. See the source of SWFLoader. Manish

Re: [flexcoders] Re: Weird URLloader problem

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 10:03 PM, proveren <[EMAIL PROTECTED]> wrote: > --- In flexcoders@yahoogroups.com, "Manish Jethani" > <[EMAIL PROTECTED]> wrote: >> >> On 5/21/08, proveren <[EMAIL PROTECTED]> wrote: >> >> > However, if I

Re: [flexcoders] Re: How to avoid Image refresh?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 10:56 PM, Robert Csiki <[EMAIL PROTECTED]> wrote: > Thanks for your reply. The browser does cache my images, but still server > calls are made (by the Image object) whenever the object refresh is required > (i.e. when Flex repaints the component). That's what I want to contr

Re: [flexcoders] Re: When are asynchronous events processed?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 11:02 PM, Paul Whitelock <[EMAIL PROTECTED]> wrote: > 2.Wait until the next scheduled frame-render time. While waiting, if > any events are triggered, execute all registered event listeners. Yes, so in your "while waiting" time, if you make a network call -- say you downlo

Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On Thu, May 22, 2008 at 12:50 AM, Laith Juwaidah <[EMAIL PROTECTED]> wrote: > I haven't messed with mx_internal, can you please give me an example or > something? import flash.display.Loader; import mx.controls.Image; import mx.core.mx_internal; var image:Image = theImageObject; var loader:Loader

Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 9:02 PM, Laith Juwaidah <[EMAIL PROTECTED]> wrote: > I just did img.mouseEnabled = false; > How do I access its "internal Loader object"? There's no API for accessing the Loader object. So you have to go through the mx_internal 'contentHolder' property, I believe.

Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 4:08 PM, Laith Juwaidah <[EMAIL PROTECTED]> wrote: > I'm just adding it as a child. > > I tried your way and now it doesn't even show the menu when it is right > clicked. > You need to set mouseEnabled to false on the internal Loader object. The Image component uses a Loade

Re: [flexcoders] Disable button if field is empty

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 8:06 PM, mr_delphi_developer <[EMAIL PROTECTED]> wrote: > I have this input field and button. > > editable="true" enabled="true" width="55" /> > >enabled="false" id="GetRosterBtn"/> > > I don't want the button enabled until the team_pin has 4 characters. > > I've tried

Re: [flexcoders] How to avoid Image refresh?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 7:46 PM, Robert Csiki <[EMAIL PROTECTED]> wrote: > I have a datagrid with objects. The item renderer contains an Image object > that grabs the content via URL from a remote server. > > Whenever I scroll up and down, there are server calls to get the image > content again. It

Re: [flexcoders] When are asynchronous events processed?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 7:48 PM, Paul Whitelock <[EMAIL PROTECTED]> wrote: > When a response is received from a web service (for example), when is > the listener code executed? The beginning of the next frame? I'm > assuming that currently executing code is not suspended so that an > asynchronous e

Re: [flexcoders] Weird URLloader problem

2008-05-21 Thread Manish Jethani
On 5/21/08, proveren <[EMAIL PROTECTED]> wrote: > However, if I move the swf in the parent directory or in another > non-subdirectory of where I compiled the swf, it doesn't work. What do you mean by "doesn't work"? Is it giving you a security error? If you deploy the app on your server and pla

[flexcoders] scriptTimeLimit (max-execution-time) overridden by child SWFs

2008-05-21 Thread Manish Jethani
I've logged a bug here: https://bugs.adobe.com/jira/browse/FP-243 In short, if you have an application composed of many SWFs, the 'scriptTimeLimit' setting on the main SWF has no effect -- it is overridden by the 'scriptTimeLimit' of any child SWFs. We're loading lots of child SWFs in our applica

Re: [flexcoders] Flexlib SuperTabBar, ButtonScrollingCanvas, and dataProvider

2008-05-21 Thread Manish Jethani
On 5/21/08, grizalum <[EMAIL PROTECTED]> wrote: > If I attempt to create an array of those same strings and > programmatically pass this array to the dataProvider setter, by either > calling the setter or by using the dataProvider tag > attribute ...dataProvider="{theArray}"... the result, as

Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On 5/20/08, Laith Juwaidah <[EMAIL PROTECTED]> wrote: > I'm having a problem, I want to put an image on the application (which is a > container for some "windows" and "components"), and I want it to just show > the picture without it blocking the way for the user to interact with the > other co

Re: [flexcoders] SWF buffering/loading complete event

2008-05-21 Thread Manish Jethani
On 5/21/08, Joy <[EMAIL PROTECTED]> wrote: > Guys, can anyone please help me, I want to make a call to a third > party app, once an SWF (whether from an MXML/AS3 application)gets > loaded completely on a browser. You can listen for the 'complete' event on the contentLoaderInfo property of the

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-18 Thread Manish Jethani
On 5/18/08, Fiouz <[EMAIL PROTECTED]> wrote: > On Sat, May 17, 2008 at 6:24 PM, Manish Jethani > <[EMAIL PROTECTED]> wrote: > >> What is the reason behind throwing an error when an array of > >> DisplayObject is given? Why would I have to wrap my DisplayObjec

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-17 Thread Manish Jethani
On 5/16/08, Fiouz <[EMAIL PROTECTED]> wrote: > I'd like to specify a custom Array dataProvider to a > mx.controls.ButtonBar instead of binding it to a ViewStack instance. > I'm doing the following: > >var array:Array = new Array(); >array.push(chart); // chart is a DisplayO

Re: [flexcoders] Flex Base Singleton class based on introspection

2008-05-09 Thread Manish Jethani
On 5/8/08, ovandevelde <[EMAIL PROTECTED]> wrote: > Currently, ActionScript doesn't have support for private class constructors, > thus any class's constructor can be accessed. But there are times when you'll > want your class to be instantiated just one time, meaning its constructor > called j

Re: [flexcoders] Re: Modules the way to go?

2008-05-09 Thread Manish Jethani
On 5/9/08, Gregor Kiddie <[EMAIL PROTECTED]> wrote: > From the docs… > > "Unloads the module. Flash Player and AIR will not fully unload and garbage > collect this module if there are any outstanding references to definitions > inside the module." > > Which is what usually causes us the problems

Re: [flexcoders] Changes in dot releases of Flash Player 9

2008-05-09 Thread Manish Jethani
On 5/9/08, Bill Brown <[EMAIL PROTECTED]> wrote: > I'm running into issues with an AS3 project on versions of Flash Player 9 > prior to 9.0.115. > Does anyone know were I can find a change log or a bug list of Flash Player 9 > dot releases? The release notes: http://www.adobe.com/support/docum

Re: [flexcoders] ROLL_OVER on Componeont does not bubble? HOW??

2008-05-01 Thread Manish Jethani
On 4/7/08, James Gardiner <[EMAIL PROTECTED]> wrote: > I was wondering if anyone could point me at how to archive the folloing. > > I make some boxes in Flex as a time line. But use a label component on > top... > The Label componeont blocks the roll_over event on the boxes... > > I want the

Re: [flexcoders] Simple Effects question that i cant figure out - using muliple views (states)

2008-04-30 Thread Manish Jethani
On 4/30/08, jkasham <[EMAIL PROTECTED]> wrote: > Ive tried using actionscript but with effects i couldnt figure out how > to change styles (example: 'right' or 'bottom' coordinates) with the > Move() effect. I think you want to use the AnimateProperty effect for the 'bottom' or 'right' style.

Re: [flexcoders] Re: Raising Events with Properties

2008-04-30 Thread Manish Jethani
On 5/1/08, caffeinewabbit <[EMAIL PROTECTED]> wrote: > You'll need to extend event and create a custom child class. > > Custom event code: > > package my.package.path > { >import flash.events.Event; > >public class MyEvent extends Event >{ > public static const PROJECT_SELECTED

[flexcoders] Running Flex 3 application on Flash Player versions below 9.0.28

2008-04-30 Thread Manish Jethani
Hello, We've successfully ported our Flex 3 application to run on Flash Player versions below 9.0.28. Turns out it wasn't much of a big deal. In case someone's interested (now or in the future), I'm explaining here how to get it to work. First, there are only two events that keep a regular Flex 3

Re: [flexcoders] Dinamic resize of flex application

2008-04-17 Thread Manish Jethani
On 4/15/08, wmckensy <[EMAIL PROTECTED]> wrote: > Hi I have a flex application in an HTML page, inside a div, and I want > to resize the current flex width and hight of the application (flash > movie) depending if I have full options displayed of my app or not. > > Does anyone have any idea ab

Re: [flexcoders] Catching keyDown event globally

2008-04-17 Thread Manish Jethani
On 4/17/08, Denis <[EMAIL PROTECTED]> wrote: > Is it possible to catch a keyDown event in an Application globally? In > other words, if I need a certain functionality be attached to pressing > a Pg Dn button regardless where you are in the application which > control should be capturing the ke

[flexcoders] Additions to Flash Player 9.0.28?

2008-04-17 Thread Manish Jethani
I'm trying to get a Flex 3 application to run on Flash Player versions below 9.0.28. During the process, I found that the 'uploadCompleteData' event (FileReference) was added only in 9.0.28, but it isn't listed in the release notes: http://www.adobe.com/support/documentation/en/flashplayer/9/relea

[flexcoders] Flex 3 on Flash Player 9.0.16?

2008-04-14 Thread Manish Jethani
Hola! Has anyone run into any issues running Flex 3 applications on Flash Player 9.0.16 or lower (aside from the absence of the ADDED_FROM_STAGE and REMOVED_FROM_STAGE events, which causes ComboBox, PopUpButton, PopUpMenuButton, RichTextEditor, and a few other components to throw errors (which Ado

Re: [flexcoders] Flayer Player minimum requirements Flex 3

2008-03-28 Thread Manish Jethani
On 1/4/08, Matt Chotin <[EMAIL PROTECTED]> wrote: > We support r28 or greater of Player 9 I think. Current version is 115 which > we can leverage for the cached framework, but don't require. Does anyone know the technical reason for requiring r28? I'm wondering if I can bypass this; I'd really l

<    1   2   3   4   5   6   7   8   9   10   >