RE: [flexcoders] Re: Tree from flat query

2008-08-25 Thread Alex Harui
IIRC, you have an object like this: Class TreeNode extends EventDispatcher { public var children: ArrayCollection; public var name:String; public var level:int; } If the next row in the table has a higher level, you make a new AC and assign it to

Re: [flexcoders] Re: Tree from flat query

2008-08-25 Thread Josh McDonald
Sort the data by level (ascending), and then simply loop through, no need for recursion as it's a tree: var parents : Array = [ //items at level 1]; var children : Array = []; var currentLevel = 2; var pointer = //the first level 2 item. while (pointer myList.length) { var child =

Re: [flexcoders] addFrameScript (will it be officially supported?)

2008-08-25 Thread Ralf Bokelberg
Exactly. Why make things easy, if you can please Enterprise developers with a 100 lines equivalent, so they have something to show to their boss ;) Cheers Ralf. On Mon, Aug 25, 2008 at 6:26 AM, Josh McDonald [EMAIL PROTECTED] wrote: That, plus ew :) addFrameScript() is not good for

[flexcoders] Re: about allowMultipleSelection question

2008-08-25 Thread dialogtmp
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: You have to subclass TileList and override selectItem method to simulate Ctrl key. Funny thing, I just did the same thing in the DataGrid yesterday :)

[flexcoders] Re: about allowMultipleSelection question

2008-08-25 Thread dialogtmp
Thank you very much!! \^0^/ But I only study flex for several weeks. I don't know how to use the override method in my flex project. Has any related information? thanks, dialogtmp --- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: You have to subclass TileList and

[flexcoders] Re:Imagepicker

2008-08-25 Thread simon.friso
--- In flexcoders@yahoogroups.com, Danny Venier [EMAIL PROTECTED] wrote: Just go back to page 1 of the article you reference and the link to the flex sample files is there. Thanks Danny. I saw the zip but didn't realize imagepicker.mxml was in it

[flexcoders] Re: Imagepicker

2008-08-25 Thread simon.friso
Thanks Amy, I saw the example of the PhotoViewer and I like it to. But it is not suitable for our project. with kind regards Simon --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, simon.friso simon.friso@ wrote: I want to make a

[flexcoders] Applying form login in Flex

