[flexcoders] Re: Mouse Move Issue in Tree Control
--- In flexcoders@yahoogroups.com, Flex Gangsta [EMAIL PROTECTED] wrote: if u have the css code ,tell me You can change it by creating a CSS file for the tree control. Sent from my iPhone On Oct 10, 2008, at 4:47 AM, selvant_2005 [EMAIL PROTECTED] wrote: Hi, When i Move the Mouse Over the Tree Nodes by Default that Blue Colour is Coming ,I dont Want that Colour, If anybody Know How to change the clour Plese Tell Me Regards , T.Selvan
Re: [flexcoders] Couple questions
Bruce, there are a mass of powerpoint to flash converters out there - google is your friend. The one I've worked with produced fairly large files and the output is an AS1/AS2 swf. If I were writing a slide player, I'd probably use Flex, though for a slide player it could probably just as well be all in actionscript so Flash or Flex is neither here nor there. Paul - Original Message - From: brucewhealton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, October 11, 2008 6:01 AM Subject: [flexcoders] Couple questions Hello all, I had a few questions, where I could use some suggestions or opinions and ideas. One is regarding Powerpoint-like presentations online. If you were going to do something like this, would you use Flash or Flex - maybe these are not even the best choices? Are there extensions for Flash or Flex to convert a powerpoint file to something that would play in the Flash Player? Actually, I'm not sure if there even are any extensions for Flex like there are for other Adobe products, but I bet there are. Next, I noticed that there is a nice AIR application for reading Flexcoder messages. I'm only aware of one, the only additional thing I'd want is the ability to post to the group from the AIR application. Can anyone suggest some good sources for a variety of AIR applications? Lastly, are there any script collections of free or commercial Flex MXML/Actionscript applications that one could check out, such as what there are at http://hotscripts.com and other similar places. thanks, Bruce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] ComboBox in Component won't open to Saved Value
Here's the code for a BindableComboBox. Save it in a file called BindableComboBox.mxml (borrowed this code from Adobe, modified slightly): mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initComponent() mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; [Bindable] public var valueField:String = ; [Bindable] public var labelFields:Array = []; public function initComponent():void { this.labelFunction = renderLabelFunction; } public function renderLabelFunction(item:Object):String { var result:String = ; if (labelFields.length == 0) { if (labelField != null) { return item[labelField]; } else { return item.toString(); } } else { for (var i:int=0; i labelFields.length; i++) { if (i 0) { result += ; } result += item[labelFields[i]]; } } return result; } override public function set selectedItem(val:Object):void { if (this.valueField != null) { for (var i:int=0; i this.dataProvider.source.length; i++) { var item:Object = this.dataProvider.source[i]; if (item[valueField] == val) { this.selectedIndex = i; break; } } } else { super.selectedItem(val); } } public function get selectedItemValue():Object { if (this.valueField != null selectedItem != null) { return selectedItem[valueField]; } else { return text; } } ]] /mx:Script /mx:ComboBox Use it in your components as follows: Get the data back from the database (or webservice, or wherever) into an ArrayCollection that has the fields myID and myName for each item in the combo box. Then, assign the AC to the dataProvider of the BindableComboBox and use the component in your mxml code like this: mycoms:BindableComboBox id=myComboBox valueField=myID labelFields=[myName]/ I also have a search-as-you-type BindableComboBox that's a combination of this component with an auto-complete component I found on the web (not Adobe's) if you're interested. HTH, ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, October 08, 2008 10:05 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value ComboBox.selectedItem will only work if you assign a *reference to an item in the ComboBox dataProvider*. This is rarely possible and is not in your case. What you must do is loop over the items in the CobmoBox.dataProvider and compare the appropriate property's value to the value you want to match. When a match is found, use the loop indes to set the ComboBox's selectedIndex. This is simple enough to do in a one-off situation. If you need this often, then you might want to use an extended ComboBox. Making a generic one is a bit tricky, because the Combo Box dataProvider items can have any properties at all. I have an example on www.cflex.net http://www.cflex.net/ (it allows you to set the data field you want to match) and Ben forta has done one and there are others. Tracy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Pride Sent: Wednesday, October 08, 2008 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox in Component won't open to Saved Value Hi I have a ComboBox used as a Popup on a form component. It saves fine using the following function private function closeGenderPop(event:Event):void { ComboBox(event.target).selectedItem.label}; I want to have it display the stored value the next time it is opened. I tried this but no luck. private function openGenderPop(event:Event):void { genderPop.selectedIndex = 1; ComboBox(event.target).selectedItem.label; } Really appreciate the help Dan Pride
Re: [flexcoders] Couple questions
- Original Message - From: Paul Andrews [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, October 11, 2008 9:19 AM Subject: Re: [flexcoders] Couple questions Bruce, there are a mass of powerpoint to flash converters out there - google is your friend. The one I've worked with produced fairly large files and the output is an AS1/AS2 swf. If I were writing a slide player, I'd probably use Flex, though for a slide player it could probably just as well be all in actionscript so Flash or Flex is neither here nor there. One thing I should add - when I was researching powerpoint to flash converters a few months back - none of them produced AS3 swfs, so controlling the playback from Flex (or Flash AS3) is a little problematic - you'd need an intemediary AS2 swf to talk between the runtime systems. Some of the converters include players for playing back the converted files. Eventually I wrote a player using AS2. Good luck. Paul Paul - Original Message - From: brucewhealton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, October 11, 2008 6:01 AM Subject: [flexcoders] Couple questions Hello all, I had a few questions, where I could use some suggestions or opinions and ideas. One is regarding Powerpoint-like presentations online. If you were going to do something like this, would you use Flash or Flex - maybe these are not even the best choices? Are there extensions for Flash or Flex to convert a powerpoint file to something that would play in the Flash Player? Actually, I'm not sure if there even are any extensions for Flex like there are for other Adobe products, but I bet there are. Next, I noticed that there is a nice AIR application for reading Flexcoder messages. I'm only aware of one, the only additional thing I'd want is the ability to post to the group from the AIR application. Can anyone suggest some good sources for a variety of AIR applications? Lastly, are there any script collections of free or commercial Flex MXML/Actionscript applications that one could check out, such as what there are at http://hotscripts.com and other similar places. thanks, Bruce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Smooth scrolling when setting verticalScrollPosition on TextArea
In AS3, I set the vertical scroll position of the text area, but would like the area to smoothly scroll to that area rather than jump to it (disorientating the user). I've done this using the AnimateProperty class on the verticalScrollPosition property. Is there a more standard way? -- View this message in context: http://www.nabble.com/Smooth-scrolling-when-setting-verticalScrollPosition-on-TextArea-tp19930681p19930681.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Re: Create Help System in Flex - how to display html in a canvas or component?
You can use an iframe to display html inside a flex app. Check out the IFrame component from here: http://ccgi.arutherford.plus.com/blog/wordpress/?p=133 Also, I'm toying around with using Adobe Captivate to generate flash help files and then display them in flex. You might want to check this out. However, the current version of Captivate generates AS2 code and is somewhat difficult to integrate with AS3 in flex. There are several posts about workarounds with this problem. Adobe is supposed to make Captivate generate AS3 code with the next update. ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, October 10, 2008 2:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Create Help System in Flex - how to display html in a canvas or component? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Displaying full html in Flex (Flash Player) is not yet possible. What are your requirements? The simplest solution is to use a separate browser to display the html help pages. The Flex side needs to know where in the app the user is, and be able to determine the url to display. Using ExternalInterface you can exercise quite a bit of control over that window's behavior. Doing it all in Flex will be more difficult, primarily on the editing side. Dynamic display based on xml content is easy, but building a dynamic layout that looks like a help system might be a bit tricky. Directly editing xml files is not advised for non-developers, so you would need some king of wysiwyg editor... I would really like to see a Flex integration of something like RoboHelp. Who owns RoboHelp anyway? I think it's those people that bought RoboHelp.
AW: [flexcoders] modal PopUp with one component, that should accept user interaction
Thanks Tracy and Mark, what I want to do is create something like a guided tour, that displays instructions in a popup on how to interact with the component, from where the help is called. Therefore, this component has to accept user interaction, but all the other components not. I think I will try it Tracys advice. Had the same idea after looking at the PopUpManager code. Christoph _ Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Mark Carter Gesendet: Samstag, 11. Oktober 2008 05:59 An: flexcoders@yahoogroups.com Betreff: Re: [flexcoders] modal PopUp with one component, that should accept user interaction What exactly do you want to do? i.e. why do the other components have to be mouse-shielded? I assume you know about PopUpButton - I don't know if you could use that to help you do what you want...? -- View this message in context: http://www.nabble. http://www.nabble.com/modal-PopUp-with-one-component%2C-that-should-accept- user-interaction-tp19898132p19929358.html com/modal-PopUp-with-one-component%2C-that-should-accept-user-interaction-tp 19898132p19929358.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Is It possible to use ressources in a CustomPreloader
On this specific question: Is It possible to use ressources in a CustomPreloader You will find an answer in that excellent presentation by Michael Labriola a href=http://blogs.digitalprimates.net/codeslinger/index.cfm? mode=entryentry=923040ED-FFF8-98FF-6D01B7FE243E8FC9Dense and Hot @ webDu by Michael Labriola/a Slides 23-25, in particlar: Initialize - create a new Preloader and listens to both its progress and done event - preloaded added to the SystemManager's children - RSLs info gathered - ResourceManager, FontRegistry, StyleManagers are registered with the application so that they will be ready and available before they are needed. - framework looks for any resource modules specified in the URL or flashvars that might also need to be loaded before frame 2 - preloaded initialized and sent on its way. Preloader - the preloader 'initialize' method facilitates loading any RSLs used by your application. - then create an instance of its display class. By default this is the DownloadProgressBar, however, you can specify a different class if you want to change the preloading display. - preloader starts a process of polling and updating the display until the RSLs and Frame2 are loaded. It looks like RSL are made ready to use before the application is shown but after the the Preloader is created.
[flexcoders] Re: How to make an RPC call secure
HI Jitendra, Thanks for your kind reply, Let me to explain my question in detail . suppose I have a small banking application a)I want ensure user's login b) user can request a loan c) admin can approve loan d) admin can enter payment details etc... For this I have provided a flex GUI to login , modules to enter loan request details , approve details, payment details etc.. I gave the following remote calls and implemented with J2ee createLoanRequest searchLoanDetls approveLoanDetails changeLoanStatus insertLoanInstallmentDetls Also I gave appropriate menus for user and admin depends on their privilege. My doubt is like this i) Suppose admin logged in the application and doing some transaction. at the same time some hacker (who understands my remote methods ) calling some remote methods. trying to change some methods. It is from a different machine. is it happen...? , commonly J2EE uses session Id to handle this case, In this case may I need to use Session(Thanks Jitendra for ur session help). ii) Have any common method to use a validator for each method call.? iii) If I'm wrong pls help me with the theoretical reason. Regards, Razak --- In flexcoders@yahoogroups.com, jitendra jain [EMAIL PROTECTED] wrote: If your question is when flex calls a java class and within the java class how do I access the associated session, then the code is below and it is in the documentation. The FlexSession class is located in the flex-messaging.jar. FlexSession session = FlexContext.getFlexSession(); But whats the real question behind your question? what do you want to load? If you want to secure your calls then try to read J2EE Specs  Thanks, with Regards, Jitendra Jain - Original Message From: Abdul Razak PM [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, 11 October, 2008 9:34:29 AM Subject: [flexcoders] Re: How to make an RPC call secure Hi All, I'm a newbie in flex, My searches and adobe gives a of links but I need to get specified in my topic. Those who are in handling security please give me an answer (theoretical) whether a flex GUI with J2EE as server and using remoting (rpc)for server call, a) In J2EE project we will use session Id to ensure call comes from the same user.is it necessary in flex client also? if so how we can achieve session Id in client, some example also. b) I have a login module in my application, may I need to authenticate each of my remote call from flex. Tom please don't loose my chance to get answer from others who could kindly answer to me , even it's blonder.. all are not genious like but everybody uses google and adobe docs first.. Regards, Razak --- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ... wrote: On Thursday 09 Oct 2008, Abdul Razak PM wrote: Please provide some links to study more about it. Is Google and Adobe's docs site broken ? Also What's the possibility of Hacking our code if we didn't make it secure? Threat assessment is a whole skill into itself, you'd have to explain a lot more about what your service is, who is likely to attack it and with what resources. It's very helpful to get it's theoretical explanations too. Schneier's blog and /Beyond Fear/ book are good. -- Tom Chiverton Helping to quickly leverage third-generation e-commerce * * * * This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells. com. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo..com/invite/
[flexcoders] Re: Refresh Flex Navigator's Projects in Flex Builder
On Windows, press F5. This refreshes the files in the active project the same way as F5 refresh your File Explorer. --- In flexcoders@yahoogroups.com, itdanny2002 [EMAIL PROTECTED] wrote: Dear All, How to refresh all projects in flex builder ? I delete some files in corresponding directories. Those files are not used. Anyhow, a blue folder appear, I can't remove it. Is there any files to keep these project information ?
[flexcoders] Re: Refresh Flex Navigator's Projects in Flex Builder
Dear All, Thank you but none of suggestions work. Finally, I deleted all files in folder including configuration files. And then, recreate the project. It works fine now.
Re: [flexcoders] Couple questions
For online presentations you could try http://www.sliderocket.com . It's a commercial service but if you will be putting regularly presentations online, I think this will help you a lot to create great ones! On Sat, Oct 11, 2008 at 7:01 AM, brucewhealton [EMAIL PROTECTED]wrote: Hello all, I had a few questions, where I could use some suggestions or opinions and ideas. One is regarding Powerpoint-like presentations online. If you were going to do something like this, would you use Flash or Flex - maybe these are not even the best choices? Are there extensions for Flash or Flex to convert a powerpoint file to something that would play in the Flash Player? Actually, I'm not sure if there even are any extensions for Flex like there are for other Adobe products, but I bet there are. Next, I noticed that there is a nice AIR application for reading Flexcoder messages. I'm only aware of one, the only additional thing I'd want is the ability to post to the group from the AIR application. Can anyone suggest some good sources for a variety of AIR applications? Lastly, are there any script collections of free or commercial Flex MXML/Actionscript applications that one could check out, such as what there are at http://hotscripts.com and other similar places. thanks, Bruce -- Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com
[flexcoders] Re: Loading, unloading and then re-loading a module with a chart populated from a My
--- In flexcoders@yahoogroups.com, sailorsea21 [EMAIL PROTECTED] wrote: Hi everyone, I can find a solution to my problem... Loading, unloading and then re-loading a module with a chart populated from a MySQL database gives me this error: TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::[EMAIL PROTECTED] to mx.managers.IDragManager. at mx.managers::DragManager$/get impl()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\managers\DragManager.as:152] at mx.managers::DragManager$/get isDragging()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\managers\DragManager.as:187] at mx.controls.listClasses::ListBase/dragScroll()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as :7149] at Function/http://adobe.com/AS3/2006/builtin::apply() at anonymous() at SetIntervalTimer/onTimer() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() I load a module into my application. It works great. I then unload my module using the following code: content_module.unloadModule(); If I reload the module later on, I get the error above... http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf See Q8 HTH; Amy
[flexcoders] Re: Couple questions
--- In flexcoders@yahoogroups.com, brucewhealton [EMAIL PROTECTED] wrote: Hello all, I had a few questions, where I could use some suggestions or opinions and ideas. One is regarding Powerpoint-like presentations online. If you were going to do something like this, would you use Flash or Flex - maybe these are not even the best choices? You might want to look at Captivate. HTH; Amy
[flexcoders] Re: Couple questions
--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Paul Andrews [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, October 11, 2008 9:19 AM Subject: Re: [flexcoders] Couple questions Bruce, there are a mass of powerpoint to flash converters out there - google is your friend. The one I've worked with produced fairly large files and the output is an AS1/AS2 swf. If I were writing a slide player, I'd probably use Flex, though for a slide player it could probably just as well be all in actionscript so Flash or Flex is neither here nor there. One thing I should add - when I was researching powerpoint to flash converters a few months back - none of them produced AS3 swfs, so controlling the playback from Flex (or Flash AS3) is a little problematic - you'd need an intemediary AS2 swf to talk between the runtime systems. Some of the converters include players for playing back the converted files. Eventually I wrote a player using AS2. There's a public Beta of Captivate 4 going on now. I would suspect that this version uses AS3. HTH; Amy
Re: [flexcoders] Re: Couple questions
- Original Message - From: Amy [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, October 11, 2008 4:29 PM Subject: [flexcoders] Re: Couple questions snip One thing I should add - when I was researching powerpoint to flash converters a few months back - none of them produced AS3 swfs, so controlling the playback from Flex (or Flash AS3) is a little problematic - you'd need an intemediary AS2 swf to talk between the runtime systems. Some of the converters include players for playing back the converted files. Eventually I wrote a player using AS2. There's a public Beta of Captivate 4 going on now. I would suspect that this version uses AS3. HTH; Amy Thanks Amy, I'll check it out. Paul
Re: [flexcoders] Re: Couple questions
There's a public Beta of Captivate 4 going on now. I would suspect that this version uses AS3. There is, Amy? Where? I just checked Adobe Labs and I don't see anything. Nancy
[flexcoders] The trouble with Alert.show()
I am trying to troubleshoot a problem that only occurs in the Flash Player ActiveX embedded in an application, so I can't use normal debug methods. I'm trying to use Alert.show() to try to get to the bottom of what's going on. The problem I'm having is that in some situations, this just pops up the blurry overlay with no Alert on top (which means the Alert can't be dismissed). I tried making my Application really narrow to ensure it's not off the side. This is definitely not what is happening. Does anyone know what would cause Alert.show() to come up without an actual Alert? It might provide a clue as to what the larger problem is. Thanks! Amy
[flexcoders] Re: Couple questions
--- In flexcoders@yahoogroups.com, Nancy Gill [EMAIL PROTECTED] wrote: There's a public Beta of Captivate 4 going on now. I would suspect that this version uses AS3. There is, Amy? Where? I just checked Adobe Labs and I don't see anything. http://blogs.adobe.com/silke.fleischer/2008/08/adobe_captivate_4_beta_co ming.html Ok, I thought the beta was already public, but it looks like it's in the process. I think now is the time to sign up, though, if you're interested. HTH; Amy
[flexcoders] drawing a rectangle with a cutout
Hi all, I am trying to cut a smaller rectangle (name: cutout) out of a rectangle, which has the screen size. I read, that u can do it when you draw the cutout reverse, but I don't know how to do it. I use the flash.display.graphics class. I created both rectangles, using the drawRect() method. All commands to draw the rectangles are between beginFill() and endFill() methods and I can see them both on stage. Can I do the cutting out with the drawRect() Method, or is there another way? Christoph
[flexcoders] Re: The trouble with Alert.show()
I can't help with the Alert issue, but since I often debug within a wrapper, here's one alternative that provides a constant, simple debug window. I can't remember, but I might've grabbed it from this forum originally. Paste the code below in your app. Call showWindow() to activate the window. Call debug(your text here) for your debug text. Good luck. import mx.events.*; import mx.containers.*; import mx.controls.*; import mx.managers.PopUpManager; private var _window:TitleWindow; private var debugText:TextArea = new TextArea(); private function showWindow():void { debugText.height = 600; debugText.width= 400; _window = TitleWindow(PopUpManager.createPopUp(this, TitleWindow)); _window.addChild(debugText); _window.showCloseButton = true; _window.addEventListener(CloseEvent.CLOSE,closeHandler); } public function debug(str:String):void { if (debugText.text.length 1000) debugText.text = ; debugText.text += str; } private function closeHandler(event:CloseEvent):void { PopUpManager.removePopUp(_window); } --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: I am trying to troubleshoot a problem that only occurs in the Flash Player ActiveX embedded in an application, so I can't use normal debug methods. I'm trying to use Alert.show() to try to get to the bottom of what's going on. The problem I'm having is that in some situations, this just pops up the blurry overlay with no Alert on top (which means the Alert can't be dismissed). I tried making my Application really narrow to ensure it's not off the side. This is definitely not what is happening. Does anyone know what would cause Alert.show() to come up without an actual Alert? It might provide a clue as to what the larger problem is. Thanks! Amy
[flexcoders] Re: The trouble with Alert.show()
--- In flexcoders@yahoogroups.com, EddieBerman [EMAIL PROTECTED] wrote: I can't help with the Alert issue, but since I often debug within a wrapper, here's one alternative that provides a constant, simple debug window. I can't remember, but I might've grabbed it from this forum originally. Paste the code below in your app. Call showWindow() to activate the window. Call debug(your text here) for your debug text. Good luck. import mx.events.*; import mx.containers.*; import mx.controls.*; import mx.managers.PopUpManager; private var _window:TitleWindow; private var debugText:TextArea = new TextArea(); private function showWindow():void { debugText.height = 600; debugText.width= 400; _window = TitleWindow(PopUpManager.createPopUp(this, TitleWindow)); _window.addChild(debugText); _window.showCloseButton = true; _window.addEventListener(CloseEvent.CLOSE,closeHandler); } public function debug(str:String):void { if (debugText.text.length 1000) debugText.text = ; debugText.text += str; } private function closeHandler(event:CloseEvent):void { PopUpManager.removePopUp(_window); } I think the problem is with the DisplayList itself, since other objects are failing to appear, even though everything looks OK and no errors are being thrown. I believe that the problem with the Alert is related to whatever has thrown the display list into a tizzy. So I'm thinking anything else trying to draw to the screen will fail in the same way. I've figured out how to get the problem to happen outside the wrapper, so I'm tracking it down that way. Thanks :-) -Amy
[flexcoders] Re: drawing a rectangle with a cutout
You could create separate sprites for each rectangle and apply the smaller one as a mask to whatever content is meant to show through the window. --- In flexcoders@yahoogroups.com, Christoph Leva [EMAIL PROTECTED] wrote: Hi all, I am trying to cut a smaller rectangle (name: cutout) out of a rectangle, which has the screen size. I read, that u can do it when you draw the cutout reverse, but I don't know how to do it. I use the flash.display.graphics class. I created both rectangles, using the drawRect() method. All commands to draw the rectangles are between beginFill() and endFill() methods and I can see them both on stage. Can I do the cutting out with the drawRect() Method, or is there another way? Christoph
Re: [flexcoders] Embedding Image from dynamic string
Hey Dudes var a:String=sources/ top2Over. jpg; [Bindable] [Embed(source= a)] or public var top2Over:Class; I want to create object embed adders to be fetched by string .liek the given simple wrong code Sajid
[flexcoders] Re: Interfaces WHY?
You lost me at hello! It's a lot easier if your class just implements what it needs and leave the inheritance to the class framework that is implementing the interfaces. Can you break this down a little? TIA --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: But in general I think implementation inheritance is over-used and multiple inheritance can get you into trouble. WORD! Especially in UIComponent designs, I would discourage the use of extends with interfaces. It's a lot easier if your class just implements what it needs and leave the inheritance to the class framework that is implementing the interfaces. This is not to say don't, but careful design of User Interface interface frameworks is needed. Adobe did a pretty good job at this. If you were around in the Flex 2 betas especially the alpha you saw how the scrubbed the interfaces and completely refactored out some inheritance they used in the interface framework. Mike On Fri, Oct 10, 2008 at 11:14 AM, Richard Rodseth [EMAIL PROTECTED]wrote: Except that pseudo sounds disparaging, and I actually like an object model which has multiple inheritance of interfaces and single inheritance of implementations (same as Java, and maybe C# too?). Multiple inheritance of implementation results in ambiguity. Composition/delegation is a better approach in my view. Lots of literature about this that the original poster can read. Having said that, I did have one occasion in my career when I followed an example from Bertrand Meyer's book and implemented a tree node in C++ as a link and a list. But in general I think implementation inheritance is over-used and multiple inheritance can get you into trouble. On Fri, Oct 10, 2008 at 7:57 AM, Ryan Gravener [EMAIL PROTECTED]wrote: Pseudo multiple inheritance. Ryan Gravener http://twitter.com/ryangravener On Fri, Oct 10, 2008 at 10:23 AM, Richard Rodseth [EMAIL PROTECTED]wrote: And sometimes you even have interfaces with no methods. In this case it's a marker (often a parent of other interfaces) and when used in method signatures you get type checking. On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, It's ICommand. The reason is you can stack interfaces on top of each other allowing more decoupling to the implementing concrete classes. This interface is obvious. Any class that implements it needs eval() and only eval. It's like a singleton declaration of implementation. If you jammed this evel() method into IUIComponent, maybe all components don't need eval. Make sense? Also another good example of this type of interface in the flex framework is IDataRenderer, it's only declared property is 'data'. Mike On Fri, Oct 10, 2008 at 9:19 AM, flexaustin [EMAIL PROTECTED]wrote: I was wondering if someone can explain why you would need an interface so short? INTERFACE: package my.package.area { /** * Interface for methods that evaluate an object and return a result. */ public interface IEval { /** * Evaluates the input object * @o the object to evaluate * @return the computed result value */ function eval(o:Object=null):*; } // end of interface IEval } USAGE OF INTERFACE: if (value is IEval) { value = IEval(value).eval(o) }; Cairngorm has a short interface like this as well, though I cannot remember what it is. In Cairngorm they say its for naming or to make the code easier to understand? I am just not sure why you would do this? Help me see the light! TIA -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.