Re: [flexcoders] reg expression for Password

2009-06-25 Thread Manish Jethani
On Thu, Jun 25, 2009 at 2:39 AM, vin.flex wrote: > can anybody help me with regexp for password with following specifications > > 1) It should contain atleast 8 characters > 2) It should atleast has one uppercase letter and one digit > 3) No special characters if (s.search(/^[A-Za-z0-9]{8,

Re: [flexcoders] Closures in ActionScript 3?

2009-06-05 Thread Manish Jethani
On Fri, Jun 5, 2009 at 7:58 PM, Keith Hughitt wrote: > Could someone please explain to me how closures work in ActionScript? I am > attempting to create a set of Flex Form fields, and assign an event-handler > to each of them, however, it seems that after creation, all of the fields > have the sam

Re: [flexcoders] Cross-domain data flow

2009-06-05 Thread Manish Jethani
That's right. The browser will contact YouTube and Flickr directly to load content from those websites. Only the SWF will be loaded from your site. On 6/5/09, steve horvath wrote: > I've got a SWF on my website that loads images and videos from another > domain. If a client loads my web page and

Re: [flexcoders]Given this string how to keep my RegExp from being greedy

2009-06-04 Thread Manish Jethani
On Fri, Jun 5, 2009 at 4:25 AM, dorkie dork from dorktown wrote: > My RegExp is being greedy. There are two matches. The regexp is grabbing the > first span all the way to the last span. How do I prevent it from being > greedy? > > Given this string: > > Vestibulum aliquet > leo in enim viverra id

Re: [flexcoders] How to addChild with StringValidator?

2009-06-04 Thread Manish Jethani
On Fri, Jun 5, 2009 at 2:12 AM, markflex2007 wrote: > I try to build a validation class with AS. I extends UIComponent to build the > class,but I an not use "this.addChild(stVar);" because UIComponent only can > addChild with DisplayObject. > > which class I can use to take place "UIComponent"

Re: [flexcoders] Slider dataTip- is it possibole to have this visibale all the time

2009-06-04 Thread Manish Jethani
On Wed, Jun 3, 2009 at 4:29 PM, jossminker wrote: > I woudl like to have the datatip for my slider visible at all times, not just > when the user is holding down the thumb. > > if this is not possible, then I would at least like the datatip to appear if > the user moves the thumb using the arrow

Re: [flexcoders] CuePointEvent missing optional parameters

2009-06-04 Thread Manish Jethani
On Thu, Jun 4, 2009 at 5:33 AM, kris range wrote: > I'm using the VideoDisplay class and listening for cue points. I can > recieve the cue points, check out the name, time, type but cuePoints > also have an optional parameter value, which doesn't seem to be > included in this event class. Why this

Re: [flexcoders] Re: About how to implement UIComponent

2009-06-04 Thread Manish Jethani
On Wed, Jun 3, 2009 at 11:46 PM, Amy wrote: > --- In flexcoders@yahoogroups.com, Manish Jethani wrote: >> >> On Wed, Jun 3, 2009 at 10:26 PM, Manish Jethani >> wrote: >> > 2009/6/3 j2me_soul : >> >> >>   override protected functio

Re: [flexcoders] Delaying Component Load

2009-06-04 Thread Manish Jethani
On Thu, Jun 4, 2009 at 7:21 PM, Jonathan Ackerman wrote: > I have been running into a IUIComponent issue on a component that is > loading and I have determined that I need to delay the loading of this > component a second or so. > > The component sits on a canvas with a tab navigator and I want t

Re: [flexcoders] About how to implement UIComponent

2009-06-03 Thread Manish Jethani
On Wed, Jun 3, 2009 at 10:26 PM, Manish Jethani wrote: > 2009/6/3 j2me_soul : >>   override protected function measure():void{ >>    this.explicitMinWidth = this.explicitMinHeight = 50; >>   } >>  } > > Here you should set the meauredWidth, measuredHeight, and

Re: [flexcoders] About how to implement UIComponent

2009-06-03 Thread Manish Jethani
2009/6/3 j2me_soul : > > > Why the label can't be displaied on the srceen? >  public class rectElement extends UIComponent >  { >   private var lal:Label; >   public function rectElement() >   { >    super(); >   } You don't have to write a constructor if all you're going to do it call the superc

Re: Re: [flexcoders] Drawing the background Issue

2009-06-02 Thread Manish Jethani
2009/6/2 j2me_soul : > drawRect(0, 0, btn1.width + 20, btn1.height+ 20); > > Is the 0,0 point is the ContentPoint of the btn1 ? No, it's the top-left. Manish

Re: [flexcoders] Drawing the background Issue

2009-06-02 Thread Manish Jethani
2009/6/2 j2me_soul : > The code is pretty simple. This is all I am trying to do: >   >   

Re: [flexcoders] Re: Problem reading XML returned from Webservice

2009-06-02 Thread Manish Jethani
On Tue, Jun 2, 2009 at 12:15 PM, Claudio M. E. Bastos Iorio wrote: > trace("Name:  " + myXML..Fund[0].Name); //A term is undefined and has no > properties Okay, I'm no expert in E4X, but apparently you have to qualify with a namespace if you're using the ".." notation. So this works: var ns

Re: [flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 7:52 AM, Stephen More wrote: > The docs do not say much about IBitmapDrawable: > http://livedocs.adobe.com/flex/3/langref/flash/display/IBitmapDrawable.html > > In your example lets say I create: >    MyUIComponet extends UIComponet > > What method do I need to write in MyUI

Re: [flexcoders] Vertical scroll bar not reseting

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 8:39 AM, al-al :D wrote: > I have an application with a ViewStack and binded LinkBar, which has 2 views, > a DataGrid on the first, and the Form on the second. Clicking an item in the > DataGrid transfers the user to the Form view. > > I have a problem regarding the scrol

Re: [flexcoders] Problem reading XML returned from Webservice

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 2:56 AM, Claudio M. E. Bastos Iorio wrote: > I get an XML like this one from my web service (simplified): > > xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xmlns:xsd='http://www.w3.org/2001/XMLSchema'> >

Re: [flexcoders] Mx:Http Service Refresh Issue

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 6:12 AM, guess what wrote: > I have a Flex Data grid Constructed from mx:HttpService > > mx:HTTpService url="somethin.do" > > The result is an xml file . I am calling the HttpService on the mxmls > creationComplete . > the First time I call the html file [ the actual flex

Re: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Manish Jethani
Try putting a breakpoint in SystemManager's installCompiledResourceBundles() function. That's where the resource bundles are set up. It's possible that your class is being loaded before the resource bundles are set up, and that's why you're getting null. Manish On Tue, Jun 2, 2009 at 5:08 AM, Ti

Re: [flexcoders] Is this list declining?

2009-06-01 Thread Manish Jethani
Clearly the numbers are going down. This can't be good. We're entering into a Flex recession. I propose a stimulus plan. We need to boost the numbers by having a long discussion about how the numbers are going down. This will make Flex look good and ensure all our livelihoods (at the cost of emplo

Re: [flexcoders] How to make FTE text selectable and editable?

2009-06-01 Thread Manish Jethani
r own.  The whole point of FTE is > to put text on the screen without each text instance needing to carry the > capabilities of selection and interaction. > > > > Alex Harui > > Flex SDK Developer > > Adobe Systems Inc. > > Blog: http://blogs.adobe.com/aharui > > &

[flexcoders] How to make FTE text selectable and editable?

2009-05-31 Thread Manish Jethani
I have this program (Flash Player 10): var elementFormat:ElementFormat = new ElementFormat(); elementFormat.fontSize = 48; var textElement:TextElement = new TextElement("Hello, world", elementFormat) var textBlock:TextBlock = new TextBlock(textElemen

Re: [flexcoders] data binding in textinput ?

2009-05-28 Thread Manish Jethani
On Thu, May 28, 2009 at 11:15 PM, luvfotography wrote: > How do I get databinding to work in textinput? > In this example below, I have a TextInput defined with the text bound to > {userName}, when I run the app, and enter text into the TextInput field, I > would like the text entered assigned t

Re: [flexcoders] popup systemManager not working

2009-05-28 Thread Manish Jethani
On Fri, May 29, 2009 at 12:08 AM, hoz wrote: > I added bubbles to true in my custom event, and it worked! OK, so I'm a > little puzzled b/c I have other custom events going without having to add > that. I thought Bubbles default was true... bubbles is false by default. It's not the popups that'

Re: [flexcoders] Re: Invoke RemoteObject synchronic

2009-05-28 Thread Manish Jethani
On Thu, May 28, 2009 at 11:28 PM, Laurence MacNeill wrote: > I think he means he wants to work on the data from within the calling > function, rather than having to go to a result-handler function to use the > data?  I didn't know that was possible, but I'm pretty new to Flex, so > perhaps it's j

Re: [flexcoders] Re: Need Alternative for enterFrame event (Causing Memory leak )

2009-05-28 Thread Manish Jethani
On Fri, May 29, 2009 at 12:40 AM, Dharmendra Chauhan wrote: > The issue is with callBack ,what is happening is as soon you hide Flex > application by opening another application(any app)  and then again you > come  back to  your flex  app , call back  does not work , they are broken.I > found fol

Re: [flexcoders] keeping aspect ratios of containers

2009-05-28 Thread Manish Jethani
On Fri, May 29, 2009 at 12:42 AM, blc187 wrote: > is there an easy way to keep a container at a specific aspect ratio? > > i have an hDividedBox but i want the vbox on the left side to always be twice > as high as it is wide.  how can i keep a container at this aspect ratio while > having the ch

Re: [flexcoders] Re: Successive Videos Display

2009-05-28 Thread Manish Jethani
On Thu, May 28, 2009 at 11:50 PM, bharat_1 wrote: > Thanks for the suggestion. I have a bit of confusion. What do you mean by > "load the next one when while one is playing". ActionScript isn't > multiothreaded. How can it load the next and play the current at the same > time. Or did I not

Re: [flexcoders] Need Alternative for enterFrame event (Causing Memory leak )

2009-05-27 Thread Manish Jethani
On Thu, May 28, 2009 at 1:38 AM, Dharmendra Chauhan wrote: > Please , suggest some alternative for EnterFrame event which gets fired on > set focus event. activate? Manish

Re: [flexcoders] Successive Videos Display

2009-05-27 Thread Manish Jethani
On Wed, May 27, 2009 at 6:20 PM, bharat_1 wrote: > My app needs to play multiple videos in succession. Can anyone guide on a > good way to buffer the next video while current one is playing? Perhaps a good way to do this would be to create multiple VideoDisplay instances with the autoPlay pr

Re: [flexcoders] Re: Calling invalidateProperties during validateProperties

2009-05-27 Thread Manish Jethani
On Wed, May 27, 2009 at 11:10 PM, reflexactions wrote: > Well an example would be where there say half a dozen related properties that > get set, these individualy call invalidateProperties and will then be > collectively processed in commitPorperties on the next frame. > > In that processing ev

Re: [flexcoders] Calling invalidateProperties during validateProperties

2009-05-27 Thread Manish Jethani
I think normally if changing property1 also calls for a change in property2, that change should happen in the setter for property1. Then both properties get "committed" in commitProperties() If your situation is special and you can't follow that pattern, you can try a callLater() on invalidateProp

Re: [flexcoders] Flex unloading SFW- memory management

2009-05-27 Thread Manish Jethani
On Tue, May 26, 2009 at 6:36 PM, Patrice O wrote: > I m facing a problem with dynamic loading/unloading of swf. I'm using a > class "mycustomSWFLoader" which extends SWFLoader and which use an instance > of Loader class to load swf files (graphics data) from serialized SWF in > bytearrays. > > Al

Re: [flexcoders] Cause Label to resize after setting text

2009-05-27 Thread Manish Jethani
On Wed, May 27, 2009 at 9:17 AM, Tracy Spratt wrote: [...] > > When a setter function sets the Label’s text property, the label has not > been resized to fit the new text yet, so I can’t test: > > if (myLabel.width > this.width) > > in the setter > > I have not yet found the right invalidation,

Re: [flexcoders] URLLoader + Binary != URLStream

2009-05-27 Thread Manish Jethani
On Wed, May 27, 2009 at 2:14 AM, Stephen More wrote: > I would think that I could load a swf using either URLLoader or > URLStream. As it turns out only my URLStream is returning the correct > data. > Can anyone provide a fix to the following code that makes URLLoader > work correctly ? [...] Wh

Re: [flexcoders] Is there a way to pass a parameter into my preloader?

2009-05-27 Thread Manish Jethani
On Tue, May 26, 2009 at 11:49 PM, luvfotography wrote: > I've created a preloader class, and is there a way to pass a parameter into > my preloader? > > Here is my application tag: > > http://www.adobe.com/2006/mxml"; >                 applicationComplete="appInit()" >                 layout="ab

Re: [flexcoders] String To Date Conversion

2009-05-27 Thread Manish Jethani
On Tue, May 26, 2009 at 6:17 PM, yogesh patel wrote: >   I have a String like "Tue May 26 18:12:55 IST 2009". How to > convert this string into Date object ? var s:String = "Tue May 26 18:12:55 IST 2009"; s = s.replace(/IST/, "UTC+0530"); var d:Date = new Date(Date.parse

Re: [flexcoders] Multiple events dispatched, data lost

2009-05-24 Thread Manish Jethani
On Mon, May 25, 2009 at 12:59 AM, steve horvath wrote: > I have a function which loops and for each iteration dispatches an event. > The event handler is inside a new class (AddSourceCommand).  Inside the > event handler class I am dispatching another event which is being handled by > a function

Re: [flexcoders] Flex Coding Standards

2009-05-24 Thread Manish Jethani
On Sun, May 24, 2009 at 9:41 PM, Sam Lai wrote: > The conventions/standards/guidelines for Flex SDK are here - > http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions One of the things the document doesn't mention is the order of the private, protected, and public definitions in a c

Re: [flexcoders] absolute paths for mx:script source

2009-05-22 Thread Manish Jethani
On Sat, May 23, 2009 at 3:45 AM, coder3 wrote: > is there a way or a key to go to the project root directory relatively? The Flex compiler (mxmlc) doesn't know about "projects". If Flex Builder has any special variables like ${PROJECT_ROOT} or such settings, I'm not aware of that. Manish

Re: [flexcoders] localized parseFloat

2009-05-22 Thread Manish Jethani
On Sat, May 23, 2009 at 2:52 AM, thomas parquier wrote: > NumberFormatter input is a number, whereas parsing should occur on strings > already localized ("1 234,56"=>1234.56). That's not true. You can pass a string to NumberFormatter. See this example: var nf:NumberFormatter = new NumberF

Re: [flexcoders] Re: Waiting for Flash Player to connect to the debugger

2009-05-22 Thread Manish Jethani
On Sat, May 23, 2009 at 2:16 AM, a.scavarelli wrote: > Hmm, I often get problems like this when, for some reason, another instance > of the debugger/player is running. Try making sure you are always closing > each instance properly after running your program. Also check out your task > manager

Re: [flexcoders] localized parseFloat

2009-05-22 Thread Manish Jethani
On Fri, May 22, 2009 at 2:14 PM, thomas parquier wrote: > Couldn't parseFloat() use the SharedResources properties to parse localized > strings ? If you intend to parse a string like "1.234,56", I think you'll have to run it through a NumberFormatter first ("1234.56") before you send it to the p

Re: [flexcoders] Ctrl click in combobox

2009-05-22 Thread Manish Jethani
On Fri, May 22, 2009 at 5:47 AM, lampei wrote: > Until recently, I did not know that you could reset the combobox back to the > "prompt" value by ctrl-clicking the value in the combobox dropdown.  However, > as most people don't know that this is a possiblity with the combobox, I'm > trying to

Re: [flexcoders] absolute paths for mx:script source

2009-05-22 Thread Manish Jethani
On Fri, May 22, 2009 at 5:32 AM, coder3 wrote: > I wonder if there is a way to add absolute path to mx:script > > for example, my file is under src/app1/app1.mxml. and the as file is > src/common/asfile.as [...] > i tried to use >         > > but the error shows: no .../src/app1/common/asfile.a

Re: [flexcoders] Loading Modules in Separate Application Domains

2009-05-14 Thread Manish Jethani
On Fri, May 15, 2009 at 2:04 AM, colin.shreffler wrote: > ModuleManager.getModule(_url).load(new ApplicationDomain(), > SecurityDomain.currentDomain) > > As soon as I do this however, I am getting the following error: > > "SWF is not a loadable module" > > If I use ModuleManager.getModule(_url).

Re: [flexcoders] Loader coming back with incorrect dimensions

2009-05-11 Thread Manish Jethani
On Mon, May 11, 2009 at 9:27 PM, Jonathon Stierman wrote: > Has anyone run across a Loader instance incorrectly reporting the > width/height of the SWF file it is loading? I think the original width/height of the loaded content is always available through the LoaderInfo object. If you resize the

Re: [flexcoders] Dictionary class?

2009-05-11 Thread Manish Jethani
On Mon, May 11, 2009 at 9:41 PM, luvfotography wrote: > > What are some good uses for the dictionary class? > > I haven't used it yet, but I'm sure if I knew more, I might. . . . > One of the things I use Dictionary for is for storing weak references to objects. http://manishjethani.com/blog/200

Re: [flexcoders] Question from a C developper

2009-03-14 Thread Manish Jethani
You should check out the int, uint, and Number types. The sizes are predefined in ActionScript 3 and not system dependent (e.g. int is always 32-bit signed). Operator overloading is not available. You can create an 'equals' method and use it like so: if (obj1.equals(obj2)) ... You can crea

Re: [flexcoders] Re: Embedding for DataGrid

2009-03-14 Thread Manish Jethani
s better usability?  Is it simply a "religious" issue > with regard to web design? > > --- In flexcoders@yahoogroups.com, Manish Jethani wrote: >> >> On Sat, Mar 14, 2009 at 12:42 PM, wubac1 wrote: >> > Many websites embed Flash/Flex applications for charts,

Re: [flexcoders] Embedding for DataGrid

2009-03-14 Thread Manish Jethani
example -- so you'll see fewer and fewer sites using Flash just for charts as time goes by. Manish -- Manish Jethani www.manishjethani.com

Re: [flexcoders] Re: opposite of parentDocument

2009-02-08 Thread Manish Jethani
ood your question? In that case, it'll be nice if you could explain with some sample code what you're trying to achieve. Manish -- Manish Jethani http://manishjethani.com

Re: [flexcoders] opposite of parentDocument

2009-02-07 Thread Manish Jethani
On Sat, Feb 7, 2009 at 7:26 PM, johndoematrix wrote: > hi this is a funny question but am gonna ask it anyway. when i want to > access anything from a child doc that is in a parent doc in flex i use > parentDocument, what do i use when i want to say access and array in a > child doc from a parent

Re: [flexcoders] How to instantiate a weak reference

2009-02-03 Thread Manish Jethani
On Tue, Feb 3, 2009 at 11:11 PM, Greg Hess wrote: Objects are all passed by reference, I want to pass a weak reference > back to callers who request items from the cache, much like the > internal implementation must do in some way when > addEventListener(...true) as a weak reference. > > For exam

Re: [flexcoders] आचार्य अत्रे

2009-01-17 Thread Manish Jethani
म्मत करावी वाटली >> तिने अत्रांच्या मोठ्या पोटा कडे पाहून विचारले >> " हा माठ कसा दिला ? >> त्या वर अत्रे म्हणाले . >> माठ नुसता पाहिजे का नळ सकट पाहिजे ? [...] -- Manish Jethani

Re: [flexcoders] Custom mouse cursors including the system cursor?

2009-01-14 Thread Manish Jethani
se.hide. If you skipped that, you would end up with a "composite cursor". Maybe CursorManager should have an option for this. Manish -- Manish Jethani

Re: [flexcoders] Re: Httpservice proxy?

2009-01-14 Thread Manish Jethani
On Wed, Jan 14, 2009 at 10:53 PM, Nate Pearson wrote: > Ahhh! No way to get around that? Proxy the calls through your own web service (hosted on your own domain). Manish -- Manish Jethani

Re: [flexcoders] Httpservice proxy?

2009-01-14 Thread Manish Jethani
oks like they have a crossdomain.xml that won't allow your app. http://quote.yahoo.com/crossdomain.xml Manish -- Manish Jethani

Re: [flexcoders] Re: regex

2009-01-14 Thread Manish Jethani
On Wed, Jan 14, 2009 at 2:16 AM, flexaustin wrote: > Ok, this i killing me. I have down to this: > > \\\name:something\\soemthing\\ > > > How do I replace \\\ with \\ and all \\ with \. I'm not sure how you ended up with those backslashes, but here's how to replace two of those with a single one:

Re: [flexcoders] Data Grid with dynamic columns ignoring % width or right style.

2009-01-14 Thread Manish Jethani
On Wed, Jan 14, 2009 at 3:40 PM, Wesley Acheson wrote: >> Okay sorry If I wasn't clear enough about it basically the data grid >> stretches, but not enough to accomidate all columns. Nor even enough to fill >> the container. Setting a width of 0 makes the datagrid remember its >> constraint l

Re: [flexcoders] When to use the include directive?

2009-01-13 Thread Manish Jethani
On Tue, Jan 13, 2009 at 10:19 PM, Nate Beck wrote: > I just wanted to ping everyone and get their opinion on something. Why > would anyone ever want to use the include directive? I've recently been > working on poorly designed project where at the top of every module there is > an "include Head

Re: [flexcoders] Re: How to create universal event handler?

2009-01-13 Thread Manish Jethani
On Tue, Jan 13, 2009 at 8:09 PM, Dan wrote: > I think you are right. Since Event is represented by object, I thought > you could create event handlers in polymorphic manner, just like when > handling errors, when you write catch(e:MyErrorClass). Such catch > would also handle MyChildErrorClass er

Re: [flexcoders] Re: regex

2009-01-13 Thread Manish Jethani
On Tue, Jan 13, 2009 at 8:16 PM, flexaustin wrote: > So if I have this string (quotes are included in the string): > "name":"Big Brown Cow '(--Foot)'","title":"hello" > > I want to include everything after "name": and before "," var s:String = "\"name\":\"Big Brown Cow '(--Foot)'\",\"tit

Re: [flexcoders] regex

2009-01-13 Thread Manish Jethani
On Tue, Jan 13, 2009 at 9:56 AM, flexaustin wrote: > Does anyone know how to write a regular expression that says find a > pattern in a String that contains 0 or more letters, numbers, or > spaces, but not a ", (one double quote and a comma). [a-z0-9 ]* That will match 0 or more letters, numbe

Re: [flexcoders] Loading Images Using CSS

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 1:31 AM, Dan Vega wrote: > main.mxml > > > stylesheet > .logo { > source: "assets/images/robp/rocketfm_logosmall.png"; > } > TypeError: Error #1009: Cannot access a property or method of a null object > reference. You have to use ".logo" (as opposed to "logo") in yo

Re: [flexcoders] Timer Solution

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 11:09 AM, vinod kumar wrote: > I want an urgent help. From metadata information i got the frame rate as 15. > So between every second i want to display the values 1 to 15 using timer. You can listen for the enterFrame event and do it there. Manish

Re: [flexcoders] How to create universal event handler?

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 11:54 PM, Dan wrote: > If I do addEventListener(MyEvent.Evt1, handleEvt), I will handle only > that specific MyEvent.Evt1 event. I need to be able to handle > MyEvent.Evt2 and MyChildEvent.Evt1 and my FutureChildEvent.EvtX. > How can this be achieved? You have to add a l

Re: [flexcoders] Data Grid with dynamic columns ignoring % width or right style.

2009-01-12 Thread Manish Jethani
On Sun, Jan 11, 2009 at 3:51 AM, wesley.acheson wrote: > I've a problem with the DataGrid ignoring the % width, while using > Canvas as the parent. When I dynamically create columns it stretches > to beyond the origional area. This behaviour has been reported as a > bug. http://bugs.adobe.com/j

Re: [flexcoders] Re: Using dispatchEvent ?

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 8:59 PM, biosmonkey wrote: > The dispatched event needs to be heard by any component, anywhere, by > setting an event listener for it at the application level. So > bubbling up to the app is critical. Since your component has nothing to do with UI, strictly speaking, mak

Re: [flexcoders] Tweening VBox or List IndexChangedEvent

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 10:03 PM, kylewburke wrote: > I've implemented a ButtonSkin for CheckBox. I have several of them in > a VBox. I'm trying to tween during the IndexChangedEvent via the > childIndexChange event, to move the selected CheckBox up to the top. Well, actually, you can just set

Re: [flexcoders] Using dispatchEvent ?

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 11:42 AM, biosmonkey wrote: > In my main app, I instantiate an instance of this class. I also > create an event listener at the application level. > > Here's the problem: > > * If I use dispatchEvent(...) inside MyClass, the event listener in > the main app never fires (t

Re: [flexcoders] Multiple selection in dataGrid by dragging Mouse with left mouse key

2009-01-12 Thread Manish Jethani
On Sat, Jan 10, 2009 at 11:55 PM, Dharmendra Chauhan wrote: > Is it possible to select multiple rows in data grid by just > dragging mouse over It. I know this can we achieved with combination > of sift key and mouse. [...] > Please let me know whether it is possible in flex or not and if it

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-11 Thread Manish Jethani
On 1/10/09, dorkie dork from dorktown wrote: > I have a class on the application like this: > > > > How do I find out inside that class in the constructor if that class is on > the Application? By "Application" I assume the Flex application (instance of mx.core.Application). The only way to do

Re: [flexcoders] Re: Properly remove children

2009-01-07 Thread Manish Jethani
On Wed, Jan 7, 2009 at 8:05 PM, Marco Catunda wrote: > I have some doubt about weak references at eventListener. > > When I add a eventListener with weak reference true, the object don't > get a "point/reference" to it but what happens with eventListener array after > removing this object. This a

Re: [flexcoders] Re: Properly remove children

2009-01-07 Thread Manish Jethani
On Wed, Jan 7, 2009 at 4:48 AM, markgoldin_2000 wrote: > Ok, here what I am getting. > I have a container that I am adding different forms to at the run > time. These forms are all based on the same class though. > So, before I add a new form I am removing current form using: > container.removeAll

Re: [flexcoders] Re: Properly remove children

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 4:23 AM, markgoldin_2000 wrote: >>removeAllChildren > Yes, that's what I use but I dont see objects being completely > destroyed. Define "destroyed". Surely you see them go away? Manish

Re: [flexcoders] Re: Properly remove children

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 3:39 AM, markgoldin_2000 wrote: > I dont really have a name (myButton). Objects are added to a > container at run-time. while (container.numChildren > 1) container.removeChildAt(0); Or you can use removeAllChildren Manish

Re: [flexcoders] Properly remove children

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 12:22 AM, markgoldin_2000 wrote: > How do I remove children from a container in order to completely > destroy them? Will removeAllChildren do the job? To remove an object visually, you'll have to remove it from the "display list" by calling removeChild or removeChildAt on i

Re: [flexcoders] useHandCursor doesn't work when using custom cursors

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 1:47 AM, Aaron Miller wrote: > I am using custom cursors with CursorManager, but I would like the hand > cursor to override the default (custom) for some controls similar to the way > editable text overrides the default cursor with the text indicator. Normally > I would jus

Re: [flexcoders] File Size is not same when compiled through mxmlc and flex builder

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 1:01 AM, ilikeflex wrote: > I think that the file Size is not same when compiled through mxmlc > and flex builder. [snip] > The file size is not same in the above two methods.The ant script > file compiles with more file size. I know flex builder also uses > mxmlc to compi

Re: [flexcoders] components in modules

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 2:24 AM, rockorgames wrote: > i have a zip search component.. but only a few modules uses it.. > should i copy the code from the zip component to those modules ? the > problem is that i would have to change the code in all modules if i > needed to change something in the zi

Re: [flexcoders] Generating Random key

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 7:42 AM, Josh McDonald wrote: > A quick take on it: Trying to improve on some already neat code... > function randomLetter() : String > { > const noVowels : String = "BCDFGHJKLMNPQRSTVWXYZ"; > return n

Re: [flexcoders] Spurious truncateToFit behavior when scaling TabNavigator

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 3:30 PM, x77686d wrote: > On one of our Flex applications we use scaleX and scaleY at the > application level to zoom in/out on the whole thing. That works > pretty well except for one problem: there's a TabNavigator and we see > spurious truncateToFit behavior on the tab l

Re: [flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 10:27 PM, Manish Jethani wrote: > function doWorkaround() { > var e = new CollectionEvent("collectionChange"); > e.kind = "update"; Hey, I meant: e.kind = "reset"; That'll refresh everything. > myXMLListCollection.dispatchEvent(e); > } Manish

Re: [flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-06 Thread Manish Jethani
On Tue, Dec 30, 2008 at 7:52 PM, Sergey Kovalyov wrote: [comments inline] > Steps to reproduce: > > Create an application with the Tree component instance and XMLListCollection > dataProvider binded to it that contains 5 items: > > private var itemsXML : XML = > > > > > > > ; >

Re: [flexcoders] Re: why I can not dispatchEvent with creationComplete?

2009-01-05 Thread Manish Jethani
On Tue, Jan 6, 2009 at 1:34 AM, markflex2007 wrote: [snip] > I have addEventListener in Mediator page, it works for CASE two but > not work for CASE one. > > it seems dispatchEvent can not work with creationComplete. why? How to > fix it. It works, but your event listener isn't set up at the ti

Re: [flexcoders] enterState for tabNavigator?

2009-01-05 Thread Manish Jethani
On Mon, Jan 5, 2009 at 10:45 PM, endrone endrone wrote: >> It's either the TabNavigator's 'change' (your current method) or its >> children's 'initialize'. It's hard to say without knowing more about the >> sort of initialization you're doing here. > > I'm not using states. > Assume you have 2 ca

Re: [flexcoders] enterState for tabNavigator?

2009-01-05 Thread Manish Jethani
On Mon, Jan 5, 2009 at 10:01 PM, endrone endrone wrote: > currentStateChange and enterState don't work with a TabNavigator > They are indeed in the docs, but they don't seem to work. Are you using the states feature at all? A TabNavigator by itself won't dispatch these events, unless you're assig

Re: [flexcoders] Setting NumericStepper's label?

2009-01-05 Thread Manish Jethani
On Mon, Jan 5, 2009 at 7:08 PM, grimmwerks wrote: > Both have the fontSize at 12, but for some reason the text in the > numericStepper isn't bottom aligned: [snip] What's throwing it off is the border settings. How about if you moved the styleName setting from the Text and NumericStepper objects

Re: [flexcoders] Cannot assign arraycollection[i] value to VO variable due to ObjectProxy

2009-01-05 Thread Manish Jethani
On Sat, Jan 3, 2009 at 4:24 AM, jeremysavoy wrote: > I have an array collection that is a collection of ContactVO items. > When I debug and look at the ArrayCollection, each item, [0], [1], etc > is of type ObjectProxy, and inside each of these there is an "object" > that then contains the Contac

Re: [flexcoders] Start

2009-01-05 Thread Manish Jethani
On Sat, Jan 3, 2009 at 5:00 AM, Luis Francisco Hernández Sánchez wrote: > Hi, I want to start sending messages to others. Thanks. You have succeeded. Manish

Re: [flexcoders] Java HashMap to ComboBox

2009-01-05 Thread Manish Jethani
On Sun, Jan 4, 2009 at 3:19 AM, Vijay wrote: > Can someone help me on binding the HashMap data returned by a Remote > call to the Flex ComboBox? I'm successful in iterating the HashMap > data inside the ActionScript but I didnt know how to bind the > key=value pair to a ComboBox > > Code Snippet

Re: [flexcoders] enterState for tabNavigator?

2009-01-05 Thread Manish Jethani
On Mon, Jan 5, 2009 at 2:22 PM, endrone endrone wrote: > when you change a state, there's a enterState dispatched when a new state is > shown. > This is very handy for initializing the state. > > But does something similar exist for the tabNavigator? (enterState exists > for a TabNavigator but do

Re: [flexcoders] Re: ModuleLoader with full url

2009-01-04 Thread Manish Jethani
On Mon, Jan 5, 2009 at 1:30 AM, Don Kerr wrote: > I'm only using mx:ModuleLoader, so I cannot set a breakpoint on this tag. How > do I > inspect the contents of contentLoader when I'm not using pure > actionscript/breakpoint? You can just open the ModuleManager.as file and set a breakpoint on

Re: [flexcoders] ModuleLoader with full url

2009-01-03 Thread Manish Jethani
On Sat, Jan 3, 2009 at 7:17 PM, Don Kerr wrote: > The very first time my Flex app is opened in the browser, I get this error > > TypeError: Error #1009: Cannot access a property or method of a null object > reference. at > ModuleInfo/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\framew

Re: [flexcoders] Using Flash Symbols in Flex.

2009-01-03 Thread Manish Jethani
On Sat, Jan 3, 2009 at 10:51 PM, paulgrantgain wrote: > I'm trying to use a Movie Clip that I created in Flash CS4 in Flex. I > am using Flex builder 3 as my IDE. > > I have read the following blog: > > http://www.gskinner.com/blog/archives/2007/03/using_flash_sym.html > > I can get the first fra

Re: [flexcoders] Creating Asynchronous Classes

2009-01-03 Thread Manish Jethani
On Sat, Jan 3, 2009 at 3:33 AM, nathanpdaniel wrote: > Is there a "primer" on creating asynchronous classes? I've been > building an app that runs a CRC32 check on each file (which requires > looking at every byte of every file). It doesn't cause issues when the > files are small text files, but

Re: [flexcoders] hideing a tab in a TabNavigator

2009-01-03 Thread Manish Jethani
On Sat, Jan 3, 2009 at 12:15 PM, Tracy Spratt wrote: > I would use a TabBar whose dataProvider content was dynamically driven, to > show or hide tabs as desired. I would have that TabBar drive a Viewstack. That's another option, but let's not forget that a TabNavigator is more than just a TabBar

Re: [flexcoders] itemRenderer ComboBox

2009-01-03 Thread Manish Jethani
On Sat, Jan 3, 2009 at 1:15 AM, Mike Oliver wrote: > > Perhaps its because it is an itemEditor, but just tried it and "value" in the > editorDataField saves the label string to the Grid, not the 'data' element. Well, the value property is a little strange indeed. Not to mention it's also deprecat

Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Manish Jethani
On Sat, Jan 3, 2009 at 12:16 AM, Mike Oliver wrote: [snip] > and that saves to the database, all great...however, the > > editorDataField="selectedItem" puts "[object Object]" into the Grid instead > of the data element. > > I tried editorDataField="selectedItem.data" but that fails. I tried "va

  1   2   3   4   5   6   7   8   9   10   >