Re: [flexcoders] Image Loading dynamically

2006-12-27 Thread KP
Hi Lach/All, Can you please send some sample code for this because I am not able to create slideshow using below approach. It will be really helpful. Thanks Kumar _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan Cotter Sent: Saturday,

[flexcoders] Re: Load swc instead of swf

2006-12-27 Thread ssundke
Hey Lach, Loading XML files from where? I need to write an help html and im looking at the best way to write it without creating external dependancies. - Saba --- In flexcoders@yahoogroups.com, Lachlan Cotter [EMAIL PROTECTED] wrote: Hi Saba, What's wrong with just loading ordinary XML

[flexcoders] Best Practice when using IViewCursor?

2006-12-27 Thread Carlos Rovira
Hi, I'm trying to find the best practice to use with IViewCursor interface and a pair of buttons to walk the collection ( previous and next buttons). I want these buttons to enable/disable through binding but I only found two properties afterLast and beforeFirst that doesn't do what I want since

[flexcoders] Concept of Library.

2006-12-27 Thread genius_gen2k
Hi everyone, Is there any means via which I can have my mxml file act as a template and manipulate data via my class. Similar to the library concept what we have in Flash 8, where we can use the asset in library by attaching it to the main stage and then manipulate data for that asset from a

[flexcoders] How to access components/control properties of custom actionscript components

2006-12-27 Thread paromitadey
Hi All, I need to create a dynamic form which has multiple pages each page will be displayed in separate tabs and has individual controls. On submit of a a button i need to trace the data entered in the controls for each Tab. The numer of Tabs and controls will vary depending on criteria

Re: [flexcoders] Re: Load swc instead of swf

2006-12-27 Thread Paul Andrews
Your original post said you were happy to load an external file, why couldn't it be an xml or html file? Paul - Original Message - From: ssundke [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 27, 2006 11:08 AM Subject: [flexcoders] Re: Load swc instead of swf

[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-27 Thread Sergey Kovalyov
Could you please assist? This problem is very important, I think. :) On 12/22/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Did anybody face this problem? On 12/19/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Run this application in Internet Explorer: ?xml version=1.0? mx:Application

RE: [flexcoders] Tree: Resetting openItems after dataProvider change

2006-12-27 Thread Tracy Spratt
Yes, Hank's solutionsis what I would do. Further, when you say ...Flex 2 tree control limits direct access to nodes..., you make me suspect you are making a conceptual mistake. With data-driven controls, you never directly access the controls themselves. Rather, you work with the

[flexcoders] Using View States with Form Container

2006-12-27 Thread brian_m_riley
I've created a base state with a Form (we'll call it myForm) containing 3 FormItems each containing a TextInput; I've also created 2 additional view states: State FooA just has a FormItem with a ComboBox and is based on above base state, and is added as the last child of myForm. State FooB has 2

Re: [flexcoders] Best Practice when using IViewCursor?

2006-12-27 Thread Dmitry Kochetov
Carlos Rovira wrote: Hi, I'm trying to find the best practice to use with IViewCursor interface and a pair of buttons to walk the collection ( previous and next buttons). I want these buttons to enable/disable through binding but I only found two properties afterLast and beforeFirst that

[flexcoders] How to Use the Value of a Checkbox in a Component

2006-12-27 Thread Lisa Lee
Hello, I'm very new to Flex so please excuse my newbie question if it seems a bit dumb...but here is my situation: I have a Flex application - let's call the main application file 'Main.mxml' - I have a component file - let's call it 'MyComp.mxml'. Within the 'MyComp.mxml' file I have an

[flexcoders] Dataprovider for ViewStack and List

2006-12-27 Thread jerome_cordiez
Hi all, being pretty knew to Flex, I am currently wondering about the best way to define a single dataprovider for both a list component and a viewstack. On paper, I can see many ways to achieve this, but being a new flex user, I am still pretty unsure about what would be the best/easiest way...

[flexcoders] garbage collecting and local variables