2008-08-25 Thread Joshua Partogi
Dear all, How do you apply form login in Flex? I use HttpService from flex to send the username and password to the Backend. And then the backend will send back login message in XML format. Now how do I display this XML in Flex as it seems that based on the documentation the XML data to be sent

Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-25 Thread Howard Fore
On Sat, Aug 23, 2008 at 11:09 AM, Dmitri Girski [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Howard Fore [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 1:33 PM, Dmitri Girski [EMAIL PROTECTED] wrote: Nope, That's how Eclipse and Beyond Compare have always interacted,

[flexcoders] Any workaround for FB-13863 (auto-completion with Flash 10 libs using Vectors) ?

2008-08-25 Thread sloretan
Hello! After a comment on the Adobe OpenSource Wiki (which can be seen here: http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta?focusedCommentId=15237175#comment-15237175), I have opened a bug on JIRA (https://bugs.adobe.com/jira/browse/FB-13863) about the failure of

Re: [flexcoders] Help with binding (flex 3)

2008-08-25 Thread Nik Derewianka
I have run into the same issue. My RemoteObject calls are already set to makeObjectsBindable so that doesn't seem to be the issue. Basically, if i have a view that is already displaying the bound object, then do a remoteobject call that replaces the existing bound object with a new one,

[flexcoders] [ANN] Enterprise IDE Plugin for Flex Builder Public Free Beta

2008-08-25 Thread luislejter
The Enterprise IDE Plugin ™ is an architect and developer productivity suite for Adobe(R) Flex (R) Builder ™ 3 designed to simplify and aid the development of Enterprise Flex Applications using Flex Builder 3. The Enterprise IDE Plugin is immediately available in a public, free time-expiring beta

[flexcoders] Image Viewer

2008-08-25 Thread USA
Hi Guys, I am working on image viewer in Adobe AIR. The problem I am facing is that I am using TileList for showing the preview of images of selected folder. But when I select any folder it loads whole of the images in actual size which is not good. I want to write code which creates thumbnail

[flexcoders] How to Create an object of Custom component dynamically / at Runtime / on-fly

2008-08-25 Thread morpankhy
I have some custom components. I want to make their objects at runtime. How to do that in flex ? Exa. MyLayout001.mxml, MyLayout002.mxml, MyLayout003.mxml, MyLayout004.mxml and MyLayout005.mxml and so on. ( lots of custom classes I have ) Now on click of a button ( as per users' choice ) I

[flexcoders] Re: question about AMF

2008-08-25 Thread tchredeemed
I am following ya. One thing though, how come if I load Module 1 before Module 2, I find no problems. I guess Flex is just magical like that! :) --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: It is essentailly the same problem. Each module has a definition but only

Re: [flexcoders] breakpoints not being triggered

2008-08-25 Thread Daniel Freiman
Is the debugger even attaching correctly? To check: start your app in debug mode. Go into Flex Builder when the app is already running and try to pause it. If you can't pause it because the debugger is already stopped, then the debugger never attached the application correctly. - Daniel

Re: [flexcoders] How to Create an object of Custom component dynamically / at Runtime / on-fly

2008-08-25 Thread Douglas Knudsen
var myLayout001 = new MyLayout001(); DK On Mon, Aug 25, 2008 at 9:14 AM, morpankhy [EMAIL PROTECTED] wrote: I have some custom components. I want to make their objects at runtime. How to do that in flex ? Exa. MyLayout001.mxml, MyLayout002.mxml, MyLayout003.mxml, MyLayout004.mxml and

[flexcoders] HSlider thumb goes beyond the track (with my custom skin)...

2008-08-25 Thread Andrew Jones
I am having a problem where I made a custom skin for an HSlider (using Photoshop CS3 and the flex skin script), and when I import that skin into my flex project and use it for HSlider, my thumb graphic goes beyond the track on both the left and right sides. It looks like its going about 1

[flexcoders] Repeater with controls of different heights (Flex 2)

2008-08-25 Thread simonjpalmer
Hi, I have a custom control which determines it height from a member variable in a value object that it is passed. I want a collection of these controls to appear in a vertical list on a page, each control being a different height. In the past I have been using a Repeater, and that works great

[flexcoders] sqlite database physical path?

2008-08-25 Thread markflex2007
Hi, I have a question for the sqlite physical path. for instance var dbFile:File = File.applicationStorageDirectory.resolvePath(Sqlite1.db); if(dbFile.exists) { conn.addEventListener(SQLEvent.OPEN, openHandler); } else {

[flexcoders] Trying to understand RadioButton selection change logic with custom RadioButtons

2008-08-25 Thread devworkit
I am having a problem where if I place several custom RadioButtons on my page, they behave independently (i.e. they all can be selected at the same time and DO NOT behave as a group) even if I set their groupName to the same thing. Basically, I created a custom component that extends Canvas and

[flexcoders] Re: HSlider thumb goes beyond the track (with my custom skin)...

2008-08-25 Thread Tim Hoff
Hi Andrew, I have run into this before. For me, the problem was that there were a couple of transparent pixels on the left and right side of my image. I fixed the problem by editing the track skin image and making sure that it extended to both the left and right side. -TH --- In

Re: [flexcoders] Repeater with controls of different heights (Flex 2)

2008-08-25 Thread Howard Fore
Maybe try the custom control as a itemRenderer on a list? You'd probably have to tweak the control some but then you could just set variableHeight = true on the list and be done with it. On Mon, Aug 25, 2008 at 10:17 AM, simonjpalmer [EMAIL PROTECTED]wrote: Hi, I have a custom control which

[flexcoders] Re: Repeater with controls of different heights (Flex 2)

2008-08-25 Thread Amy
--- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED] wrote: Hi, I have a custom control which determines it height from a member variable in a value object that it is passed. I want a collection of these controls to appear in a vertical list on a page, each control being a

[flexcoders] Re: Trying to understand RadioButton selection change logic with custom RadioButtons

2008-08-25 Thread Tim Hoff
Hi there, Since the radio buttons are children of custom components, they don't live in the same scope as each other. To overcome this and have the RadioButtons behave as a group: * Place a RadioButtonGroup in the main class: mx:RadioButtonGroup id=myRadioButtonGroup/ * Use something

[flexcoders] Splash Screen on AIR - still appearing main window

2008-08-25 Thread Enrique Soto
Hello everyone, Before post this question I reviewed some samples I found about using splash screens on AIR application, I downloaded to my computar tried and works but when I moved to my own application this doesn´t work. Please help me or tell me what you need to give a hand

[flexcoders] Re: Help with binding (flex 3)

2008-08-25 Thread rss181919
I get the same result. As long as I copy the event.result properties over to my custom property, I get binding, but trying to set it to the object causes binding to fail even though the object properties transfer over to the custom property successfully. I set my webservice to

[flexcoders] Re: Repeater with controls of different heights (Flex 2)

2008-08-25 Thread simonjpalmer
can a vbox contents be driven the same way as a repeater, i.e. databound to a collection of objects? --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@ wrote: Hi, I have a custom control which determines it

[flexcoders] Flash based flex component issue

2008-08-25 Thread Clint Tredway
Hey all. We are working on a 'game' for kids using Flex and Flash together and have run into a random issue. We have some assets that flash made components that being referenced through a SWC. We are applying a glow filter to the objects and if the mouse movement is too quick, the components

[flexcoders] Re: Repeater with controls of different heights (Flex 2) [Resolved]

2008-08-25 Thread simonjpalmer
VBox was the right answer... --- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED] wrote: Hi, I have a custom control which determines it height from a member variable in a value object that it is passed. I want a collection of these controls to appear in a vertical list on a

[flexcoders] How to check a table already exist in SQLite?

2008-08-25 Thread markflex2007
Hi, I am doing a AIR application. I want to check if a table already in database. I create a new one if it doesn't exist. The application will give me error table already exist if I do not do the check. Please let me know how to do the check to see if a table already exist. Thanks Mark

RE: [flexcoders] How to Create an object of Custom component dynamically / at Runtime / on-fly

2008-08-25 Thread Tracy Spratt
Container.addChild() Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of morpankhy Sent: Monday, August 25, 2008 9:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to Create an object of Custom component dynamically /

RE: [flexcoders] Applying form login in Flex

2008-08-25 Thread Tracy Spratt
Data from an RPC call, HTTPService for example, is just data, and can be used however you wish. Of course, you will need to use a result handler function. Do you know how to do that? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf

RE: [flexcoders] sqlite database physical path?

2008-08-25 Thread Jim Hayes
File.applicationStorageDirectory will be somewhere in your Documents and settings directory and will be user and application specific. try trace(File.applicationStorageDirectory.nativePath) to see where it is for your app. How to do this if I want to create the sqlite in the following path

RE: [flexcoders] How to Create an object of Custom component dynamically / at Runtime / on-fly

2008-08-25 Thread Tracy Spratt
Sorry a bit too terse, maybe. Here is a little more detail. import myPackage.MyLayout001; var layout: MyLayout001 = new MyLayout001() layout.myProperty = myValue; MyContainer.addChild(layout); Another approach would be to have a custom component that contains your layouts in a ViewStack,

[flexcoders] Re: Splash Screen on AIR - still appearing main window

2008-08-25 Thread Enrique Soto
An update, SOLVED :D ... finally doing some sorto of try and fail.. I used: -visible=false into: mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; and now looks like charm (if you like splash screens) I hope this works for soemone else too. --- In

Re: [flexcoders] Re: Choosing Components Dynamically

2008-08-25 Thread Richard Rodseth
Nothing I can share right now, but if you Google things like ActionScript create by name I'm sure you'll find some blog entries. And I'm pretty sure the Adobe docs have numerous examples of instantiating components in ActionScript rather than MXML. On Fri, Aug 22, 2008 at 3:47 PM, mknuttall

[flexcoders] Button Rounded Corners TL, BR

2008-08-25 Thread toofah_gm
Is there a simple way to create a button with rounded corners on only the top left and bottom right? Or can this only be done with a skin? I'm thinking some sort of style where you could set TL, BR, etc. or something like that, similar to the focusRoundedCorners style on a TextInput control.

RE: [flexcoders] Re: CheckBox DataGrid column itemRenderer not updating. Please help.

2008-08-25 Thread Tracy Spratt
Hi, Greg. In-line, interactive renderers are often a PITA to code and use and understand. Consider building or getting a real checkbox item renderer. I use one I implemented in mxml, but there are several examples that use optimized AS. Here is one:

RE: [flexcoders] Re: How to save object to SQLite and get it back?

2008-08-25 Thread Jim Hayes
With the proviso that not I've tried this as yet and it's entirely off the top of my head, it should go something like this ... // saving // var userVO:UserVO = new UserVo(jim,hayes); // save object into byteArray var userVOasByteArray:ByteArray = new ByteArray();

[flexcoders] Formatting Dates/Times

2008-08-25 Thread Dale Cook
Is there a way to format a date/time. For example if I use some thing like var newDate:Date = new Date(); dateLabel.text = newDate.toDateString(); what I get is something like 'Mon Aug 25 2008' and what I want is something like 'Monday, August 25th, 2008'. I would have thought this would be

RE: [flexcoders] Re: Splash Screen on AIR - still appearing main window

2008-08-25 Thread Jim Hayes
Do you have a url to hand for the samples you found? colleagues have been asking me to do a splash screen but it's pretty far down my priorities list. It would save me having to think about how to do it(I hate having to think, too much like hard work)! -Original Message- From:

RE: [flexcoders] How to check a table already exist in SQLite?

2008-08-25 Thread Jim Hayes
Put this in the front of your sql statement for creating the table IF TABLE NOT EXISTS (Which I think is correct, if not then it's very close). Is this not in the help file examples? -Original Message- From: flexcoders@yahoogroups.com on behalf of markflex2007 Sent: Mon 25/08/2008

[flexcoders] Re: Splash Screen on AIR - still appearing main window

2008-08-25 Thread Enrique Soto
Sure, here you have it, http://josephlabrecque.com/2008/07/creating-a-splash-screen-in-air/ --- In flexcoders@yahoogroups.com, Jim Hayes [EMAIL PROTECTED] wrote: Do you have a url to hand for the samples you found? colleagues have been asking me to do a splash screen but it's pretty far down

[flexcoders] Fireworks / Photoshop Skinning

2008-08-25 Thread nathanpdaniel
I have downloaded the Fireworks MXP to create Flex Skins and installed it. According to the read me and documentation - There should be a Command-Create Flex Skin (or something along those lines) and a Command-Export Flex Skin. I have neither of these. The only thing added to my FW-CS3 was

[flexcoders] Re: Formatting Dates/Times

2008-08-25 Thread Tim Hoff
Hi Dale, This is as close as you're going to get out of the box: var df : DateFormatter = new DateFormatter(); df.formatString = , DD, ; var newDate:Date = new Date(); dateLabel.text = df.format(newDate); -TH --- In flexcoders@yahoogroups.com, Dale Cook [EMAIL PROTECTED] wrote:

[flexcoders] the commit method of LCDS doesn't commit deleted child object. Is this normal?

2008-08-25 Thread Shigeru Nakagaki
When autoCommit is false, the commit method of LCDS doesn't commit deleted child object (hierarchical destination, many-to-one). If the case is adding child object, the commit method creates new child object. Is this normal? Do we have to delete child object manually if autoCommit is false?

[flexcoders] Separating view state design from state definitions

2008-08-25 Thread Dan
I would like to define all the states in a single file or xml node like this mx:states mx:State name=listUsers/ mx:State name=userDetail/ /mx:states And then define each state components and appearance in some other file or node (using AddChild etc.). Is this possible? Thanks, Dan

[flexcoders] Not receiving BrowserChangeEvent.BROWSER_URL_CHANGE in app - only in IE 7

2008-08-25 Thread leerobertw68
I have setup an event listener for the BrowserChangeEvent.BROWSER_URL_CHANGE event inside my flex application. Using Firefox, I receive this event if the URL is changed. But in IE, I do not get this event. Has anyone seen this happen?

RE: [flexcoders] the commit method of LCDS doesn't commit deleted child object. Is this normal?

2008-08-25 Thread Jeff Vroom
When you remove an item from an association property, if you want to delete that object you do have to call deleteItem explicitly.Currently removing the object from the association property will only send an update change to the parent object. It won't delete the child object. Many O/R

Re: [flexcoders] Not receiving BrowserChangeEvent.BROWSER_URL_CHANGE in app - only in IE 7

2008-08-25 Thread Sherif Abdou
I remb reading somewhere that IE works in Protected Mode on the Intranet and will not broadcast this stuff unless it is on a public site, and also you can't do much about it. - Original Message - From: leerobertw68 To: flexcoders@yahoogroups.com Sent: Monday, August 25, 2008

[flexcoders] Re: the commit method of LCDS doesn't commit deleted child object. Is this normal?

2008-08-25 Thread Shigeru Nakagaki
A... I see. I use ColdFusion for server-side language. And I don't use O/R things. So I have to add the logic to delete child data. ok, I got it. Thank you for quick response!! Shigeru Nakagaki --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: When you remove an

Re: [flexcoders] Vectors/Getter And Setters

2008-08-25 Thread Sherif Abdou
can You even use Getter/Setters with Vectors? - Original Message - From: Sherif Abdou To: flexcoders@yahoogroups.com Sent: Sunday, August 24, 2008 1:02 PM Subject: [flexcoders] Vectors/Getter And Setters I am wondering is this allowed, and if it is How do i make it work

[flexcoders] Modules vs MVC

2008-08-25 Thread Richard Rodseth
I'm not sure how much this is a Flex question, as opposed to an MVC design question about approaches to composing MVC and where to put view factories. I've successfully built pseudo-modules which instantiate a model, view and controller triplet in MXML. I've also nested this pattern. But in these

[flexcoders] Sqlite retrive to object

2008-08-25 Thread markflex2007
Hi, I have saved a object to sqlite. but I can not retrieve it back to same type of object. I use the following code,but obj1 is null and obj2 have data. but I need the data also save in obj1. var obj1:userVO = new userVO(); var obj2:Object = new Object(); obj1 =

RE: [flexcoders] Modules vs MVC

2008-08-25 Thread Alex Harui
Think of modules as a deferred class loader. It isn't like java where you reference a class and it is magically there. You have to request the load of the classes and wait for them to arrive before using. But that difference aside, you put things in modules and get them later whether they are

RE: [flexcoders] Not receiving BrowserChangeEvent.BROWSER_URL_CHANGE in app - only in IE 7

2008-08-25 Thread Alex Harui
Make sure you are running from http:// and not file://. IE and BM don't work well in file:// mode From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of leerobertw68 Sent: Monday, August 25, 2008 9:49 AM To: flexcoders@yahoogroups.com

Re: [flexcoders] Sqlite retrive to object

2008-08-25 Thread ivo
You probably need to use registerClassAlias() http://livedocs.adobe.com/flex/3/langref/flash/net/package.html#registerClassAlias() and for complex objects perhaps also implement IExternalizable http://livedocs.adobe.com/flex/3/langref/flash/utils/IExternalizable.html - Original Message

RE: [flexcoders] Button Rounded Corners TL, BR

2008-08-25 Thread Alex Harui
There's no style for that. You can create your own skin. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of toofah_gm Sent: Monday, August 25, 2008 8:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Button Rounded Corners TL, BR

RE: [flexcoders] Flash based flex component issue

2008-08-25 Thread Alex Harui
Don't know, maybe someone else does, but when I run into issues like this, I create small test cases including AS-only projects to eliminate as much as possible From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway Sent: Monday,

RE: [flexcoders] Re: question about AMF

2008-08-25 Thread Alex Harui
Don't know why it doesn't fail in that case, but it could be timing of some sort. The exception you got may always be from Module1 or 2 so then it would work depending on the order of loading. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Image Viewer

2008-08-25 Thread Alex Harui
When you create thumbnails in your app, you have to load the original data in order to do so. The only way to reduce traffic is to generate thumbnails on the server, which is more or less what Scene7 does From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Applying form login in Flex

2008-08-25 Thread Alex Harui
You can use the XML class APIs to access the XML From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Partogi Sent: Monday, August 25, 2008 3:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Applying form login in Flex

RE: [flexcoders] Sqlite retrive to object

2008-08-25 Thread Jim Hayes
var obj2:ByteArray = result.data[0][USER] as ByteArray; obj2.position = 0; var yourUserVOInstance:userVO = obj2.readObject() as userVO; *probably*... (the as cast operation will return null if the operation is not successful, unlike the ObjectToCastTo(someObject) form which will throw an error

[flexcoders] Flex 3 SWCs within CS3, again

2008-08-25 Thread Brian Deitte
Can you use framework-less Flex 3 SWCs within CS3? I assumed that you could do this if the compatibility-version flag was used and you didn't use any of the Flex framework. I haven't been able to get this to work, however. I asked about this about a month ago and the all-knowing Matt Chotin

[flexcoders] Extending a comonent with children

2008-08-25 Thread Nate Pearson
I made a custom panel component. It has some stuff in there (like header info) that get duplicated a lot so I wanted to make it a custom component. In the parent app that calls that component I still want to add children in MXML. I get the error Multiple sets of visual children have been

[flexcoders] Re: How to check a table already exist in SQLite?

2008-08-25 Thread markflex2007
Thanks for your help. I want to know if SQLConnection provide a method to check if a table already exist or not. Thanks Mark

Re: [flexcoders] Extending a comonent with children

2008-08-25 Thread Richard Rodseth
Read up on templates: http://livedocs.adobe.com/flex/3/html/help.html?content=templating_3.html I'm using a variation where I override commitProperties rather than use the init event. I mentioned this in the recent thread template architecture and no one told me that I was crazy (but they didn't

[flexcoders] Re: LCDS and real-time performance

2008-08-25 Thread seth_hodgson
Hi Rogier, You shouldn't place any weight on timing metrics captured while the server has debug level logging enabled. The IO overhead to output all the debug level logging to a console or log file will drastically skew your numbers. I'd recommend running your test wihtout debug level logging

Re: [flexcoders] Modules vs MVC

2008-08-25 Thread Simon Bailey
I have done quite a bit of work with Modules and an MVC stylee framework named PureMVC. I have just posted a new example of a module loading application within this framework using ModuleBase as opposed to mxml Modules which may be of some interest:

[flexcoders] problem with a simple XML Loader :(

2008-08-25 Thread David Pariente
Hi all, I'm making a very simple XML Loader on AS3 and i get an error...i saw more than 3 examples and checked it all again and again and still don't know what's wrong. the code: (inside an mx:script) import flash.events.Event; import

[flexcoders] Re: How to save object to SQLite and get it back?

2008-08-25 Thread markflex2007
Hi, I use the following code to read the data from sqlite var userVOasByteArray:ByteArray = result.data[0][USER] as ByteArray ;userVOasByteArray.position = 0; var user:userVO = userVOasByteArray.readObject() as userVO; userVOasByteArray has data but user is null. Do you know

[flexcoders] Re: Flex 3: FormItem's label sizing problem

2008-08-25 Thread alewisohn7305
I'm having the same issue. I just switched from the 2.0.1 SDK to the 3.1 SDK and now my FormItem labels are not displayed. I verified that they are set using the debugger. This seems like it would actually be a problem with the Form control, as it's responsible for measuring and laying out

[flexcoders] Re: Flex 3: FormItem's label sizing problem

2008-08-25 Thread alewisohn7305
I'm having the same issue. I just switched from the 2.0.1 SDK to the 3.1 SDK and now my FormItem labels are not displayed. I verified that they are set using the debugger. This seems like it would actually be a problem with the Form control, as it's responsible for measuring and laying out

RE: [flexcoders] problem with a simple XML Loader :(

2008-08-25 Thread Tracy Spratt
You can not do complex assignments like that outside of a function. Because of the way the swf is compiled, the declared vars do not exist when you are attempting to initialize them. Declare the vars like you have, in the instance scope, but then create an init() function and call it from

RE: [flexcoders] Vectors/Getter And Setters

2008-08-25 Thread Gordon Smith
can You even use Getter/Setters with Vectors? If you can't, it's a bug. I keep getting Internal error: type for Property '{name}' is unreachable. All internal errors are bugs. Is it reproduceable? Does it still happen after you clean your FlexBuilder project, or create a new one? Can

Re: [flexcoders] Vectors/Getter And Setters

2008-08-25 Thread Sherif Abdou
Well I am trying to use Vectors instead of [ArrayElementType] Metadata so I try to do this x:Comp x:mySetterVector lots of UIComp in here/ /x:mySetterVector /x:Comp setter = public function set (value:Vector.UIComponenet):void { } - Original Message - From: Gordon

[flexcoders] Fast-forward / set time on effect

2008-08-25 Thread joeblow3212003
Hi, I have a Parallel effect. I can't seem to figure out how to fast-forward the effect to a specific point. I can read the playheadTime on the ParallelInstance, but I can't set it. Is it possible to fast-forward? Thanks, James Pollman

[flexcoders] External Interface: Do I have to have a javascript function?

2008-08-25 Thread thegators_2002
When I call from a Flex swf to the host aspx page, do I have to have a javascript function that will answer? Can I directly access a hidden field on the page from Flex? I would like to do something like this: ExternalInterface.call(window.document.getElementById('hidBVPerm').value); But the

[flexcoders] mx:Metadata?

2008-08-25 Thread markflex2007
Hi, I confuse with mx:Metadata now I have the following mx:Metadata in code mx:Metadata [Event('add')] [Event('update')] [Event('cancel')] /mx:Metadata Do you think the following code work with the mx:Metadata? dispatchEvent( new Event( add ) ); Thanks Mark

RE: [flexcoders] Re: How to save object to SQLite and get it back?

2008-08-25 Thread Jim Hayes
apologies, as ivo has helpfully pointed out (and I'd forgotten, thanks ivo), you need to be using registerClassAlias() in order to be able to type the object you get back. so var userVOasByteArray:ByteArray = result.data[0][USER] as ByteArray ; userVOasByteArray.position = 0; var

Re: [flexcoders] mx:Metadata?

2008-08-25 Thread Sherif Abdou
Yes. - Original Message - From: markflex2007 To: flexcoders@yahoogroups.com Sent: Monday, August 25, 2008 4:26 PM Subject: [flexcoders] mx:Metadata? Hi, I confuse with mx:Metadata now I have the following mx:Metadata in code mx:Metadata [Event('add')]

[flexcoders] Re: Performance profile strangeness

2008-08-25 Thread Xiaochen DU
Hi Mike, Did you get the problem solved? You are not alone. It has been bother me for months. I am using Flex Buider:3.0.194161, Flash Player:9.0.124.0. OS: W2K. XD. --- In flexcoders@yahoogroups.com, Mike [EMAIL PROTECTED] wrote: Thanks, yes it's the debug player... nice link. --- In

RE: [flexcoders] External Interface: Do I have to have a javascript function?

2008-08-25 Thread Alex Harui
You need to call a function on the other side, not run eval of a string. Of course, the one function you put in could eval the string you pass in From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Monday, August 25,

Re: [flexcoders] Re: Help with binding (flex 3)

2008-08-25 Thread Josh McDonald
I see your problem I think. Are you setting component.datasource = resultEvent.result through actionscript somewhere? That won't get updated when you make another service call, because a new result object is created. If you bind to service.lastResult (or something, I don't do it that way) instead,

[flexcoders] can't loop through parameters

2008-08-25 Thread bryancostanich
hi all, i need to pull some info from a parameter in flex. i've thrown the following code in my init method (gets called on application complete). i pulled the code straight from an adobe blog, but it doesn't spit out any parameters. the paramObj.length property gives me a 'null' value. var

Re: [flexcoders] can't loop through parameters

2008-08-25 Thread Jehanzeb Musani
use the Application.application.parameters property to iterate through the parameters passed to the SWF application. --- On Tue, 8/26/08, bryancostanich [EMAIL PROTECTED] wrote: From: bryancostanich [EMAIL PROTECTED] Subject: [flexcoders] can't loop through parameters To:

Re: [flexcoders] mx:Metadata?

2008-08-25 Thread Jake Churchill
I usually have seen used and use it like this: mx:Metadata [Event( name=eventName,type=fully.qualified.classpath )] /mx:Metadata markflex2007 wrote: Hi, I confuse with mx:Metadata now I have the following mx:Metadata in code mx:Metadata [Event('add')] [Event('update')] [Event('cancel')]

[flexcoders] Re: LCDS ds-console WAR

2008-08-25 Thread Geoffrey
Thanks for the reply, but I was running it that way. --- In flexcoders@yahoogroups.com, zdenekmikan [EMAIL PROTECTED] wrote: You have to run it through http access (e.g. http://localhost:8400/ds-console/), not by double-clicking on html file in deployed folder. --- In

[flexcoders] has anyone styled a PieSeries label with mixed fonts, sizes, and colors?

2008-08-25 Thread icodeflex
Hello- [ sorry for spamming everyone again… I posted this question on Friday night without luck, and am trying again. ] I have a requirement to style the text in a PieSeries label to display with mixed sized text, colors, and fonts. I haven't had luck yet finding any properties of the PieSeries

[flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

2008-08-25 Thread Geoffrey
I was wondering if anyone knows exactly when the AcegiLoginCommand class gets processes. Does it get processed once when you create a DataService object, or does it get processed every time an RTMP request is made? --- In flexcoders@yahoogroups.com, Geoffrey [EMAIL PROTECTED] wrote: One last

Re: [flexcoders] mx:Metadata?

2008-08-25 Thread Josh McDonald
Just to clarify, the metadata for events aren't actually necessary in order to dispatch events, it's mainly to aid the IDE. But if you get the metadata wrong and you use auto-complete in your code, you may end up listening for the wrong events :) -Josh On Tue, Aug 26, 2008 at 7:31 AM, Jake

Re: [flexcoders] Flash based flex component issue

2008-08-25 Thread anuj sharma
Once thing like this happened to me and I disabled mouseChildren, I am not sure that will work here Thxs Anuj On Mon, Aug 25, 2008 at 8:30 AM, Clint Tredway [EMAIL PROTECTED] wrote: Hey all. We are working on a 'game' for kids using Flex and Flash together and have run into a random issue.

RE: [flexcoders] Re: How to check a table already exist in SQLite?

2008-08-25 Thread Tim Rowe
If you only want this for when you're actually creating the table, rather than trying to confirm it exists: From http://www.sqlite.org/lang_createtable.html CREATE [TEMP | TEMPORARY] TABLE [IF NOT EXISTS] [database-name .] table-name ( column-def [, column-def]* [, constraint]* )

[flexcoders] Need Help and Guidance desperately

2008-08-25 Thread anuj181
Hi I am using HBOX container to load images letting user drag image from one HBOX and dropping them in another (2nd)HBOX. I need to calculate the real estate of the HBOX in which the image has been dropped (i-e 2nd HBOX). The reason is that because I need the dropped image to get placed in an

(bump) Re: [flexcoders] styling Flex - able to use multiple stylenames - styleName=styleA styleB ?

2008-08-25 Thread Josh McDonald
*Bump* Is there a good answer to this? I want to be able to generically add a dragover second stylename to a component, and remove it on drag-out without having to duplicated every stylename that can be dragged over (and also having nearly every style attribute listed twice, in .someComponent and

RE: [flexcoders] Re: How to check a table already exist in SQLite?

2008-08-25 Thread Kevin Benz
Execute a query and see if the table name exists in the sqlite_master table. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Rowe Sent: Monday, August 25, 2008 5:10 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to check a table already exist

Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Rick Winscot
Problem is... There is no such thing as Œempty.¹ If an Hbox has 5 items in it ­ it has 5 items in it. If an Hbox has 2 items in it ­ it has 2 items in it. Also, the default behavior of the Hbox is to accommodate and resize as needed. It sounds to me like what you need to do is either make the

Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread anuj sharma
Hi Rick Thanks for the reply. Are there any recommendations about which layout component or container should i use or do i need to create my custom component for achieving this target. I am not sure which way to handle that layout. Please help me out Again Thanks a lot. Anuj On Mon, Aug 25, 2008

Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Rick Winscot
The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning. Really, it depends on what you want the user experience to be like. If you could sketch out the solution ­ we could throw some code around. Rick

  1   2   >