Re: [flexcoders] Re: Problem with scaleX for system fonts!
Try scaling only in one direction (X or Y) and you will see that it doesn't work. However it does with embedded fonts. I think scaling in both directions with the same value makes flex use another font size, but real scaling only can be applied to embedded fonts. Anyway, this limitation will be removed in Flex 4 (Gumbo) and we will be able to do what we want with text without the need to embed any fonts :) Bye! On Wed, Oct 22, 2008 at 1:18 AM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] wrote: It's not working for me by setting the blendMode to layer! It only works with the embedded fonts, as expected. Here is my test application and as you can see, scaling is only working on the lines using the embedded font. In the other cases, the Label control itself is scaled and is truncating the text but not the text itself. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=left mx:Style @font-face { src: local(Arial); fontFamily: myFontFamily; advancedAntiAliasing: true; } @font-face { src: local(Arial); fontFamily: myFontFamily; fontWeight: bold; advancedAntiAliasing: true; } @font-face { src: local(Arial); fontFamily: myFontFamily; fontWeight: bold; fontStyle: italic; advancedAntiAliasing: true; } /mx:Style mx:Label text=Sample Text fontSize=32 / mx:Label text=Sample Text fontSize=32 scaleX=0.7/ mx:Label text=Sample Text fontSize=32 scaleX=0.7 blendMode=layer / mx:Label text=Sample Text fontSize=32 fontFamily=myFontFamily scaleX=0.7/ mx:Label text=Sample Text fontSize=32 fontFamily=myFontFamily fontWeight=bold fontStyle=italic/ mx:Label text=Sample Text fontSize=32 fontFamily=myFontFamily fontWeight=bold fontStyle=italic scaleX=0.7/ /mx:Application I tried this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Label text=Test label blendMode=layer scaleX=2 scaleY=2 / mx:Label text=Test label 2 scaleX=2 scaleY=2/ mx:Label text=Test label 3/ /mx:Application And both the first and second labels scaled properly (regardless of blend mode), so it's difficult for me to guess what the issue is on your file. HTH; Amy -- Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com
Re: [flexcoders] swf caching
It is a web application. I cannot force my client to clear the cache. Regards, You can catch up with me using the links below http://flex-arulmurugant.blogspot.com/ - Original Message - From: Guy Morton To: flexcoders@yahoogroups.com Sent: Wednesday, October 22, 2008 9:06 AM Subject: Re: [flexcoders] swf caching Look at your browser's caching settings and make sure it's not set to cache everything forever. IE is particularly annoying in this regard as it often defaults to using a cached item without even checking with the server to see if it has changed since it was cached. That said, you should get used to clearing your cache, as all browsers will sometimes cache things in a way you don't want it to. That's a fact of life in web development. Guy On 22/10/2008, at 1:41 PM, arulmurugan wrote: Hi, When ever I compile a proj/application the SWF I saw didn't reflect any of the changes I'd made. I need to clear the cache, history, cookies in the browser. How to over come this. Regards Arulmurugan Signature2.jpg
Re: [flexcoders] Custom List Renderer Memory Leak
Can you paste the code snippet that update the list? Cheers, Claudiu - Original Message From: darkcube86 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, October 21, 2008 7:49:53 PM Subject: [flexcoders] Custom List Renderer Memory Leak I have a list which always displays 3 items using a custom list renderer. As items are added to this list, the last one in the list is removed (FIFO Queue), and a DefaultListEffect is used to animate incoming and outgoing items with a fade effect. The problem is that after some time (~5000 items passed through this list) the memory usage gets very very high, and if I profile the application I can see that instances of my renderer are not being removed. In order to solve this I attempted to create a factory that would cache the tiles and reuse them and use that as my itemRenderer instead, but unfortunately it appears that if I reuse a tile that has already been used it doesn't show up at all. I thought this was probably due to the list effect setting it to invisible, height 0, etc... so I attempted to reset all those settings before passing the item from the factory to the list, but it still just isn't working correctly. Is there a way to reuse the renderers and still have them show up properly to alleviate my memory leak?
[flexcoders] What is the command-line equivalent to Flex Builder's Build Project.. Command?
In my program, I have been receiving an error when I use a command-line compile command for mxmlc. The error is related to an embedded font name not being correctly identified by flex in the system fonts list. However, on a whim, I decided to copy the code to Flex Builder and compile it there. To my surprise, it worked, and it found the proper font using the same system name I had given (PMingLiU). I suspected my problem may be a locale one, and that my system cannot correctly identify the font name because of locale considerations. I've tried setting the locale of the compile code to en_US, to no avail. So I would like to ask if anyone here knows the exact command string that Flex tells Mxmlc whenever it compiles a project. My answer might lie there.
Re: [flexcoders] Re: Alert.show - Detect when closed from another mxml component
You can do that, however it is not very engineering like to bubble lots of layer to the application. I would bypass thet event through Cairngorm if I were you, provides a more decoupled way of handling things HTH, Claudiu - Original Message From: sleblang [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, October 21, 2008 10:52:11 PM Subject: [flexcoders] Re: Alert.show - Detect when closed from another mxml component Thanks for all the suggestions. I am sure one if not all of them would work. Just out of curiosity, in Flash, you can set a listener for the Stage to receive via capture or bubble, for example, mouseclicks (Stage.addEventList ener(MouseEvent. CLICK,clickHandl er)). Is there no way to do this in Flex with the Alert component and the Stage (Application. application? )? --- In [EMAIL PROTECTED] ups.com, claudiu ursica the_braniak@ ... wrote: Suposedly you'd have a data model in there, in you app, you can hold a boolean value and set it to true everytime you call Alert show and set it to false on close. In your other mxml just check that property of the model and you're done. (Not sure it is the best way to do it though.). HTH, Claudiu - Original Message From: sleblang [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Monday, October 20, 2008 10:52:25 PM Subject: [flexcoders] Alert.show - Detect when closed from another mxml component I have an Alert.show() being called from a command class. I need to detect when this Alert is closed in another mxml component (as opposed to the command class). What's the best way to determine when it's been closed? Does the event bubble? So far I have not been able to 'catch' it. Thanks for any and all replies.
Re: [flexcoders] Binding Getter to Collection Change
Binding only fires when you are hooked into a certain item of the array collection changes. So unless you are bound on a certain item, you should probably add a listener for CollectionEvent. COLLECTION_ CHANGE yourself and handle by hand the update. HTH, Claudiu - Original Message From: Kevin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, October 22, 2008 1:26:16 AM Subject: [flexcoders] Binding Getter to Collection Change I may be missing something simple here, but I would like to create a getter function in one of my classes that binds to a collection change event of an ArrayCollection in the same class. As a simple example, public var myCollection: ArrayCollection = new ArrayCollection( ); [Bindable] public function get mySimpleSum( ):int{ return myCollection. length + 10; } I would like to bind the view to the getter so that when myCollection is modified, the getter will refire and the view will update. So far nothing I have tried (such as [Bindable(event= CollectionEvent. COLLECTION_ CHANGE)]) works... Thoughts?... Thanks, Kevin
[flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear!
Hey guys, I'm having this problem on safari and Firefox, and it's a *big* problem. Any time I paste a bunch of text into my mx:textarea/ it all looks OK, but the newlines aren't really there. Trace(comp.text) shows they're not there, and if I copy from the textarea they're gone. Is this a known bug, or am I forgetting some magic setting or something? I *really* need to be able to paste into this app! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/
Re: [flexcoders] How to keep Tree control synchronized with the database. Please Help
Anuj, You will already have seen a few comments about this problem. If the user is updating the database inside the application you can use an event to signal to the application that the trees dataprovider should be refreshed, that would cause your tree to be updated. Of course, if your tree contains data being updated by other users concurrently, then you still won't immediately see the changes that they make. Paul - Original Message - From: anuj181 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, October 22, 2008 12:23 AM Subject: [flexcoders] How to keep Tree control synchronized with the database. Please Help Hi Guys I am trying to retrieve values form the database PostGres. I used REST calls for fetching the data and i am successful in binding that data with the data Provider of Tree control. Now my problem is that if I inserted any entry in the database, it will not update the Tree control directly. Once i refresh the page it shows the inserted entry. Can some one explain what 's the best way of dynamically synchronizing my Tree Control (UI) with the database. Any help and guidance or approach will be highly appreciated. Thanks Anuj
Re: [flexcoders] Flex connection to Oracle 10g PL/SQL
On Tuesday 21 Oct 2008, tphilp74 wrote: Just began looking at Flex 3. Was wondering how do you go about running a Flex app having it connect to Oracle You'll need a server-side language of some sort. -- Tom Chiverton Helping to confidentially build principle-centered compelling granular front-end experiences 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. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear!
How are you doing the code to copy and paste? Setting up a sting in MXML can look different than if you set it in actionscript. This may well be the issue. Eg. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ private var word : String = amp;\n hello; ]] /mx:Script mx:VBox mx:TextArea text={word} / mx:TextArea text=amp;\n hello / /mx:VBox /mx:Application This displays amp; hello in the first box and \n hello In the second box. HTH or at least gives you something to look into, Kenneth. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: 22 October 2008 08:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear! Hey guys, I'm having this problem on safari and Firefox, and it's a *big* problem. Any time I paste a bunch of text into my mx:textarea/ it all looks OK, but the newlines aren't really there. Trace(comp.text) shows they're not there, and if I copy from the textarea they're gone. Is this a known bug, or am I forgetting some magic setting or something? I *really* need to be able to paste into this app! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] Re: Alert.show - Detect when closed from another mxml component
In addition of Application.application.method(), you should be able to have in your Alert component (or the component that is aware of the Alert box and can detect a close event), something like this Application.application.dispatchEvent(new Event(MyAlertEvent.ALERT_CLOSED)) and in the other component that you want to be aware of the closed alert have Application.application.addEventListener(MyAlertEvent.ALERT_CLOSED, someMethod). More generally, the solution is to have one component dispatch and event to and another component listen to an event from an object that both components are aware of. --- In flexcoders@yahoogroups.com, sleblang [EMAIL PROTECTED] wrote: Thanks for all the suggestions. I am sure one if not all of them would work. Just out of curiosity, in Flash, you can set a listener for the Stage to receive via capture or bubble, for example, mouseclicks (Stage.addEventListener(MouseEvent.CLICK,clickHandler)). Is there no way to do this in Flex with the Alert component and the Stage (Application.application?)?
[flexcoders] createChildren(): adding 20 identical buttons to panel?
public class PanelTest extends Panel{ private var b1:Button; override protected function createChildren():void { super.createChildren(); b1 = new Button; this.addChild(b1); In order to add another 19 buttons, must vars b2 to b20 be declared etc? This is a very simplistic example of what I need to do ( dynamically add multiple instances of the same complex component class to a layout). Because b1 cannot be reused for another addChild(), how would you add the other buttons? TIA, Mic.
Re: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear!
As in, I type something in any text editor (or just hilight cmd-c in the console, etc), go to a textarea and hit cmd-v. Visually in the textarea it looks like it should, but .text has no newlines. On Wed, Oct 22, 2008 at 6:54 PM, Kenneth Sutherland [EMAIL PROTECTED] wrote: How are you doing the code to copy and paste? Setting up a sting in MXML can look different than if you set it in actionscript. This may well be the issue. Eg. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ *private* *var* word : String = *amp;\n hello*; ]] /mx:Script *mx:VBox* mx:TextArea text={word} / mx:TextArea text=amp;\n hello / /mx:VBox /mx:Application This displays amp; hello in the first box and \n hello In the second box. HTH or at least gives you something to look into, Kenneth. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* 22 October 2008 08:25 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear! Hey guys, I'm having this problem on safari and Firefox, and it's a *big* problem. Any time I paste a bunch of text into my mx:textarea/ it all looks OK, but the newlines aren't really there. Trace(comp.text) shows they're not there, and if I copy from the textarea they're gone. Is this a known bug, or am I forgetting some magic setting or something? I *really* need to be able to paste into this app! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ Disclaimer -- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. -- -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/
[flexcoders] Re: Flex 3: ChartLabel.as - parent is null (to Adobe)
I am also a victim! This bug was first reported 6 months ago and it is still there. It is marked as deferred, but deferred doesn't mean forgot, Adobe. Please do something about it, I don't wish other people losing one day like I did over an old bug (and which seem simple to correct). Benjamin. --- In flexcoders@yahoogroups.com, Rico Leuthold [EMAIL PROTECTED] wrote: Yep ... most likely you stumbled over this bug ... https://bugs.adobe.com/jira/browse/FLEXDMV-1695 Use the workaround with not setting initially ... works for me ... On 02.04.2008, at 17:40, adtrantravis wrote: When adding a chart to a canvas component, sometimes I recieve the following error. The parent value of the ChartLabel is null, and that causes the error stated below. Anyone had a similar experience? TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::ChartLabel/updateDisplayList() [C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\ chartClasses\ChartLabel.as:262] at mx.core::UIComponent/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :6214] at mx.managers::LayoutManager/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:602] at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:657] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8460] at mx.core::UIComponent/callLaterDispatcher() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8403]
Re: [flexcoders] createChildren(): adding 20 identical buttons to panel?
On Wednesday 22 Oct 2008, Mic wrote: In order to add another 19 buttons, must vars b2 to b20 be declared No. Not unless you need to get at them again without using getChildByName() or similar. You could simple push each instances on to an array, rather than having b1 .. bN. class to a layout). Because b1 cannot be reused for another addChild(), how would you add the other buttons? TIA, It can't be ? -- Tom Chiverton Helping to revolutionarily mesh networks 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. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Still no one knows ? Please help.
Hi, Use a ProgramaticSkin subclass. Then use the method drawCircle() to draw the circle based on the value of getStyle(color), which is your text color of the parent. Pseudo; override protected function updateDisplayList(w:Number, h:Number):void { var color:unit = getStyle(color); var g:Graphics = graphics; g.clear(); g.beginFill(color, 1) g.drawCircle(0, 0, w, h); g.endFill(); } Mike On Wed, Oct 22, 2008 at 12:00 AM, itdanny2002 [EMAIL PROTECTED] wrote: Thank you but I wanna to draw the circle or checkmark instead of using symbol. I have tried to embed image files. It works. However, I wanna to use the color as same as text. Since the color of my application can be changed, I can't predict what color user used and I can prepare so many different colors icon. So, how to do if I want to draw my own icon ? -- 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'.
Re: [flexcoders] createChildren(): adding 20 identical buttons to panel?
class to a layout). Because b1 cannot be reused for another addChild(), how would you add the other buttons? TIA, It can't be ? Yes, of course it can be reused, the type can't change. Which this is not the case since you are suing Button for all 20 instances. You can do; b1 = new Button() addChild(b1): b1 = new Button() addChild(b1): b1 = new Button() addChild(b1): as many times as you want. It's getting the instances back that you need to plan for. As far as retrieving them, as Tom said, and array object hash, or dictionary. Mike On Wed, Oct 22, 2008 at 6:10 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 22 Oct 2008, Mic wrote: In order to add another 19 buttons, must vars b2 to b20 be declared No. Not unless you need to get at them again without using getChildByName() or similar. You could simple push each instances on to an array, rather than having b1 .. bN. class to a layout). Because b1 cannot be reused for another addChild(), how would you add the other buttons? TIA, It can't be ? -- Tom Chiverton Helping to revolutionarily mesh networks 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. -- 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 -- 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'.
Re: [flexcoders] new to flex, problems installing Flex 4 SDK
On Tuesday 21 Oct 2008, Pedro Kostelec wrote: I am completely new to flex. I find it very difficult to install the Flex 4. I strongly suggest using Flex 3 if you are brand new. Flex 4 hasn't been released yet, and unless you *really* need some of the new features, you'll find Flex 3 much easier to get going. cd flex/sdk/trunk source setup.sh bash: cd: flex/sdk/trunk: No such file or directory. Skip the 'cd' step, as it appears to be trying to do it for you ? -- Tom Chiverton Helping to advantageously maintain content 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. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Resizeable Components in a Tilelist
I'm new to flex and OO based development, so I'm probably missing the point somewhere, but here's my problem. I have a created a component (QuestionComp) based on a canvas, that will display a box with a question label and answer input box as well as a couple of other things. On my main application, I have used a tilelist and linked it to my questions datasource and rendered each item using my QuestionComp component. This does the job of displaying what I want. My problem comes in that I want to resize the QuestionComp (if they press a button to add comments). I have a function in the component to change the Canvas size, but this doesn't seem to modify the way it's displayed in the tilelist. Is there something I need to do, to tell the tilelist to redraw the tile. Probably a really dumb question, but I've googled it and not found an answer. Many thanks Mark
Bug in player 10? (was: Re: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear!)
It works on my laptop which is on Flash 9, so it could be a bug in Player 10. When I get back to work I'll downgrade, test it and re-upgrade to verify it :) -Josh On Wed, Oct 22, 2008 at 7:41 PM, Josh McDonald [EMAIL PROTECTED] wrote: As in, I type something in any text editor (or just hilight cmd-c in the console, etc), go to a textarea and hit cmd-v. Visually in the textarea it looks like it should, but .text has no newlines. On Wed, Oct 22, 2008 at 6:54 PM, Kenneth Sutherland [EMAIL PROTECTED] wrote: How are you doing the code to copy and paste? Setting up a sting in MXML can look different than if you set it in actionscript. This may well be the issue. Eg. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout= vertical mx:Script ![CDATA[ *private* *var* word : String = *amp;\n hello*; ]] /mx:Script *mx:VBox* mx:TextArea text={word} / mx:TextArea text=amp;\n hello / /mx:VBox /mx:Application This displays amp; hello in the first box and \n hello In the second box. HTH or at least gives you something to look into, Kenneth. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* 22 October 2008 08:25 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear! Hey guys, I'm having this problem on safari and Firefox, and it's a *big* problem. Any time I paste a bunch of text into my mx:textarea/ it all looks OK, but the newlines aren't really there. Trace(comp.text) shows they're not there, and if I copy from the textarea they're gone. Is this a known bug, or am I forgetting some magic setting or something? I *really* need to be able to paste into this app! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ Disclaimer -- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. -- -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/
RE: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear!
I think I get what you're meaning but I've not got a mac and I'm not seeing the issue on my PC (is the issue happening on a PC). If you look at the debug window it will not show you the \n or \r but if you look at the value next to the name of the var in the debug window you will see the \n or \r chars. You could alternately look at the htmlText property and you should see all of the formatting there. Kenneth. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: 22 October 2008 10:42 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear! As in, I type something in any text editor (or just hilight cmd-c in the console, etc), go to a textarea and hit cmd-v. Visually in the textarea it looks like it should, but .text has no newlines. On Wed, Oct 22, 2008 at 6:54 PM, Kenneth Sutherland [EMAIL PROTECTED] wrote: How are you doing the code to copy and paste? Setting up a sting in MXML can look different than if you set it in actionscript. This may well be the issue. Eg. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ private var word : String = amp;\n hello; ]] /mx:Script mx:VBox mx:TextArea text={word} / mx:TextArea text=amp;\n hello / /mx:VBox /mx:Application This displays amp; hello in the first box and \n hello In the second box. HTH or at least gives you something to look into, Kenneth. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: 22 October 2008 08:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear! Hey guys, I'm having this problem on safari and Firefox, and it's a *big* problem. Any time I paste a bunch of text into my mx:textarea/ it all looks OK, but the newlines aren't really there. Trace(comp.text) shows they're not there, and if I copy from the textarea they're gone. Is this a known bug, or am I forgetting some magic setting or something? I *really* need to be able to paste into this app! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
Re: [flexcoders] Chart fails when used in module
Replying to my own post...I guess I am seeing this same bug that's a subject of another thread: https://bugs.adobe.com/jira/browse/FLEXDMV-1695 My way of triggering it is slightly different but the same code appears to be causing it. I spose I'll try the workaround listed there. Guy On 22/10/2008, at 10:55 AM, Guy Morton wrote: Hello I have a chart which works fine in a normal MXML component, but when I try to turn it into a module I get this when trying to load it: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::ChartLabel/updateDisplayList()[C:\work\flex \dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses \ChartLabel.as:262] at mx.core::UIComponent/validateDisplayList()[E:\dev\3.1.0\frameworks \projects\framework\src\mx\core\UIComponent.as:6293] at mx.managers::LayoutManager/validateDisplayList()[E:\dev \3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as: 605] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev \3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as: 678] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks \projects\framework\src\mx\core\UIComponent.as:8565] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks \projects\framework\src\mx\core\UIComponent.as:8508] My guess is that this is somehow related to the way the chart is now instantiated and that I need to somehow delay whatever Flex is trying to do that causes this crash. Anyone have any clues as to what's going wrong here? TIA Guy
[flexcoders] Flash
Hi there, Just a few quick questions from me: What is the best way to inserting a Flash SWF file into a flex, that will enable me to have it start from frame 0 on reentry of that framework? Would this be States, Viewstack? Is there a way of using forward and back buttons to navigate through displaying a set of States rather than selecting certain objects that will then change the state onscreen? Is there some code anywhere that can show this? TIA - Regards J
[flexcoders] Wizard Component?
Hi guys, does anyone know if a Wizard link component is already in existence in flex. This sort of component would behave in the same way that a installer wizard would when installing normal windows programs, with next and previous buttons for navigation? A little something like this http://www.onlamp.com/onlamp/2007/07/19/graphics/new_project_1.png Thanks
[flexcoders] Wizard
Hi guys, does anyone know if a Wizard like component is already in existence in flex. This sort of component would behave in the same way that a installer wizard would when installing normal windows programs, with next and previous buttons for navigation? A little something like this http://www.onlamp.com/onlamp/2007/07/19/graphics/new_project_1.png Thanks
Re: [flexcoders] dividerSkin problem
Hi Guy, There is no logic in the divider container that checks the minimum width or height of the dividers relative to the size of their container. I don't think this is to weird on Adobe's part since they usually have a policy (unwritten) that chrome is not part of the measurement algorithm. The dividers are considered chrome and exist in their own UIComponent layer . You probably could subclass and add this measurement but it's not that easy since the DividedBox by nature does not like calling measure(). They do this for performance and relates to their layout implementation. Mike On Tue, Oct 21, 2008 at 6:14 PM, Guy Morton [EMAIL PROTECTED] wrote: Hello If I use dividerSkin to set the skin of a HDividedBox to an image file, and the HDividedBox sits inside a VDividedBox, and the image file I'm using for the skin is wider than the HDividedBox, the skin image is drawn over the content in the other pane of the VDividedBox, ie it is not truncated to fit within the bounds of the HDividedBox. This seems very wrong to me. I've tried using clipContent=true but that makes no difference. I've also tried using a vector-based SVG image as the skin, but that doesn't help either. Am I doing something wrong or is Flex just a bit stoopid in this regard? What possible justification could there be for a HDividedBox with a custom skin to allow it's custom divider to be drawn outside it's own bounds? Guy -- 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'.
[flexcoders] QTP Flex Add-in problem with some FlexDataGrids
I am trying to automate Flex application with Adobe QTP Add-in. The problem is that content of a few FlexDataGrids is not recognizable by QTP. When such DataGrid doesn't have content, everything is fine. DataGrid itself and the header are recognizable. The issue takes place if content is entered in cells. Object Spy sees sells and the header as WinObject. DataGrid itself continues to be recognizable. HeaderClick and SelectIndex are working, but extract information from cells is impossible. Environment: Flex 2.01 HF2, compiled with 2.0.1 HF2 automation libraries QTP 9.2 QTP Flex Add-in 2.01 HF2. I've already submitted this issue to Flex Adobe forum, but didn't get any respond so far. The problem is critical for our automation, so I would appreciate any help.
[flexcoders] my boss wants the impossible.. or is it?
Hi guys, I have a weird question. Is there a way to change, modify or remove the application loading component everytime a Flex program starts? In every example I've seen throughout the internet, the loading component is always there. Any thoughts? Thanks for reading this :D Have a good day. Alvin
Re: [flexcoders] Flex connection to Oracle 10g PL/SQL
No need server side language. You can enabled Oracle EPG (Encapsuled PL/SQL Gateway) and XDB (XML Database) in your Oracle database and connect Flex to Oracle using a HTTP Service request to access directly a Stored Procedure and send a XML file back to Flex. Good Luck! Atenciosamente, Juliano Mendes Flex Pernambuco Wed, 22 Oct 2008 09:40:51 +0100, Tom Chiverton [EMAIL PROTECTED] escreveu: On Tuesday 21 Oct 2008, tphilp74 wrote: Just began looking at Flex 3. Was wondering how do you go about running a Flex app having it connect to Oracle You'll need a server-side language of some sort. -- Tom Chiverton Helping to confidentially build principle-centered compelling granular front-end experiences 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. -- 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] drag drop invokes click handler of dragged compoent
Hi Prashant, You can try using mouseUp event instead of click event. But you will also have to write some extra logic to check if the drag is being performed. You may set some boolean variable on drag and check it on mouseUp event handler. If it is set then do not do anything. Hope this helps Thanks, Saagar Shetty. - Original Message From: jitendra jain [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, 21 October, 2008 2:15:02 PM Subject: Re: [flexcoders] drag drop invokes click handler of dragged compoent I don't understand your question. How can you start dragging without clicking? Please make it very clear what you want... If possible give an example.. Thanks, with Regards, Jitendra Jain From: prashant194 prashant194@ yahoo.com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, 21 October, 2008 1:57:53 PM Subject: [flexcoders] drag drop invokes click handler of dragged compoent Is there any way i can strop the click handler of the dragged component being fired when the component is dragged and dropped over other region? I want the click handler to work only on non drag operation i.e. when the component is clicked only and i want to stop click handler from fired when dragged and dropped. Check out the all-new face of Yahoo! India. Click here. Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
Re: [flexcoders] my boss wants the impossible.. or is it?
Google for Flex preloader and you'll find lots of info -Josh On Wed, Oct 22, 2008 at 12:39 PM, al-al :D [EMAIL PROTECTED] wrote: Hi guys, I have a weird question. Is there a way to change, modify or remove the application loading component everytime a Flex program starts? In every example I've seen throughout the internet, the loading component is always there. Any thoughts? Thanks for reading this :D Have a good day. Alvin -- 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 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/
Re: [flexcoders] my boss wants the impossible.. or is it?
Flex Preloader is a Class and you can have your own. But, you have to be aware that you don't have access to the flex framework only the base class of flash (which is substantial)... What do you want to change at every launch ? -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] Re: my boss wants the impossible.. or is it?
http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php --- In flexcoders@yahoogroups.com, al-al :D [EMAIL PROTECTED] wrote: Hi guys, I have a weird question. Is there a way to change, modify or remove the application loading component everytime a Flex program starts? In every example I've seen throughout the internet, the loading component is always there. Any thoughts? Thanks for reading this :D Have a good day. Alvin
Re: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear!
Yeah, ther problems I was seeing are twofold: 1. Pasted-in text loses all newlines 2. Debug inspection of preset text using this syntax: mx:TextArea height=50% width=100% id=template wordWrap=false change=trace(template.text) mx:text![CDATA[ package fundsmanagement.business.commands { import intelligentpathways.framework.core.CommandEvent; #each field in fields# //$field$ private var _$field.name$ : $field.type$; #end each field# public class $cmdClassName$ extends CommandEvent { public static const $constName$ : String = $eventType$; public function $cmdClassName$() { super($constName$); } } } ]]/mx:text /mx:TextArea Shows that instead of \n I get \r, like it's stuck in MacOS 9 mode or something *shudder* -Josh On Wed, Oct 22, 2008 at 10:14 PM, Kenneth Sutherland [EMAIL PROTECTED] wrote: I think I get what you're meaning but I've not got a mac and I'm not seeing the issue on my PC (is the issue happening on a PC). If you look at the debug window it will not show you the \n or \r but if you look at the value next to the name of the var in the debug window you will see the \n or \r chars. You could alternately look at the htmlText property and you should see all of the formatting there. Kenneth. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* 22 October 2008 10:42 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear! As in, I type something in any text editor (or just hilight cmd-c in the console, etc), go to a textarea and hit cmd-v. Visually in the textarea it looks like it should, but .text has no newlines. On Wed, Oct 22, 2008 at 6:54 PM, Kenneth Sutherland [EMAIL PROTECTED] wrote: How are you doing the code to copy and paste? Setting up a sting in MXML can look different than if you set it in actionscript. This may well be the issue. Eg. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ *private* *var* word : String = *amp;\n hello*; ]] /mx:Script *mx:VBox* mx:TextArea text={word} / mx:TextArea text=amp;\n hello / /mx:VBox /mx:Application This displays amp; hello in the first box and \n hello In the second box. HTH or at least gives you something to look into, Kenneth. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* 22 October 2008 08:25 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] WTF? When pasting into a textarea (on mac), all my newlines disappear! Hey guys, I'm having this problem on safari and Firefox, and it's a *big* problem. Any time I paste a bunch of text into my mx:textarea/ it all looks OK, but the newlines aren't really there. Trace(comp.text) shows they're not there, and if I copy from the textarea they're gone. Is this a known bug, or am I forgetting some magic setting or something? I *really* need to be able to paste into this app! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ Disclaimer -- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. -- -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ Disclaimer -- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in
RE: [flexcoders] Re: my boss wants the impossible.. or is it?
I'd recommend reading this one as well. If you use teds examples you'll end up with a fairly large swf file. Use the following at it will cut it right down to the basic elements. http://jessewarden.com/2007/07/making-a-cooler-preloader-in-flex-part-1- of-3.html I've also pasted in a further cut down version that will also force the preloader to show every time and not just after the present number of milliseconds. http://privatepaste.com/18NTUlA3UW Kenneth. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cato Paus Sent: 22 October 2008 14:11 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: my boss wants the impossible.. or is it? http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples .php --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , al-al :D [EMAIL PROTECTED] wrote: Hi guys, I have a weird question. Is there a way to change, modify or remove the application loading component everytime a Flex program starts? In every example I've seen throughout the internet, the loading component is always there. Any thoughts? Thanks for reading this :D Have a good day. Alvin Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] sailorsea21 - Does anyone know why this code works with Firefox but not with IE?
Hey everyone, I populate my chart from a MySQL database. My php script retrieves the data and then converts it into XML for my flex chart. I needed to have the chart refreshed every 30sec without refreshing the entire page. I got a script working perfectly for Firefox. Every 30sec the chart updates but in Internet explorer, it will only update every hour or so... Is there a fix or is this a know IE bug? This is the script: mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; [Bindable] private var myxmldata:ArrayCollection = new ArrayCollection; [Bindable] private var xmlFeed:XML; private function xmlResultHandler(event:ResultEvent):void { myxmldata.removeAll() ; xmlFeed = event.result as XML; for each(var ourxml:XML in xmlFeed.elements() ) myxmldata.addItem (ourxml); } private function xmlFaultHandler(event:FaultEvent):void { var faultMessage:String = Could not connect with XML file; Alert.show(faultMessage, Error opening file); } public function initTimer():void { var myTimer:Timer = new Timer(3); myTimer.addEventListener(TimerEvent.TIMER, updateData); myTimer.start(); } private function updateData(event:TimerEvent):void { data.send(); } ]] /mx:Script Thanks everyone! -David
Re: [flexcoders] Re: Still no one knows ? Please help.
Hi, Since you are using an itemRenderer, this could be tricky. You need to find out where the parent is (MenuItem instance) and cast that reference to IStyleClient. IE var color = IStyleClient(parent.parent).getStyle(color); Mike On Wed, Oct 22, 2008 at 9:40 AM, itdanny2002 [EMAIL PROTECTED] wrote: Thank you very much. Hi, may I know how to get parent style ? when I get the style, it returns error. I found that the stylename is null and return undefined when got Color style. How can it search the chain and get its parent style ? Many Many Thanks. -- 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'.
RE: [flexcoders] modules and services-config.xml
That's what I was hoping you could tell me ;) I suppose I will have to do my own dirty work. Thanks for your help. -Maciek -Original Message- From: Alex Harui [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: RE: [flexcoders] modules and services-config.xml Date: Tue, 21 Oct 2008 21:45:22 -0700 RO and services-config is not my area of expertise, but I’m pretty sure the compiler generates code that just sets up channels and endpoints, which I think you can set on a RemoteObject dynamically. Is there more to it than making an HTTP request for an XML file and using that to instantiate the appropriate channels and what not? From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: Tuesday, October 21, 2008 6:52 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] modules and services-config.xml Thanks, Alex. Supposing we really do want modules with new endpoints and not sub-applications, is it possible to emulate services-config.xml functionality by programmatically requesting a services-config.xml-like per-module config file and subclassing RemoteObject to understand the extra channels and endpoints defined there? Any pointers if that's a viable solution? -Maciek -Original Message- From: Alex Harui [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: RE: [flexcoders] modules and services-config.xml Date: Tue, 21 Oct 2008 12:42:47 -0700 Modules imply a certain level of sharing of class definitions and what not and probably don’t allow you to not share what AMF needs. You might want to use a Marshall Plan configuration instead. From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: Tuesday, October 21, 2008 9:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] modules and services-config.xml Anyone? I can't be the first one to hit this limitation, can I? -Original Message- From: Maciek Sakrejda [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] modules and services-config.xml Date: Mon, 20 Oct 2008 08:57:05 -0700 I asked this on Saturday, but it was as a clarification to another question and got no response, so I thought I'd ask again. What's the best way to deal with modules that define their own set of AMF endpoints (or even channels)? I need a single services-config.xml file for the entire war file (I'm deploying as a Java war), right? Is there an easy way to set up AMF so that others can add modules to the war without having to recompile the main application against a new services-config.xml? Is there any way to do that? Modules seem really cool, but it would be nice if they were self-contained with respect to this... -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com
[flexcoders] Re: Still no one knows ? Please help.
Thank you very much. Hi, may I know how to get parent style ? when I get the style, it returns error. I found that the stylename is null and return undefined when got Color style. How can it search the chain and get its parent style ? Many Many Thanks.
Re: [flexcoders] parent styles ( was Re: Still no one knows ? Please help.)
This might be an interesting thread for some people - it might be an idea to change the thread name for the saga.. - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Wednesday, October 22, 2008 2:52 PM Subject: Re: [flexcoders] Re: Still no one knows ? Please help. Hi, Since you are using an itemRenderer, this could be tricky. You need to find out where the parent is (MenuItem instance) and cast that reference to IStyleClient. IE var color = IStyleClient(parent.parent).getStyle(color); Mike On Wed, Oct 22, 2008 at 9:40 AM, itdanny2002 [EMAIL PROTECTED] wrote: Thank you very much. Hi, may I know how to get parent style ? when I get the style, it returns error. I found that the stylename is null and return undefined when got Color style. How can it search the chain and get its parent style ? Many Many Thanks. -- 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'.
[flexcoders] Re: Call to a member function on a non-object Weborb or PHP
Does anyone know if this is a weborb or a php problem? Thanks, timgerr --- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote: Hello all, I am using weborb and getting this error but I am not sure it is a weborb problem. I have a class CleanQueryClass.php class CleanData { public function CleanObject($obj) { $n = new stdClass; foreach($obj as $var = $value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not integer if (!is_numeric($value) || $value[0] == '0') { $value = mysql_real_escape_string($value); } $n-$var = $value; } return $n; } } I call this class from another class UserAuthenicate.php: class UserAuthenicate { public function HandShake(SB $info) { require_once('CleanQueryClass.php'); $cln = new CleanData; return $clean-CleanObject($info); } } class SB{ var $userName; var $password; var $status; } When I communicate to UserAuthenicate.php with a weborb remote object I get an error in flex, server didnt respond (somthing like that) I look in charles and I see this: bFatal error/b: Call to a member function CleanObject() on a non-object in bC:\xampp\htdocs\weborb\Services\dnt\Authenicate\UserAuthenicate.php/b on line b12/bbr / Can someone tell me what I am doing wrong? I am passong an object to the class method. Thanks, timgerr
[flexcoders] Re: MenuBar menuItem - dynamically change selected item
You need to use the dispatchEvent() method to send a Click to the menubar. This example is for a mouseover but you get the idea, obj.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER)); --- In flexcoders@yahoogroups.com, sleblang [EMAIL PROTECTED] wrote: I have the following menubar implemented: mx:MenuBar id=adminBar labelField=@label itemClick=changeMenuView(event)change=adminBarSelection(event) mx:XMLList menuitem label=Options data=top menuitem label=Main data=MainView type=radio group=group1 / menuitem label=Account Management data=AddUser type=radio group=group1 / menuitem label=Log Out data=LogOut type=radio group=group1 / /menuitem /mx:XMLList /mx:MenuBar How can I dynamically change which menuitem is selected without actually clicking on it? Thanks for any and all replies.
[flexcoders] Re: modules and services-config.xml
Maciek Why not just keep the Remote Object details in a database and then use the technique shown in: http://tech.groups.yahoo.com/group/flexcoders/message/126803 to create a dynamic remote object? --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: That's what I was hoping you could tell me ;) I suppose I will have to do my own dirty work. Thanks for your help. -Maciek -Original Message- From: Alex Harui [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: RE: [flexcoders] modules and services-config.xml Date: Tue, 21 Oct 2008 21:45:22 -0700 RO and services-config is not my area of expertise, but I’m pretty sure the compiler generates code that just sets up channels and endpoints, which I think you can set on a RemoteObject dynamically. Is there more to it than making an HTTP request for an XML file and using that to instantiate the appropriate channels and what not? From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: Tuesday, October 21, 2008 6:52 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] modules and services-config.xml Thanks, Alex. Supposing we really do want modules with new endpoints and not sub-applications, is it possible to emulate services-config.xml functionality by programmatically requesting a services-config.xml-like per-module config file and subclassing RemoteObject to understand the extra channels and endpoints defined there? Any pointers if that's a viable solution? -Maciek -Original Message- From: Alex Harui [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: RE: [flexcoders] modules and services-config.xml Date: Tue, 21 Oct 2008 12:42:47 -0700 Modules imply a certain level of sharing of class definitions and what not and probably don’t allow you to not share what AMF needs. You might want to use a Marshall Plan configuration instead. From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: Tuesday, October 21, 2008 9:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] modules and services-config.xml Anyone? I can't be the first one to hit this limitation, can I? -Original Message- From: Maciek Sakrejda [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] modules and services-config.xml Date: Mon, 20 Oct 2008 08:57:05 -0700 I asked this on Saturday, but it was as a clarification to another question and got no response, so I thought I'd ask again. What's the best way to deal with modules that define their own set of AMF endpoints (or even channels)? I need a single services-config.xml file for the entire war file (I'm deploying as a Java war), right? Is there an easy way to set up AMF so that others can add modules to the war without having to recompile the main application against a new services-config.xml? Is there any way to do that? Modules seem really cool, but it would be nice if they were self-contained with respect to this... -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com
[flexcoders] Re: Still no one knows ? Please help.
--- In flexcoders@yahoogroups.com, itdanny2002 [EMAIL PROTECTED] wrote: Thank you but I wanna to draw the circle or checkmark instead of using symbol. I have tried to embed image files. It works. However, I wanna to use the color as same as text. Since the color of my application can be changed, I can't predict what color user used and I can prepare so many different colors icon. So, how to do if I want to draw my own icon ? You can use ANY class as an icon. So build your own class that does what you want, then use that. HTH; Amy
[flexcoders] Re: using components
Hi, First of all I would like to thank you. I tried your suggestions. Application.application didn't work and until I put addEventListener code in function which is trigered by applicationComplete it continue to cast me error number 1120 when I did it problem was solved
[flexcoders] Re: Problem with scaleX for system fonts!
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] wrote: Try scaling only in one direction (X or Y) and you will see that it doesn't work. However it does with embedded fonts. I think scaling in both directions with the same value makes flex use another font size, but real scaling only can be applied to embedded fonts. Anyway, this limitation will be removed in Flex 4 (Gumbo) and we will be able to do what we want with text without the need to embed any fonts :) It's interesting that blendMode works for alpha and rotation, but not for this type of scaling. I wonder what the difference is.
Re: [flexcoders] Wizard
That would be easy enough to do yourself, using mx:Panel or mx:TitleWindow, then adding a viewstack as a child, then setting the next and previous buttons to traverse the viewstack. On Wed, Oct 22, 2008 at 7:46 AM, duncan_coutts [EMAIL PROTECTED]wrote: Hi guys, does anyone know if a Wizard like component is already in existence in flex. This sort of component would behave in the same way that a installer wizard would when installing normal windows programs, with next and previous buttons for navigation? A little something like this http://www.onlamp.com/onlamp/2007/07/19/graphics/new_project_1.png Thanks
Re: [flexcoders] drag drop invokes click handler of dragged compoent
The DragManager has a useful method to save you the trouble: isDragging(), I think. I needed to do something like this just yesterday... I have a list or words in one list and then the synonyms for the selected word in another. I want to be able to drag a word from the first list to the second list (saying This word is also a synonym etc). However, when you try to drag the word, the selection changes and so the 2nd list updates with the synonyms of the second word! All I did was to use DragManager.isDragging() to prevent updating of the 2nd list when dragging. Then when dragging finished (dragComplete), set the selected item of the first list back to its pre-drag state. SAAGAR SHETTY wrote: You can try using mouseUp event instead of click event. But you will also have to write some extra logic to check if the drag is being performed. You may set some boolean variable on drag and check it on mouseUp event handler. If it is set then do not do anything. -- View this message in context: http://www.nabble.com/drag-drop-invokes-click-handler-of-dragged-compoent-tp20085668p20112727.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: sailorsea21 - Does anyone know why this code works with Firefox but not with IE?
Sounds like IE is caching the result. Try programatically changing the url of your HTTPService by tacking on a querystring parameter with a timestamp. So, change the url to http://www.whatever.php?ForceIEReload=20081022T11001234. Your PHP script will ignore the extra parameter, but it might force IE to not cache. Here's a link that discusses IE caching and a workaround. http://www.howtoadvice.com/StopCaching Jared Langdon
[flexcoders] Re: How to remove space at the end of line chart when using disabledDays = [6,0]!
I've been using Flex to plot some financial charts, using the mx:DateTimeAxis as my horizontal axis to show the date and time of the plot. When plotting annual info, I'm able to use the disableDays feature to remove Saturday and Sunday from the plot. While this feature has its own set of problems (performance, incorrectly shrinking the plot's width) I've been able to work around those glitches to my satisfaction. I also been rendering intra-day financial charts, and sometimes multi-day intra-day charts. In other words, I'll be displaying stock data from 9:30am Monday through 4:00pm Wednesday, using minutes as the unit of measure for my horizontal DateTimeAxis. My problem is that I'd like to hide the periods of the day in which there is no trading activity when displaying a multi-day-intrady plot. So in my example of rendering an intra-day plot of Monday-Wednesday, I'd like to remove all of the overnight periods between Monday-Tuesday and Tuesday-Wednesday. If it was an annual plot, I could use disableDays and provide an array of the day values that the Flex chart component should remove, but is there a way to do this when the unit of measure for the horizontal DateTimeAxis is minutes instead of days? Thanks!
RE: [flexcoders] Wizard
Have you checked this out? http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=11246 -Kyle From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nick Collins Sent: Wednesday, October 22, 2008 9:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Wizard That would be easy enough to do yourself, using mx:Panel or mx:TitleWindow, then adding a viewstack as a child, then setting the next and previous buttons to traverse the viewstack. On Wed, Oct 22, 2008 at 7:46 AM, duncan_coutts [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi guys, does anyone know if a Wizard like component is already in existence in flex. This sort of component would behave in the same way that a installer wizard would when installing normal windows programs, with next and previous buttons for navigation? A little something like this http://www.onlamp.com/onlamp/2007/07/19/graphics/new_project_1.png Thanks inline: image001.jpginline: image002.jpg
[flexcoders] Re: Call to a member function on a non-object Weborb or PHP
It is a PHP problem. You create your CleanData instance with: $cln = new CleanData; Then you try to run the method CleanObject with: return $clean-CleanObject($info); $clean is not an object instance ($cln is the instance). --- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote: Does anyone know if this is a weborb or a php problem? Thanks, timgerr --- In flexcoders@yahoogroups.com, timgerr tim.gallagher@ wrote: Hello all, I am using weborb and getting this error but I am not sure it is a weborb problem. I have a class CleanQueryClass.php class CleanData { public function CleanObject($obj) { $n = new stdClass; foreach($obj as $var = $value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not integer if (!is_numeric($value) || $value[0] == '0') { $value = mysql_real_escape_string($value); } $n-$var = $value; } return $n; } } I call this class from another class UserAuthenicate.php: class UserAuthenicate { public function HandShake(SB $info) { require_once('CleanQueryClass.php'); $cln = new CleanData; return $clean-CleanObject($info); } } class SB{ var $userName; var $password; var $status; } When I communicate to UserAuthenicate.php with a weborb remote object I get an error in flex, server didnt respond (somthing like that) I look in charles and I see this: bFatal error/b: Call to a member function CleanObject() on a non-object in bC:\xampp\htdocs\weborb\Services\dnt\Authenicate\UserAuthenicate.php/b on line b12/bbr / Can someone tell me what I am doing wrong? I am passong an object to the class method. Thanks, timgerr
[flexcoders] Charts - How to filter dataprovider by date?
Hi everyone, I've spent hours over several weeks looking for a hint of an answer to this, perhaps my situation is unique. I have a database, that through necessity, has the data for multiple items, we'll call them different tests. Now if I use this database for a chart's data provider, it will of course display along the x-axis, all entries which currently exist. So if there are 10 entries, I'll get 10 data points, whether anything is plotted on the y-axis or not - just a default line chart, no other parameters set, it's not important yet. Okay, so lets say that out of the 10 currently existing data points in the db, only 5 are relevant to me at the moment. I've figured out how to select the five I wish by defining them in the y-axis series, however the remaining 5, still of course exist in the data provider and are shown along the bottom of the chart and because the data is not relevant to my selection, appears as zero, no data. I've probably lost you, so let me explain what I want to do. I would like to be able to filter the data presented in the data provider, before the chart is rendered. So if I wish to show only 5 of the 10 available points in the table, I can do so. Now, can this be done simply by manipulating the x-axis or is it required to be done perhaps with sql calls to the database. How about a hint about how I can filter or control the data delivered in the data provider. Thanks,
[flexcoders] How does one cancel/unaccept a drag-and-drop operation in Flex 3?
Goal: Allow the user to delete a record by dragging a row from an AdvancedDataGrid, dropping it onto a trash-can icon and verify the user meant to do that via a popup alert with OK and Cancel buttons. What is working: * Dragging/Dropping a row onto the trash icon. * If the user clicks the OK button, the record is deleted. * If the user clicks the Cancel button, the operation is canceled. Problem: After the user clicks the Cancel button and the popup alert closes, no rows in the ADG can be dragged. I've discovered that after sorting the ADG, by clicking on a column header, the user can begin dragging rows again. Code Flow: 1. Drag/drop ADG row onto trash icon. 2. Display confirmation Alert box. 3. If user clicked Cancel button, redisplay the ADG. Code: mx:Image source={trashImage} buttonMode=true toolTip=drag a participant here to delete them from the project dragDrop=deleteParticipantDrop(event) dragEnter=deleteParticipantEnter(event) dragExit=deleteParticipantDragExit(event) top=4 right=122 id=image2 / // trashImage Event Handlers: private function deleteParticipantEnter(event:DragEvent):void { var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); DragManager.showFeedback(DragManager.MOVE); deleteParticipantDragEvent = event; } private function deleteParticipantDrop(event:DragEvent):void { var selectedKitNum:String = memberRpt.selectedItem.KitNum; var selectedName:String = memberRpt.selectedItem.ParticipantName; var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); isEditingParticipantInfo = false; isDeletingParticipant = true; deleteParticipantDropEvent = event; event.stopImmediatePropagation(); // Added as per mrm alert.confirm(Are you sure you want to delete this participant, Kit # + memberRpt.selectedItem.KitNum + ( + memberRpt.selectedItem.ParticipantName + ) from the project? This cannot be reversed!! An email will be + sent to notify this participant and you will receive a copy of it for your records., confirmRemoveParticipant); } private function deleteParticipantDragExit(event:DragEvent):void { var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); DragManager.showFeedback(DragManager.NONE); } private function confirmRemoveParticipant(event:CloseEvent):void { if (event.detail == Alert.YES) { deleteReason = DeleteParticipantTitleWindow(PopUpManager.createPopUp( this, DeleteParticipantTitleWindow , true)); dispatchEvent(deleteParticipantDropEvent); // Added as per mrm PopUpManager.centerPopUp(deleteReason); deleteReason.showCloseButton = true; deleteReason.title = Reason for removal from project; deleteReason.addEventListener(close, cleanupRemoveParticipant); deleteReason[cancelButton].addEventListener(click, cleanupRemoveParticipant); deleteReason[okButton].addEventListener(click, finalizeDeleteParticipant); isDeletingParticipant = false; } else { cleanupRemoveParticipant(); } } private function cleanupRemoveParticipant(event:Event = null):void { memberRpt.invalidateDisplayList(); memberRpt.executeBindings(); if (deleteReason != null) { PopUpManager.removePopUp(deleteReason); deleteReason = null; } } public function finalizeDeleteParticipant(event:Event):void { if (deleteReason.reason.text != null) { selectedReportItem = memberRpt.selectedItem; selectedReportItemIndex = memberRpt.selectedIndex; memberReportData.removeItemAt(selectedReportItemIndex); } else { alert.info(You must provide a reason for removing a participant from your project!!); } cleanupRemoveParticipant(); }
[flexcoders] Re: How does one cancel/unaccept a drag-and-drop operation in Flex 3?
I forgot to mention that I posted the same question at stackoverflow.com (http://stackoverflow.com/questions/223324/how-does-one-cancelunaccept-a-drag-and-drop-operation-in-flex-3). --- In flexcoders@yahoogroups.com, Sean [EMAIL PROTECTED] wrote: Goal: Allow the user to delete a record by dragging a row from an AdvancedDataGrid, dropping it onto a trash-can icon and verify the user meant to do that via a popup alert with OK and Cancel buttons. What is working: * Dragging/Dropping a row onto the trash icon. * If the user clicks the OK button, the record is deleted. * If the user clicks the Cancel button, the operation is canceled. Problem: After the user clicks the Cancel button and the popup alert closes, no rows in the ADG can be dragged. I've discovered that after sorting the ADG, by clicking on a column header, the user can begin dragging rows again. Code Flow: 1. Drag/drop ADG row onto trash icon. 2. Display confirmation Alert box. 3. If user clicked Cancel button, redisplay the ADG. Code: mx:Image source={trashImage} buttonMode=true toolTip=drag a participant here to delete them from the project dragDrop=deleteParticipantDrop(event) dragEnter=deleteParticipantEnter(event) dragExit=deleteParticipantDragExit(event) top=4 right=122 id=image2 / // trashImage Event Handlers: private function deleteParticipantEnter(event:DragEvent):void { var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); DragManager.showFeedback(DragManager.MOVE); deleteParticipantDragEvent = event; } private function deleteParticipantDrop(event:DragEvent):void { var selectedKitNum:String = memberRpt.selectedItem.KitNum; var selectedName:String = memberRpt.selectedItem.ParticipantName; var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); isEditingParticipantInfo = false; isDeletingParticipant = true; deleteParticipantDropEvent = event; event.stopImmediatePropagation(); // Added as per mrm alert.confirm(Are you sure you want to delete this participant, Kit # + memberRpt.selectedItem.KitNum + ( + memberRpt.selectedItem.ParticipantName + ) from the project? This cannot be reversed!! An email will be + sent to notify this participant and you will receive a copy of it for your records., confirmRemoveParticipant); } private function deleteParticipantDragExit(event:DragEvent):void { var component:IUIComponent = IUIComponent(event.currentTarget); dragComponent = component; DragManager.acceptDragDrop(component); DragManager.showFeedback(DragManager.NONE); } private function confirmRemoveParticipant(event:CloseEvent):void { if (event.detail == Alert.YES) { deleteReason = DeleteParticipantTitleWindow(PopUpManager.createPopUp( this, DeleteParticipantTitleWindow , true)); dispatchEvent(deleteParticipantDropEvent); // Added as per mrm PopUpManager.centerPopUp(deleteReason); deleteReason.showCloseButton = true; deleteReason.title = Reason for removal from project; deleteReason.addEventListener(close, cleanupRemoveParticipant); deleteReason[cancelButton].addEventListener(click, cleanupRemoveParticipant); deleteReason[okButton].addEventListener(click, finalizeDeleteParticipant); isDeletingParticipant = false; } else { cleanupRemoveParticipant(); } } private function cleanupRemoveParticipant(event:Event = null):void { memberRpt.invalidateDisplayList(); memberRpt.executeBindings(); if (deleteReason != null) { PopUpManager.removePopUp(deleteReason); deleteReason = null; } } public function finalizeDeleteParticipant(event:Event):void { if (deleteReason.reason.text != null) { selectedReportItem = memberRpt.selectedItem; selectedReportItemIndex = memberRpt.selectedIndex; memberReportData.removeItemAt(selectedReportItemIndex); } else { alert.info(You must provide a reason for removing a participant from your project!!); } cleanupRemoveParticipant(); }
[flexcoders] Re: createChildren(): adding 20 identical buttons to panel?
Here is a quick and dirty example on how to add multiple instances as well as how to access them after creation: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:custom=CustomClasses.* creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Button; private function onCreationComplete():void { var panelChildren:Array = panelTest.getChildren(); for(var i:int = 0 ; i panelChildren.length ; i++) { if(panelChildren[i] is Button) { trace((panelChildren[i] as Button).label); } } } ]] /mx:Script custom:PanelTest id=panelTest/ /mx:Application PanelTest.as: package CustomClasses { import mx.containers.Panel; import mx.controls.Button; public class PanelTest extends Panel { public function PanelTest() { super(); for(var i:int = 0 ; i 20 ; i++) { var b1:Button = new Button(); b1.label = Button + (i + 1); addChild(b1); } } } } --- In flexcoders@yahoogroups.com, Mic [EMAIL PROTECTED] wrote: public class PanelTest extends Panel{ private var b1:Button; override protected function createChildren():void { super.createChildren(); b1 = new Button; this.addChild(b1); In order to add another 19 buttons, must vars b2 to b20 be declared etc? This is a very simplistic example of what I need to do ( dynamically add multiple instances of the same complex component class to a layout). Because b1 cannot be reused for another addChild(), how would you add the other buttons? TIA, Mic.
[flexcoders] Flash Loader needed ... indeterminate
I have an image, and I need someone to turn this image into a flash swf for me... I could try to describe it, but I figured it would be best to show a picture of it. and that is located here: http://img356.imageshack.us/img356/5438/loaderjh8.jpg http://img356.imageshack.us/img356/5438/loaderjh8.jpg I wanted to know if anyone could help me, I am willing to pay... If this is not a good place to ask for something like this, I would greatly appreciate anyone who can point me in the right direction!
[flexcoders] Using HTTPStatus
Hi, all. I've been trying to implement this example: http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/ However, it appears that many browsers do not send an HTTP status to Flash, as described on LiveDocs: If Flash Player or AIR cannot get a status code from the server, or if it cannot communicate with the server, the default value of 0 is passed to your code. A value of 0 can be generated in any player (for example, if a malformed URL is requested), and a value of 0 is always generated by the Flash Player plug-in when it is run in the following browsers, which do not pass HTTP status codes to the player: Netscape, Mozilla, Safari, Opera, and Internet Explorer for the Macintosh. Does anyone know of a workaround for Firefox to detect whether an image is present on the server before trying to load it? Thanks.
[flexcoders] Re: Still no one knows ? Please help.
--- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Since you are using an itemRenderer, this could be tricky. You need to find out where the parent is (MenuItem instance) and cast that reference to IStyleClient. IE var color = IStyleClient(parent.parent).getStyle(color); The button should push the iconColor style down into the icon class by default...?
[flexcoders] Re: Flash Loader needed ... indeterminate
Note: Basically that white bead just spins around the circle and never stops... essentially it shows up on top of each piece of the circle.. you all get it.
Re: [flexcoders] Re: Still no one knows ? Please help.
Amy, I don't know if what I said was the 'correct' way. But he wanted his bullet color to be the same as the text color, so using the color style seemed right. As far as the styleName being null like he said, I haven't looked into that. That was what this last post was concerning. I'd have to look at the Menu - MenuItem code to see what is really going on when the menu item is created. Mike On Wed, Oct 22, 2008 at 11:46 AM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Since you are using an itemRenderer, this could be tricky. You need to find out where the parent is (MenuItem instance) and cast that reference to IStyleClient. IE var color = IStyleClient(parent.parent).getStyle(color); The button should push the iconColor style down into the icon class by default...? -- 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'.
Re: [flexcoders] Charts - How to filter dataprovider by date?
It's not clear how your data is bound to the chart, but it sounds like you need a filterFunction: http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#filterFunction If you post more about your data flow, maybe we can give you more details. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: cox.blair [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Charts - How to filter dataprovider by date? Date: Wed, 22 Oct 2008 15:21:42 - Hi everyone, I've spent hours over several weeks looking for a hint of an answer to this, perhaps my situation is unique. I have a database, that through necessity, has the data for multiple items, we'll call them different tests. Now if I use this database for a chart's data provider, it will of course display along the x-axis, all entries which currently exist. So if there are 10 entries, I'll get 10 data points, whether anything is plotted on the y-axis or not - just a default line chart, no other parameters set, it's not important yet. Okay, so lets say that out of the 10 currently existing data points in the db, only 5 are relevant to me at the moment. I've figured out how to select the five I wish by defining them in the y-axis series, however the remaining 5, still of course exist in the data provider and are shown along the bottom of the chart and because the data is not relevant to my selection, appears as zero, no data. I've probably lost you, so let me explain what I want to do. I would like to be able to filter the data presented in the data provider, before the chart is rendered. So if I wish to show only 5 of the 10 available points in the table, I can do so. Now, can this be done simply by manipulating the x-axis or is it required to be done perhaps with sql calls to the database. How about a hint about how I can filter or control the data delivered in the data provider. Thanks,
[flexcoders] Scaling is jerky.
I was wondering if anyone had a quick answer for why a swf file is jerky when running in an application but if you go to source and put in the path directly to the swf file and run the swf everything looks perfect? Say for instance you are zooming something on stage. If you scroll while the swf is on the web page the zooming is clunky and jerky, but if you go to the direct url of the swf or if you view on your desktop all is fine. I am embedding the file via the newer swfObject. TIA
Re: [flexcoders] QTP Flex Add-in problem with some FlexDataGrids
Are you using itemRenderers? You said some datagrids, so I'm assuming others work that maybe don't have item renderers? Do you need to automation enable your item renderer classes? Any chance you can do a smaller test case with Flex 3 and check with that install? It's very possible bugs are fixed since then. Matt On 10/21/08 3:55 PM, alex_birger [EMAIL PROTECTED] wrote: I am trying to automate Flex application with Adobe QTP Add-in. The problem is that content of a few FlexDataGrids is not recognizable by QTP. When such DataGrid doesn't have content, everything is fine. DataGrid itself and the header are recognizable. The issue takes place if content is entered in cells. Object Spy sees sells and the header as WinObject. DataGrid itself continues to be recognizable. HeaderClick and SelectIndex are working, but extract information from cells is impossible. Environment: Flex 2.01 HF2, compiled with 2.0.1 HF2 automation libraries QTP 9.2 QTP Flex Add-in 2.01 HF2. I've already submitted this issue to Flex Adobe forum, but didn't get any respond so far. The problem is critical for our automation, so I would appreciate any help.
RE: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
Yes, polling using Timer will work fine. I even have an example on www.cflex.net http://www.cflex.net/ , but it is pretty simple to do. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj sharma Sent: Wednesday, October 22, 2008 12:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help Hi Guys Thanks for your different approaches to solve this problem.I will try all of them and see which one will suit my management, but i really appreciate that. I have one solution which recently struck me , please let me know if this is the right one. Can I use the Timer class to create a timer instance which will periodically call HTTP and check which entries are in database and update the dataProvider with the recent entries. Do you guys think this is going to work. i am going to explore all the solutions recommended by you guys and see which is most convenient and efficient to implement with my deadline. Please let me know if Timer thing is going to work for database. Again Appreciate your help Anuj On Tue, Oct 21, 2008 at 7:26 PM, markgoldin_2000 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have been working on a data pushing solution using Lightstreamer push server. Works with Flex via Ajax bridge. True real time data updates. Take a look at LS push server web site. They have examples for Flex. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , john fisher [EMAIL PROTECTED] wrote: I am working on a similar problem... I don't use PostGres, but there may be some sort of export to XML function. *If* that can fire on changes ( or you set up the inserts/updates that way), then you have something that an httpservice can acquire directly. But somebody still has to ask the file if it changed... unless You use a socket connection to stuff an event into the dataprovider. Theres some examples in the adobe docs. or you poll, but don't refresh the whole html page, just the data in the swf, and only when it changes. My users cant tell the difference between polling and the socket connection in the two demos I made. I'm just a newbie, so if there is another way, I'd sure like to hear about it. John Paul Andrews wrote: Isn't this simply a problem that multiple calls are required to poll the database for change? I think the OP really needs a push type service. There's no way to know that the database table has changed without polling the database..
RE: [flexcoders] Re: createChildren(): adding 20 identical buttons to panel?
I would advise Repeater for this. It willsave a lot of code and provides some other benefits like automatically building the array of references, and optionally recycling children and handling removal of the children. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Wednesday, October 22, 2008 11:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: createChildren(): adding 20 identical buttons to panel? Here is a quick and dirty example on how to add multiple instances as well as how to access them after creation: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:custom=CustomClasses.* creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Button; private function onCreationComplete():void { var panelChildren:Array = panelTest.getChildren(); for(var i:int = 0 ; i panelChildren.length ; i++) { if(panelChildren[i] is Button) { trace((panelChildren[i] as Button).label); } } } ]] /mx:Script custom:PanelTest id=panelTest/ /mx:Application PanelTest.as: package CustomClasses { import mx.containers.Panel; import mx.controls.Button; public class PanelTest extends Panel { public function PanelTest() { super(); for(var i:int = 0 ; i 20 ; i++) { var b1:Button = new Button(); b1.label = Button + (i + 1); addChild(b1); } } } } --- In flexcoders@yahoogroups.com, Mic [EMAIL PROTECTED] wrote: public class PanelTest extends Panel{ private var b1:Button; override protected function createChildren():void { super.createChildren(); b1 = new Button; this.addChild(b1); In order to add another 19 buttons, must vars b2 to b20 be declared etc? This is a very simplistic example of what I need to do ( dynamically add multiple instances of the same complex component class to a layout). Because b1 cannot be reused for another addChild(), how would you add the other buttons? TIA, Mic.
RE: [flexcoders] Re: sailorsea21 - Does anyone know why this code works with Firefox but not with IE?
Sounds like caching to me as well. Are you using GET or POST? I use post exclusively and have no caching issues. The unique string on the url is an accepted solution as well. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of langdonjared Sent: Wednesday, October 22, 2008 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: sailorsea21 - Does anyone know why this code works with Firefox but not with IE? Sounds like IE is caching the result. Try programatically changing the url of your HTTPService by tacking on a querystring parameter with a timestamp. So, change the url to http://www.whatever.php?ForceIEReload=20081022T11001234. http://www.whatever.php?ForceIEReload=20081022T11001234. Your PHP script will ignore the extra parameter, but it might force IE to not cache. Here's a link that discusses IE caching and a workaround. http://www.howtoadvice.com/StopCaching http://www.howtoadvice.com/StopCaching Jared Langdon
Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
@mark: thanks will check it out @anuj: this is just exactly what the adobe sample code does, except not directly to the database. anuj sharma wrote: ... Can I use the Timer class to create a timer instance which will periodically call HTTP a
RE: [flexcoders] swf caching
You could modify the html wrapper to append a unique string to the swf url. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Arulmurugan T Sent: Wednesday, October 22, 2008 2:10 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] swf caching It is a web application. I cannot force my client to clear the cache. Regards, You can catch up with me using the links below http://flex-arulmurugant.blogspot.com/ http://flex-arulmurugant.blogspot.com/ - Original Message - From: Guy Morton mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Wednesday, October 22, 2008 9:06 AM Subject: Re: [flexcoders] swf caching Look at your browser's caching settings and make sure it's not set to cache everything forever. IE is particularly annoying in this regard as it often defaults to using a cached item without even checking with the server to see if it has changed since it was cached. That said, you should get used to clearing your cache, as all browsers will sometimes cache things in a way you don't want it to. That's a fact of life in web development. Guy On 22/10/2008, at 1:41 PM, arulmurugan wrote: Hi, When ever I compile a proj/application the SWF I saw didn't reflect any of the changes I'd made. I need to clear the cache, history, cookies in the browser. How to over come this. Regards Arulmurugan image001.jpg
RE: [flexcoders] Re: XML data problem
Ok, where does the value get changed? Have you inspected the result data in the result handler? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Tuesday, October 21, 2008 9:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML data problem My resultFormat=e4x. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: This almost always means that you have not set the resultFormat property on the RPC call. The default is Object. This causes Flex to convert the xml into a nested dynamic object structure. The conversion process is attempting to be smart, and failing. Set resultFormat=e4x and it will leave your xml as XML. You will need to tweak your reference expressions after doing this. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of oneworld95 Sent: Tuesday, October 21, 2008 9:06 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: XML data problem Flex is thinking the value is a Boolean (where 1 = true and 0 = false). You might be able to use a labelFunction to return a string value back to the column or a formatter for that column. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: When I am setting an XML dataProvider for a DG and that xml has 1 as a value the DG shows true instead of 1. Why that's happening? Thanks
RE: [flexcoders] Question about html embed (AC_FL_RunContent)
Looking through the javascript that this function calls, it appears that it appends the 'swf extension itself. Try what you have, but omit the .swf Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Miller Sent: Tuesday, October 21, 2008 8:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about html embed (AC_FL_RunContent) Ok, sorry this is a lame question, but I'm not an HTML guy and I'm pounding my head on the desk trying to figure this out. How do I point to the absolute path of the SWF in the Adobe style embed script? All of our pages need to embed the same swf located in the root directory. For organization, some of the html pages are in sub directories. Any pages in a sub directory do not load the SWF. I tried the following with no luck: AC_FL_RunContent( src, /WebNavMenu.swf, width, 100%, height, 100%, align, middle, id, WebNavMenu, quality, high, wmode, transparent, name, WebNavMenu, allowScriptAccess,sameDomain, type, application/x-shockwave-flash, pluginspage, http://www.adobe.com/go/getflashplayer http://www.adobe.com/go/getflashplayer ); This seems like it should be a pretty common thing, but I'm all out of ideas. Any help please? Thanks for your time! ~Aaron
Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
Hi Mark I looked at the official website of Light stream , it seems that that's what we need. Now my question to you is if I am using this for my company do i have to pay something or is it totally going to be free. Are there any licensing issues involved with that. Please let me know Thanks Anuj On Tue, Oct 21, 2008 at 7:26 PM, markgoldin_2000 [EMAIL PROTECTED]wrote: I have been working on a data pushing solution using Lightstreamer push server. Works with Flex via Ajax bridge. True real time data updates. Take a look at LS push server web site. They have examples for Flex. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, john fisher [EMAIL PROTECTED] wrote: I am working on a similar problem... I don't use PostGres, but there may be some sort of export to XML function. *If* that can fire on changes ( or you set up the inserts/updates that way), then you have something that an httpservice can acquire directly. But somebody still has to ask the file if it changed... unless You use a socket connection to stuff an event into the dataprovider. Theres some examples in the adobe docs. or you poll, but don't refresh the whole html page, just the data in the swf, and only when it changes. My users cant tell the difference between polling and the socket connection in the two demos I made. I'm just a newbie, so if there is another way, I'd sure like to hear about it. John Paul Andrews wrote: Isn't this simply a problem that multiple calls are required to poll the database for change? I think the OP really needs a push type service. There's no way to know that the database table has changed without polling the database..
[flexcoders] DataGrid Selection and Overing.
Hi every one , i am facing a little problem please help me. I have DataGrid with following styles alternatingItemColors: #FF, #ECF1F7 selectionColor: #D9DE74 roll-over-color:#D3E0FE Now on of my grid need the follwing requirement Allow hover color only but user cannot select any row ,i tried to set grid selectable property false but this removes hovering also . Can any any tell me how to resolve this problem , Thanks in Advance.
Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
Hi Tracy Thanks for the link. Now in the link i couldn't find the specific example using timer for constant calling for HTTP service. Can you please tell me where exactly the example is located. Your help will be appreciated. Thanks Anuj On Wed, Oct 22, 2008 at 10:15 AM, Tracy Spratt [EMAIL PROTECTED]wrote: Yes, polling using Timer will work fine. I even have an example on www.cflex.net, but it is pretty simple to do. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, October 22, 2008 12:02 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help Hi Guys Thanks for your different approaches to solve this problem.I will try all of them and see which one will suit my management, but i really appreciate that. I have one solution which recently struck me , please let me know if this is the right one. Can I use the Timer class to create a timer instance which will periodically call HTTP and check which entries are in database and update the dataProvider with the recent entries. Do you guys think this is going to work. i am going to explore all the solutions recommended by you guys and see which is most convenient and efficient to implement with my deadline. Please let me know if Timer thing is going to work for database. Again Appreciate your help Anuj On Tue, Oct 21, 2008 at 7:26 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: I have been working on a data pushing solution using Lightstreamer push server. Works with Flex via Ajax bridge. True real time data updates. Take a look at LS push server web site. They have examples for Flex. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, john fisher [EMAIL PROTECTED] wrote: I am working on a similar problem... I don't use PostGres, but there may be some sort of export to XML function. *If* that can fire on changes ( or you set up the inserts/updates that way), then you have something that an httpservice can acquire directly. But somebody still has to ask the file if it changed... unless You use a socket connection to stuff an event into the dataprovider. Theres some examples in the adobe docs. or you poll, but don't refresh the whole html page, just the data in the swf, and only when it changes. My users cant tell the difference between polling and the socket connection in the two demos I made. I'm just a newbie, so if there is another way, I'd sure like to hear about it. John Paul Andrews wrote: Isn't this simply a problem that multiple calls are required to poll the database for change? I think the OP really needs a push type service. There's no way to know that the database table has changed without polling the database..
Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
Hi John I am not sure i get what you are trying to say. Can you be please elaborate little bit more. Thanks Anuj On Wed, Oct 22, 2008 at 10:13 AM, john fisher [EMAIL PROTECTED] wrote: @mark: thanks will check it out @anuj: this is just exactly what the adobe sample code does, except not directly to the database. anuj sharma wrote: ... Can I use the Timer class to create a timer instance which will periodically call HTTP a
[flexcoders] drawing via actionscript
public class MyClass { public function MyClass(){ var drawingComponent:UIComponent = new UIComponent(); // draw on the drawingComponent; } } If I have that, and I do (in my flex) new MyClass() and add it to the mxml, it doesn't show up with what I draw on drawingComponent. How do I add the drawingComponent to the class, so that it will show up?
[flexcoders] Re: DataGrid Selection and Overing.
Hi Parjan, You can give the illusion that the DataGrid is not selectable by extending DataGrid and overriding the drawSelectionIndicator function (selectable=true). package com.controls { import mx.controls.DataGrid; import flash.display.Sprite; import mx.controls.listClasses.IListItemRenderer; public class MyDataGrid extends DataGrid { public function MyDataGrid() { super(); } override protected function drawSelectionIndicator( indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { /* don't call super and don't draw the selection indicator */ } } } Another hack would be to set the selectedIndex to -1 on the DataGrid change event. -TH --- In flexcoders@yahoogroups.com, Parjan Arjan [EMAIL PROTECTED] wrote: Hi every one , i am facing a little problem please help me. I have DataGrid with following styles alternatingItemColors: #FF, #ECF1F7 selectionColor: #D9DE74 roll-over-color:#D3E0FE Now on of my grid need the follwing requirement Allow hover color only but user cannot select any row ,i tried to set grid selectable property false but this removes hovering also . Can any any tell me how to resolve this problem , Thanks in Advance.
[flexcoders] URL redirect and close Alert window
Hello, Currently, I have an application that opens in a new window. It is created in Flex and is linked to from another page on my site. Currently, I have the flex application page open up using target=_blank. When the user goes to the new page, they are given a form and when they submit the data, an Alert box pops up telling them their information was submitted. What I was wondering is whether or not it would be feasible to take them back to the original window on the website from which they clicked on the link to go to the Flex application. So, the user clicks OK, in the Alert box, the page that opened with the Flex application, closes and they are back where they left off. If that can't be done, can I have it where the user clicks OK in the Alert and they are redirected to the original web page? I guess the least desirable choice would be to have an HTML link that says Return to Home Page wrapped inside an anchor tag. I know in AS 2.0 there was a simple goToUrl command that I could put on button. I did a search on that and it doesn't seem to be a part of AS 3.0. I didn't see anything in the Alert class that would allow the user to be redirected when they close the Alert Box. Thanks, Bruce
Re: [flexcoders] drawing via actionscript
Why do not you extend IUIComponent instead? On Wed, Oct 22, 2008 at 9:28 PM, tchredeemed [EMAIL PROTECTED] wrote: public class MyClass { public function MyClass(){ var drawingComponent:UIComponent = new UIComponent(); // draw on the drawingComponent; } } If I have that, and I do (in my flex) new MyClass() and add it to the mxml, it doesn't show up with what I draw on drawingComponent. How do I add the drawingComponent to the class, so that it will show up? -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
Hi Anuj, i would go for Paul's recommendation with some small variations: 1) if the application is single user, the you do not need to poll, you can insert the data directly in your data source as at any given point you know that new nodes are added to the database. For example: You do some sort of backend call to insert new staff in the db and in the response handle you update the tree data source manually via addChild or similar (depending on xml array collection and so on). 2) if your application is multiuser, i would go for 1) and at the same time poll the db with a timestamp or last id, so you ask only for new data (insertions or deletions) and then manually update your datasource... It might be slightly more complicated but you have far far less wire communications, db and backend processing and so on... Fotis On Wed, Oct 22, 2008 at 9:21 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi John I am not sure i get what you are trying to say. Can you be please elaborate little bit more. Thanks Anuj On Wed, Oct 22, 2008 at 10:13 AM, john fisher [EMAIL PROTECTED] wrote: @mark: thanks will check it out @anuj: this is just exactly what the adobe sample code does, except not directly to the database. anuj sharma wrote: ... Can I use the Timer class to create a timer instance which will periodically call HTTP a -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Re: URL redirect and close Alert window
The Alert class has a few nice features. One of these is a function to run when the Alert box closes: Alert.show(Do you really want the world to End?, Kill Everyone, Alert.YES | Alert.NO, this, worldEndHandler); The other item you are looking for is navigateToURL: private function worldEndHandler(event:CloseEvent):void { if (event.detail == Alert.YES) { navigateToURL(new URLRequest(http://armageddon.com/sayhellotogod.html, '_self'); } } --- In flexcoders@yahoogroups.com, brucewhealton [EMAIL PROTECTED] wrote: Hello, Currently, I have an application that opens in a new window. It is created in Flex and is linked to from another page on my site. Currently, I have the flex application page open up using target=_blank. When the user goes to the new page, they are given a form and when they submit the data, an Alert box pops up telling them their information was submitted. What I was wondering is whether or not it would be feasible to take them back to the original window on the website from which they clicked on the link to go to the Flex application. So, the user clicks OK, in the Alert box, the page that opened with the Flex application, closes and they are back where they left off. If that can't be done, can I have it where the user clicks OK in the Alert and they are redirected to the original web page? I guess the least desirable choice would be to have an HTML link that says Return to Home Page wrapped inside an anchor tag. I know in AS 2.0 there was a simple goToUrl command that I could put on button. I did a search on that and it doesn't seem to be a part of AS 3.0. I didn't see anything in the Alert class that would allow the user to be redirected when they close the Alert Box. Thanks, Bruce
Re: [flexcoders] Re: PLaying Flash From Scratch
The view stack has a change event, you can associate a handler there and depending on the index of the stack call the appropriate swf start/play method On Wed, Oct 22, 2008 at 3:20 AM, John [EMAIL PROTECTED] wrote: My actionscript is not that strong, we have several Flash animations in each of our viewstack children, and reall I wondered if there was something we could make it play it from frame 1 of the movie again. If we cannot get this to work, is there a similar functionality within States, where we can use our forward and back buttons to navigate each way? TIA --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: In a viewstack each view is only instantiated when that particular view is selected. Once instantiated, it is not instantiated again. What you want to do is have your Flash play when an event occurs. For the instantiation you would probably want to use the CreationComplete event. For subsequent times I think the event is Show (Although I could be wrong) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, John jpapworth@ wrote: Hi there I wonder if someone can help me. I have a viewstack with seperate pages - each page has a Flash animation. However, what I have found is when I navigate through the viewstack, the flash plays, then I goto the next page all is fine, but, if I then return to the previous one - it does not reset the Flash to frame 1. It has stayed at its last frame. Is there a way of telling Flex to play these movies from the beginning everytime? Regards J -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
RE: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
http://www.cflex.net/showFileDetails.cfm?ObjectID=560 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj sharma Sent: Wednesday, October 22, 2008 2:20 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help Hi Tracy Thanks for the link. Now in the link i couldn't find the specific example using timer for constant calling for HTTP service. Can you please tell me where exactly the example is located. Your help will be appreciated. Thanks Anuj On Wed, Oct 22, 2008 at 10:15 AM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Yes, polling using Timer will work fine. I even have an example on www.cflex.net http://www.cflex.net/ , but it is pretty simple to do. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of anuj sharma Sent: Wednesday, October 22, 2008 12:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help Hi Guys Thanks for your different approaches to solve this problem.I will try all of them and see which one will suit my management, but i really appreciate that. I have one solution which recently struck me , please let me know if this is the right one. Can I use the Timer class to create a timer instance which will periodically call HTTP and check which entries are in database and update the dataProvider with the recent entries. Do you guys think this is going to work. i am going to explore all the solutions recommended by you guys and see which is most convenient and efficient to implement with my deadline. Please let me know if Timer thing is going to work for database. Again Appreciate your help Anuj On Tue, Oct 21, 2008 at 7:26 PM, markgoldin_2000 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have been working on a data pushing solution using Lightstreamer push server. Works with Flex via Ajax bridge. True real time data updates. Take a look at LS push server web site. They have examples for Flex. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , john fisher [EMAIL PROTECTED] wrote: I am working on a similar problem... I don't use PostGres, but there may be some sort of export to XML function. *If* that can fire on changes ( or you set up the inserts/updates that way), then you have something that an httpservice can acquire directly. But somebody still has to ask the file if it changed... unless You use a socket connection to stuff an event into the dataprovider. Theres some examples in the adobe docs. or you poll, but don't refresh the whole html page, just the data in the swf, and only when it changes. My users cant tell the difference between polling and the socket connection in the two demos I made. I'm just a newbie, so if there is another way, I'd sure like to hear about it. John Paul Andrews wrote: Isn't this simply a problem that multiple calls are required to poll the database for change? I think the OP really needs a push type service. There's no way to know that the database table has changed without polling the database..
[flexcoders] Re: sailorsea21 - Does anyone know why this code works with Firefox but not with IE?
I'm using POST and a unique string for the url. See below. [Bindable] private var HTTPService_url:String = company.php?ForceIEReloadms= + new Date().getTime(); mx:HTTPService url={HTTPService_url} method=POST id=data resultFormat=e4x result=xmlResultHandler(event); fault=xmlFaultHandler(event);/ What I noticed is that in Firefox, I see the message Transferring data from localhost... appearing at the bottom left in the status bar... I can tell that every 30sec it updates whereas in IE, it always displays Done??? I think IE never runs the updateData function...? private function updateData(event:TimerEvent):void { data.send(); } Or maybe it kept the data.send values in cache... Any ideas? Thanks everyone. -David --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Sounds like caching to me as well. Are you using GET or POST? I use post exclusively and have no caching issues. The unique string on the url is an accepted solution as well. Tracy
[flexcoders] Distributing AIR applications on Widows and Mac
Hi All, I want to distribute my AIR application packaged along with the AIR installer. I heard this is possible, but can anyone help me on how this can be done, and what tools to use etc both on Windows and Mac. Thank you, regards, -Jen
[flexcoders] viewStack is slow opening the first time
I'm building an app with 4 stacks in my viewStack with a wipe in and out effect. The Stacks are just different views of the data, a generic datagrid view, a bar chart view, and a couple others. The default datagrid view is fine but the others, such as the bar chart, needs to do some calculations before displaying that chart. Because these calculations are being done the first time you click the button it's slow in opening that view. Is there a way to display the busy cursor, or maybe a way to do the calculations in the background before they change the view? I'm connecting to a web service then splitting out the data into a few different arrayCollections. Each view is a custom component that is bound to it's specified arrayCollection. Any thoughts? Thanks, Mark
Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
Hi Tracy Thank you very much for the link. I really appreciate that. Anuj On Wed, Oct 22, 2008 at 1:05 PM, Tracy Spratt [EMAIL PROTECTED] wrote: http://www.cflex.net/showFileDetails.cfm?ObjectID=560 Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, October 22, 2008 2:20 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help Hi Tracy Thanks for the link. Now in the link i couldn't find the specific example using timer for constant calling for HTTP service. Can you please tell me where exactly the example is located. Your help will be appreciated. Thanks Anuj On Wed, Oct 22, 2008 at 10:15 AM, Tracy Spratt [EMAIL PROTECTED] wrote: Yes, polling using Timer will work fine. I even have an example on www.cflex.net, but it is pretty simple to do. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, October 22, 2008 12:02 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help Hi Guys Thanks for your different approaches to solve this problem.I will try all of them and see which one will suit my management, but i really appreciate that. I have one solution which recently struck me , please let me know if this is the right one. Can I use the Timer class to create a timer instance which will periodically call HTTP and check which entries are in database and update the dataProvider with the recent entries. Do you guys think this is going to work. i am going to explore all the solutions recommended by you guys and see which is most convenient and efficient to implement with my deadline. Please let me know if Timer thing is going to work for database. Again Appreciate your help Anuj On Tue, Oct 21, 2008 at 7:26 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: I have been working on a data pushing solution using Lightstreamer push server. Works with Flex via Ajax bridge. True real time data updates. Take a look at LS push server web site. They have examples for Flex. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, john fisher [EMAIL PROTECTED] wrote: I am working on a similar problem... I don't use PostGres, but there may be some sort of export to XML function. *If* that can fire on changes ( or you set up the inserts/updates that way), then you have something that an httpservice can acquire directly. But somebody still has to ask the file if it changed... unless You use a socket connection to stuff an event into the dataprovider. Theres some examples in the adobe docs. or you poll, but don't refresh the whole html page, just the data in the swf, and only when it changes. My users cant tell the difference between polling and the socket connection in the two demos I made. I'm just a newbie, so if there is another way, I'd sure like to hear about it. John Paul Andrews wrote: Isn't this simply a problem that multiple calls are required to poll the database for change? I think the OP really needs a push type service. There's no way to know that the database table has changed without polling the database..
Re: [flexcoders] Distributing AIR applications on Widows and Mac
Check out this article by David Tucker. I used this very one and it worked great! http://www.adobe.com/devnet/air/articles/air_badge_install.html Here's another: http://www.adobe.com/devnet/air/articles/badge_for_air.html -Jake Churchill jenonflex wrote: Hi All, I want to distribute my AIR application packaged along with the AIR installer. I heard this is possible, but can anyone help me on how this can be done, and what tools to use etc both on Windows and Mac. Thank you, regards, -Jen
[flexcoders] Re: positioning custom toolTips?
anyone?
[flexcoders] persistent server-side shared objects
what is deal with writing persistent server-side shared objects with AMF3 object encoding? fair enough, in FMS3 everything should be server-side scripts, but why can't I flush it? Language reference says I could, but how!? http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=Book_Part_34_ss_asd_1.html //an simple example that should work!!! //main.asc application.onAppStart = function() { trace(I'm ok); myShared = SharedObject.get(server_so, true); }; application.onConnect = function(client) { var varName; application.acceptConnection(client); client.storeIt = function(dataNow) { myShared.setProperty(varName, dataNow); //myShared.lock(); myShared.flush(); //nor SharedObject.flush(); //myShared.unlock(); //light please! } client.setVarName = function(aVar) { trace('aVar: '+aVar); varName = aVar; trace('setVarName: '+varName); }; }; can someone throw some light please cheers
Re: [flexcoders] Distributing AIR applications on Widows and Mac
If you actually want to distribute the runtime yourself (not just the app) you may need to review the terms at http://www.adobe.com/products/air/runtime_distribution1.html Matt On 10/22/08 1:23 PM, Jake Churchill [EMAIL PROTECTED] wrote: Check out this article by David Tucker. I used this very one and it worked great! http://www.adobe.com/devnet/air/articles/air_badge_install.html Here's another: http://www.adobe.com/devnet/air/articles/badge_for_air.html -Jake Churchill jenonflex wrote: Hi All, I want to distribute my AIR application packaged along with the AIR installer. I heard this is possible, but can anyone help me on how this can be done, and what tools to use etc both on Windows and Mac. Thank you, regards, -Jen
RE: [flexcoders] Re: sailorsea21 - Does anyone know why this code works with Firefox but not with IE?
Debug to determine if that is the case. Also debug to make sure the result handler is being called. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sailorsea21 Sent: Wednesday, October 22, 2008 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: sailorsea21 - Does anyone know why this code works with Firefox but not with IE? I'm using POST and a unique string for the url. See below. [Bindable] private var HTTPService_url:String = company.php?ForceIEReloadms= + new Date().getTime(); mx:HTTPService url={HTTPService_url} method=POST id=data resultFormat=e4x result=xmlResultHandler(event); fault=xmlFaultHandler(event);/ What I noticed is that in Firefox, I see the message Transferring data from localhost... appearing at the bottom left in the status bar... I can tell that every 30sec it updates whereas in IE, it always displays Done??? I think IE never runs the updateData function...? private function updateData(event:TimerEvent):void { data.send(); } Or maybe it kept the data.send values in cache... Any ideas? Thanks everyone. -David --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Sounds like caching to me as well. Are you using GET or POST? I use post exclusively and have no caching issues. The unique string on the url is an accepted solution as well. Tracy
Re: [flexcoders] Re: positioning custom toolTips?
I would look up the ToolTip class (if yo haven't already done it!) http://livedocs.adobe.com/flex/3/langref/mx/controls/ToolTip.html or $35 for these guys might do! http://www.afcomponents.com/components/tooltip_flex/ On 22 Oct 2008, at 22:29, djbrown_rotonews wrote: anyone? -- 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] Re: viewStack is slow opening the first time
Hi Mark, This may be one case where you would want to use creationPolicy=all, for the ViewStack. It will add more time to startup, but the user experience may be better; once the application is loaded. -TH --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: I'm building an app with 4 stacks in my viewStack with a wipe in and out effect. The Stacks are just different views of the data, a generic datagrid view, a bar chart view, and a couple others. The default datagrid view is fine but the others, such as the bar chart, needs to do some calculations before displaying that chart. Because these calculations are being done the first time you click the button it's slow in opening that view. Is there a way to display the busy cursor, or maybe a way to do the calculations in the background before they change the view? I'm connecting to a web service then splitting out the data into a few different arrayCollections. Each view is a custom component that is bound to it's specified arrayCollection. Any thoughts? Thanks, Mark
RE: [flexcoders] Re: viewStack is slow opening the first time
Suppose you used Time to delay about 5 seconds after application.creatonComplete, then either set creationPolicy=all or manually call createChildren() on the desired views? Kind of half and half, where the app would display quickly, but begin rendering in the background without user intervention. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Wednesday, October 22, 2008 5:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: viewStack is slow opening the first time Hi Mark, This may be one case where you would want to use creationPolicy=all, for the ViewStack. It will add more time to startup, but the user experience may be better; once the application is loaded. -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark [EMAIL PROTECTED] wrote: I'm building an app with 4 stacks in my viewStack with a wipe in and out effect. The Stacks are just different views of the data, a generic datagrid view, a bar chart view, and a couple others. The default datagrid view is fine but the others, such as the bar chart, needs to do some calculations before displaying that chart. Because these calculations are being done the first time you click the button it's slow in opening that view. Is there a way to display the busy cursor, or maybe a way to do the calculations in the background before they change the view? I'm connecting to a web service then splitting out the data into a few different arrayCollections. Each view is a custom component that is bound to it's specified arrayCollection. Any thoughts? Thanks, Mark
[flexcoders] Re: createChildren(): adding 20 identical buttons to panel?
Thanks for all the help I was trying to b1 = new Button; this.addChild(b1); this.addChild(b1); this.addChild(b1); etc which is why it appeared that b1 was all used up :-)When adding to the displaylist why does b1 = new Button; have to be done each time? Why can't b1, which is an instance of the button class, be duplicated into the list? b1 is just a variable that refers to the instance, right? Not a unique id. Not sure why this is different from mx:Panel mx:Button/ mx:Button/ mx:Button/ /mx:Panel TIA, Mic.
Re: [flexcoders] Re: How to keep Tree control synchronized with the database. Please Help
Anuj I meant, search through the online adobe docs for 'timer polling example' or other keywords like those. there are many many examples in the online docs at Adobe. John anuj sharma wrote: Hi John I am not sure i get what you are trying to say. Can you be please elaborate little bit more. Thanks Anuj On Wed, Oct 22, 2008 at 10:13 AM, john fisher [EMAIL PROTECTED] wrote: @mark: thanks will check it out @anuj: this is just exactly what the adobe sample code does, except not directly to the database. anuj sharma wrote: ... Can I use the Timer class to create a timer instance which will periodically call HTTP a
[flexcoders] FMS SharedObject Array problem...
What's wrong with this: var ev = new Object({sender: this.user.username, message: str}); trace(got chat + ev.message); var h = this.application.so_Chat.getProperty(history); h.push(ev); this.application.so_Chat.setProperty(history, h); var q = this.application.so_Chat.getProperty(history); trace(q + q.length); trace(q[q.length].message); trace(finished chat); } Ok - q.length traces out properly (ie as I add an item, it gets added properly, the length increases by 1) -- but the history[q].message is throwing an error.
[flexcoders] Sound issues in Player 10
I started getting reports that our product quit working in Flash Player 10 so I started investigating it. I found that loaded audio, video with audio and swfs with audio all quit working. So if you look at http://www.flypaper.com/product/quicktour.aspx with player 9 installed, then with 10 you can see that it doesn't work. In this case it is a loaded swf that has the animation and audio on the timeline. I have put together several test cases but all of them work fine. At this point I can't think of any reason this would quit working in player 10. Has anyone seen any issues like this, or can someone from Adobe give me some advice on tracking down the issue? I would log a bug in the tracker, but without a test case I can't really say what is wrong. Thanks, Steve
Re: [flexcoders] Re: createChildren(): adding 20 identical buttons to panel?
- Original Message - From: Mic [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, October 22, 2008 10:28 PM Subject: [flexcoders] Re: createChildren(): adding 20 identical buttons to panel? Thanks for all the help I was trying to b1 = new Button; this.addChild(b1); this.addChild(b1); this.addChild(b1); etc which is why it appeared that b1 was all used up :-)When adding to the displaylist why does b1 = new Button; have to be done each time? Why can't b1, which is an instance of the button class, be duplicated into the list? b1 is just a variable that refers to the instance, right? Right, but b1 refers to one button. If you add it ten times over you're trying to add the same button to the container not ten different buttons. Using new Button() gives you a new button, so writing b1 = new Button(); this.addChild(b1); creates a new Button, points b1 at it and adds it to the display list. Do it again and then b1 points to a different Button.. The mxml tag notation not only refers to the Button class but also instantiates a seprate instance, so you would get ten different buttons. Paul Not a unique id. Not sure why this is different from mx:Panel mx:Button/ mx:Button/ mx:Button/ /mx:Panel TIA, Mic.