2006-12-27 Thread JMaiquez
Hi everyone, My name is Jorge Maiquez, and this is my first post here. My question relates to the AVM2 garbage collection mechanism. I have asked it elsewhere but have not gotten a response. Here it goes: From the AS3 docs: Objects with registered event listeners are not automatically removed

Re: [flexcoders] Tree: Resetting openItems after dataProvider change

2006-12-27 Thread hank williams
Actually, Tracy, I dont think you need to do all of this work. The openItems field of the tree does it for you. So you just need to go through the openItems array of nodes and gather all the item IDs that I described in the prior email. To reopen them later, you just use the an e4x function (I

[flexcoders] Flex 2 vs Laszlo

2006-12-27 Thread Rich Tretola
I know this has been rehashed a few times but I was wondering if anyone has an updated resource showing comparisons? I need to talk someone down from a Laszlo ledge and show the glory of Flex 2. :) Rich

[flexcoders] Where to save Cairngorm.swc?

2006-12-27 Thread Kevin Merritt
This may be a simple question, but it there a best place to store the Cairngorm SWC? Currently, I have it residing in my documents folder with all my other Flex projects (the default Flex Builder 2 folder). I simply followed this info for installing Cairngorm:

Re: [flexcoders] Where to save Cairngorm.swc?

2006-12-27 Thread Rich Tretola
I keep a swcs folder at the same level as my projects so that it can be easily included in multiple project build paths. Rich On 12/27/06, Kevin Merritt [EMAIL PROTECTED] wrote: This may be a simple question, but it there a best place to store the Cairngorm SWC? Currently, I have it

[flexcoders] Cairngorm 'unable to open' Error?

2006-12-27 Thread Kevin Merritt
Sounds like other people may have had this problem, but I can't find a solution online... After installing Cairngorm (Flex Builder 2 Mac Pre-release), I am getting this error: unable to open C:\dev\swat\projects\ac_emea\Cairngorm\buildlib Does anyone know what is causing this and how to fix

Re: [flexcoders] Best Practice when using IViewCursor?

2006-12-27 Thread Carlos Rovira
Thanks Dmitry, I'm already using those methods. The problem is that I want to use a Button and set a binding in the enabled property something like enabled={myCursor.beforeFirst} But this is useless since I must go outside the collection to make the button enalbed or not. I want the previous

Re: [flexcoders] Re: Populating a combobox with XML

2006-12-27 Thread Collin Peters
The point is the when I use a label sub-node it DOES work. From what I read on the internet I shouldn't have to have a sub-node, hence the point of my email. Oh, and I also do have 'labelField=label' even though that is the Flex default and not required unless you want to change the name of the

[flexcoders] Customisation of busy cursor

2006-12-27 Thread sanjaypmg
Hi All, I want to customise busy cursor. is there any way to customise it? how can I put my own animation instead of clock animation? or is there other animations available to change that cursor? Please help me thanks. Sanjay

RE: [flexcoders] How to Use the Value of a Checkbox in a Component

2006-12-27 Thread Tracy Spratt
There are several ways to do this. The simplest to code is to directly access your control by dottting down through the component dom. If your component is directly referenced by id in the main app you can do: myCompId.chkBox1.selected. This might not be the best term solution, though,

[flexcoders] Combo state???

2006-12-27 Thread sanjaypmg
Hi All, Is there anyway to get the current (open/closed) state of a combo box? Senario: in my application, the screen gets refresh automatically after a specific period, lets say 30 seconds. if i open my dropdown list and screen refreshes at that point of time, it closes the dropdown. What

RE: [flexcoders] Re: Populating a combobox with XML

2006-12-27 Thread Tracy Spratt
Try @label, since the values are in attributes. I think using a sub-node makes that sub-node a top-level property so is accessible using label. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Collin Peters Sent: Wednesday,

[flexcoders] Canvas Label?

2006-12-27 Thread sanjaypmg
Hi All, There is an attribute called Label in Canvas tag, can anyone tell me whts the use of this attribute? Is there any way to show this label in the middle of top border of canvas as label is shown in VB n JAva's canvas? If there is a way to make the canvas or anyother component like VB

Re: [flexcoders] Canvas Label?

