I am now very sure that you are using Flex 1.0, you are not using Flex 1.5 Please make sure by looking at JRUN console message, it must say Flex version. Or you can look at "WEB-INF\flex\logs\flex.log"
-abdul -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Tuesday, May 24, 2005 9:31 AM To: [email protected] Subject: RE: [flexcoders] Problems using percentage in Width property for container... Sure - here you go! I was just playing around with a MM Tutorial, and am getting errors a little too early in the game for my own taste... Please be aware of word-wrap, I don't know if this list-serve wraps posts, if you were to literally paste this code into the IDE... Thanks in advance :) Mike <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ var myArray=[0,1,2,3,4,5,6,7,8,9]; ]]> </mx:Script> <mx:TabNavigator id="tabNav" marginLeft="10" marginTop="20"> <mx:HBox label="View 1: Form/Tile" > <mx:LinkBar dataProvider="{vStack}" direction="vertical"/> <mx:ViewStack id="vStack" width="80%" height="100%"> <mx:Panel title="Form" label="Form"></mx:Panel> <mx:Panel id="tilePanel" title="Tile" label="Tile" width="220" height="210"></mx:Panel> </mx:ViewStack> </mx:HBox> <mx:Panel label="View 2: Sales Trends Chart" title="Sales Trends" > </mx:Panel> </mx:TabNavigator> <mx:Array id="myArrayOfObjects"> <mx:Object label="Q1" volume="1600" revenue="10000"/> <mx:Object label="Q2" volume="1500" revenue="9000"/> <mx:Object label="Q3" volume="1900" revenue="12000"/> <mx:Object label="Q4" volume="2300" revenue="14000"/> </mx:Array> </mx:Application> -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Monday, May 23, 2005 10:43 PM To: [email protected] Subject: RE: [flexcoders] Problems using percentage in Width property for container... Hi, Can you please post complete code or testable code? I don't see any reason that you should get this error. Which version of Flex you are using? -abdul -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Tuesday, May 24, 2005 8:43 AM To: [email protected] Subject: [flexcoders] Problems using percentage in Width property for container... I am terribly confused, especially since FlexBuilder 1.5 docs go out their way, to say that the old widthFlex and heightFlex properties are deprecated. According to the docs, I just use Width and Height - and stick the percentage number in there. I am getting errors during compilation, and this is a Macromedia tutorial - which is kind of surprising. According to the Docs it says: "This property has been deprecated. For flexible widths, please set width to a percentage value." But when I try doing this, using this particular code: <mx:ViewStack id="vStack" width="80%" height="100%"></mx:ViewStack> I get "Failed to parse number: 80%" and "Failed to parse number: 100%" when the application compiles. Any ideas what I am doing wrong? Thanks, Mike Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

