RE: [flexcoders] Re: Using RSLs in an actionscript only project
File a bug. We really should use frame2, not last frame. I think you'll probably have to go with 2 SWFs, one to load the RSL and be the main app, and everything thing else in a second SWF that can have chained frames. 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 joshonemail Sent: Monday, September 14, 2009 5:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using RSLs in an actionscript only project I moved all references to the textLayout Framework (TLF) to the last frame, and now it compiles without the TLF files included. I seem to successfully download the RSL swz from Adobe. Some success! Now I am faced with two questions: 1) I daisy chain frames using the [Frame] metatag - the document class is the class loaded on the first frame. I want the main application class to be the class on the second frame, because I want it to have immediate access to stage etc. I can work around this - but how can I do it properly? I looked at the Flex code a bit - it uses SystemManager and has some references to the Application class. What is the minimum that I would need to do to make the second frame the main application class? 2) In order to exclude the swc from the compiler I had to refer to the classes on the last frame and not before (is this right - it seems to be the case and Darrell stated this). I like the streaming frame based structure for continuing to download assets and classes as opposed to making further http requests. Is it possible to use a different method to append more frames to the main timeline? Thanks again, Josh
[flexcoders] Logging API
Am I missing something or as much as I can write a class that implements ILogger there is no way to actually use it? I can't see anyway to specify the ILogger to be used and Log just uses LogLogger by default, as per usual all the variables are private in Log so can't be accessed, the class is static so cant be overriden, so the only option seems to be to clone the Log class and then just not use Log anywhere in our apps?? Also once logging a category there is no way to stop short of calling flush and dumping everything?
[flexcoders] Re: HTML in text control
Hi, thank you for your response. I am quite new to flex, so I am not sure what you mean by inspecting. But I have put on a trace function activated from Button and even if the text-contol do not render the html code in text mode, the trace function show the string from the database correct. Here are the code for the flex component: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; bottom=20 right=20 left=20 top=95 styleName=ViewStack cornerRadius=6 creationComplete=init(); width=100% height=100% mx:Script ![CDATA[ import jansInternal.ObjectProxyToAC; import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.rpc.events.ResultEvent; private var dreamData:ArrayCollection; private var dreamDataX:ArrayCollection; [Bindable] private var FinalText:String; private var jjACProxy:ObjectProxyToAC = new ObjectProxyToAC; private function init():void { ro_1.getData_1(1,1); // starts remote object ro_1 } private function getDreamData(e:ResultEvent):void { dreamData = e.result as ArrayCollection; // Returdata fra Dream.cfc dreamDataX = jjACProxy.resultHandler(dreamData);// jjACProxy puts ArrayCollection in OblectProxy FinalText = dreamDataX.getItemAt(0).sidetekst_1;//stores arraycollection } ]] /mx:Script !-- Remote object for å jobbe med tabellen TheSpaceOfLight -- mx:RemoteObject id=ro_1 destination=ColdFusion showBusyCursor=true source=FLEX_CC.TheSpaceOfLight.src.assets.cfc.Dream mx:method name=getData_1 result=getDreamData(event) / /mx:RemoteObject mx:Panel width=699 layout=horizontal right=20 bottom=20 top=20 mx:Text id=dreamText width=100% height=100% htmlText={FinalText} /mx:Text /mx:Panel mx:Button x=104 y=597 label=Button click=trace(dreamText.htmlText)/ /mx:Canvas PS: I use the same prinsiple in my first application that update tde tatabase. So when i load data from the database to the RichTextEditor via the htmlText propery, it works fine. The only difference is that the the data from the database is first received as a dataprovider for a dataGrid ann then sent to the RTE by selecting the datagrid. Tnaks again. Jan Johannessen Norway --- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: When you inspect dreamText.htmlText and dreamText.text, are they what you expect or are they empty Strings? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of janjohannes...@... Sent: Monday, September 14, 2009 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTML in text control I have made two applications: 1. Stores text in a MySQL database. I use RichTextEditor to make the text, and then stores the text in the database vith all the HTML tags. 2. The other application is a private homepage that loads the text from the database. I use mx:text controls to display the text. When I bind the receiving input variable from the database to the text control using the text-property, the text control fills up nicely... but with html-coded text. When I bind the input variable from the database to the Text control using the htmlText-property, the text control is empty... or no visable text. I have tried using both mx-tags and actionscript, but with the same result. Have anybody a clue how to resolve this issue? Here are my text control: mx:Text id=dreamText width=100% height=100% htmlText={FinalText} /mx:Text Thanks
[flexcoders] Very odd null object RTE on FocusManager
Hi all, I am getting this error, randomly when I start my application (and it's sub applications). As you can see the stack trace is rather useless, although through the debugger I can see the parent of container (second in the stack) is an MXML class that has a repeater that repeats another component. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::FocusManager/getFocus()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\FocusManager.as:542] at mx.core::Container/createOrDestroyScrollbars()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:4571] at mx.core::Container/createScrollbarsIfNeeded()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:4402] at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:4218] at mx.core::Container/validateDisplayList()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:2734] at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:8733] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:8673] Therefore I guess the component with the problem is that repeated component, although I am unsure what I can change to stop this from happening. If anyone can give me some insight to the FocusManager or the getFocus() function it would be really handy. http://stackoverflow.com/questions/1423896/very-odd-null-object-rte-on-focusmanager
[flexcoders] Re: HTML in text control
I forgot to mention that the string that comes from the MySQL database is like this: TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Verdana SIZE=10 COLOR=#CC LETTERSPACING=0 KERNING=0This is a test string/FONT/P/TEXTFORMATTEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Verdana SIZE=12 COLOR=#404040 LETTERSPACING=0 KERNING=0/FONT/P/TEXTFORMAT --- In flexcoders@yahoogroups.com, janjohannes...@... d...@... wrote: Hi, thank you for your response. I am quite new to flex, so I am not sure what you mean by inspecting. But I have put on a trace function activated from Button and even if the text-contol do not render the html code in text mode, the trace function show the string from the database correct. Here are the code for the flex component: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; bottom=20 right=20 left=20 top=95 styleName=ViewStack cornerRadius=6 creationComplete=init(); width=100% height=100% mx:Script ![CDATA[ import jansInternal.ObjectProxyToAC; import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.rpc.events.ResultEvent; private var dreamData:ArrayCollection; private var dreamDataX:ArrayCollection; [Bindable] private var FinalText:String; private var jjACProxy:ObjectProxyToAC = new ObjectProxyToAC; private function init():void { ro_1.getData_1(1,1); // starts remote object ro_1 } private function getDreamData(e:ResultEvent):void { dreamData = e.result as ArrayCollection; // Returdata fra Dream.cfc dreamDataX = jjACProxy.resultHandler(dreamData);// jjACProxy puts ArrayCollection in OblectProxy FinalText = dreamDataX.getItemAt(0).sidetekst_1;//stores arraycollection } ]] /mx:Script !-- Remote object for å jobbe med tabellen TheSpaceOfLight -- mx:RemoteObject id=ro_1 destination=ColdFusion showBusyCursor=true source=FLEX_CC.TheSpaceOfLight.src.assets.cfc.Dream mx:method name=getData_1 result=getDreamData(event) / /mx:RemoteObject mx:Panel width=699 layout=horizontal right=20 bottom=20 top=20 mx:Text id=dreamText width=100% height=100% htmlText={FinalText} /mx:Text /mx:Panel mx:Button x=104 y=597 label=Button click=trace(dreamText.htmlText)/ /mx:Canvas PS: I use the same prinsiple in my first application that update tde tatabase. So when i load data from the database to the RichTextEditor via the htmlText propery, it works fine. The only difference is that the the data from the database is first received as a dataprovider for a dataGrid ann then sent to the RTE by selecting the datagrid. Tnaks again. Jan Johannessen Norway --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote: When you inspect dreamText.htmlText and dreamText.text, are they what you expect or are they empty Strings? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of janjohannessen@ Sent: Monday, September 14, 2009 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTML in text control I have made two applications: 1. Stores text in a MySQL database. I use RichTextEditor to make the text, and then stores the text in the database vith all the HTML tags. 2. The other application is a private homepage that loads the text from the database. I use mx:text controls to display the text. When I bind the receiving input variable from the database to the text control using the text-property, the text control fills up nicely... but with html-coded text. When I bind the input variable from the database to the Text control using the htmlText-property, the text control is empty... or no visable text. I have tried using both mx-tags and actionscript, but with the same result. Have anybody a clue how to resolve this
[flexcoders] Popup Window
I have noticed a problem with pop up windows being too large for the browser on netbooks thereby hiding the close button and title bar to allow dragging. Any easy suggestions for fixing?
[flexcoders] Re: Color of MenuBar text
http://www.neatfilm.com/2009/01/19/menubar-skinning/ should give you a good starting point. --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: How can you change the color of the text of the very top level of the MenuBar, but leave the submenus another color? Here is my code: mx:MenuBar width=100% x=0 y=0 fillAlphas=[1.0, 1.0] fillColors=[#0C3E82, #0C3E82] labelField=@label itemClick=menuClickHandler(event) fontWeight=bold mx:XMLList menuitem label=File menuitem label=Open/ menuitem label=Import/ menuitem label=Load / menuitem label=Save/ /menuitem menuitem label=Help menuitem label=FAQ / menuitem label=Videos menuitem label=Sync Databases / /menuitem /mx:XMLList /mx:MenuBar I want the top level (File and Help) to be yellow, but the submenu to be black. Thanks
[flexcoders] Re: Custom Menu class with a Mask
While looking for something else, I stumbled across this: http://www.neatfilm.com/2009/01/19/menubar-skinning/ Hopefully, that should get you on your way. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: What you are trying to do is not just a simple change to a few items. This is a fairly major undertaking. You will have to extend the PopUpButton class. This class does not have a getMenuAt method to override so you will have to figure out a way to encapsulate the functionality you need. Also, PopUpButton does not have a menuShow event. You would need to listen for a DropdownEvent. --- In flexcoders@yahoogroups.com, thinkblue146 thinkblue146@ wrote: Hello, I'm trying to create a menu that has rounded corners similar to the following example: http://blog.flexmonkeypatches.com/2007/10/08/flex-rounded-menues-using-m\ asking/comment-page-1/ ../../../Hello,%20%20I%20trying%20to%20create%20a%20menu%20that%20has%2\ 0rounded%20corners%20similar%20to%20the%20following%20example:%20%20http\ ://blog.flexmonkeypatches.com/2007/10/08/flex-rounded-menues-using-maski\ ng/comment-page-1/ The only difference is that I'm showing the Menu with a PopUpButton. So far this is what I have for my custom Menu: package { import flash.display.Sprite; import mx.controls.Menu; import mx.events.MenuEvent; public class MyMenu extends Menu { public function MyMenu() { super(); addEventListener(menuShow, onMenuShow); } private function onMenuShow(e:MenuEvent):void { callLater(maskRoundedCorners,[e]); } private function maskRoundedCorners(e:MenuEvent):void { var menu:Menu = e.menu as Menu; menu.cacheAsBitmap=false; if (!menu.mask){ var maskx:uint = menu.x; var masky:uint = menu.y; var maskw:uint = menu.getExplicitOrMeasuredWidth(); var maskh:uint = menu.getExplicitOrMeasuredHeight(); var rad:int = menu.getStyle(cornerRadius) * 2; var roundRect:Sprite = new Sprite(); roundRect.graphics.beginFill(0xFF); roundRect.graphics.drawRoundRect(maskx,masky,maskw,maskh,rad); roundRect.graphics.endFill(); menu.mask = roundRect; } } } } Can anyone help me out with what I'm missing...I'm not sure if i need to override any of the Menu classes functions. When I load my example the: addEventListener(menuShow, onMenuShow); gets fire but when i click the PopUpButton to show the menu the onMenuShow function is not being fired and the regular menu is being display with out the rounded corners. Any help on this is appreciated. Thank you, Blue
Re: [flexcoders] Logging API
You can add your own logger with Log.addTarget(yourLoggerInstance) or simply define it in MXML like here: http://soenkerohde.com/2008/08/sos-logging-target/ On 15.09.2009, at 10:44, reflexactions wrote: Am I missing something or as much as I can write a class that implements ILogger there is no way to actually use it? I can't see anyway to specify the ILogger to be used and Log just uses LogLogger by default, as per usual all the variables are private in Log so can't be accessed, the class is static so cant be overriden, so the only option seems to be to clone the Log class and then just not use Log anywhere in our apps?? Also once logging a category there is no way to stop short of calling flush and dumping everything?
[flexcoders] Autocomplete Combobox
Hi, Is there any component for AutoComplete Combobox for dataprovider ICollectionView is availlable? See the Web#39;s breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/
Re: [flexcoders] Popup Window
Hi, You can use Application.application.width Application.application.height to set the width and height so that toolbar will be visible to click close button. Regards, Abhijit On Tue, Sep 15, 2009 at 5:41 PM, smyrin smy...@yahoo.com wrote: I have noticed a problem with pop up windows being too large for the browser on netbooks thereby hiding the close button and title bar to allow dragging. Any easy suggestions for fixing? -- I may be miles away... but I am just a mail away so keep mailing... Cheers, Abhijit
[flexcoders] Filter Function In AutoComplete
Hi, Filter function is not working for AutoComplete component...Any one have idea about it? Connect more, do more and share more with Yahoo! India Mail. Learn more. http://in.overview.mail.yahoo.com/
[flexcoders] Autocomplete Combobox
Hi, Is there any component for AutoComplete Combobox for dataprovider ICollectionView is availlable? Love Cricket? Check out live scores, photos, video highlights and more. Click here. Try the new Yahoo! India Homepage. Click here. http://in.yahoo.com/trynew
[flexcoders] Re: Logging API
Oh Really ?? I thought that was just for adding an ILoggingTarget not an ILogger. I am very sceptical of how that could work but I will give it a try. --- In flexcoders@yahoogroups.com, Sönke Rohde soenke.ro...@... wrote: You can add your own logger with Log.addTarget(yourLoggerInstance) or simply define it in MXML like here: http://soenkerohde.com/2008/08/sos-logging-target/ On 15.09.2009, at 10:44, reflexactions wrote: Am I missing something or as much as I can write a class that implements ILogger there is no way to actually use it? I can't see anyway to specify the ILogger to be used and Log just uses LogLogger by default, as per usual all the variables are private in Log so can't be accessed, the class is static so cant be overriden, so the only option seems to be to clone the Log class and then just not use Log anywhere in our apps?? Also once logging a category there is no way to stop short of calling flush and dumping everything?
[flexcoders] Custom ItemRenderer extends UIComponent
Hello, With some advice from this forum (thank yous sooo much!) I have created my first ItemRenderer which I am using in a List in Flex 3. I have tested it with 10,000 items and it performs fantastic. I would appreciate any advice about a few questions I have. 1. Looking at my code, am I approaching this the right way? 2. When I create my List in MXML I am creating its data in the application initialize handler, and I see 8 calls to createChildren() which I guess is correct as maybe 7 visible and 1 for scrolling? But about 22 calls to data() setter why? 3. I tried to add TweenMax to my drawScoreBar method (which works) but it redraws everytime I scroll or mouse over it, I understand this will be recycling, but how should I do this? My first ItemRenderer! :) package com.amaze.uicomponentTest.components { import flash.display.Shape; import mx.controls.Image; import mx.controls.Label; import mx.controls.listClasses.IListItemRenderer; import mx.core.UIComponent; /** * Custom ItemRenderer class to demonstrate the use of UIComponent * @author Neil Brown */ public class ItemRenderer extends UIComponent implements IListItemRenderer { private static const COMPONENT_PADDING:int = 100; private static const IMAGE_SQUARE:int = 30; private static const PADDING:int = 10; protected var _data:Object; protected var nameLabel:Label; protected var scoreLabel:Label; protected var scoreBar:Shape; protected var image:Image; public function ItemRenderer() { } /** * Overridden createChildren method is called by the framework, this * is where you create your children, checks are made to see that they don't already exist * as calls to removeChild then addChild will call this again and recreate the children */ override protected function createChildren():void { super.createChildren(); trace(ItemRenderer.createChildren(): ); if (!nameLabel) { nameLabel = new Label(); addChild(nameLabel); } if (!scoreLabel) { scoreLabel = new Label(); addChild(scoreLabel); } if (!scoreBar) { scoreBar = new Shape(); addChild(scoreBar); } if (!image) { image = new Image(); addChild(image); } } /* INTERFACE mx.controls.listClasses.IListItemRenderer */ public function get data():Object { return _data; } /** * Called by the component which uses this as an ItemRenderer */ public function set data(value:Object):void { if (value != null) { _data = value; invalidateProperties(); } } /** * Called by the framework during init, also when you call invalidateProperties */ override protected function commitProperties():void { super.commitProperties(); nameLabel.text = data.name; scoreLabel.text = data.score; image.source = data.image; invalidateSize(); invalidateDisplayList(); } /** * Called by the framework during init, also when you call invalidateSize * this will be ignored if an explicit width and height are set, here is were you can let the * parent know what size you prefer to be */ override protected function measure():void { super.measure(); measuredWidth = nameLabel.getExplicitOrMeasuredWidth() + COMPONENT_PADDING; measuredHeight =
[flexcoders] Found the problem! Re: Don't understand how to use deferred instantiation
OK, I believe I have found the cause of the problem. The problem happens when I add a viewstack that is part of a container being added to a state with mx:AddChild If I set up a sample app with a tab navigator and three canvases, each tracing preinit, init, and creationComplete then I get this: Canvas 1 preinit Canvas 2 preinit Canvas 3 preinit Canvas 1 init Canvas 1 creationComplete This is as expected. If however, I use states (create a new state, add the tabnavigator to the state with AddChild, then activate the state) I get this: Canvas 1 preinit Canvas 1 init Canvas 2 preinit Canvas 2 init Canvas 3 preinit Canvas 3 init Canvas 1 creationComplete Canvas 2 creationComplete Canvas 3 creationComplete This is the problem! The application is driven by states (init, login, and runtime) and each state draws the gui by adding a vbox container with the gui inside it. ALL of my viewstack containers are getting initialized because of creationComplete firing! How do I make navigator deferred instantiation work with states?
Re: [flexcoders] Autocomplete Combobox
You should check out our AutoCompleteComboBox at http://www.flextras.com/?event=ProductHomeproductID=10 . You can register and download a free developer edition to prove the component works in the context of your application. It supports dataProviders of any type, as with most Flex Framework components that support a dataProvider. The filterFunction is exposed as an API so if you don't want to use the default filtering, you can have complete control. Additionally, if you want to use a remote data set instead of filtering after every keystroke you can do that too. yogesh patel wrote: Hi, Is there any component for AutoComplete Combobox for dataprovider ICollectionView is availlable? Love Cricket? Check out live scores, photos, video highlights and more. Click here http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] Filter Function In AutoComplete
Which AutoComplete are you using? I said on a previous thread you started, check out the Flextras AutoCompleteComboBox: http://www.flextras.com/?event=ProductHomeproductID=10 yogesh patel wrote: Hi, Filter function is not working for AutoComplete component...Any one have idea about it? Add whatever you love to the Yahoo! India homepage. Try now! http://in.rd.yahoo.com/tagline_metro_3/*http://in.yahoo.com/trynew -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Found the problem! Re: Don't understand how to use deferred instantiation
I believe this is where you need to change the creationPolicy on the component. Someone posted a link to that yesterday Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of biosmonkey Sent: Tuesday, September 15, 2009 9:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Found the problem! Re: Don't understand how to use deferred instantiation OK, I believe I have found the cause of the problem. The problem happens when I add a viewstack that is part of a container being added to a state with mx:AddChild If I set up a sample app with a tab navigator and three canvases, each tracing preinit, init, and creationComplete then I get this: Canvas 1 preinit Canvas 2 preinit Canvas 3 preinit Canvas 1 init Canvas 1 creationComplete This is as expected. If however, I use states (create a new state, add the tabnavigator to the state with AddChild, then activate the state) I get this: Canvas 1 preinit Canvas 1 init Canvas 2 preinit Canvas 2 init Canvas 3 preinit Canvas 3 init Canvas 1 creationComplete Canvas 2 creationComplete Canvas 3 creationComplete This is the problem! The application is driven by states (init, login, and runtime) and each state draws the gui by adding a vbox container with the gui inside it. ALL of my viewstack containers are getting initialized because of creationComplete firing! How do I make navigator deferred instantiation work with states? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.96/2369 - Release Date: 09/15/09 05:59:00
[flexcoders] Re-calculate height after setting includeInLayout to false
I have a VBox which contains another 12 HBoxes. Like 12 rows of data. Its all created using action script addChild() code. No MXML. Now this is all dynamically controlled. E.g. I might want to hide all rows after 4th row. Thats doable, but if I do that, the height of the VBox remains the same as it was when it had 12 rows in it. I have also set includeInLayout to false and visible to false on the HBoxes... any ideas what I am missing ?
Re: [flexcoders] Re: Logging API
Ah, ok, then I mixed it up, sorry. On 15.09.2009, at 15:39, reflexactions wrote: Oh Really ?? I thought that was just for adding an ILoggingTarget not an ILogger. I am very sceptical of how that could work but I will give it a try. --- In flexcoders@yahoogroups.com, Sönke Rohde soenke.ro...@... wrote: You can add your own logger with Log.addTarget(yourLoggerInstance) or simply define it in MXML like here: http://soenkerohde.com/2008/08/sos-logging-target/ On 15.09.2009, at 10:44, reflexactions wrote: Am I missing something or as much as I can write a class that implements ILogger there is no way to actually use it? I can't see anyway to specify the ILogger to be used and Log just uses LogLogger by default, as per usual all the variables are private in Log so can't be accessed, the class is static so cant be overriden, so the only option seems to be to clone the Log class and then just not use Log anywhere in our apps?? Also once logging a category there is no way to stop short of calling flush and dumping everything?
RE: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart
Mmmm, just taken me 3/4 hour to get though after a wait of 2 weeks odd for a reply on the support portal which asked me to ring. I've been told that AIR is a free product and outside their remit to provide support on my issue. The perfectly nice guy was unable to give me any help on where to take it from there, so I've just had to continue with the online thing. Well, I do support myself and appreciate the difficulties even for a small company, but just the same... In case any wonderful Flexcoders people have any experience of this one, I'll fling it out here - any ideas gratefully received! (for what it's worth, I think it's most likely something to do with me the SDK used for compilation (probably 3.2 but I'd need to check), but could be very wrong there) On a related point - anyone know who to speak to getting to be an AIR beta tester? I've requested it online specifically and each time I've done the AIR reditribution agreement - never heard anything. In this particular case AIR was updated pretty well right on our shipping date and I had no time to resolve it - I've I'd been testing before the release I might have caught and fixed it first. We normally release a disk every month or so, so it's an ongoing issue, however. Friday, 7 August 2009 11:53:35 o'clock BST Following the recent update to AIR runtime 1.5.2 I'm experiencing some issues with the built in app updater on windows platforms tha t I've not seen prior to this release. I'm using flash.desktop.Updater.Updater.update() directly on a downloaded .air update package. on windows Vista and windows 7, the update runs , but suffers a GUI freeze and eventually needs to be forcibly stopped via task mana ger. The new update is actually installed, but it seems that there is some difficulty after that, I'm guessing with removing temp files c reated in that process. I've attached a copy of .airappinstall.log taken after force quitting the update installer (Which had run for twenty minutes - norma ly it would be complete in one or two) on WIndows XP, everything appears to be fine, but a temp file is left in [installDirectory]\META-INF\AIR. This is also the case in vista/7, upon inspection this temp file contains our publisherID. Unfortunately, if you uninstall the application then this temp file gets left behind, meaning a subsequent install of the applicatio n is unable to install to the same directory unless you manually delete this stray temp file. Unfortunately, when I create a very basic app to demonstrate the problem everything seems to work fine - I only seem to be getting t his on our somewhat larger commercial products. Any ideas? Where do I go from here? Let me know if there is any more information I can provide that would be helpful Many thanks, regards, Jim Hayes -Original Message- From: flexcoders@yahoogroups.com on behalf of hank williams Sent: Fri 9/11/2009 7:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart I have to go out now and so cant leave the phone off hook. But 1hr 15mins with no response. I am sure it would have been many more hours. On Fri, Sep 11, 2009 at 1:28 PM, hank williams hank...@gmail.com wrote: Starting now. I dont have 3 hours again but lets see how far we get... On Fri, Sep 11, 2009 at 1:19 PM, turbo_vb timh...@aol.com wrote: US - 800-833-6687. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, hank williams hank...@... wrote: By the way, adobe admits there is a problem, so if you got that kind of response, I promise it is not normal. see: http://www.adobe.com/support/open_letter_to_adobe_customers/ On Fri, Sep 11, 2009 at 1:09 PM, hank williams hank...@... wrote: what country are you in... and if US, what number did you dial? On Fri, Sep 11, 2009 at 1:06 PM, turbo_vb timh...@... wrote: Sounds like you're not having very good luck Hank. As an interesting coincidence, I had to contact Adobe customer service today to resolve an issue. I just switched from PC to Mac and at the same time upgraded from CS3 to CS4. My issue was that the upgrade wouldn't recognize my previous product's serial number, because it was on a different platform. I went to the Adobe site, clicked the support button, selected my country and called the 800 number. They answered after 5 minutes. Pretty good compared to 3 hours. The initial rep took my info and had to transfer me to another rep to resolve my issue. The second time on hold took 7 minutes. The second rep was able to assist me ad resolve my issue. The entire call took 22 minutes; which for something like this is completely reasonable. Sorry that you didn't have the same experience. But, for me, I couldn't expect any better customer service. -TH --- In
[flexcoders] button skinning - create symbol for tweening??
I am using Flex Skin Design Extensions for CS3 to create button skin. (so far I found that this is the easiest way to create skin by using this Flash extension) My problem is when I add a tweening by adding graphics to up-over:start and up-over:end frames, the roll over effect will be broken. This happens when there are motion tweening and symbol (movieclip) in place. when there is no symbol, just shape and shape tweening, thats fine. anyone know if there are any limitations to use symbol in this situation (building skin with flash extension)? i dont think i am alone here, anyone got the same problem? thanks Joe -- View this message in context: http://www.nabble.com/button-skinning---create-symbol-for-tweening---tp25456725p25456725.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Creation Complete flag?
Is there a publicly-exposed property on components that can be inspected to determine if they have finished creation yet? I know I can listen for creationComplete, but what can I do if it may have already been fired?
[flexcoders] accessing Array created in Private function?
I created an array within a private function. I now need to access that array for an item renderer. How can I access this array? (I know it's obvious that I'm really a newbie!) thanks, Tex
[flexcoders] Re: Semi-collapsible AdvancedDataGrid
I just perused the AdvancedDataGrid class in the hopes of overriding the itemOpen and itemClose handlers but I don't see anything in there that'll help me in preventing the entire thing from collapsing. It's the same thing with HierarchicalCollectionView openNode() and closeNode() methods. I don't seem to have any access to the rowHeight or contents. Is there some kind of closed state or default rowHeight that I'm not seeing?
RE: [flexcoders] Very odd null object RTE on FocusManager
The stack trace is very useful. It contains the line number of the code so we know where to look. Please file a bug with a simplified test case. It looks like a sub-application's systemManager is not on stage. For this to happen, it would require that either something is delaying the applicationComplete event of the main app long enough for the sub-apps to get to this point in their startup, or someone is removing a SWFLoader as it is starting up its sub-app. I would try to find out how many invalidation phases it takes to get to applicationComplete. Set a breakpoint on LayoutManager.doPhasedInstantiation and on an applicationComplete handler and see how many times doPhasedInstantiation gets hit before applicationComplete. Should be a single digit number. If not, then find out why. 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 rob_mcmichael Sent: Tuesday, September 15, 2009 4:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Very odd null object RTE on FocusManager Hi all, I am getting this error, randomly when I start my application (and it's sub applications). As you can see the stack trace is rather useless, although through the debugger I can see the parent of container (second in the stack) is an MXML class that has a repeater that repeats another component. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::FocusManager/getFocus()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\FocusManager.as:542] at mx.core::Container/createOrDestroyScrollbars()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:4571] at mx.core::Container/createScrollbarsIfNeeded()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:4402] at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:4218] at mx.core::Container/validateDisplayList()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Container.as:2734] at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:8733] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:8673] Therefore I guess the component with the problem is that repeated component, although I am unsure what I can change to stop this from happening. If anyone can give me some insight to the FocusManager or the getFocus() function it would be really handy. http://stackoverflow.com/questions/1423896/very-odd-null-object-rte-on-focusmanager
RE: [flexcoders] accessing Array created in Private function?
Store the array in a bindable variable inside the class instead of in the function Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tex_learning_flex Sent: Tuesday, September 15, 2009 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] accessing Array created in Private function? I created an array within a private function. I now need to access that array for an item renderer. How can I access this array? (I know it's obvious that I'm really a newbie!) thanks, Tex No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.96/2369 - Release Date: 09/15/09 05:59:00
Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart
I'd probably try to contact Robert Christensen or Mike Chambers about the AIR beta. On Tue, Sep 15, 2009 at 10:47 AM, Jim Hayes j...@primalpictures.com wrote: Mmmm, just taken me 3/4 hour to get though after a wait of 2 weeks odd for a reply on the support portal which asked me to ring. I've been told that AIR is a free product and outside their remit to provide support on my issue. The perfectly nice guy was unable to give me any help on where to take it from there, so I've just had to continue with the online thing. Well, I do support myself and appreciate the difficulties even for a small company, but just the same... In case any wonderful Flexcoders people have any experience of this one, I'll fling it out here - any ideas gratefully received! (for what it's worth, I think it's most likely something to do with me the SDK used for compilation (probably 3.2 but I'd need to check), but could be very wrong there) On a related point - anyone know who to speak to getting to be an AIR beta tester? I've requested it online specifically and each time I've done the AIR reditribution agreement - never heard anything. In this particular case AIR was updated pretty well right on our shipping date and I had no time to resolve it - I've I'd been testing before the release I might have caught and fixed it first. We normally release a disk every month or so, so it's an ongoing issue, however. -- Friday, 7 August 2009 11:53:35 o'clock BST Following the recent update to AIR runtime 1.5.2 I'm experiencing some issues with the built in app updater on windows platforms tha t I've not seen prior to this release. I'm using flash.desktop.Updater.Updater.update() directly on a downloaded .air update package. on windows Vista and windows 7, the update runs , but suffers a GUI freeze and eventually needs to be forcibly stopped via task mana ger. The new update is actually installed, but it seems that there is some difficulty after that, I'm guessing with removing temp files c reated in that process. I've attached a copy of .airappinstall.log taken after force quitting the update installer (Which had run for twenty minutes - norma ly it would be complete in one or two) on WIndows XP, everything appears to be fine, but a temp file is left in [installDirectory]\META-INF\AIR. This is also the case in vista/7, upon inspection this temp file contains our publisherID. Unfortunately, if you uninstall the application then this temp file gets left behind, meaning a subsequent install of the applicatio n is unable to install to the same directory unless you manually delete this stray temp file. Unfortunately, when I create a very basic app to demonstrate the problem everything seems to work fine - I only seem to be getting t his on our somewhat larger commercial products. Any ideas? Where do I go from here? Let me know if there is any more information I can provide that would be helpful Many thanks, regards, Jim Hayes -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf of hank williams Sent: Fri 9/11/2009 7:43 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart I have to go out now and so cant leave the phone off hook. But 1hr 15mins with no response. I am sure it would have been many more hours. On Fri, Sep 11, 2009 at 1:28 PM, hank williams hank...@gmail.comhank777%40gmail.com wrote: Starting now. I dont have 3 hours again but lets see how far we get... On Fri, Sep 11, 2009 at 1:19 PM, turbo_vb timh...@aol.comTimHoff%40aol.com wrote: US - 800-833-6687. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, hank williams hank...@... wrote: By the way, adobe admits there is a problem, so if you got that kind of response, I promise it is not normal. see: http://www.adobe.com/support/open_letter_to_adobe_customers/ On Fri, Sep 11, 2009 at 1:09 PM, hank williams hank...@... wrote: what country are you in... and if US, what number did you dial? On Fri, Sep 11, 2009 at 1:06 PM, turbo_vb timh...@... wrote: Sounds like you're not having very good luck Hank. As an interesting coincidence, I had to contact Adobe customer service today to resolve an issue. I just switched from PC to Mac and at the same time upgraded from CS3 to CS4. My issue was that the upgrade wouldn't recognize my previous product's serial number, because it was on a different platform. I went to the Adobe site, clicked the support button, selected my country and called the 800 number. They answered after 5 minutes. Pretty good compared to 3 hours. The initial rep took my info and had to transfer me to another rep
[flexcoders] Re: Double click on Datagrid cell
Can you add an eventlistner to the vbox so that when the mouse key clicks you get a function call? for example; ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.controls.Alert; private function init():void { vboxtest.addEventListener(MouseEvent.MOUSE_DOWN,mouseDidSomething); } private function mouseDidSomething(event:MouseEvent):void { Alert.show(mouse it); } ]] /mx:Script mx:VBox id=vboxtest borderStyle=solid width=300 height=300 /mx:VBox /mx:WindowedApplication --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Could you try to declare the double click event on the datagrid, i.e. mx:DataGrid id=myDataGrid doubleClick=yourDoubleClickFunction() mx:columns . /mx:columns /mx:DataGrid and in your script, declare the function private function yourDoubleClickFunction():void { // Place your codes here.. } HTH. From: ferrari.hunk ferrari.h...@... To: flexcoders@yahoogroups.com Sent: Wednesday, 9 September, 2009 22:43:28 Subject: [flexcoders] Double click on Datagrid cell Hi, I'm developing an application where I'm using a datagrid that shows some information from an xml. Every cell in the grid is of the form itemRenderer compoment Vbox HBox Text/ //some text goes within this block Text/ //some text goes within this block Text/ //some text goes within this block /Hbox /VBox /component /itemRenderer I have set a function call for the datagrid on ItemDoubleClick event; and this even gets triggered only when i double click on any TEXT that is on the cell; and NOT on any part of the cell. However, I would like to have this triggered when the user clicks anywhere in the cell. Sombody please help, Thanks!!
Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart
I've already forwarded the request along. On Sep 15, 2009, at 11:47 AM, Nick Collins wrote: I'd probably try to contact Robert Christensen or Mike Chambers about the AIR beta. On Tue, Sep 15, 2009 at 10:47 AM, Jim Hayes j...@primalpictures.com wrote: Mmmm, just taken me 3/4 hour to get though after a wait of 2 weeks odd for a reply on the support portal which asked me to ring. I've been told that AIR is a free product and outside their remit to provide support on my issue. The perfectly nice guy was unable to give me any help on where to take it from there, so I've just had to continue with the online thing. Well, I do support myself and appreciate the difficulties even for a small company, but just the same... In case any wonderful Flexcoders people have any experience of this one, I'll fling it out here - any ideas gratefully received! (for what it's worth, I think it's most likely something to do with me the SDK used for compilation (probably 3.2 but I'd need to check), but could be very wrong there) On a related point - anyone know who to speak to getting to be an AIR beta tester? I've requested it online specifically and each time I've done the AIR reditribution agreement - never heard anything. In this particular case AIR was updated pretty well right on our shipping date and I had no time to resolve it - I've I'd been testing before the release I might have caught and fixed it first. We normally release a disk every month or so, so it's an ongoing issue, however. -- Friday, 7 August 2009 11:53:35 o'clock BST Following the recent update to AIR runtime 1.5.2 I'm experiencing some issues with the built in app updater on windows platforms tha t I've not seen prior to this release. I'm using flash.desktop.Updater.Updater.update() directly on a downloaded .air update package. on windows Vista and windows 7, the update runs , but suffers a GUI freeze and eventually needs to be forcibly stopped via task mana ger. The new update is actually installed, but it seems that there is some difficulty after that, I'm guessing with removing temp files c reated in that process. I've attached a copy of .airappinstall.log taken after force quitting the update installer (Which had run for twenty minutes - norma ly it would be complete in one or two) on WIndows XP, everything appears to be fine, but a temp file is left in [installDirectory]\META-INF\AIR. This is also the case in vista/7, upon inspection this temp file contains our publisherID. Unfortunately, if you uninstall the application then this temp file gets left behind, meaning a subsequent install of the applicatio n is unable to install to the same directory unless you manually delete this stray temp file. Unfortunately, when I create a very basic app to demonstrate the problem everything seems to work fine - I only seem to be getting t his on our somewhat larger commercial products. Any ideas? Where do I go from here? Let me know if there is any more information I can provide that would be helpful Many thanks, regards, Jim Hayes -Original Message- From: flexcoders@yahoogroups.com on behalf of hank williams Sent: Fri 9/11/2009 7:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart I have to go out now and so cant leave the phone off hook. But 1hr 15mins with no response. I am sure it would have been many more hours. On Fri, Sep 11, 2009 at 1:28 PM, hank williams hank...@gmail.com wrote: Starting now. I dont have 3 hours again but lets see how far we get... On Fri, Sep 11, 2009 at 1:19 PM, turbo_vb timh...@aol.com wrote: US - 800-833-6687. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, hank williams hank...@... wrote: By the way, adobe admits there is a problem, so if you got that kind of response, I promise it is not normal. see: http://www.adobe.com/support/open_letter_to_adobe_customers/ On Fri, Sep 11, 2009 at 1:09 PM, hank williams hank...@... wrote: what country are you in... and if US, what number did you dial? On Fri, Sep 11, 2009 at 1:06 PM, turbo_vb timh...@... wrote: Sounds like you're not having very good luck Hank. As an interesting coincidence, I had to contact Adobe customer service today to resolve an issue. I just switched from PC to Mac and at the same time upgraded from CS3 to CS4. My issue was that the upgrade wouldn't recognize my previous product's serial number, because it was on a different platform. I went to the Adobe site, clicked the support button, selected my country and called the 800 number. They answered after 5 minutes. Pretty good compared to 3 hours. The initial rep
RE: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart
And Robert has contacted me via email straight away, which is great! I shall respond when I've had my supper, I hope (UK time here). Many thanks Matt, so much appreciated. -Original Message- From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Tue 9/15/2009 7:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart I've already forwarded the request along. On Sep 15, 2009, at 11:47 AM, Nick Collins wrote: I'd probably try to contact Robert Christensen or Mike Chambers about the AIR beta. On Tue, Sep 15, 2009 at 10:47 AM, Jim Hayes j...@primalpictures.com wrote: Mmmm, just taken me 3/4 hour to get though after a wait of 2 weeks odd for a reply on the support portal which asked me to ring. I've been told that AIR is a free product and outside their remit to provide support on my issue. The perfectly nice guy was unable to give me any help on where to take it from there, so I've just had to continue with the online thing. Well, I do support myself and appreciate the difficulties even for a small company, but just the same... In case any wonderful Flexcoders people have any experience of this one, I'll fling it out here - any ideas gratefully received! (for what it's worth, I think it's most likely something to do with me the SDK used for compilation (probably 3.2 but I'd need to check), but could be very wrong there) On a related point - anyone know who to speak to getting to be an AIR beta tester? I've requested it online specifically and each time I've done the AIR reditribution agreement - never heard anything. In this particular case AIR was updated pretty well right on our shipping date and I had no time to resolve it - I've I'd been testing before the release I might have caught and fixed it first. We normally release a disk every month or so, so it's an ongoing issue, however. -- Friday, 7 August 2009 11:53:35 o'clock BST Following the recent update to AIR runtime 1.5.2 I'm experiencing some issues with the built in app updater on windows platforms tha t I've not seen prior to this release. I'm using flash.desktop.Updater.Updater.update() directly on a downloaded .air update package. on windows Vista and windows 7, the update runs , but suffers a GUI freeze and eventually needs to be forcibly stopped via task mana ger. The new update is actually installed, but it seems that there is some difficulty after that, I'm guessing with removing temp files c reated in that process. I've attached a copy of .airappinstall.log taken after force quitting the update installer (Which had run for twenty minutes - norma ly it would be complete in one or two) on WIndows XP, everything appears to be fine, but a temp file is left in [installDirectory]\META-INF\AIR. This is also the case in vista/7, upon inspection this temp file contains our publisherID. Unfortunately, if you uninstall the application then this temp file gets left behind, meaning a subsequent install of the applicatio n is unable to install to the same directory unless you manually delete this stray temp file. Unfortunately, when I create a very basic app to demonstrate the problem everything seems to work fine - I only seem to be getting t his on our somewhat larger commercial products. Any ideas? Where do I go from here? Let me know if there is any more information I can provide that would be helpful Many thanks, regards, Jim Hayes -Original Message- From: flexcoders@yahoogroups.com on behalf of hank williams Sent: Fri 9/11/2009 7:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart I have to go out now and so cant leave the phone off hook. But 1hr 15mins with no response. I am sure it would have been many more hours. On Fri, Sep 11, 2009 at 1:28 PM, hank williams hank...@gmail.com wrote: Starting now. I dont have 3 hours again but lets see how far we get... On Fri, Sep 11, 2009 at 1:19 PM, turbo_vb timh...@aol.com wrote: US - 800-833-6687. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, hank williams hank...@... wrote: By the way, adobe admits there is a problem, so if you got that kind of response, I promise it is not normal. see: http://www.adobe.com/support/open_letter_to_adobe_customers/ On Fri, Sep 11, 2009 at 1:09 PM, hank williams hank...@... wrote: what country are you in... and if US, what number did you dial? On Fri, Sep 11, 2009 at 1:06 PM, turbo_vb timh...@... wrote: Sounds like you're not having very good luck Hank. As an interesting coincidence, I had to contact Adobe customer service today to resolve an issue. I just
[flexcoders] Re: Very odd null object RTE on FocusManager
Hi Alex, Thanks for the help. The problem is intermittent, perhaps happening one in three times if I have more than three sub applications being loaded in. I found the bug was related to an MXML component with two states, which is being repeated. Only once is the alternate state used (if it's the first item). I have therefore removed the state from the repeater, and put it before the repeater. This has stopped the problem, but obviously not resolved the RTE from potentially happening again somewhere else. It's interesting what you say about removing the loader. In order to preload the sub applications, I add them to a hidden container on the stage momentarily to start them loading (If there is a way to do this in AS only please let me know). The reference to the sub app swf is still retained for when the user chooses to see it, and it is then attached to the stage again. The RTE happens when there loading in, so I assume this supports that theory. This is a section of the MXML component that preloads the swf ... private function _preLoadSwf(e:PropertyChangeEvent):void { if (!e.newValue) return; createChildren(); this.preLoader.removeAllChildren(); // Remove the child once added } override protected function createChildren():void { super.createChildren(); if (this.preLoader _ds.preloadSwf) this.preLoader.addChild(SWFLoader(_ds.preloadSwf)); } ]] /mx:Script !-- Display Object used for preloading channels -- mx:Canvas id = preLoader visible = false/ Obviously this is a bit of a hack to force the swfloader to start loading, but I assume it's the cause of the problem. Please let me know how to report the bug, and I can try and see if I can recreate the issue, but it's a bit of a tricky one to recreate ;) Ta Rob
RE: [flexcoders] Re: Very odd null object RTE on FocusManager
If the bug is caused because you're pulling the object off stage as it gets initialized, I don't think we'll spend too much energy on fixing that. I would try to make sure every SWF is really done (sent applicationComplete) or only remove the ones that are done. I'm not sure what you mean by AS-Only way to preload the SWF. You can add SWFLoaders in AS to any container, set its includeInLayout=false and visible=false and they should load. 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 rob_mcmichael Sent: Tuesday, September 15, 2009 12:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Very odd null object RTE on FocusManager Hi Alex, Thanks for the help. The problem is intermittent, perhaps happening one in three times if I have more than three sub applications being loaded in. I found the bug was related to an MXML component with two states, which is being repeated. Only once is the alternate state used (if it's the first item). I have therefore removed the state from the repeater, and put it before the repeater. This has stopped the problem, but obviously not resolved the RTE from potentially happening again somewhere else. It's interesting what you say about removing the loader. In order to preload the sub applications, I add them to a hidden container on the stage momentarily to start them loading (If there is a way to do this in AS only please let me know). The reference to the sub app swf is still retained for when the user chooses to see it, and it is then attached to the stage again. The RTE happens when there loading in, so I assume this supports that theory. This is a section of the MXML component that preloads the swf ... private function _preLoadSwf(e:PropertyChangeEvent):void { if (!e.newValue) return; createChildren(); this.preLoader.removeAllChildren(); // Remove the child once added } override protected function createChildren():void { super.createChildren(); if (this.preLoader _ds.preloadSwf) this.preLoader.addChild(SWFLoader(_ds.preloadSwf)); } ]] /mx:Script !-- Display Object used for preloading channels -- mx:Canvas id = preLoader visible = false/ Obviously this is a bit of a hack to force the swfloader to start loading, but I assume it's the cause of the problem. Please let me know how to report the bug, and I can try and see if I can recreate the issue, but it's a bit of a tricky one to recreate ;) Ta Rob
[flexcoders] Re: Very odd null object RTE on FocusManager
I think that's fair enough. As in AS only, I mean do I have to add it to stage? Ideally I would like to say swfLoader.startLoading(); I will look for the applicationComplete though, or perhaps load them into the view they will eventually be displayed in, and then just show them when selected. I am not sure if there will be a performance issue there though. Thanks for your help Rob --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: If the bug is caused because you're pulling the object off stage as it gets initialized, I don't think we'll spend too much energy on fixing that. I would try to make sure every SWF is really done (sent applicationComplete) or only remove the ones that are done. I'm not sure what you mean by AS-Only way to preload the SWF. You can add SWFLoaders in AS to any container, set its includeInLayout=false and visible=false and they should load. 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 rob_mcmichael Sent: Tuesday, September 15, 2009 12:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Very odd null object RTE on FocusManager Hi Alex, Thanks for the help. The problem is intermittent, perhaps happening one in three times if I have more than three sub applications being loaded in. I found the bug was related to an MXML component with two states, which is being repeated. Only once is the alternate state used (if it's the first item). I have therefore removed the state from the repeater, and put it before the repeater. This has stopped the problem, but obviously not resolved the RTE from potentially happening again somewhere else. It's interesting what you say about removing the loader. In order to preload the sub applications, I add them to a hidden container on the stage momentarily to start them loading (If there is a way to do this in AS only please let me know). The reference to the sub app swf is still retained for when the user chooses to see it, and it is then attached to the stage again. The RTE happens when there loading in, so I assume this supports that theory. This is a section of the MXML component that preloads the swf ... private function _preLoadSwf(e:PropertyChangeEvent):void { if (!e.newValue) return; createChildren(); this.preLoader.removeAllChildren(); // Remove the child once added } override protected function createChildren():void { super.createChildren(); if (this.preLoader _ds.preloadSwf) this.preLoader.addChild(SWFLoader(_ds.preloadSwf)); } ]] /mx:Script !-- Display Object used for preloading channels -- mx:Canvas id = preLoader visible = false/ Obviously this is a bit of a hack to force the swfloader to start loading, but I assume it's the cause of the problem. Please let me know how to report the bug, and I can try and see if I can recreate the issue, but it's a bit of a tricky one to recreate ;) Ta Rob
[flexcoders] Bringing application to front
Hi, How should I go about implementing the following case: There's a timer on my application which will give an alert to the user 5 minutes before the session times out. It's working, but the problem is since the alert is a popup window, it appears inside the application and when the application is behind another application (browser, etc) or is minimized, the user won't see the alert and the applicaiton logs the user out because no action was taken. How can I bring the application to the front (to focus) or maximize it so the user will see the alert? Any suggestion is appreciated. Thank you!
Re: [flexcoders] Bringing application to front
If it's an AIR application, you can use the .orderToFront() method of your WindowedApplication. http://livedocs.adobe.com/flex/3/langref/mx/core/WindowedApplication.html#orderToFront%28%29 Ian On Tue, Sep 15, 2009 at 10:03 PM, nhid nhi...@gmail.com wrote: Hi, How should I go about implementing the following case: There's a timer on my application which will give an alert to the user 5 minutes before the session times out. It's working, but the problem is since the alert is a popup window, it appears inside the application and when the application is behind another application (browser, etc) or is minimized, the user won't see the alert and the applicaiton logs the user out because no action was taken. How can I bring the application to the front (to focus) or maximize it so the user will see the alert? Any suggestion is appreciated. Thank you!
[flexcoders] Re: Item Renderer doesn't work with just one Item :-(
Nope, I'm putting my data into an array collection before I bind it. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: If you are using the default resultFormat, this behavior is an issue. I'd advise e4x. Or, test the result to see what it contains and conditionally react. ArrayUtil.toArray might also be helpful. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Pearson Sent: Thursday, July 02, 2009 12:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Item Renderer doesn't work with just one Item :-( I have a filter function applied. Could that be part of it? --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, valdhor valdhorlists@ wrote: I seem to remember some time back (Although my memory is not what it used to be) that if returned data only has one item it is not converted to an array (ie. it is only a string). You may like to try checking to see if it is an array and, if not, coercing it to an array. I could be completely off track here though. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Nate Pearson napearson99@ wrote: I have a custom item render on a bar chart. When my the data provider for my bar chart has just one item in it the set data function is never gets called. Updatedisplaylist doesn't trigger and my bar chart is blank. Any ideas? I've had this bug for a while but I need to figure it out now. Thanks! -Nate
[flexcoders] Re: Custom ItemRenderer extends UIComponent
I did not look hard at the code but it seems generally correct. The test of a renderer is how many instances are visible at once. There will be no difference between 20 items and 20k items. Typically the torture test would be to put it into a datagrid in every column, with 10 columns and 30 rows for 300 renderer instances. Note, xml access is a noticable issue with that many instances. set data() gets called a LOT, sometimes when you would not expect, like during a resize. That is why the invalidation system is so important. Tracy --- In flexcoders@yahoogroups.com, neilbrown08 neilbrow...@... wrote: Hello, With some advice from this forum (thank yous sooo much!) I have created my first ItemRenderer which I am using in a List in Flex 3. I have tested it with 10,000 items and it performs fantastic. I would appreciate any advice about a few questions I have. 1. Looking at my code, am I approaching this the right way? 2. When I create my List in MXML I am creating its data in the application initialize handler, and I see 8 calls to createChildren() which I guess is correct as maybe 7 visible and 1 for scrolling? But about 22 calls to data() setter why? 3. I tried to add TweenMax to my drawScoreBar method (which works) but it redraws everytime I scroll or mouse over it, I understand this will be recycling, but how should I do this? My first ItemRenderer! :) package com.amaze.uicomponentTest.components { import flash.display.Shape; import mx.controls.Image; import mx.controls.Label; import mx.controls.listClasses.IListItemRenderer; import mx.core.UIComponent; /** * Custom ItemRenderer class to demonstrate the use of UIComponent * @author Neil Brown */ public class ItemRenderer extends UIComponent implements IListItemRenderer { private static const COMPONENT_PADDING:int = 100; private static const IMAGE_SQUARE:int = 30; private static const PADDING:int = 10; protected var _data:Object; protected var nameLabel:Label; protected var scoreLabel:Label; protected var scoreBar:Shape; protected var image:Image; public function ItemRenderer() { } /** * Overridden createChildren method is called by the framework, this * is where you create your children, checks are made to see that they don't already exist * as calls to removeChild then addChild will call this again and recreate the children */ override protected function createChildren():void { super.createChildren(); trace(ItemRenderer.createChildren(): ); if (!nameLabel) { nameLabel = new Label(); addChild(nameLabel); } if (!scoreLabel) { scoreLabel = new Label(); addChild(scoreLabel); } if (!scoreBar) { scoreBar = new Shape(); addChild(scoreBar); } if (!image) { image = new Image(); addChild(image); } } /* INTERFACE mx.controls.listClasses.IListItemRenderer */ public function get data():Object { return _data; } /** * Called by the component which uses this as an ItemRenderer */ public function set data(value:Object):void { if (value != null) { _data = value; invalidateProperties(); } } /** * Called by the framework during init, also when you call invalidateProperties */ override protected function commitProperties():void { super.commitProperties(); nameLabel.text = data.name; scoreLabel.text = data.score; image.source = data.image; invalidateSize(); invalidateDisplayList(); } /** *
[flexcoders] Re: Bringing application to front
For a Flex application, in addition to the Alert, you might try opening a new browser window with a urlRequest. That might at least give the user some notification. -TH --- In flexcoders@yahoogroups.com, Ian Thomas i...@... wrote: If it's an AIR application, you can use the .orderToFront() method of your WindowedApplication. http://livedocs.adobe.com/flex/3/langref/mx/core/WindowedApplication.htm\ l#orderToFront%28%29 Ian On Tue, Sep 15, 2009 at 10:03 PM, nhid nhi...@... wrote: Hi, How should I go about implementing the following case: There's a timer on my application which will give an alert to the user 5 minutes before the session times out. It's working, but the problem is since the alert is a popup window, it appears inside the application and when the application is behind another application (browser, etc) or is minimized, the user won't see the alert and the applicaiton logs the user out because no action was taken. How can I bring the application to the front (to focus) or maximize it so the user will see the alert? Any suggestion is appreciated. Thank you!
[flexcoders] Re: Using RSLs in an actionscript only project
Thanks Alex, Where should I file the bug? Josh --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: File a bug. We really should use frame2, not last frame. I think you'll probably have to go with 2 SWFs, one to load the RSL and be the main app, and everything thing else in a second SWF that can have chained frames. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui
RE: [flexcoders] Re: Very odd null object RTE on FocusManager
Flex SWFs must be loaded on stage. I wouldn't even load them up front if you don't have to. Everything costs somewhere. 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 rob_mcmichael Sent: Tuesday, September 15, 2009 1:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Very odd null object RTE on FocusManager I think that's fair enough. As in AS only, I mean do I have to add it to stage? Ideally I would like to say swfLoader.startLoading(); I will look for the applicationComplete though, or perhaps load them into the view they will eventually be displayed in, and then just show them when selected. I am not sure if there will be a performance issue there though. Thanks for your help Rob --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: If the bug is caused because you're pulling the object off stage as it gets initialized, I don't think we'll spend too much energy on fixing that. I would try to make sure every SWF is really done (sent applicationComplete) or only remove the ones that are done. I'm not sure what you mean by AS-Only way to preload the SWF. You can add SWFLoaders in AS to any container, set its includeInLayout=false and visible=false and they should load. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of rob_mcmichael Sent: Tuesday, September 15, 2009 12:29 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Very odd null object RTE on FocusManager Hi Alex, Thanks for the help. The problem is intermittent, perhaps happening one in three times if I have more than three sub applications being loaded in. I found the bug was related to an MXML component with two states, which is being repeated. Only once is the alternate state used (if it's the first item). I have therefore removed the state from the repeater, and put it before the repeater. This has stopped the problem, but obviously not resolved the RTE from potentially happening again somewhere else. It's interesting what you say about removing the loader. In order to preload the sub applications, I add them to a hidden container on the stage momentarily to start them loading (If there is a way to do this in AS only please let me know). The reference to the sub app swf is still retained for when the user chooses to see it, and it is then attached to the stage again. The RTE happens when there loading in, so I assume this supports that theory. This is a section of the MXML component that preloads the swf ... private function _preLoadSwf(e:PropertyChangeEvent):void { if (!e.newValue) return; createChildren(); this.preLoader.removeAllChildren(); // Remove the child once added } override protected function createChildren():void { super.createChildren(); if (this.preLoader _ds.preloadSwf) this.preLoader.addChild(SWFLoader(_ds.preloadSwf)); } ]] /mx:Script !-- Display Object used for preloading channels -- mx:Canvas id = preLoader visible = false/ Obviously this is a bit of a hack to force the swfloader to start loading, but I assume it's the cause of the problem. Please let me know how to report the bug, and I can try and see if I can recreate the issue, but it's a bit of a tricky one to recreate ;) Ta Rob
RE: [flexcoders] Re: Using RSLs in an actionscript only project
Bugs.adobe.com/jira Flex project 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 joshonemail Sent: Tuesday, September 15, 2009 5:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using RSLs in an actionscript only project Thanks Alex, Where should I file the bug? Josh --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: File a bug. We really should use frame2, not last frame. I think you'll probably have to go with 2 SWFs, one to load the RSL and be the main app, and everything thing else in a second SWF that can have chained frames. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui
[flexcoders] AIR and Framework RSL's
Is there anyway to NOT have to include the Adobe signed framework RSLs with every AIR package if we are using RSL's? and also for that matter 'share' common modules? We have a several apps where the actual AIR app is really very very thin, they just share common code in RSL's (actually the same RSLs we use for the web versions). Whereas the web versions only need to download the RSL's once (and with the Adobe framewok maybe not even once if they already have the RSL), the AIR version has to include all the common modules and the adobe framework in each AIR app. Although you can say well its only a one time download, 1) It still makes for an awful big download 2) We update the apps on a 3 week cycle so its an awful lot and quite often.
[flexcoders] Re: filtering advanced datagrid
Here is the link to the app: http://s256908546.onlinehome.us/advgrid/advgridfilter.html --- In flexcoders@yahoogroups.com, kaushal.shah05 kshah0...@... wrote: how do you filter an advanced datagrid? I've tried myself with no luck. I can only get filter the fist node in the tree. there are not too many resources out there for the Flex adv datagrid. Adobe should really focus on it as it's always a requirement in the corporate world. (This is the modified code copied from Sameer's site.) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init() mx:Script ![CDATA[ import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn; import mx.collections.GroupingField; import mx.collections.Grouping; import mx.collections.ArrayCollection ; import mx.collections.GroupingCollection; public function init() : void { flatData.filterFunction = myFilter; } public function myFilter(item:Object) : Boolean { var pattern:String = '.*' + search.text + '.*'; if (item.hasOwnProperty('Territory')) { if (item.Territory.match(pattern)) { return true; } else { return false; } } return true; } public function updateFilter() : void { groupedData.refresh(); } [Bindable] private var flatData:ArrayCollection = new ArrayCollection( [ { Territory:Nevada, Territory_Rep:Barbara Jennings,Estimate:4 , Actual:38865 }, { Territory:Nevada, Territory_Rep:Dana Binn ,Estimate:3 , Actual:29885 }, { Territory:Nevada, Territory_Rep:Joe Schmoe ,Estimate:3 , Actual:29134 }, { Territory:Northern California , Territory_Rep:Lauren Ipsum , Estimate:4 , Actual:38805 }, { Territory:Northern California , Territory_Rep: T.R.Smith , Estimate:4 , Actual:55498 }, { Territory:Southern California , Territory_Rep:Jane Grove, Estimate:45000 , Actual:44913 }, { Territory:Southern California , Territory_Rep:Alice Treu, Estimate:45000 , Actual:44985 }, { Territory:Nevada , Territory_Rep:Bethany Pittman ,Estimate:45000 , Actual:52888 } ]); ]] /mx:Script mx:HBox mx:Label text=Territory / mx:TextInput id=search text= change=updateFilter()/ /mx:HBox mx:AdvancedDataGrid id=adg creationComplete=groupedData.refresh() x= 29.5 y=26 width=555 height=377 mx:dataProvider mx:GroupingCollection id=groupedData source={flatData} mx:Grouping mx:GroupingField name=Territory mx:summaries mx:SummaryRow summaryPlacement=group mx:fields mx:SummaryField dataField=Estimate operation=SUM label=Budget/ mx:SummaryField dataField=Actual operation=SUM / /mx:fields /mx:SummaryRow /mx:summaries /mx:GroupingField /mx:Grouping /mx:GroupingCollection /mx:dataProvider mx:columns mx:AdvancedDataGridColumn width=200 headerText = Territory Rep dataField=Territory_Rep/ mx:AdvancedDataGridColumn headerText=Budget dataField=Budget/ mx:AdvancedDataGridColumn headerText = Actual dataField=Actual/ /mx:columns /mx:AdvancedDataGrid /mx:Application
RE: [flexcoders] AIR and Framework RSL's
AIR apps in the same folder should be able to share the RSLs. Like modules, if there is a main app and many sub-apps, the sub-apps should not use RSL linkage, but rather, just load-extern the RSL because the main app will bring in the classes. 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 reflexactions Sent: Tuesday, September 15, 2009 7:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR and Framework RSL's Is there anyway to NOT have to include the Adobe signed framework RSLs with every AIR package if we are using RSL's? and also for that matter 'share' common modules? We have a several apps where the actual AIR app is really very very thin, they just share common code in RSL's (actually the same RSLs we use for the web versions). Whereas the web versions only need to download the RSL's once (and with the Adobe framewok maybe not even once if they already have the RSL), the AIR version has to include all the common modules and the adobe framework in each AIR app. Although you can say well its only a one time download, 1) It still makes for an awful big download 2) We update the apps on a 3 week cycle so its an awful lot and quite often.
[flexcoders] Re: AIR and Framework RSL's
Thanks, the question was really more related to the 'packaging' for distribution/updating than directly load/run execution. The app doesnt really have a main and sub apps as much as several peers based on common libs. I couldnt see a way to not include common modules in the .air distribution and still have everything in sync and work. Beginning to think the only way is to bypass the AIR updater and write my own. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: AIR apps in the same folder should be able to share the RSLs. Like modules, if there is a main app and many sub-apps, the sub-apps should not use RSL linkage, but rather, just load-extern the RSL because the main app will bring in the classes. 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 reflexactions Sent: Tuesday, September 15, 2009 7:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR and Framework RSL's Is there anyway to NOT have to include the Adobe signed framework RSLs with every AIR package if we are using RSL's? and also for that matter 'share' common modules? We have a several apps where the actual AIR app is really very very thin, they just share common code in RSL's (actually the same RSLs we use for the web versions). Whereas the web versions only need to download the RSL's once (and with the Adobe framewok maybe not even once if they already have the RSL), the AIR version has to include all the common modules and the adobe framework in each AIR app. Although you can say well its only a one time download, 1) It still makes for an awful big download 2) We update the apps on a 3 week cycle so its an awful lot and quite often.