2006-12-27 Thread Roman Protsiuk
This property is inherited from Container. Here's excerpt from documentation: The text displayed by some navigator containers to represent this Container. For example, if this Container is a child of a TabNavigator, this string appears in the corresponding tab. If this Container is a child of

[flexcoders] Re:TileList - forcing the item renderer to refresh

2006-12-27 Thread Bill Gercken
Solved the problem. There is nothing special going on. All I had to do was to use the dataChange method to update the items variables (which were bound to the items in the custom component). Happy Holidays! -bill

Re: [flexcoders] Re: Populating a combobox with XML

2006-12-27 Thread Collin Peters
That's it!!! Awesome. Thanks Tracy. private var foo:XML = types typex event_type_id=1 label=General value=foo/ typex event_type_id=2 label=Tanning value=foo/ typex event_type_id=3 label=Tennis value=foo/ /types

[flexcoders] Help with custom button?

2006-12-27 Thread Reid Priedhorsky
Hi folks, I am trying to create a custom button in AS3 using the Flex 2 SDK. It is pretty simple; I just want it to be a wedge shape that I can rotate to point in an arbitrary direction. My code is attached below, but I'm stuck on two issues: 1. Making it behave as regular buttons do in terms

[flexcoders] Determining VDividedBox heights

2006-12-27 Thread Matt Maher
I'm trying to remember the height at which someone sets a vertically divided section. I am using a VDividedBox and have set a listener to the dividerRelease event. When I get in there I can trace out the height of the top component within the VDividedBox but it gives me the pre-resized value.

[flexcoders] Flex Accessing HTTP Session

2006-12-27 Thread Ryan
I was curious if there was any way that flex could access a HTTP Session. I have not seen any type of tutorial/doc posted that might work other than a very small note in the help section of flex's installed doc's. At this point my only solution is to use flash vars to capture the session ID,

[flexcoders] Vertical label on a Button

2006-12-27 Thread shob_il
Hi, I am trying to add a button to my application with vertical label. Does anyone know how can it be done ? I've tried adding rotate='90' to the button but then the whole button is being rotated and the label disappears. Adding Label or Text element also does not produce what I need, the

[flexcoders] problem importing projects into workspace

2006-12-27 Thread Kevin Merritt
I am trying to import some sample projects from the web to understand Flex application design better and I am running into problems loading them into my workspace. Could someone provide me with a step-by-step example of to how to import these into my flex builder workspace. Here is one of

[flexcoders] XML oddities

2006-12-27 Thread Collin Peters
Can someone please explain the following: var foo:XML = root node attrib1=one / node attrib1=two subnodefoo/subnode /node node attrib1=threevalue/node /root; for each(var x:XML in foo.node) trace(- + x); Which outputs: - - node attrib1=two subnodefoo/subnode /node - value

Re: [flexcoders] Flex Accessing HTTP Session

2006-12-27 Thread Patrick Mineault
No, HTTP sessions are stored on the server-side, so you can't access them from just the client side. The only thing you CAN access on the client side is cookies, which may contain the session id, but the actual data is stored on the server-side, indexed by that key. Patrick 2006/12/27, Ryan

[flexcoders] Loading Flash 8 swfs into Flex 2 -- Running into _root issues

2006-12-27 Thread Raheen M Shabbazz
Hello all, I am creating a portfolio application using Flex 2. In the app, I am loading a number of swfs into the portfolio using a SWFLoader. These swfs were created using Flash 4 through Flash 8 over a number of years. In a few of the swfs, the author has, clearly, made reference to the

RE: [flexcoders] XML oddities

2006-12-27 Thread Tracy Spratt
trace uses toString() to print the XML node. toString() gives unexpected results like you see, with non-complex elements. The best solution is to always us toXMLString() to print out xml. trace(- + x.toXMLString()); Tracy From:

RE: [flexcoders] Flex Accessing HTTP Session

2006-12-27 Thread Tracy Spratt
Why not pass everything you need into Flex when you deliver the swf? If you do decide to make a call to the server, consider HTTPService over WebService. Returning xml over HTTP is much simple than using SOAP. Tracy From: flexcoders@yahoogroups.com

