[flexcoders] Re: dynamic dimension of the page
Thanks alot for the reply , but how i can avoid using (left,top,bottom) , what are the advance constraint? --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try to avoid using left, right, top,bottom. You can use advanced constraints if you need to, but try using %width/%height only first Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anitha2324 Sent: Saturday, June 27, 2009 12:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamic dimension of the page Hi All, I am making a flex web page the following is some part of this page mx:VBox id=boxPersonalImages verticalGap=0 height=80% width=60% left=10 bottom=160 horizontalAlign=left containers:CoverFlowContainer id=SildeOfImges width=100% height=100% horizontalGap=60 borderStyle=none segments=6 reflectionEnabled=false /containers:CoverFlowContainer /mx:VBox mx:Image id=AdsImagesComponent width=25% height=25% right=10 top=150/ mx:VBox width=100% height=20% id=hMsg backgroundColor=#FF horizontalCenter=10 bottom=150 mx:TextArea id=customerMessageTextAreaComponent width=100% height=100% fontSize=36 textAlign=center fontFamily=Times New Roman wordWrap=true editable=false borderStyle=none/ /mx:VBox mx:VBox height=10% width=50% id=hLog2 left=30 bottom=25 mx:Label id=shortCodeLabelComponent width=100% height=10% fontSize=50 color=#00/ /mx:VBox mx:VBox height=10% width=35% id=hLog left=2% bottom=25 mx:Image id=operatorLogoImageComponent width=110 height=75/ /mx:VBox , actually i have completed the page and i have run it on my stystem and it works fine , but when i run in another pc the page did not display correctly and some part of this plage has not been displayed because the resolution of this screen is different from the resolution of my screen , so how i do fix this issue so that my page can be displayed correctly regardless of the screen resolution , I have tried to use the % like height=34% but not all the properties are accepting the % (such top , right) any one can help to solve this issue
[flexcoders] XML data translated to wrong datatype
I have one particular piece of data in an XML file, retrieved via HTTPService, that is being mistakenly being translated incorrectly. I'm using a Value Object and it's defined in there as a String datatype. There's not a problem until the data contains something that can be interpreted as exponential notation, for example 1E01, which it thinks means the number 10 or anything starting with 1E. At first I tried to fix it in the Value Object but I've looked at the debug information and this translation appears to be happening at the HTTPService end of things because the result event already shows the changed value. BTW, this same annoying thing happens in an Excel spreadsheet with the same data in it - Excel keeps wanting to interpret it as a Number type. Anyone know how I can fix this problem and let the data come through unchanged? Dana
Re: [flexcoders] Flex 3 Exam Cert Question
hi, i recentlly got my flex 3 with air cert and i'd say the questions on lcds are more on interacting with lcds, so you should be able to get enough info from livedocs or any good flex book that discusses lcds. As for the local database connection, that would be pertaining to AIR's interaction with SQL (or SQLite). someone correct me if im wrong. ^^ cheers can someone point me to a resource or book that i can find out more on IMPLEMENTING LCDS MESSAGING AND DATA MANAGEMENT ? in the exam guide it also mentions creating connecting to a local database. what does that mean? does it mean SQL database or oracle?-- SQL as --- On Sun, 6/28/09, ew6014 ew6...@yahoo.com wrote: From: ew6014 ew6...@yahoo.com Subject: [flexcoders] Flex 3 Exam Cert Question To: flexcoders@yahoogroups.com Date: Sunday, June 28, 2009, 1:01 PM hi guys, i have a question on the interacting data source/servers portion of flex 3 exam. can someone point me to a resource or book that i can find out more on IMPLEMENTING LCDS MESSAGING AND DATA MANAGEMENT ? in the exam guide it also mentions creating connecting to a local database. what does that mean? does it mean SQL database or oracle? appreciate the help
Re: [flexcoders] Re: Is there a good log application?
That doesn't help unfortunately. I requires either Firebug or using the flashlog.txt which has been the problem in the first place Try SOS MAX from Powerflasher: http://solutions.powerflasher.com/products/sosmax/ It's a free/closed source product. It works over a socket connection and can be used on every OS where you can install a Java Runtime. Nice thing is that it allows you to colorize the different log levels. Jens Halm www.spicefactory.org
[flexcoders] Re: Is there a good log application?
or de monsterdebugger? http://www.monsterdebugger.com k. --- In flexcoders@yahoogroups.com, Jens Halm ml...@... wrote: That doesn't help unfortunately. I requires either Firebug or using the flashlog.txt which has been the problem in the first place Try SOS MAX from Powerflasher: http://solutions.powerflasher.com/products/sosmax/ It's a free/closed source product. It works over a socket connection and can be used on every OS where you can install a Java Runtime. Nice thing is that it allows you to colorize the different log levels. Jens Halm www.spicefactory.org
[flexcoders] Re: dynamic dimension of the page
You have to add a constraintcolumns and/or constraintrows block and then identify individual constraint column and/or rows (give them an id). You can then tie elements to those constraints but you're still using top, left, bottom, etc. and then the number of pixels away separated by a colon, it's just that you're not limited to the parent containers borders. Here's a link to an Adobe article on how to use them: http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Enhanced_Constraints Dana --- In flexcoders@yahoogroups.com, anitha2324 anitha2...@... wrote: Thanks alot for the reply , but how i can avoid using (left,top,bottom) , what are the advance constraint? --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Try to avoid using left, right, top,bottom. You can use advanced constraints if you need to, but try using %width/%height only first Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anitha2324 Sent: Saturday, June 27, 2009 12:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamic dimension of the page Hi All, I am making a flex web page the following is some part of this page mx:VBox id=boxPersonalImages verticalGap=0 height=80% width=60% left=10 bottom=160 horizontalAlign=left containers:CoverFlowContainer id=SildeOfImges width=100% height=100% horizontalGap=60 borderStyle=none segments=6 reflectionEnabled=false /containers:CoverFlowContainer /mx:VBox mx:Image id=AdsImagesComponent width=25% height=25% right=10 top=150/ mx:VBox width=100% height=20% id=hMsg backgroundColor=#FF horizontalCenter=10 bottom=150 mx:TextArea id=customerMessageTextAreaComponent width=100% height=100% fontSize=36 textAlign=center fontFamily=Times New Roman wordWrap=true editable=false borderStyle=none/ /mx:VBox mx:VBox height=10% width=50% id=hLog2 left=30 bottom=25 mx:Label id=shortCodeLabelComponent width=100% height=10% fontSize=50 color=#00/ /mx:VBox mx:VBox height=10% width=35% id=hLog left=2% bottom=25 mx:Image id=operatorLogoImageComponent width=110 height=75/ /mx:VBox , actually i have completed the page and i have run it on my stystem and it works fine , but when i run in another pc the page did not display correctly and some part of this plage has not been displayed because the resolution of this screen is different from the resolution of my screen , so how i do fix this issue so that my page can be displayed correctly regardless of the screen resolution , I have tried to use the % like height=34% but not all the properties are accepting the % (such top , right) any one can help to solve this issue
[flexcoders] Time Difference between two columns in DataGrid using itemrenderer
I have two columns in a datadrid, startTime (e.g. 04:30 PM) and endTime (e.g. 06:00 PM). Both are strings and varchar in the database. I want to add a column to the datagrid that displays the difference between these two times expressed in hours (e.g. 1.5 Hours). I'm trying to use an itemrenderer to do this calculation, but I've yet to be successful. Having trouble converting the strings to date, then calculate the hours. Can anyone help? Thanks, Don
[flexcoders] loading remote images
I am trying (without success) to load remote images into a Flex app. I am sure I am not doing something obvious. The application loads the images fine when loading locally and testing. 'assets/img/celumbra/AirParticles430x287.jpg' I have a crossdomain.xml file in the remote root directory. http://www.celumbra.com/crossdomain.xml If I load an image's remote url in a browser window, it loads into the browser window. http://www.celumbra.com/assets/img/celumbra/AirParticles430x287.jpg But from within the Flex app, loading locally and in its published domain, the images fail to load. I am not sure what I am missing. Any help would be appreciated.
[flexcoders] Re: Time Difference between two columns in DataGrid using itemrenderer
Hi Don, The itemRenderer's data Object contains BOTH fields for that row in the dataProvider. You can start by trying to pass the date strings into a DataFormatter and cast as Date, or try DateField.stringToDate(). If the format of the date string isn't compatible, and you can't change what the server sends, you might have to parse the string manually and create a Date object from scratch. Once you have the two date strings converted to Dates, you're ready to compare them. There are a few utilities that you'll be able to find through a search, that work with comparing dates. I found this very quickly (looks like it rounds to full days though): private function calcuateDays( start:Date, end:Date ) :int { var daysInMilliseconds:int = 1000*60*60*24; return ( (end.time - start.time) / daysInMilliseconds ); } You'd probably want to use a Number instead of int, and round the number as desired. And, probably search anyway. -TH --- In flexcoders@yahoogroups.com, Don Kerr fusionp...@... wrote: I have two columns in a datadrid, startTime (e.g. 04:30 PM) and endTime (e.g. 06:00 PM). Both are strings and varchar in the database. I want to add a column to the datagrid that displays the difference between these two times expressed in hours (e.g. 1.5 Hours). I'm trying to use an itemrenderer to do this calculation, but I've yet to be successful. Having trouble converting the strings to date, then calculate the hours. Can anyone help? Thanks, Don
[flexcoders] How to use embed metadata in css in flex4
I try to use a bitmap be the background of the titlewindow conponent in flex4 ? I write this, but it doesn't work. It still show the default spark style. fx:style @namespace s library://ns.adobe.com/flex/spark; @namespace mx library://ns.adobe.com/flex/halo; mx|TitleWindow { background-image: Embed(assets/background/titlewindow.png); font-size: 24; } /fx:style mx:TitleWindow id=btnClickWindow showCloseButton=true styleName=firstrate width=200 height=300 title=title s:Button label=Button/ /mx:TitleWindow