Re: [flexcoders] Re: Can no longer quit my AIR app
On 2 Jul 2008, at 15:32, Daniel Gold wrote: I'm looking for potential culprits so I can file a well documented bug report. Are you using ApplicationUpdaterUI ? There's a thread here might be worth a read... http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=670threadid=1373568#5004519 Do let us know if the fix suggester there be Raul HUDEA helps rgds -- Paul Evans http://www.creative-cognition.co.uk/ http://blog.creacog.co.uk/
Re: [flexcoders] Re: Can no longer quit my AIR app
Thanks for pointing me to that thread. I never suspected the updater but I did upgrade to AIR 1.1 and implemented the updater in the app in the same day. As stated above I'm currently having to use the same workaround of listening to the EXITING event and closing the open windows myself, I'll be looking for the updater patch. Thanks again. On Sat, Jul 5, 2008 at 9:46 AM, Paul Evans [EMAIL PROTECTED] wrote: On 2 Jul 2008, at 15:32, Daniel Gold wrote: I'm looking for potential culprits so I can file a well documented bug report. Are you using ApplicationUpdaterUI ? There's a thread here might be worth a read... http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=670threadid=1373568#5004519 Do let us know if the fix suggester there be Raul HUDEA helps rgds -- Paul Evans http://www.creative-cognition.co.uk/ http://blog.creacog.co.uk/
Re: [flexcoders] Problem with selectedIndex on dynamically populated combobox (Cairngorm)
Small update, Looking at it further I've found how to get selectedItem set correctly using the following code: private function onPageMenuChange():void { this.recordSetVO.requestVO.cursorOffset = this.recordSetVO.requestVO.pageSize * this.pageMenu_cb.selectedIndex; this.raiseRequestEvent(); // fetch next page of data } private function onPageMenuValueCommit():void { pageMenu_cb.selectedIndex = this.recordSetVO.currentPage - 1; } mx:ComboBox width=57 id=pageMenu_cb dataProvider={getPageMenuOptions(this.recordSetVO)} change=onPageMenuChange() valueCommit=onPageMenuValueCommit() enabled={getPageMenuEnabled(this.recordSetVO)} / However, my change handler no longer has any effect. It doesn't seem to ever get called. Previously I could use my combobox to jump to a specific page of results from the server, but after putting in the valueCommit code nothing happens. : ( Has anyone experienced problems with using both valueCommit and change event handlers with a ComboBox. I can get either one working but not both. thanks Stephen
[flexcoders] UIComponenet errorString Question
setting the someComponent.errorString = ; also makes the border turn black and solid. It loses it's inset style, even when the css reads: TextInput {borderStyle:inset} can one tell me how to resolve this problem. i want my TextInput to its original state to black border around it thanks in advance
[flexcoders] Re: override updateDisplayList
Yes, I would prefer doing that, but not sure how. I use this to change row color: color = 0xFF; super.drawRowBackground(s,rowIndex,y,height,color,dataIndex); So, how can I blend the color? --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: Not sure I understand. Clear() as a function of what? And how do I tell it what's to clear? Sorry, if I am missing something obvious. The graphics object. Essentially, that would remove the whole row indicator. Have you ever considered just changing the blend mode on the object that is being drawn more recently?
[flexcoders] cant reference datefield or alert it within another tab ?
in my code i cant seem to clear or even alert the datefield its called id=test and I get errors if i try to reference it or attempt to alert it in any way, yet if i move the datefield to the same tab it works? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script source=virtualfitness.as/ mx:HTTPService id=http_search result=default_result(event) url=/admin_dev.php/admin/searchuserinfo method=POST mx:request xmlns= username {search_username.text} /username email {search_email.text} /email userid {search_userid.text} /userid /mx:request /mx:HTTPService mx:HTTPService id=http_usergridclick result=default_result(event) url=/admin_dev.php/admin/detailuserinfo method=POST mx:request xmlns= user_id {usersearch_grid.selectedItem.USER_ID} /user_id workoutdate {test.text} /workoutdate navigation {navigation.text} /navigation /mx:request /mx:HTTPService mx:HTTPService id=http_nextday url=/admin_dev.php/admin/detailuserinfo method=POST showBusyCursor=true mx:request xmlns= workoutdate {test.text} /workoutdate /mx:request /mx:HTTPService mx:TabNavigator x=10 y=45 width=1059 height=625 id=tabnav mx:Canvas label=User Search width=100% height=100% click=disableothertabs(); mx:DataGrid x=10 y=155 width=1037 height=427 itemClick=Alert.show(test.text); userdetailclick(event); dataProvider={http_search.lastResult.RESULTS} id=usersearch_grid mx:columns mx:DataGridColumn headerText=User ID dataField=USER_ID/ mx:DataGridColumn headerText=Email Address dataField=EMAIL/ mx:DataGridColumn headerText=User Username dataField=USER_USERNAME/ mx:DataGridColumn headerText=Full Name dataField=FULLNAME/ mx:DataGridColumn headerText=Level dataField=LEVEL/ mx:DataGridColumn headerText= dataField=/ /mx:columns /mx:DataGrid mx:Button x=249 y=103 label=Search click=http_search.send();/ mx:TextInput x=99 y=27 width=132 id=search_username/ mx:TextInput x=99 y=51 width=132 id=search_userid/ mx:TextInput x=99 y=79 width=132 id=search_email/ mx:Label x=19 y=81 text=Email width=84/ mx:Label x=19 y=27 text=Username width=72/ mx:Label x=19 y=53 text=User ID width=84/ /mx:Canvas mx:Canvas label=User Detail width=100% height=100% id=userdetailtab mx:Label x=38 y=107 text=Signup Date width=74/ mx:TextInput x=151 y=103 id=signupdate enabled=false width=269 mx:text{http_usergridclick.lastResult.RESULTS.SIGNUPDATE}/mx:text /mx:TextInput mx:Label x=38 y=79 text=Email width=74/ mx:TextInput x=151 y=75 id=email text={http_usergridclick.lastResult.RESULTS.EMAIL}/ mx:TextInput x=151 y=163 id=level text={http_usergridclick.lastResult.RESULTS.LEVEL} width=269/ mx:Label x=38 y=23 text=User ID width=74/ mx:TextInput x=151 y=19 editable=false id=user_id text={http_usergridclick.lastResult.RESULTS.USER_ID} width=269/ mx:Label x=38 y=51 text=Username width=74/ mx:TextInput x=151 y=47 id=username width=269 mx:text{http_usergridclick.lastResult.RESULTS.USER_USERNAME}/mx:text /mx:TextInput mx:TextInput x=151 y=133 editable=false enabled=false text={http_usergridclick.lastResult.RESULTS.LASTDATE} width=269/ mx:Label x=38 y=137 text=Last Set Schedule width=116/ mx:Label x=38 y=165 text=Level width=105/ mx:Button x=355 y=193 label=Update/ /mx:Canvas mx:Canvas label=User Schedule width=100% height=100% id=userscheduletab mx:TabNavigator x=10 y=19 width=1006 height=563 mx:Canvas label=Resistence width=100% height=100% mx:DataGrid x=10 y=62 width=942 height=227 editable=true id=exercise_grid dataProvider={http_usergridclick.lastResult.RESULTS.EXERCISEGRID} mx:columns mx:DataGridColumn headerText=Exercise Name dataField=EXERCISENAME editable=false/ mx:DataGridColumn headerText=Graphic dataField=EXGRAPHIC/ mx:DataGridColumn headerText=Sets dataField=SETS/ mx:DataGridColumn headerText=Reps dataField=REPS/ mx:DataGridColumn headerText=Weights dataField=WEIGHTS/ mx:DataGridColumn headerText=Circuit dataField=CIRCUIT/ /mx:columns
[flexcoders] Embedded Fonts in Flex 3
Hey, I was trying to embed my font in css file and got an error msg... exception during transcoding: Font for alias myFontwith plain weight and style was not found at:. @font-face { src:url(/fonts/fonts.TTF); fontFamily: myFont; } However, there was no any problem for other fonts in the same directory. Do you know how to address this? Thanks
[flexcoders] Trick button into rendering mouseover/mouseout states
What's the best way to create a border-less button? I'm trying to pull it off with flexlib's enhanced button skin but it appears to be ignoring the font-family I set. Basically I just want a button that has text and an icon and these will change color on mouseover. No border/backgrounds should ever be visible. http://dl.getdropbox.com/u/15760/replay.png
[flexcoders] Re: Trick button into rendering mouseover/mouseout states
I hacked this up by creating a small png that's entirely alpha. Much cleaner than all the CSS required to make an enhanced button skin look plain. It looks great, but are there are any better ways to do this? Thanks On Sat, Jul 5, 2008 at 7:19 PM, Dennis Falling [EMAIL PROTECTED] wrote: What's the best way to create a border-less button? I'm trying to pull it off with flexlib's enhanced button skin but it appears to be ignoring the font-family I set. Basically I just want a button that has text and an icon and these will change color on mouseover. No border/backgrounds should ever be visible. http://dl.getdropbox.com/u/15760/replay.png
RE: [flexcoders] Embedded Fonts in Flex 3
Make sure the file is there and is a plain weight font From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Saturday, July 05, 2008 4:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedded Fonts in Flex 3 Hey, I was trying to embed my font in css file and got an error msg... exception during transcoding: Font for alias myFontwith plain weight and style was not found at:. @font-face { src:url(/fonts/fonts.TTF); fontFamily: myFont; } However, there was no any problem for other fonts in the same directory. Do you know how to address this? Thanks
RE: [flexcoders] cant reference datefield or alert it within another tab ?
Read up on creationPolicy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason B Sent: Saturday, July 05, 2008 12:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] cant reference datefield or alert it within another tab ? in my code i cant seem to clear or even alert the datefield its called id=test and I get errors if i try to reference it or attempt to alert it in any way, yet if i move the datefield to the same tab it works? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script source=virtualfitness.as/ mx:HTTPService id=http_search result=default_result(event) url=/admin_dev.php/admin/searchuserinfo method=POST mx:request xmlns= username {search_username.text} /username email {search_email.text} /email userid {search_userid.text} /userid /mx:request /mx:HTTPService mx:HTTPService id=http_usergridclick result=default_result(event) url=/admin_dev.php/admin/detailuserinfo method=POST mx:request xmlns= user_id {usersearch_grid.selectedItem.USER_ID} /user_id workoutdate {test.text} /workoutdate navigation {navigation.text} /navigation /mx:request /mx:HTTPService mx:HTTPService id=http_nextday url=/admin_dev.php/admin/detailuserinfo method=POST showBusyCursor=true mx:request xmlns= workoutdate {test.text} /workoutdate /mx:request /mx:HTTPService mx:TabNavigator x=10 y=45 width=1059 height=625 id=tabnav mx:Canvas label=User Search width=100% height=100% click=disableothertabs(); mx:DataGrid x=10 y=155 width=1037 height=427 itemClick=Alert.show(test.text); userdetailclick(event); dataProvider={http_search.lastResult.RESULTS} id=usersearch_grid mx:columns mx:DataGridColumn headerText=User ID dataField=USER_ID/ mx:DataGridColumn headerText=Email Address dataField=EMAIL/ mx:DataGridColumn headerText=User Username dataField=USER_USERNAME/ mx:DataGridColumn headerText=Full Name dataField=FULLNAME/ mx:DataGridColumn headerText=Level dataField=LEVEL/ mx:DataGridColumn headerText= dataField=/ /mx:columns /mx:DataGrid mx:Button x=249 y=103 label=Search click=http_search.send();/ mx:TextInput x=99 y=27 width=132 id=search_username/ mx:TextInput x=99 y=51 width=132 id=search_userid/ mx:TextInput x=99 y=79 width=132 id=search_email/ mx:Label x=19 y=81 text=Email width=84/ mx:Label x=19 y=27 text=Username width=72/ mx:Label x=19 y=53 text=User ID width=84/ /mx:Canvas mx:Canvas label=User Detail width=100% height=100% id=userdetailtab mx:Label x=38 y=107 text=Signup Date width=74/ mx:TextInput x=151 y=103 id=signupdate enabled=false width=269 mx:text{http_usergridclick.lastResult.RESULTS.SIGNUPDATE}/mx:text /mx:TextInput mx:Label x=38 y=79 text=Email width=74/ mx:TextInput x=151 y=75 id=email text={http_usergridclick.lastResult.RESULTS.EMAIL}/ mx:TextInput x=151 y=163 id=level text={http_usergridclick.lastResult.RESULTS.LEVEL} width=269/ mx:Label x=38 y=23 text=User ID width=74/ mx:TextInput x=151 y=19 editable=false id=user_id text={http_usergridclick.lastResult.RESULTS.USER_ID} width=269/ mx:Label x=38 y=51 text=Username width=74/ mx:TextInput x=151 y=47 id=username width=269 mx:text{http_usergridclick.lastResult.RESULTS.USER_USERNAME}/mx:text /mx:TextInput mx:TextInput x=151 y=133 editable=false enabled=false text={http_usergridclick.lastResult.RESULTS.LASTDATE} width=269/ mx:Label x=38 y=137 text=Last Set Schedule width=116/ mx:Label x=38 y=165 text=Level width=105/ mx:Button x=355 y=193 label=Update/ /mx:Canvas mx:Canvas label=User Schedule width=100% height=100% id=userscheduletab mx:TabNavigator x=10 y=19 width=1006 height=563 mx:Canvas label=Resistence width=100% height=100% mx:DataGrid x=10 y=62 width=942 height=227 editable=true id=exercise_grid dataProvider={http_usergridclick.lastResult.RESULTS.EXERCISEGRID} mx:columns mx:DataGridColumn headerText=Exercise Name dataField=EXERCISENAME editable=false/ mx:DataGridColumn headerText=Graphic dataField=EXGRAPHIC/ mx:DataGridColumn headerText=Sets dataField=SETS/ mx:DataGridColumn headerText=Reps dataField=REPS/ mx:DataGridColumn headerText=Weights dataField=WEIGHTS/ mx:DataGridColumn headerText=Circuit dataField=CIRCUIT/ /mx:columns /mx:DataGrid mx:Button x=450 y=32 label=Next Day click=navigation.text='next'; http_usergridclick.send(); height=22/ mx:Button x=195 y=32 label=Previous Day/ mx:Button x=833 y=297 label=Remove Row/ mx:Button x=316 y=297 label=Clone Date to Date width=142/ mx:Panel x=39 y=341 width=698 height=113 layout=absolute title=Add Exercise to Grid mx:Button x=570 y=36 label=Add Row/ mx:Label x=10 y=10 width=76 text=Graphic/ mx:ComboBox x=10 y=36 id=add_exgraphic/mx:ComboBox mx:Label x=199 y=10 text=Sets width=53 textAlign=center/ mx:Label x=282 y=10 text=Reps width=53 textAlign=center/ mx:Label x=360 y=10 text=Weights width=53 textAlign=center/ mx:Label x=450 y=10 text=Circuit width=53 textAlign=center/ mx:TextInput x=199 y=36 width=53 id=add_sets/ mx:TextInput x=282 y=36
RE: [flexcoders] UIComponenet errorString Question
Try setting the errorString much later, like after it has been created and rendered once From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, July 05, 2008 9:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] UIComponenet errorString Question setting the someComponent.errorString = ; also makes the border turn black and solid. It loses it's inset style, even when the css reads: TextInput {borderStyle:inset} can one tell me how to resolve this problem. i want my TextInput to its original state to black border around it thanks in advance
RE: [flexcoders] Default size in custom UIComponents
Parents size their children in Flex. We recommend using setActualSize(button.getExplicitOrMeasuredWidth(), button.getExplicitOrMeasuredHeight()) instead of setting width/height because it doesn't lock in the size of your children's measurements. There was a posting on this earlier this week. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sean Clark Hess Sent: Friday, July 04, 2008 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Default size in custom UIComponents I don't have a lot of experience making custom UI Components, but there is one thing I've noticed several times that doesn't make any sense. When you add new subcomponents by overriding createChildren, they don't seem to show up at all unless you explicitly set the width and height. For example... var button:Button = new Button(); button.width = 20; // if you don't set these, it doesn't show up button.height = 20; addChild(button); It seems like a lot of the time you would want the button to be just as big as it's going to be, without setting it's width and height. I'm sure there's a way to do this. What am I missing? Please note that I most recently noticed this on a button that was skinned. ~sean
RE: [flexcoders] Re: How to access properties of symbols in loaded SWF?
Not only do you need to use CS3, but you have to publish for player9 using Actionscript3 When you've done that, then when you load the SWF, after the complete event, swfLoader.content will be the root of the movie. If you had some script in the movie that did myButton.scaleX = 10, you would just write swfLoader.content.myButton.scaleX = 10; Note that if you have stuff showing up and going away using the timeline, you need to know what frame you are on otherwise you'll get null reference errors if the object isn't around at the moment you access it. Swfloader.content is a MovieClip (if it isn't your publish settings are off) and its currentFrame will tell you where the main timeline of that SWF is. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of daddyo_buckeye Sent: Friday, July 04, 2008 5:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to access properties of symbols in loaded SWF? Alex, I can't find any concrete examples on the 'net of users getting at symbols and changing attributes of those symbols using SWFLoader.content. Seems like most are using it to simply check if the content is loaded. Any further, more specific tips, are greatly appreciated. BTW, everything is created in CS3(Illustrator Flash). Sherm --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: If the SWF is published for player 9, then you can get to it via swfLoader.content (or image.content). If it is published for an earlier player, then you'd need an intermediate SWF that uses localConnection to communicate between the main SWF and your SWF. You can check out third party solutions