[flexcoders] headerRenderer with combobox - problem with events

2006-12-27 Thread dj
Hello, I have a custom headerRenderer with a combo box, the combo box loads data by week, day or month into my datagrid. Unfortunately, clicking on an item in the box automatically loads items into the dataGrid which was last selected, how do I prevent this from happening? Why does clicking on

[flexcoders] What's the best approach here (Associative arrays, dynamic classes, etc...)?

2006-12-27 Thread chuvakgu
Hi all, Here's what I am trying to do. I have an object that I get from the server (currently via XmlRpc but that doesn't really matter). It's an Object. I want to convert it into a data structure on the client side for easier manipulation. If I do something liek class Foo { var prop1:String;

Re: [flexcoders] Determining VDividedBox heights

2006-12-27 Thread Daniel Freiman
If you want to get the height of children of any container including boxes, you are going to need to look at the size of the children themselves. So if you want the top box in your example, it would be vbox.getChildAt(0).height. However, I do believe that on dividerRelease the child would not

[flexcoders] stuck with itemEditBeginning event

2006-12-27 Thread bsdensmore
I'm trying to use the itemEditBeginning event on a datagrid to only allow a column to be editable if the person clicks on it, if they tab to it I need to kick them out of the column. I can't figure out how I can get access to the keycode since the itemEditBeginning event is a DataGridEvent and

[flexcoders] Re: Customisation of busy cursor

2006-12-27 Thread potentialunfounded
sanjay- i just put together a site dedicated to skinning flex apps. check it out at http://www.scalenine.com and check out the resources page for answers to your question. so far the site offerings are pretty limited (there's a theme i created called obsidian and 2 others i found online), but i

[flexcoders] MVC Concepts in Flex 2

2006-12-27 Thread rd_grimes
I am reading the book, Advanced Actionscript 3 with Design Patterns, and must confess that I've never truly followed proper OOD/OOP in writing my Flash 8 web apps. But, now that I'm doing my first Flex 2 web app, I figured I really should do this the right way by implementing a proper MVC

Re: [flexcoders] How to force built-in focus manager to auto scroll containers to the focused component?

2006-12-27 Thread Sergey Kovalyov
Hi to Matt and all flexcoders! I have implemented AutoScrollManager class that do this job: http://skovalyov.blogspot.com/2006/12/probably-one-of-most-annoying-thing.html I consider this solution could be changed a bit and added to the native Container class in future Flex releases or updates.

[flexcoders] Problems when using the FlexSessionListener interface to detect when client drop

2006-12-27 Thread rob_ricci
I'm working on a client/server app where we implement the FlexSessionListener interface to detect when a user closes the browser window so that we can clean up the data on the server. I have found some shortcomings with this approach, but the biggest one seems to be that the sessionDestroy

[flexcoders] Re: MVC Concepts in Flex 2

2006-12-27 Thread Raheen M Shabbazz
Ron, when creating your views, you can use MXML with no problem. Take a look at the Cairngorm framework at Adobe Labs (http://labs.adobe.com/wiki/index.php/Cairngorm). They routinely use mxml to create their views and attach ActionScript view helpers to their mxml files. Common uses of this

[flexcoders] Setting UIComponent.errorString creates a black border around the component

2006-12-27 Thread brian_m_riley
I've been using the errorString property of UIComponent to remove errors associated with TextInput fields, but it seems to put a black border around the field instead of just removing the red error border and error string. Thoughts? -riley

RE: [flexcoders] Flex Accessing HTTP Session

2006-12-27 Thread Dimitrios Gianninas
If your question is when flex calls a java class and within the java class how do I access the associated session, then the code is below and it is in the documentation. The FlexSession class is located in the flex-messaging.jar. FlexSession session = FlexContext.getFlexSession(); But whats

[flexcoders] setTimeout in flex 2.0

2006-12-27 Thread jensen.axel
I'm confused on how to use setTimeout i have a function that i need to wait 500 milliseconds to call... var aVars:Array = [lat, lng, zoom]; trace(aVars); //39,-105,6 var my_timedFunction:uint = setTimeout(manipulateMap,500,aVars); public function

Re: [flexcoders] MVC Concepts in Flex 2

2006-12-27 Thread greg h
Ron, Two suggestions on samples of MVC with Flex 2: 1) http://cairngormdocs.org/ This link has several levels of downloadable Example Apps 2) http://www.adobe.com/devnet/flex/articles/blueprint.html In the article at this link Joe Berkovitz gives a fantastically concise walkthrough of MVC in

RE: [flexcoders] problem importing projects into workspace

2006-12-27 Thread Dimitrios Gianninas
I'm no eclipse expert, but the file u download doesn't have the special eclipse project config files within it (like .project, etc...) So create a flex project, specify a source folder and put the files in there, it should work. Dimitrios Gianninas RIA Developer Optimal Payments Inc.

Re: [flexcoders] What's the best approach here (Associative arrays, dynamic classes, etc...)?

2006-12-27 Thread Bjorn Schultheiss
check out darron shall's object serializer, it should do the trick On 28/12/2006, at 7:52 AM, chuvakgu wrote: Hi all, Here's what I am trying to do. I have an object that I get from the server (currently via XmlRpc but that doesn't really matter). It's an Object. I want to convert it into a

Re: [flexcoders] Where to save Cairngorm.swc?

2006-12-27 Thread Bjorn Schultheiss
I've got it in /libs/swc/ On 28/12/2006, at 2:29 AM, Rich Tretola wrote: I keep a swcs folder at the same level as my projects so that it can be easily included in multiple project build paths. Rich On 12/27/06, Kevin Merritt [EMAIL PROTECTED] wrote: This may be a simple question, but

[flexcoders] Re: MVC Concepts in Flex 2

2006-12-27 Thread rd_grimes
Thanks to both of you for the references. I'm printing them out to read now. Ron --- In flexcoders@yahoogroups.com, greg h [EMAIL PROTECTED] wrote: Ron, Two suggestions on samples of MVC with Flex 2: 1) http://cairngormdocs.org/ This link has several levels of downloadable Example

RE: [flexcoders] setTimeout in flex 2.0

2006-12-27 Thread Tracy Spratt
The docs advise using Timer instead. If you are trying to use this to wait for the result of an external data call, you are making a mistake. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jensen.axel Sent: Wednesday,

[flexcoders] Re: Flex 2 vs Laszlo

2006-12-27 Thread Rich Tretola
Anyone have any links to share? Rich On 12/27/06, Rich Tretola [EMAIL PROTECTED] wrote: I know this has been rehashed a few times but I was wondering if anyone has an updated resource showing comparisons? I need to talk someone down from a Laszlo ledge and show the glory of Flex 2. :) Rich

[flexcoders] Re: Problems with dynamic column series showDataEffect

2006-12-27 Thread passive_thoughts
The reason you don't see the effects trigger is because you're adding elements to the chart, you're not changing the underlying data for the chart. You might want to try going through first and setting up the columns like you have but pointing yField to a dummy column, say intervalN. This will

[flexcoders] Re: Problems with dynamic column series showDataEffect

2006-12-27 Thread passive_thoughts
I played around with this some more. The fix was pretty easy.. just add one line resultchart.hideData(). At least this worked for me. public function appendInterval(column:String):void { resultchart.hideData(); var series:ColumnSeries = new

Re: [flexcoders] Re: SEO Compatibility

2006-12-27 Thread Kevin Newman
What you have described is basic deep linking, but does not solve the problem I have been attempting to articulate. Regardless of what goes on on the server, if you enter some path info after the .com part of the url, the server thinks it is getting its data from that location (foo.com/bar/

Re: [flexcoders] Re: Flex 2 vs Laszlo

2006-12-27 Thread greg h
Rich, I have been out of the loop on Laszlo. I am plenty busy with my Flex work :-) If someone can come up with a concise comparison chart on Flex 2 vs Laszlo I would be interested to see it. Last I had left off, after Macromedia announced Flex 2 pricing, Laszlo announced they were going to