Re: [flexcoders] Suggestion .. WebOrbPHP Zend MySql + Flex 2
Hi , Ray Thanks for reply .. What about using zend platform with WebOrbPHP I am not that much good in php so very confused to start with this does webOrb will help me for data paging records and things ? Ray Horn [EMAIL PROTECTED] wrote: I have been using Flex Builder 2.0.1 and WebOrb/PHP 1.3.2 with SQL Server 2005 with very good results. I have also spec'd out some improvements to WebOrb to make it more useful as well as more like FDS than WebOrb. - Original Message From: Sajid Hussain [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 29, 2007 2:49:57 AM Subject: [flexcoders] Suggestion .. WebOrbPHP Zend MySql + Flex 2 Hi . Could any one have work with weborbphp zend and flex 2 database integrated websites ?? or any idea how it will work good or give me alternative ? - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV.
[flexcoders] Using a Sprite for custom mouse-cursor
Hi, all. I can change my application mouse-cursor using CursorManager.setCursor(), I know. And the Adobe document for CursorManager says that You can use a JPEG, GIF, PNG, or SVG image, a Sprite object, or a SWF file as the cursor image. However, the setCursor(), the only method by which I can specify a cursor image, requires an argument of 'Class' type. I intend to use a Sprite object, of which content is drawn programatically, as my cursor image. But Sprite *is not* Class, isn't it? How can I do? Is it possible? Thank you in advance for your help.
Re: [flexcoders] enhancement for AS4
On Thursday 29 Mar 2007, One Person wrote: I would like to make a request for an upgrade to AS4 and I'm not sure where to send it. Why do you want it changed to this ? What problem does it solve ? I would like to see it changed to this: public property useStringCache:Boolean { get { Eww. I much prefer the current ECMAScript-compliant approach - it's also what people coming from JavaScript and other ECMAScript-like land expect. -- Tom Chiverton Helping to continually grow fourth-generation ROI on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Flex on a SmartPhone?
On Thursday 29 Mar 2007, Agent RR-007 wrote: What is possible is a flex app to communicate with a flashlite app. It'd have to be mediated by a server, so you've got all the normal options open to you (socket, web service, ...) -- Tom Chiverton Helping to dramatically incentivize 24/365 interfaces on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Re: passing data to an EventListener
This is a case where you typically want to create a custom button component, say myButton. After you create an instance of myButton you pass any info you want it to hold, like the i parameter. When myButton is clicked it emmits a custom Event (create a subclass of flash.event.Event) that holds the i parameter. You listen for you custom event (not click) and once that is fired you pick up the i parameter from your custom Event object, that comes as an argument to your listener function. Or you may want to avoid creating custom Event: listen for Click and pick up the i parameter stored within the myButton instance: event.target.i I guess there are other ways as well, but I think the ones above are the 'cleaner' design-wise.
[flexcoders] About WSDL load error
Hi folks, I have some question about my application which retrieves data from webservices. The thing is that, when a client logs in as an anonymous user to the SAP BW, the data coming from the SAP are not served and my application just keeps throwing http fault errors which are like Client.Disconnected Could not load WSDL Unable to load WSDL, if currently online, please verify the URI and/or format of the WSDL xxx As far as I know, there's no cross-domain problem, since logging in as an anonymous user or as an authorized user connects to the same web server. Does anybody have any ideas on this? Thanks in advance...
[flexcoders] Flex Builder-Mac
Hi, I just downloaded the Flex Builder for the Mac, this is the 30 trial. My Question is it all downloaded to: /Applications/Adobe/FlexBuilder2/ inside here there is flex sdk 2 plugins plus others If I want to use the plug in version for eclipse, do I just transfer the pluings in the plugin folder into the plug in folder to ecplise? Seems like this was the only options for Mac, I remember when I did this on a Windows machine, their was an option before the download (standalone, or plugin), but tonight it just downloaded this way. If I just transfer the plug ins into eclipse, where should I keep the sdk? Thanks, John Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
[flexcoders] flex bug ????
I have a hierarchie of containers like: Panel -HBox -HDivideBox --Box --Canvas ---VBox ---HDivideBox Box1 Box2 Probleme ---VDivideBox Box3 Box4 and when I try to programmatically add a Child at Box 2. Application.application.Box2.addChild(CustomComponent); I have this error message: - RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/getChildAt() at mx.core::Container/getChildAt() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2369] at mx.containers.utilityClasses::BoxLayout/measure() [C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\utilityClasses\BoxLa yout.as:88] at mx.containers::Box/mx.containers:Box::measure() [C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\Box.as:250] at mx.core::UIComponent/mx.core:UIComponent::measureSizes() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5448] at mx.core::UIComponent/validateSize() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5394] at mx.core::Container/validateSize() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2688] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateSize() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:557] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti ation() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:646] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852] -- If someone knows the probleme ..? It's a Flex Bug or there is a solution ..? Thanks Thierry
[flexcoders] Re: Programmatically create MovieClip frames?
Thanks Jason, Troy, and Paul, for all your help/feedback. Jason, I can't think of a use case for adding frames to a MovieClip either. Unless of course, you wanted to have animations that you could control with AS3, but didn't have access to the Flash CS3 preview. Though, now that I think about it, it seems like there are some interesting possibilities for dynamically generated animations. Imagine a 'community' site that invited users to create their own animated avatars... or a video game in which the player designs his or her own character... or collaborative animation project in which different artists are creating different parts, maybe even individual frames of an animated sequence... or where a lead animator is creating the key frames, and 'tweeners' are creating the in between frames... you could even track and control this CVS-like, without having to pass around/merge FLAs. Maybe these are pretty abstract, I know... I thought of them just now. The point is, I personally don't WANT to add frames to a MovieClip. But I don't have access to the Flash CS3 preview, and so I was wondering if it was possible to generate AS3/AVM2 MovieClips, in some other way. MovieClip.appendFrame() seems like it'd be easier than the method Troy describes of creating a custom AnimatedSprite class, which will eventually have all or most of the methods of a MovieClip... at least, the timeline control methods. Basically, if I were having this problem 20 days from now... I wouldn't be having this problem. You're right, I'd just make the MovieClips in Flash CS3, export the library into a SWC, and use them from there in my Flex app as I wanted. That would definately be the easiest way. Luckily, I foresaw this problem pretty early on in the project, so I have plenty of time to work on other things while I figure out the best way to handle this... maybe the other things will even take me until the end of April and I won't have this problem at all. In anycase, I appreciate all your help, and offers to help. If it turns out that I need someone to make me a SWF with a few blank frames somewhere down the line, I'll definately be hitting one of you guys up for that. Other than that, I think we can call this discussion closed. Unless someone has more information about it. Although, and maybe this is a seperate post/question in itself, I thought I once heard about being able to control/communicate with AVM1Movies once the new version of Flash came out... I guess that's not happening? NO DYNAMICALLY ADDING FRAMES TO MOVIE CLIPS!! Got it. Thanks all, //Matt --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Okay, how about the simple scenario where you want the playback of a series of frames of animation... you know, exactly what a movie clip does? I could definitely do this by creating a class that extends sprite and in that class keeping an array of shapes (or sprites) and each ENTER_FRAME event moving my virtual playhead forward to the next sprite, etc., etc... And you know what I'd get? A MovieClip! Looks like Adobe already wrote that one! ;-) Seriously, though, the problem is not that you can't programmatically edit a MovieClip, it's that Adobe's docs don't make it clear why you wouldn't want to do that... because the MovieClip is a much more complicated beast that stores tween details, etc., that aren't exposed in the API (details you'd be familiar with if you've ever attempt to generate SWF's from scratch in an open-source tool like I did back in the Flash 4 days). The docs describe MovieClips as basically sprites with timelines... which would lead one to think, hey, sprite is great, but I need a timeline 'cause I got some animation, so I must need a MovieClip! I know this because I went down the same route. What I ended up doing was basically creating an AnimatedSprite class... it has a currentFrame property, and list of frames (which, in my case, are BitmapData's). Each frame it increments currentFrame and updates its display list to include the appropriate bitmapData. Pretty simple stuff... So, to address the original poster: MovieClip is just a mirage! Think of it like its got a scarier name like CompiledSWF and treat it like a blackbox. It'll make your life easier. Troy. On 3/29/07, Merrill, Jason [EMAIL PROTECTED] wrote: Matt, So Paul and I discussed our pointless bickering offlist and hugged it out. We're good now. Both of us however were just wondering about this question you have (me, so I could you, him for academic reasons) since we ironically agreed offlist neither of us could figure a good use case for needing do do this. Maybe you can explain in more detail what you will do with these frames once they are inserted. But really, we probably should move this to a Flashcoding list like Flashcoders. Jason Merrill Bank of America GTO Learning Leadership
Re: [flexcoders] Flex on a SmartPhone?
well you do have flex 1.5 targeting player 7 :) would love to see how that beast kills a phone... On 3/29/07, John Dowdell [EMAIL PROTECTED] wrote: Nick Collins wrote: Nope, not possible as Flex requires the Flash 9 player with the new VM, which doesn't currently run on smartphones. Thanks, Nick, that's indeed the key. Adobe Flash Lite 2.1 is built around the desktop Flash Player 7 engine and ActionScript 2: http://www.adobe.com/products/flashlite/productinfo/faq/#itemA-2 Bringing both Flex and Apollo to mobile is definitely on the agenda, but first the mobile runtime needs to become even more capable than the current release is. I haven't seen any dates estimated for delivery. For the forseeable future Flex 2 work is limited to fullsized Mac, Win and Linux computers, sorry. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. -- j:pn http://www.lennel.org
RE: [flexcoders] Re: enhancement for AS4
You can give feedback through the Tamarin project: http://www.mozilla.org/projects/tamarin/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of One Person Sent: Thursday, March 29, 2007 4:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: enhancement for AS4 Yeah, I took it from C# except for the use of the word property. Does anyone have the link for the EcmaScript docs that include all of the types, etc. I can find the one that show general EcmaScript as it is in a web browser, but not the one that was used by AS3. Thanks Mike --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Troy Gilbert [EMAIL PROTECTED] wrote: Looks like C# to me... at least, that's how the array accessor stuff works. The syntax is nice, sure, though I don't really mind the current style of properties. I do find the proxy stuff to be irritating to extend (if you want customize array access [ ]), and do prefer the C# approach better. Troy. On 3/29/07, Jeffry Houser [EMAIL PROTECTED] wrote: I thought AS3 was made to be ECMA compliant. As such I wasn't expecting a new rendition of ActionScript anytime soon. The question I ask myself, is this supported ECMAScript syntax? Is it supported in any language? ( I actually don't know ). At 03:36 PM 3/29/2007, One Person wrote: I would like to make a request for an upgrade to AS4 and I'm not sure where to send it. So here it is. If there is a better place, please let me know. Currently if I want to create properties I have to do this: public function get useStringCache() : Boolean { return _useStringCache; } public function set useStringCache( value:Boolean ) : void { _useStringCache = value; } I would like to see it changed to this: public property useStringCache:Boolean { get { return _useStringCache; } set { _useStringCache = Value; } } where 'Value' is always the value that is being set. I would also like to have a way to create an indexer like this: public property this[ key:String ]:int { get { return _intArray[ key ]; } set { _intArray[ key ] = Value; } } -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com http://www.dot-com-it.com My Podcast: http://www.theflexshow.com http://www.theflexshow.com My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com http://www.ctmug.com
[flexcoders] Hunting a Flex2/FMS2 coder: videoconferencing project for a freelance
Hi! We are looking for a Flex2 and FMS2 expert coder (Freelance only) We need to develop an advanced videoconference platform using Flash Media Server 2 and Flex 2. The client app (using Flash Player 9) should have following features: - New user registration form - Identification/Authentication - Caller ID - Contact list management (new contact, search...etc) - History/Register of calls - User state (Connected, Disconnected, Invisible, Busy, etc) - Multiconference (max. 4 persons) Basically, we need a similar layout and features like in Skype client. The server side should have the user DB and the needed FMS2 business logic. Thanks fmartin @ njooylab . com
Re: [flexcoders] Line or Edge Renderer
Hey Keith, I'm confused about what kind of Graph your're implementing... are you implementing an example of the SpringGraph component and want your EdgeRenderers to be more interactive? Or is this something you're trying to accomplish in the Charting package for Flex? Brendan On 10 Mar 2007 12:43:49 -0800, Keith Sutton [EMAIL PROTECTED] wrote: Has anyone built or seen an implementation of a line (renderer) which responds to click events, dragging, tooltips etc? We are building graph (nodes and edges not pie charts) display application and need a way of accessing the edges/lines and underlying data. I have checked SpringGraph (http://mark- shepherd.com/blog/springgraph-flex-component/) and it has some elements of edge rendering but doesn't implement them completely. Any advice on how to implement - thinking of extending UIComponent in some way? Overriding updateDisplay and adding some kind of custom event handlers? Also how to end lines as arrows (probably a small matter once the class is working). Any help appreciated. Regards, Keith -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
RE: [flexcoders] Easy Breezy Flex2
Here is a partial, raw list of on-line resources. Tracy Flex 2.x Resources Flex sites/blogs: Adobe: http://www.adobe.com/devnet/flex/ DEVNET - start here! http://www.adobe.com/products/flex/productinfo/faq/ http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepagepr oductId=2 http://blogs.adobe.com/ http://weblogs.macromedia.com/mxna/ http://labs.adobe.com/ http://labs.adobe.com/community/ http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_usview=sn610vie wName=Adobe%20Exchangeavm=1 http://blogs.adobe.com/flexdoc/ Other: http://www.searchcoders.com/flex/ http://www.flexination.info http://flexibleexperiments.wordpress.com/2007/03/14/flex-20-primitive-ex plorer/ http://www.scalenine.com http://www.flexcursion.com http://www.theflexshow.com http://www.JeffryHouser.com http://blog.digitalbackcountry.com/ . http://code.google.com/p/flexlib/ http://flexbox.mrinalwadhwa.com/ http://dougmccune.com/blog/ http://www.cflex.net/ http://www.quietlyscheming.com/blog/ http://www.everythingflex.com http://www.waldosmeets.com/ http://www.jessewarden.com/ http://www.cbetta.com/blog/ http://www.cynergytv.com/ http://www.flexdaddy.info/ http://www.richinternet.de/blog/ http://www.brightworks.com/technology/overview.html http://www.crossdomainxml.org/ http://flexsearch.org/ http://labs.flexcoders.nl/ Flex style Explorer: http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo rer.html Documentation: http://www.adobe.com/support/documentation/en/flex/ http://livedocs.macromedia.com/flex/2/ http://www.adobe.com/cfusion/knowledgebase/index.cfm Lists: http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60 http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcomponents/ Bugs/enhancement requests: http://www.adobe.com/go/wish From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of webnerd18 Sent: Thursday, March 29, 2007 4:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Easy Breezy Flex2 So yeah I am a developer in other languages such as php, c#, javascript, and some action script 2. I've gone to a flex2 training class and so I understand the basics of it, but now to get into the actual good techniques and best practices for flex2, to keep up with the newest stuff, and maybe cover some advanced topics is there a couple good sources out there? I've bought Flex2 rough cut, straight from the source. Been reading through that, just curious what everyone else uses. Thanks, Josh Team
RE: [flexcoders] Re: ListBase ScrollVertically error #1010
Unfortunately, no smoking gun in that stack trace. Do you have a simple test case you can post? Try different heights on the list classes as well. It might be a corner case. Are you using custom renderers? Could you be reassigning the 'name' property in those renderers? The name property is reserved. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of confined_to_death666 Sent: Thursday, March 29, 2007 7:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListBase ScrollVertically error #1010 Hey Alex, When I check the app in the debug version I get the following error on mousewheelscroll: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scro llVertically() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:5 358] at mx.controls.listClasses::ListBase/setverticalScrollPosition() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:1 043] at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mous eWheelHandler() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:6 389] at mx.controls::List/mx.controls:List::mouseWheelHandler() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\List.as:2353] and this one when I use the scrollBar: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scro llVertically() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\listClasses\ListBase.as:5 358] at mx.controls::List/mx.controls:List::scrollHandler() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\List.as:1257] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() [C:\dev\flex_! 201_ja\sdk\frameworks\mx\core\UIComponent.! as:8324] at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/i nternal::dispatchScrollEvent() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.a s:1096] at mx.controls.scrollClasses::ScrollThumb/mx.controls.scrollClasses:ScrollT humb::mouseMoveHandler() [C:\dev\flex_201_ja\sdk\frameworks\mx\controls\scrollClasses\ScrollThumb .as:234] The problem was like this before btw.. Different errors for different scroll methods but both point to the ScrollVertically method. I hope you can help me better now...:)
RE: [flexcoders] Re: enhancement for AS4
You can see the latest version of the ES4 spec here: http://developer.mozilla.org/es4/spec/spec.html Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of One Person Sent: Thursday, March 29, 2007 1:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: enhancement for AS4 Yeah, I took it from C# except for the use of the word property. Does anyone have the link for the EcmaScript docs that include all of the types, etc. I can find the one that show general EcmaScript as it is in a web browser, but not the one that was used by AS3. Thanks Mike --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Troy Gilbert [EMAIL PROTECTED] wrote: Looks like C# to me... at least, that's how the array accessor stuff works. The syntax is nice, sure, though I don't really mind the current style of properties. I do find the proxy stuff to be irritating to extend (if you want customize array access [ ]), and do prefer the C# approach better. Troy. On 3/29/07, Jeffry Houser [EMAIL PROTECTED] wrote: I thought AS3 was made to be ECMA compliant. As such I wasn't expecting a new rendition of ActionScript anytime soon. The question I ask myself, is this supported ECMAScript syntax? Is it supported in any language? ( I actually don't know ). At 03:36 PM 3/29/2007, One Person wrote: I would like to make a request for an upgrade to AS4 and I'm not sure where to send it. So here it is. If there is a better place, please let me know. Currently if I want to create properties I have to do this: public function get useStringCache() : Boolean { return _useStringCache; } public function set useStringCache( value:Boolean ) : void { _useStringCache = value; } I would like to see it changed to this: public property useStringCache:Boolean { get { return _useStringCache; } set { _useStringCache = Value; } } where 'Value' is always the value that is being set. I would also like to have a way to create an indexer like this: public property this[ key:String ]:int { get { return _intArray[ key ]; } set { _intArray[ key ] = Value; } } -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com http://www.dot-com-it.com My Podcast: http://www.theflexshow.com http://www.theflexshow.com My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com http://www.ctmug.com
Re: [flexcoders] onChange()
Hi Roman, Um. I didn't know you can put creationComplete on a textBox. I'll give it a try. I'm like a fish out of water with all this flex mumbo jumbo. J. - Original Message From: Roman Protsiuk [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, 29 March, 2007 9:46:52 PM Subject: Re: [flexcoders] onChange() And, as I understood, making mx:TextInput change=CostCalc() creationComplete=CostCalc() / won't do a trick. Am I right? R. On 29 Mar 2007 03:55:44 -0700, Jeremy Watson [EMAIL PROTECTED] com.au wrote: Sorry Guys, I thought I was clear. Okay I'll try to explain it a bit better. I'm slightly sick from WebDU. Let me try again. In HTML you can call a function when the page loads. OnLoad() if I remember correctly. What i want to do is call a function in Flex and have it automatically call and calculate all the fields within this function i.e . CostCalc(). At the moment when I change a mx:TextInput I have an change attribute which calls the costCalc() i.e. mx:TextInput change=CostCalc() It goes out and recalculates all the fields again. SO here lies my issue. How do I call that function and make it like someone has changed a value in the TextInput box? Does that make more sense? Worse case scenario is I'll just populate the fields with the correct data rather then trying to calculate it. I just wanted to know if it can be done like in Javascript/HTML. Thanks in advanced! Jeremy - Original Message From: Roman Protsiuk roman.protsiuk@ gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, 28 March, 2007 8:21:23 PM Subject: Re: [flexcoders] onChange() What your method does with those basic calculation? Returns them, sets them to some Label as text, what? It's very hard to get what is going on and thus what might be wrong. R. On 27 Mar 2007 18:59:56 -0700, Jeremy Watson [EMAIL PROTECTED] com.au wrote: I'm calling on onCreationCompletel (event) creationComplete=onCreationComplete( event); //Alert.show( RequestType) ; if (RequestType == 1) { EndValue(); CostCalc() } else { LandedCosts( ); CostCalc() } } Here is one of the text boxes in which I call the CostCalc() mx:TextInput id=CattleAvWtKg editable=true enabled=true change=CostCalc() text={remoteService. qryDrawdown. lastResult[ 0].CattleAvgWeig htKg} / That's pretty much it. The function CostCalc() is just doing basic math calculation. i.e. a + b does that help at all. Jeremy - Original Message From: Bjorn Schultheiss [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Wednesday, 28 March, 2007 10:59:57 AM Subject: Re: [flexcoders] onChange() Send through more of your code. Are you calling this logic on the creationComplete event? On 28/03/2007, at 10:43 AM, Jeremy Watson wrote: AnyoneAm I calling the function correctly in flex actionscript? J. - Original Message From: Jeremy Watson [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Tuesday, 27 March, 2007 7:48:38 AM Subject: [flexcoders] onChange() Howdy again. The flex application that I'm building is really quite simple which is good cause I'm learning flex. However that said.. in html we have onLoad() which we put on a page. I have built a function called CostCalc() everytime someone changes a field it will recalculate each field. I got that working perfectly. However, when I first load the page up with values every value in the form is 0.00 until I make a change to a field. I know that in flex we have creationComplete= onCreationCompl ete(event) ; but when I put in the function call CostCalc() it doesn't seem to work. Below is the code. Disregard the RequestType stuff. I'm switching states based on the URL. //Alert.show( RequestType) ; if (RequestType == 1) { EndValue(); CostCalc() } else { LandedCosts( ); CostCalc() } } Send instant messages to your online friends http://au.messenger.yahoo.com Send instant messages to your online friends http://au.messenger .yahoo.com Send instant messages to your online friends http://au.messenger.yahoo.com Send instant messages to your online friends http://au.messenger.yahoo.com !-- #ygrp-mlmsg
[flexcoders] Re: Weird behavior of mx:Effects on ViewStack
I succeeded to get rid of this behaviour by removing the ZOOM efect! Seems that mx:Zoom causes the problem (?). This is the zoom that I'been used: mx:Zoom duration=750 zoomHeightFrom=1.0 zoomWidthFrom=1.0 zoomHeightTo=0.0 zoomWidthTo=0.0 / I use mx:Rotate and mx:Move only. Now it works without glitches... btw my ViewStack contains pretty complex components and is the size of the stage. --- In flexcoders@yahoogroups.com, Jaime Bermudez [EMAIL PROTECTED] wrote: Any help with this? On 1/27/07, Jaime Bermudez [EMAIL PROTECTED] wrote: I'd like an explanation of this behavior as well Danko. I perused the source code of the ViewStack and it seems like the hideEffect of a currently selected child should play out before the selected index is actually changed (and the next child is made visible). Seems like this only happens every other time. Anyone from Adobe or anyone who has investigated this further care to explain? Thanks, Jaime On 1/17/07, Danko Kozar [EMAIL PROTECTED] wrote: Hi, I'm using mx:Move effects on ViewStack as it's items showEffect and hideEffect. HideEffect moves the previous view off-screen; then the next view slides in. (btw these views are complex full-screen displays (containing TabNavigators, DataGrids and TileLists) First time when changing views, the effect plays properly - e.g. when switching from view 0 to view 1, or view 1-view 2 etc. everything works as expected: the first view moves out, the second one moves in. But: I've noticed a strange behaviour when returning to the ViewStack's view that was previously shown (created), for instance view 1 -view 0: for a blink of a second the object is displayed on it's final position (!); then it dissapears, the effect starts and object moves in as expected. Another thing I noticed is that previously created view's showEffect starts too early: it doesn't wait the hideEffect of the previous view to play it's part - they play at the SAME TIME. I've come to conclusion that this first time the effect plays right because objects aren't created yet (?). I tried to do the same thing with mx:States - nothing was improved, and the performance was drastically degraded - seems like States have problems (?). The questions are: - what am I supposed to do with Effects. Did I miss something? - do I have to destroy objects previously shown? - how do you destroy objects in Flex? - what's the problem with mx:States and performance? Thanks in advance! Danko -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Anyone have a good example of an RSS feed reader?
On Thursday 29 Mar 2007, simonjpalmer wrote: I have been scratching around and found the as3syndicationlib but I have seen no decent examples of how to use it and have to confess to being a bit lost. Fresh.air :-) -- Tom Chiverton Helping to advantageously engage error-free schemas on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Problem in Menu control Example available in FlexBuilder
Hi All, I faced a problem When I was having a look on MenuControl Example available in Flex Builder. The problem is that When I select any of the menu item, the event is called twice... but logically I should be called once... Can anyone tell me why this is happening and how can i stop this by executing the event twice? Pls suggest something.. Thanks in Advance SS ?xml version=1.0? !-- Simple example to demonstrate the PopUpButton control. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.*; import mx.events.*; private var myMenu:Menu; // Initialize the Menu control, and specify it as the pop up object // of the PopUpButton control. private function initMenu():void { myMenu = new Menu(); var dp:Object = [{label: New Folder}, {label: Sent Items}, {label: Inbox}]; myMenu.dataProvider = dp; myMenu.selectedIndex = 0; myMenu.addEventListener(itemClick, itemClickHandler); popB.popUp = myMenu; popB.label = Put in: + myMenu.dataProvider [myMenu.selectedIndex].label; } // Define the event listener for the Menu control's itemClick event. private function itemClickHandler(event:MenuEvent):void { Alert.show(event.item.label); } ]] /mx:Script mx:Panel title=PopUpButton Control Example height=75% width=75% paddingTop=10 paddingBottom=10 paddingRight=10 paddingLeft=10 mx:Label width=100% color=blue text=Button label contains the name of the last selected menu item. / mx:PopUpButton id=popB label=Edit creationComplete=initMenu(); width=135 / mx:Spacer height=50 / mx:TextInput id=popTypeB / /mx:Panel /mx:Application
Re: [flexcoders] PopUpButton :: creationComplete is giving ERROR
Dunno if it'll do in your situation, maybe you have some specific calculations there, but I do all (well, most) property handling in commitProperties method. Recommended reading: Creating Advanced Visual Components in ActionScript.http://livedocs.adobe.com/flex/2/docs/1721.html#210754 R. On 29 Mar 2007 23:52:38 -0700, sanjaypmg [EMAIL PROTECTED] wrote: Hi All, I am using creation complete in my one of the screens where I am attaching a Dynamic menu to PopUpButton. I am using creationComplete event of PopUpButton to initialise that menu once the creation is completed of the popUpButton... but its shows the following error on run time: TypeError: Error #1009: Cannot access a property or method of a null object reference. at ComboPOS/initVal() at ComboPOS/__cboAuthorsStatusFilter_creationComplete() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() If I use initialize event, it doesnt init my dynamic menu Can anyone tell me the solution for the same? Appriciate quick response... Thanks in Advance.. Sanjay sharma
[flexcoders] Hiding of datagrid header
Hai everybody. Can i get a clue of how can we hide the header of the datagrid control in flex. Thanks in advance Deepa - Heres a new way to find what you're looking for - Yahoo! Answers
Re: [flexcoders] passing data to an EventListener
You can use the data property, which is normally used in combination with item renderers or item editors, but nothing says you can't use it for something else ;-) import mx.controls.Button; private function appInit():void { var offset:Number = 0; for (var i:Number=0; i10; i++) { var b:Button = new Button(); b.data = {btnIndex:i}; b.y = offset; b.label = click me; b.toolTip = button +i; b.addEventListener(MouseEvent.CLICK, buttonClickHandler); addChild(b); offset+=20; } } private function buttonClickHandler(evt:Event):void { trace(index: +evt.currentTarget.data.btnIndex); } regards, Muzak - Original Message - From: dougco2000 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, March 30, 2007 8:43 AM Subject: [flexcoders] passing data to an EventListener I'm creating a number of buttons programmatically and I'd like to have a unique value passed along to a function when each one is clicked. So if I am doing something like: for (i=0;i10;i++) { b = new Button(); b.y = offset; b.label = click me; b.tooltip = button +i; b.addEventListener(MouseEvent.CLICK, butSelect); addChild(b); offset+=20; } And I want to have, let's say, i passed along to the butSelect function, how is that done? I humored myself and tried doing butSelect(i) but of course the mouseEvent is passed and you're not allowed to provide any parameters to the function. Thanks!
Re: [flexcoders] onChange()
creationComplete is dispatched by any component derived from UIComponent. TextInput is. R. On 30 Mar 2007 02:48:31 -0700, Jeremy Watson [EMAIL PROTECTED] wrote: Hi Roman, Um. I didn't know you can put creationComplete on a textBox. I'll give it a try. I'm like a fish out of water with all this flex mumbo jumbo. J. - Original Message From: Roman Protsiuk [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, 29 March, 2007 9:46:52 PM Subject: Re: [flexcoders] onChange() And, as I understood, making mx:TextInput change=CostCalc() creationComplete=CostCalc() / won't do a trick. Am I right? R. On 29 Mar 2007 03:55:44 -0700, Jeremy Watson [EMAIL PROTECTED] com.au[EMAIL PROTECTED] wrote: Sorry Guys, I thought I was clear. Okay I'll try to explain it a bit better. I'm slightly sick from WebDU. Let me try again. In HTML you can call a function when the page loads. OnLoad() if I remember correctly. What i want to do is call a function in Flex and have it automatically call and calculate all the fields within this function i.e . CostCalc(). At the moment when I change a mx:TextInput I have an change attribute which calls the costCalc() i.e. mx:TextInput change=CostCalc() It goes out and recalculates all the fields again. SO here lies my issue. How do I call that function and make it like someone has changed a value in the TextInput box? Does that make more sense? Worse case scenario is I'll just populate the fields with the correct data rather then trying to calculate it. I just wanted to know if it can be done like in Javascript/HTML. Thanks in advanced! Jeremy - Original Message From: Roman Protsiuk roman.protsiuk@ gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, 28 March, 2007 8:21:23 PM Subject: Re: [flexcoders] onChange() What your method does with those basic calculation? Returns them, sets them to some Label as text, what? It's very hard to get what is going on and thus what might be wrong. R. On 27 Mar 2007 18:59:56 -0700, Jeremy Watson [EMAIL PROTECTED] com.au [EMAIL PROTECTED] wrote: I'm calling on onCreationCompletel (event) creationComplete=onCreationComplete( event); //Alert.show( RequestType) ; if (RequestType == 1) { EndValue(); CostCalc() } else { LandedCosts( ); CostCalc() } } Here is one of the text boxes in which I call the CostCalc() mx:TextInput id=CattleAvWtKg editable=true enabled=true change=CostCalc() text={remoteService. qryDrawdown. lastResult[ 0].CattleAvgWeig htKg} / That's pretty much it. The function CostCalc() is just doing basic math calculation. i.e. a + b does that help at all. Jeremy - Original Message From: Bjorn Schultheiss [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Wednesday, 28 March, 2007 10:59:57 AM Subject: Re: [flexcoders] onChange() Send through more of your code. Are you calling this logic on the creationComplete event? On 28/03/2007, at 10:43 AM, Jeremy Watson wrote: AnyoneAm I calling the function correctly in flex actionscript? J. - Original Message From: Jeremy Watson [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Tuesday, 27 March, 2007 7:48:38 AM Subject: [flexcoders] onChange() Howdy again. The flex application that I'm building is really quite simple which is good cause I'm learning flex. However that said.. in html we have onLoad() which we put on a page. I have built a function called CostCalc() everytime someone changes a field it will recalculate each field. I got that working perfectly. However, when I first load the page up with values every value in the form is 0.00 until I make a change to a field. I know that in flex we have creationComplete= onCreationCompl ete(event) ; but when I put in the function call CostCalc() it doesn't seem to work. Below is the code. Disregard the RequestType stuff. I'm switching states based on the URL. //Alert.show( RequestType) ; if (RequestType == 1) { EndValue(); CostCalc() } else { LandedCosts( ); CostCalc() } } Send instant messages to your online friends http://au.messenger .yahoo.com Send instant messages to your online friends http://au.messenger .yahoo.com Send instant messages to your online friends http://au.messenger.yahoo.com Send instant messages to your online friends http://au.messenger.yahoo.com Send instant messages to
[flexcoders] Re: Hiding of datagrid header
Deepa, you can sent showHeaders property of dataGrid to false to hide the header of a grid. Sanjay --- In flexcoders@yahoogroups.com, deepa golamudi [EMAIL PROTECTED] wrote: Hai everybody. Can i get a clue of how can we hide the header of the datagrid control in flex. Thanks in advance Deepa - Here's a new way to find what you're looking for - Yahoo! Answers
[flexcoders] Issues with Datagrid non repeatinh HTTPService XML Result.
I have a flex DBGrid client that was supposed to consume a web service client. After much tweaking and coding. No success. I switched to HTTPService and this was returning xml results. But when DBGrid accepts the results they are all listed ONLY in row 1 of the DBGrid. Below is the mxml application as well as the web service I 1st used and finally the httpservice routine done in C# 2.0 Any help will be appreciated. Thanks. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:HTTPService id=SDSearch url=http://localhost:53541/SDSearch.NET/Default.aspx; showBusyCursor=true mx:request byName{NameBox.text}/byName byPhoneNum{PhoneBox.text}/byPhoneNum /mx:request /mx:HTTPService mx:DataGrid enabled=true id=dataGrid editable=false x=130 y=179 width=411 height=273 dataProvider={SDSearch.lastResult.STAFFREC} alternatingItemColors=[#fcf7e4, #ff] mx:columns mx:DataGridColumn headerText=Staff Name dataField=STAFFNAME/ mx:DataGridColumn headerText=Phone Number dataField=PHONE_NUMBER/ /mx:columns /mx:DataGrid mx:Label x=28 y=88 text=Enter Name:/ mx:Label x=28 y=131 text=Enter Phone No:/ mx:TextInput id=NameBox x=144 y=86 width=382/ mx:TextInput id=PhoneBox x=144 y=129 width=382/ mx:Button x=247 y=530 label=Invoke Service click=SDSearch.send();/ /mx:Application public class Employee { public string STAFFNAME; public string Phone_Num; } public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string byName, byPhoneNum; string queryString, cnString; OleDbDataAdapter adapter; DataSet EmpData = new DataSet(); cnString = ConfigurationManager.AppSettings [ConnStrDB].ToString(); byName = Request.Params[byName].ToString().Trim(); byPhoneNum = Request.Params[byPhoneNum].ToString().Trim (); if (byPhoneNum.Length == 11) { queryString = SELECT * FROM Employees WHERE PHONE_NUMBER = ' + byPhoneNum + '; adapter = new OleDbDataAdapter(queryString, cnString); adapter.Fill(EmpData, Employees); Response.Write(STAFFREC); foreach (DataRow currrec in EmpData.Tables[0].Rows) { Response.Write(STAFFNAME + currrec [STAFFNAME].ToString() + /STAFFNAME); Response.Write(PHONE_NUMBER + currrec [PHONE_NUMBER].ToString() + /PHONE_NUMBER); } Response.Write(/STAFFREC); //XmlDataDocument dataDoc = new XmlDataDocument (EmpData); //return dataDoc; } else { queryString = SELECT * FROM Employees WHERE STAFFNAME LIKE '% + byName + %'; adapter = new OleDbDataAdapter(queryString, cnString); adapter.Fill(EmpData, Employees); Response.Write(STAFFREC); foreach (DataRow currrec in EmpData.Tables[0].Rows) { Response.Write(STAFFNAME + currrec [STAFFNAME].ToString() + /STAFFNAME); Response.Write(PHONE_NUMBER + currrec [PHONE_NUMBER].ToString() + /PHONE_NUMBER); } Response.Write(/STAFFREC); //XmlDataDocument dataDoc = new XmlDataDocument (EmpData); //return dataDoc; } } } // the web service.. [WebService(Namespace = http://tempuri.org/;)] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Employee { public string STAFFNAME; public string Phone_Num; } public class SDSearch : System.Web.Services.WebService { public SDSearch () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public XmlDataDocument getStaffMatch(string byName, string byPhoneNum) { string queryString,cnString; OleDbDataAdapter adapter; DataSet EmpData = new DataSet(); cnString = ConfigurationManager.AppSettings [ConnStrDB].ToString(); if (byPhoneNum.Length == 11) { queryString = SELECT * FROM Employees WHERE PHONE_NUMBER = ' + byPhoneNum + '; adapter = new OleDbDataAdapter(queryString, cnString); adapter.Fill(EmpData,Employees); XmlDataDocument dataDoc = new XmlDataDocument(EmpData); return dataDoc; } else //if (byName.Length 3) { queryString = SELECT * FROM Employees WHERE STAFFNAME LIKE '% + byName + %'; adapter = new OleDbDataAdapter(queryString, cnString); adapter.Fill(EmpData, Employees); XmlDataDocument dataDoc = new
[flexcoders] Re: Center alignment problem
The popup scenario is not what the client is looking for. The second option you gave me, does not work either. Instead it puts the box in the upper left of the screen, and all the items within the box appear one on top of another. So the items are in the center of the box, with the username label appearing first, then below it the password label, then below that the username text input box, so on and so forth. I could really use some sugestions on how to get this to work. JS --- In flexcoders@yahoogroups.com, Shaun [EMAIL PROTECTED] wrote: a couple of options: 1) change your login control to a popup titlewindow instead and use popupmanager to center it to the viewstack 2) put your login control in a mx:Box control that takes up the full size of the viewstack and has verticalAlign set to middle and horizontalAlign set to center. Shaun --- In flexcoders@yahoogroups.com, cardinalflexjeremy sandersjs@ wrote: I have a viewstack, that contains two sub components. One (the first) is simply a small login panel. (its actually just a canvas with text fields and a header etc inside it). The second is what is shown once the user is logged in; its also a large canvas, with a function app inside that component. So my code looks like this: mx:ViewStack width=800 height=600 maxHeight=600 maxWidth=800 selectedChild={getView(false)} id=myViewStack view:LoggedInView id=LoggedInView / view:loginPanel id=LoginView / /mx:ViewStack So I want to have the loginPanel displayed in the center of the available real estate, regardless of screen real estate, (some viewers might be 1024x 768 and some might be 800 x 600) is there anyway to automatically center the loginPanel component in the parent view stack? Thanks JS
Re: [flexcoders] Anyone have a good example of an RSS feed reader?
On 30 Mar 2007 03:23:33 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 29 Mar 2007, simonjpalmer wrote: I have been scratching around and found the as3syndicationlib but I have seen no decent examples of how to use it and have to confess to being a bit lost. Fresh.air :-) It must be that British humor I am not getting. Hank -- Tom Chiverton Helping to advantageously engage error-free schemas on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: Center alignment problem
OK I figured it out. Basically verticalalign and horizontal align are for the children of the class not the class itself, which was what was throwing me off. So I created a custom component based on the box, as the other poster said, THEN I placed inside the box element a panel, which contained my login labels, and input text boxes etc. In the viewstack when I instantiated my box element, I set it up with vertical and horizontal alignments so that the PANEL inside it showed up in the middle. Also the boxs' width and hieght were both 100% of the viewstack. For future reference. Thanks to all who helped. --- In flexcoders@yahoogroups.com, Shaun [EMAIL PROTECTED] wrote: a couple of options: 1) change your login control to a popup titlewindow instead and use popupmanager to center it to the viewstack 2) put your login control in a mx:Box control that takes up the full size of the viewstack and has verticalAlign set to middle and horizontalAlign set to center. Shaun --- In flexcoders@yahoogroups.com, cardinalflexjeremy sandersjs@ wrote: I have a viewstack, that contains two sub components. One (the first) is simply a small login panel. (its actually just a canvas with text fields and a header etc inside it). The second is what is shown once the user is logged in; its also a large canvas, with a function app inside that component. So my code looks like this: mx:ViewStack width=800 height=600 maxHeight=600 maxWidth=800 selectedChild={getView(false)} id=myViewStack view:LoggedInView id=LoggedInView / view:loginPanel id=LoginView / /mx:ViewStack So I want to have the loginPanel displayed in the center of the available real estate, regardless of screen real estate, (some viewers might be 1024x 768 and some might be 800 x 600) is there anyway to automatically center the loginPanel component in the parent view stack? Thanks JS
Re: [flexcoders] Anyone have a good example of an RSS feed reader?
On Friday 30 Mar 2007, hank williams wrote: I have been scratching around and found the as3syndicationlib but I have seen no decent examples of how to use it and have to confess to being a bit lost. Fresh.air :-) It must be that British humor I am not getting. Sorry, I though everyone would have seen the first app on: http://labs.adobe.com/wiki/index.php/Apollo:Applications:Samples -- Tom Chiverton Helping to preemptively mesh viral convergence on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Re: TextArea htmltext parsing
No matter what you do to keep the formatting you still need the words in a plain text to run through your spell checker. Using the text property saves all the hassle of removing the html formatting. Thanks Adobe! Things like bappli/bcation come back correctly as one word. When I get the plain text i run this regex /\b\w+/gi; to parse out all the words. Removes punctuations and such, parsing just on spaces won't do. It's not 100% perfect but can finetune later. Once I know a word is not spelled correctly against my master word list and have the user's corrected spelling, i go find it in the htmlText and weave it in. The only thing that does NOT work really well is when a word is formatted differently in itself such as bappli/bcation. I currently lose that the first 5 letters are bolded... oh well. Can fix later. What i've found most difficult is the UI to highlight the word so a user has context. For now i'm just using the setSelection since i'm spell checking on TextAreas only. Not sure how you are doing suggestive words but havn't firgured that out yet, no algorithm. I'm loading a 120,000 word list into an array collection :)! I'm quite impressed how fast it is, loads in milleseconds when i split my text file on \r\n. Using the build in contains to validate each word. It's faster than calling any other web service. Would like to know what you are doing for suggestive words. --Scott --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Ultimately I'm wanting to find each word to check the spelling, while maintaining the HTML formatting of the TextArea. Using the text would be far easier, but I loose the formatting.
[flexcoders] re naming flex builder
Hi, Is there any harm renaming flex builder without the spaces? that is Adobe Flex Builder 2 becomes Adobe FlexBuilder2 Why you ask? because I tried to install the flex module for apache, but I think that the spaces are causing a problem in the https.conf file Thanks, John Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather
Re: [flexcoders] re naming flex builder
On Friday 30 Mar 2007, John Barrett wrote: Is there any harm renaming flex builder without the spaces? You mean the install directory name ? I don't imagine it'll be too happy, but you can always rename it back :-) -- Tom Chiverton Helping to evangelistically leverage compelling appliances on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] flex bug ????
is CustomComponent already a child of an object (Box2 or another object)? - Dan On 30 Mar 2007 01:41:58 -0700, thierrybertossa [EMAIL PROTECTED] wrote: I have a hierarchie of containers like: Panel -HBox -HDivideBox --Box --Canvas ---VBox ---HDivideBox Box1 Box2 Probleme ---VDivideBox Box3 Box4 and when I try to programmatically add a Child at Box 2. Application.application.Box2.addChild(CustomComponent); I have this error message: -- RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/getChildAt() at mx.core::Container/getChildAt() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2369] at mx.containers.utilityClasses::BoxLayout/measure() [C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\utilityClasses\BoxLa yout.as:88] at mx.containers::Box/mx.containers:Box::measure() [C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\Box.as:250] at mx.core::UIComponent/mx.core:UIComponent::measureSizes() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5448] at mx.core::UIComponent/validateSize() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5394] at mx.core::Container/validateSize() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2688] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateSize() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:557] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti ation() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:646] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852] -- If someone knows the probleme ..? It's a Flex Bug or there is a solution ..? Thanks Thierry
[flexcoders] Warning/Error Hints
Hi all, I'm developing an application for 1 month and already get bored with the Alert.show() dialog box. I don't think it's ideal to show error and warning messages to the user when he/she is interacting with a form or a button (I think it's interesting but not in these situations). I'd like to know if there's something like a balloon to let the user know something in a more slightly way. Any help is appreciated -- André Rodrigues Pena
[flexcoders] Re: RTE when using itemRenderers in DataGrid.
Greetings, The error: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls::DataGrid/mx.controls:DataGrid::commitEditedItemPosition()[C:\dev\GMC\sdk\frameworks\mx\controls\DataGrid.as:3249] at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\controls\DataGrid.as:1220] at mx.core::UIComponent/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732] I really need some help on this one. Thanks --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Please recompile with -verbose-stacktraces and post the contents of the exception dialog. invalidateList requests validateDisplayList call in the next frame update. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tonmmp Sent: Thursday, March 22, 2007 12:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RTE when using itemRenderers in DataGrid. Greetings, I'm having the same issue, but only when switching between other application, using Alt-Tab. I've tried the mydatagrid.validateDisplayList(); but isn't that the same as doing mydatagrid..invalidateList(); ? I really need some help. Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , michael_ramirez44 michael_ramirez44@ wrote: I have been struggling with this issue for about 2 weeks. I was able to reproduce it in a small example. I add and remove an itemRenderer to a datagrid column at run-time. This only won't cause the RTE but I also set the datagrids dataProvider again which causes the error. You will need the Flash Player Debug version to actually see the error. You can view the example application at http://develop.gurufaction.com/flexbug/App.swf http://develop.gurufaction.com/flexbug/App.swf . I have also include the source with this post. --- App.mxml --- ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=initApp() mx:Script ![CDATA[ import mx.collections.*; public var renderer:ClassFactory; public function initApp():void { loadData(10); } public function loadData(rows:uint):void { var gridData:ArrayCollection = new ArrayCollection(); for( var x:int = 0; x rows; x++) { var vo:Object = new Object(); vo.fname = John ; vo.lname = Doe; vo.job = Programmer; gridData.addItem(vo); } dg.dataProvider = gridData; } public function withRenderer():void { renderer = new ClassFactory(LinkRenderer); fname.itemRenderer = renderer; loadData(50); } public function withOutRenderer():void { fname.itemRenderer = null; loadData(100); } ]] /mx:Script mx:TextArea text=To reproduce bug click 'With Item Renderer' and then scroll datagrid! width=300/ mx:HBox mx:Button id=wBtn click=withRenderer() label=With Item Renderer/ mx:Button id=woBtn click=withOutRenderer() label=WithOut Item Renderer/ /mx:HBox mx:DataGrid id=dg width=300 height=400 mx:columns mx:DataGridColumn id=fname dataField=fname headerText=Firstname / mx:DataGridColumn id=lname dataField=lname headerText=Lastname / mx:DataGridColumn id=job dataField=job headerText=Job Description / /mx:columns /mx:DataGrid /mx:Application --- LinkRenderer.mxml -- ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=100% height=100% horizontalAlign=left mx:Script ![CDATA[ ]] /mx:Script mx:LinkButton id=linkBtn label=John/ /mx:HBox
[flexcoders] DragDrop from outside AND within the tree
Is it possible (and in a simple way) to both enable dragging objects from outside the tree (be it from lists or custom dragSources) and reordering items within the tree itself as is it's default behavior with DragMoveEnabled on? The problem is that when I create custom handlers to deal with external dragging and dropping I override the default behavior, and so far, have not been able to activate it when required... Any ideas? Tiago
[flexcoders] rendering checkboxes with as3 instead of mxml?
there is probably a super basic solution to this but i cant seem to find any information on making checkboxes with actionscript instead of laying them out with a repeater in mxml Here's my problem... I want to make checkboxes, in mxml the click event is triggered on toggle. So if I had laid it out in mxml it would look like this: mx:CheckBox id=cbox selected={myChoice.currentItem.selected} label={myChoice.currentItem.label} click=updateFld(event); / However, I am doing it through actionscript so I have this: var cbox:CheckBox = new CheckBox(); cbox.selected = myChoice.currentItem.selected; cbox.label = myChoice.currentItem.label; labelPanel.addChild(cbox); The problem comes in when I want to add functionality on toggle. I can't type cbox.click = updateFld and I'm not sure what events I can listen for on it. Little help on how to handle this?
Re: [flexcoders] re naming flex builder
Hi Tom, thanks for getting back to me. yeah in /Applications/Flexbuilder I did check the app in the terminal,and it seems like it has different slashes then I am used to, some are / others are \ . I thank that I will just leave it be. Now that I have flex builder I don't really need that flex module for apache, but i do like it`-` Thanks for your help, John - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, March 30, 2007 3:41:02 AM Subject: Re: [flexcoders] re naming flex builder On Friday 30 Mar 2007, John Barrett wrote: Is there any harm renaming flex builder without the spaces? You mean the install directory name ? I don't imagine it'll be too happy, but you can always rename it back :-) -- Tom Chiverton Helping to evangelistically leverage compelling appliances on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail
Re: [flexcoders] Warning/Error Hints
On Friday 30 Mar 2007, André Rodrigues Pena wrote: something like a balloon to let the user know something in a more slightly way. Like the Validator one you mean ? -- Tom Chiverton Helping to paradigmatically transition impactful technologies on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Re: rendering checkboxes with as3 instead of mxml?
--- In flexcoders@yahoogroups.com, blc187 [EMAIL PROTECTED] wrote: The problem comes in when I want to add functionality on toggle. I can't type cbox.click = updateFld and I'm not sure what events I can listen for on it. Little help on how to handle this? Create an actionscript class that extends CheckBox, put your custom code in there, and then create instances of that class instead of programatically setting up checkboxes.
[flexcoders] Problem with flash.Utils.Timer
Hello flexcoders this is a related question to my previous one. I'm having trouble with the flash.utils.Timer which Im using to perform a scheduled event inside a Flex app. I want the timer to fire every 10 seconds, continuously till the application is killed. Unfortunately, however I initialize it, the TimerEvent seems to fire at every instant of time(i..e it does not seem to respect the 10 second delay). Has anyone seen this issue before ?Here is my code snippet.. _pingTimer = new Timer(1,0); _pingTimer.addEventListener(TimerEvent.TIMER,onTick); _pingTimer.start(); Any help would be much appreciated. Thanks Kumaran
[flexcoders] Make a component 'modal'
Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun
Re: [flexcoders] re naming flex builder
On Friday 30 Mar 2007, John Barrett wrote: will just leave it be. Now that I have flex builder I don't really need that flex module for apache, but i do like it`-` Yeah, I've always seen the web-tier compiler as a hang over from the Flex 1 days - handy if you are getting started, but it's not rated for production use in Flex 2 so why bother ? -- Tom Chiverton Helping to ambassadorially develop end-to-end IPOs on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Problem with flash.Utils.Timer
I think its not working right because you have set the continue param to 0. What happens if you set this to some other value? On 3/30/07, kumaran_sb [EMAIL PROTECTED] wrote: Hello flexcoders this is a related question to my previous one. I'm having trouble with the flash.utils.Timer which Im using to perform a scheduled event inside a Flex app. I want the timer to fire every 10 seconds, continuously till the application is killed. Unfortunately, however I initialize it, the TimerEvent seems to fire at every instant of time(i..e it does not seem to respect the 10 second delay). Has anyone seen this issue before ?Here is my code snippet.. _pingTimer = new Timer(1,0); _pingTimer.addEventListener(TimerEvent.TIMER,onTick); _pingTimer.start(); Any help would be much appreciated. Thanks Kumaran -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Make a component 'modal'
without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Warning/Error Hints
I was thinking of something like the found new hardware or low disk space balloons of Windows XP. But thinking twice, they are no necessary. I can use validators (as you said) and disable all functionalities I don't want users to use in some states.. That decreases the need of interaction and the use of the boring Alert.show() method. Thanks! :) On 30 Mar 2007 07:29:34 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 30 Mar 2007, André Rodrigues Pena wrote: something like a balloon to let the user know something in a more slightly way. Like the Validator one you mean ? -- Tom Chiverton Helping to paradigmatically transition impactful technologies on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
[flexcoders] Re: Make a component 'modal'
That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
Re: [flexcoders] Warning/Error Hints
On Friday 30 Mar 2007, André Rodrigues Pena wrote: decreases the need of interaction and the use of the boring Alert.show() method. Thanks! :) 's what we did- started out using Alert's to display form errors, moved to Validators as we got the hang of it. -- Tom Chiverton Helping to interactively participate eye-catching relationships on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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: Make a component 'modal'
I personally don't know how this would be done, but that doesnt mean it can't. On 30 Mar 2007 08:08:29 -0700, Shaun [EMAIL PROTECTED] wrote: That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
RE: [flexcoders] Re: Make a component 'modal'
I don't know as much about Flex architecture yet - just the basics, but I know in Flash 8 the PopupWindow component, when not enabled, is completely modal. I used that a lot for achieving modal windows. Don't know if that helps any in this case... I know you're looking to make your own component model - perhaps you could extend a Flex modal component like the PopupWindow? Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway Sent: Friday, March 30, 2007 11:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' I personally don't know how this would be done, but that doesnt mean it can't. On 30 Mar 2007 08:08:29 -0700, Shaun [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Clint Tredway [EMAIL PROTECTED] wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog
[flexcoders] Dispatching Event Question?
Hello, Question on disipatching events that I hope someone can clear up... I have two custom components, A and B created at the Application level. I want to send a custom event from A to B. Inside of B creationComplete, I have addEventListener(myEvent, myBListenerFunc); Inside of A, on a button click, I dispatchEvent(new Event(myEvent)) Obviously I would like the function on B, myBListenerFunc() to be called, but is not. I'm sure I can do this without having to tell B that A is the dispatcher (in B, A.addEventListner(myEvent,myBListnerFunc);) Thanks, Paul
[flexcoders] How do I read Response after FileReference uploads a file?
I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design?
RE: [flexcoders] How do I read Response after FileReference uploads a file?
It shouldn't be. In Flash 8/AS2 it was just: Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design?
[flexcoders] Re: Make a component 'modal'
The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). An example usage would be to make sure the user completes an operation before navigating somewhere else or performing a conflicting action. Also, it would focus the user on what portion of the screen is relevant at the moment. Shaun --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: I don't know as much about Flex architecture yet - just the basics, but I know in Flash 8 the PopupWindow component, when not enabled, is completely modal. I used that a lot for achieving modal windows. Don't know if that helps any in this case... I know you're looking to make your own component model - perhaps you could extend a Flex modal component like the PopupWindow? Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway Sent: Friday, March 30, 2007 11:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' I personally don't know how this would be done, but that doesnt mean it can't. On 30 Mar 2007 08:08:29 -0700, Shaun [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Clint Tredway grumpee@ wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun sthalberstadt@ wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog
[flexcoders] Opening file after download
Hello, I'm downloading a file using FileReference.download(), which prompts for a save location. What IE/FF provides is the ability to open after download, is there any way to replicate that behavior??? Many of my users would like to open immediately, not have to browse to the downloaded file location. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] How do I read Response after FileReference uploads a file?
you can't... file reference does not return the response... (yes I know that's dumb, I thought the same thing) What I had to do is write the response to the session, and after file reference returns success/fail I go back and request the session variable as an XML response... Grant ... b l u e t u b e i n t e r a c t i v e .: The glue between creative and engineering .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design? attachment: small.jpg
RE: [flexcoders] How do I read Response after FileReference uploads a file?
Stupid Outlook hotkeys. What I meant to say was: In Flash 8 AS2 it was just: listener_obj.onComplete = function(file:FileReference):Void { } Where file was the complete file object on the result which had all the info you needed. Should be something similar in AS3. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design?
Re: [flexcoders] Re: Make a component 'modal'
99% of what you want to do can be accomplished, the only thing that i see is the blur effect that you want. I am sure it can be done, but it will not be an easy task. If most of what the user has to do is entering data into forms you can use the built in validators to 'highlight' invalid entries. On 30 Mar 2007 08:39:29 -0700, Shaun [EMAIL PROTECTED] wrote: The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). An example usage would be to make sure the user completes an operation before navigating somewhere else or performing a conflicting action. Also, it would focus the user on what portion of the screen is relevant at the moment. Shaun --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: I don't know as much about Flex architecture yet - just the basics, but I know in Flash 8 the PopupWindow component, when not enabled, is completely modal. I used that a lot for achieving modal windows. Don't know if that helps any in this case... I know you're looking to make your own component model - perhaps you could extend a Flex modal component like the PopupWindow? Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Clint Tredway Sent: Friday, March 30, 2007 11:13 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' I personally don't know how this would be done, but that doesnt mean it can't. On 30 Mar 2007 08:08:29 -0700, Shaun [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders% flexcoders%2540yahoogroups.com , Clint Tredway grumpee@ wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun sthalberstadt@ wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
RE: [flexcoders] How do I read Response after FileReference uploads a file?
fileReference.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA, eventHandler); The DataEvent dispatched will have a data property with the data you are looking for. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design?
Re: [flexcoders] Re: Make a component 'modal'
On Friday 30 Mar 2007, Shaun wrote: The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). Hmm. You could create partly opaque rectangles over the rest of the screen, for instance ? -- Tom Chiverton Helping to synergistically revolutionize intuitive solutions on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] How do I read Response after FileReference uploads a file?
Thats a flash 9/flex only feature right ? Flash 8/as2 doesn't have a data property.. g. ... b l u e t u b e i n t e r a c t i v e .: The glue between creative and engineering .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Williams Sent: Friday, March 30, 2007 11:44 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I read Response after FileReference uploads a file? fileReference.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA, eventHandler); The DataEvent dispatched will have a data property with the data you are looking for. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design? attachment: small.jpg
RE: [flexcoders] How do I read Response after FileReference uploads a file?
Just to note, this functionality was only recently added to FP9 and was not available in previous versions of the player. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, March 30, 2007 11:43 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I read Response after FileReference uploads a file? Stupid Outlook hotkeys. What I meant to say was: In Flash 8 AS2 it was just: listener_obj.onComplete = function(file:FileReference):Void { } Where file was the complete file object on the result which had all the info you needed. Should be something similar in AS3. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design?
[flexcoders] Re: Problem with flash.Utils.Timer
Hi the online documentation at Adobe has recommended setting the value = 0 to make the loop run continuously. Cheers Kumaran --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: I think its not working right because you have set the continue param to 0. What happens if you set this to some other value? On 3/30/07, kumaran_sb [EMAIL PROTECTED] wrote: Hello flexcoders this is a related question to my previous one. I'm having trouble with the flash.utils.Timer which Im using to perform a scheduled event inside a Flex app. I want the timer to fire every 10 seconds, continuously till the application is killed. Unfortunately, however I initialize it, the TimerEvent seems to fire at every instant of time(i..e it does not seem to respect the 10 second delay). Has anyone seen this issue before ?Here is my code snippet.. _pingTimer = new Timer(1,0); _pingTimer.addEventListener(TimerEvent.TIMER,onTick); _pingTimer.start(); Any help would be much appreciated. Thanks Kumaran -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
[flexcoders] Aligning LineCharts in a VBox
I have two LineCharts in a VBox using the same data for the horizontalAxis. I would like the horizontal axis ticks on the two charts to line up. I have been unable to do this due to the vertical axis labels being of different length and the top chart using a secondVerticalAxis. Any help would be greatly appreciated. I've tried using the width attributes without any luck. Marc -- View this message in context: http://www.nabble.com/Aligning-LineCharts-in-a-VBox-tf3493042.html#a9755903 Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Make a component 'modal'
Hmm, now that's an idea... a little bit of a hack, but I'm ok with simplicity over elegance to start with. I think I'll head down that path unless someone throws out another (more) brilliant solution :) Thanks for the help guys. Shaun --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 30 Mar 2007, Shaun wrote: The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). Hmm. You could create partly opaque rectangles over the rest of the screen, for instance ? -- Tom Chiverton Helping to synergistically revolutionize intuitive solutions on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Dispatching Event Question?
When you are adding an event listener the only thing that tells who is to dispatch the event is who's addEventListener() is called. I mean if you are calling addEventListener(...) this means that you are listening to 'this' that will dispatch the event. If a.addEventListener(...) then 'a' will dispatch it. What you need is smth like: instanceOfA.addEventListener(myEvent, myBListenerFunc); inside of the B instance. R. On 30 Mar 2007 08:25:28 -0700, paulwelling [EMAIL PROTECTED] wrote: Hello, Question on disipatching events that I hope someone can clear up... I have two custom components, A and B created at the Application level. I want to send a custom event from A to B. Inside of B creationComplete, I have addEventListener(myEvent, myBListenerFunc); Inside of A, on a button click, I dispatchEvent(new Event(myEvent)) Obviously I would like the function on B, myBListenerFunc() to be called, but is not. I'm sure I can do this without having to tell B that A is the dispatcher (in B, A.addEventListner(myEvent,myBListnerFunc);) Thanks, Paul
[flexcoders] Re: List dragMoveEnabled problem?
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Can you post a test case? yep - here's the version that acts oddly. When I load the XML using mx:Model tags, everything works as expected. --start code-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ [Bindable] private var leftXML:XML; [Bindable] private var rightXML:XML; private function init():void{ var loadString:URLRequest = new URLRequest(file:///C:/TestListMoves/xml/lefthand.xml); var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.TEXT; loader.addEventListener(Event.COMPLETE, doLeftLoaded); loader.load(loadString); } private function doLeftLoaded(event:Event):void{ leftXML = new XML(event.target.data); trace(leftXML); loadRight(); } private function loadRight():void{ var loadString:URLRequest = new URLRequest(file:///C:/TestListMoves/xml/righthand.xml); var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.TEXT; loader.addEventListener(Event.COMPLETE, doRightLoaded); loader.load(loadString); } private function doRightLoaded(event:Event):void{ rightXML = new XML(event.target.data); trace(leftXML); } ]] /mx:Script mx:List x=97 y=135 id=leftList dataProvider={leftXML.item} height=409 dragEnabled=true dragMoveEnabled=true dropEnabled=true labelField=@name/mx:List mx:List x=379 y=135 id=rightList dataProvider={rightXML.item} height=409 dragEnabled=true dragMoveEnabled=true dropEnabled=true labelField=@name/mx:List mx:Button x=147 y=53 label=trace click=trace(leftList.dataProvider + quot;\nquot; + leftXML + '\n')/ mx:Button x=427 y=53 label=trace click=trace(rightList.dataProvider + quot;\nquot; + rightXML + '\n')/ /mx:Application --end code--
Re: [flexcoders] Re: Make a component 'modal'
another option would be to remove the component from the displaylist, swap in a spacer component that was the same size, then use the PopUpManager to redisplay your component, place it in the exact pixel location it was before and make it a modal popup. Then when you want to give focus back to the entire app you swap it back into the displaylist of whatever container it was originally in. Not sure how well this would work, but in theory if you calculate the pixel values exactly, the user might not notice anything's happening. Doug On 3/30/07, Shaun [EMAIL PROTECTED] wrote: Hmm, now that's an idea... a little bit of a hack, but I'm ok with simplicity over elegance to start with. I think I'll head down that path unless someone throws out another (more) brilliant solution :) Thanks for the help guys. Shaun --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 30 Mar 2007, Shaun wrote: The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). Hmm. You could create partly opaque rectangles over the rest of the screen, for instance ? -- Tom Chiverton Helping to synergistically revolutionize intuitive solutions on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: How do I read Response after FileReference uploads a file?
Holy hell, thanks Geoffrey. When was this added? With the initial release of FP9? I posted here several months ago expressing my disbelief that this was not supported and got no feedback to the contrary. Thanks again, Ben --- In flexcoders@yahoogroups.com, Geoffrey Williams [EMAIL PROTECTED] wrote: Just to note, this functionality was only recently added to FP9 and was not available in previous versions of the player. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, March 30, 2007 11:43 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I read Response after FileReference uploads a file? Stupid Outlook hotkeys. What I meant to say was: In Flash 8 AS2 it was just: listener_obj.onComplete = function(file:FileReference):Void { } Where file was the complete file object on the result which had all the info you needed. Should be something similar in AS3. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design?
[flexcoders] Re: rendering checkboxes with as3 instead of mxml?
var cb:CheckBox = new CheckBox(); cb.addEventListener(MouseEvent.CLICK, handleClick); addChild(cb); --- In flexcoders@yahoogroups.com, craig.drabik [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, blc187 blc187@ wrote: The problem comes in when I want to add functionality on toggle. I can't type cbox.click = updateFld and I'm not sure what events I can listen for on it. Little help on how to handle this? Create an actionscript class that extends CheckBox, put your custom code in there, and then create instances of that class instead of programatically setting up checkboxes.
[flexcoders] Re: Dispatching Event Question?
Hello Roman, I am trying to avoid spec'ing who will do the dispatching and just have my component listen for the event no matter who dispatches it. Any ideas? The A.addEventListener(..) seems to couple more than I want... Thanks, Paul --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: When you are adding an event listener the only thing that tells who is to dispatch the event is who's addEventListener() is called. I mean if you are calling addEventListener(...) this means that you are listening to 'this' that will dispatch the event. If a.addEventListener(...) then 'a' will dispatch it. What you need is smth like: instanceOfA.addEventListener(myEvent, myBListenerFunc); inside of the B instance. R. On 30 Mar 2007 08:25:28 -0700, paulwelling [EMAIL PROTECTED] wrote: Hello, Question on disipatching events that I hope someone can clear up... I have two custom components, A and B created at the Application level. I want to send a custom event from A to B. Inside of B creationComplete, I have addEventListener(myEvent, myBListenerFunc); Inside of A, on a button click, I dispatchEvent(new Event(myEvent)) Obviously I would like the function on B, myBListenerFunc() to be called, but is not. I'm sure I can do this without having to tell B that A is the dispatcher (in B, A.addEventListner(myEvent,myBListnerFunc);) Thanks, Paul
[flexcoders] Re: TextArea htmltext parsing
I like what they've done here: http://www.flextendibles.com/DemoSpellChecker.html however, I really don't want to add a J2EE App Server to what I have to support. The fewer things I have to keep running, the better. I'm already using PHP, MySQL, and WebORB, not that they are difficult, but the more you add, the bigger the chance for problems. I've hired a guy to help me write a PHP spelling function, but the html stuff really makes it quite slow. He's got it stripping out the html quite nicely, my biggest issue is the speed. Tags inside words is a whole other problem that I don't have an answer for. I really want to provide the functionality of the RichTextEditor to my users, but what good are these things if you can't easily check the spelling? It'd be ideal if Flex 3 included a robust spell checking capability. It would seem to fit the overall theme of RIA's. What good is a Word Processing app, for example, if you have to create a bunch of less than ideal processes to check spelling? Getting down off the soap box, I have to find an effective way of doing this. I still want to send it to PHP because I can get a more robust spell check, but I believe that I need to handle the html text manipulation in Flex, to make it fast, and only send PHP a single word at a time.
[flexcoders] List with smooth scroll
Scrolling a List go from row 1 to row 2. How can I scroll between two row? My itemRendrer have a big height and it's difficult to see the scrolling... mx:List backgroundColor=#80 width=100% dataProvider={[1,2,3]} rowHeight=265 x=0 height=100% mx:itemRenderer mx:Component editor:ImageEditor editable=true width=100% / /mx:Component /mx:itemRenderer /mx:List
Re: [flexcoders] VBox, constraint based layout not clipping content
The trick I just used for this is to set maxHeight on the 'scrolling' container. Will allow dynamic height add, to point, before scrolls kick in. -Scott On 3/9/07, scott_flex [EMAIL PROTECTED] wrote: Any particualar reason why a Vbox won't correctly clip content and show scrollbars when the object is using constraint based layout positioning? I'm adding up to 50 child objects to the vbox and want the scrollbars to appear so the user can scroll to see them all. If i set the height, and width everything works as expected, so i've manually tapped into the resize event on my parent canvas and manually set the height and width to get the effect of a constraint based layout. Doesn't seem like i should have to do this. If i used the top,left,right,bottom properties, my VBox just expands its size to include all child objects added... which then forces the scroll bars on it's parent container, not what i want. Maybe i'm doing something wrong... -- : : ) Scott
Re: [flexcoders] How do I read Response after FileReference uploads a file?
I did something similar. Before the upload I get a token, I pass that token on the querystring of the upload. Once complete I use that token to get info about the upload. I also use this token for authentication purposes. We have had a lot of trouble with file uploads not sharing sessions with all of the other requests in the app. Another advantage to the token is we have a queue of files that the user is uploading from in the app. With the token we don't have to retrieve the response data right away, or it can be ignored altogether. We also expire the tokens after a certain period of time because we do use them for auth as well. Anyway, it's probably overkill for your project, but I thought I'd share. Paul Grant Davies wrote: you can't... file reference does not return the response... (yes I know that's dumb, I thought the same thing) What I had to do is write the response to the session, and after file reference returns success/fail I go back and request the session variable as an XML response... Grant ... b l u e t u b e i n t e r a c t i v e .: The glue between creative and engineering .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Friday, March 30, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I read Response after FileReference uploads a file? I am trying to use FileReference to upload a file from the user side to a web page and read the response(xml) that the server returns. I can't figure out how to get the response, however. It doesn't seem to be included in the FileReference object. Is there a way to read the response coming back after a file upload, or is this halted by design?
Re: [flexcoders] Warning/Error Hints
I am going to assume that you are talking about an input form(although you may not be), you can use the built in validators to validate the form elements as the user navigates the form. On 30 Mar 2007 06:53:43 -0700, André Rodrigues Pena [EMAIL PROTECTED] wrote: Hi all, I'm developing an application for 1 month and already get bored with the Alert.show() dialog box. I don't think it's ideal to show error and warning messages to the user when he/she is interacting with a form or a button (I think it's interesting but not in these situations). I'd like to know if there's something like a balloon to let the user know something in a more slightly way. Any help is appreciated -- André Rodrigues Pena -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
RE: [flexcoders] Getting the RichTextEditor to do some dancing in a database... to XML file
Consider simply using escape() to encode the htmlText on the way into the db and unescape() it before assigning it to the RTE. I haven't thought this all the way throug, now. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shawn.gibson Sent: Thursday, March 29, 2007 9:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting the RichTextEditor to do some dancing in a database... to XML file Hi Guys, I want to add a comments area to the gallery/blog I'm building, and I'd like to be able to offer users an RTE interface, with the resultant html text to be properly displayed when later retrieved. This, in my case, will most likely be a 2-part affair. The user will enter a comment into a text area as provided by the RTE, and that data will be dumped into a sql/mysql db, and I will run a CF script that passes me back (i.e., creates when invoked by the administrator - me) an xml file that I can use HTTPService to load in the data into a TextArea...I think...I'm still learning. My core question today, if I'm even on the right track, is...how do I populate the db, and get it back into the xml file, in the sense that I think I'd need to wrap the users' input around CDATA areas within the generated xml (that's my guess)? In other words, how do I populate the database, not with hi there, nice pic, but instead with bhi there/b,inice pic!!!/i and pass THAT into the generated xml file, andback out to a TextArea component? I do have an XML generating file in CF that someone got me started on, to read values in the db and pass me back a proper xml file (and it works like a charm so far!), but it's pretty simple at this stage. I can't even show it because my server is in for configuration with Win Server2003SBS...and all my files are on it... If my approach doesn't make sense, let me say, I'm doing most of the db work as the owner (creating and updating galleries, images, photo data etc.), and spitting out xml files for the client to upload, to minimize actual client db access (and, I believe, reduce wear and tear on my equipment, i.e., spitting out XML files seems less intensive on my machine than having users constantly accessing the same db...caching issues being a problem I'll deal with when I get to them). But this is one of the cases where I DO seem to need to allow a user access to the db itself - to enter a blog/comment. Any guidance would be appreciated. I know part of the answer is: you're doing it wrong, use a CRUD CFC and shove it somewhere offsite so you can validate it yourself before allowing it onto the site, but I haven't been able to figure those things out yet...and if anyone would be willing to teach me that (Build a CRUD CFC and get it working, all 4 operations, in Flex), just for demonstration purposes, I'd be willing to pay for it, because I really need to learn this stuff for my gallery (I'm a photographer/designer, not yet a developer). Shawn
Re: [flexcoders] Re: Make a component 'modal'
You could try temporarily reparenting the strong focused component so it was over everything else in the displayList, then drop a big translucent grey box behind it, set to intercept mouse clicks. That sounds like it should work, eh? -Mark Hawley From: Shaun [EMAIL PROTECTED] Date: 2007/03/30 Fri AM 09:08:29 CST To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make a component 'modal' That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Re: List dragMoveEnabled problem?
and, if I write code to convert the XML to an ArrayCollection, and bind to the new ArrayCollections, everything works fine. So it seems the problem is when I'm binding to XMLListCollection. Binding to an ArrayCollection is behaving as expected. This is a workaround, but there shouldn't be a problem when using XMLListCollections, I'm guessing? --- code --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.rpc.http.HTTPService; import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var leftXML:XML; [Bindable] private var rightXML:XML; private var rightArray:Array = new Array(); private var leftArray:Array = new Array(); [Bindable] private var lac:ArrayCollection; [Bindable] private var rac:ArrayCollection; private function init():void{ getE4X(); } private function getE4X():void{ var feedUrl:String = new String(file:///C:/TestListMoves/xml/lefthand.xml); var loader2:HTTPService = new HTTPService(); loader2.method = POST; loader2.url = feedUrl; loader2.resultFormat = e4x; loader2.requestTimeout = 10; loader2.addEventListener(ResultEvent.RESULT, doLeftLoaded); loader2.send(); } private function doLeftLoaded(event:ResultEvent):void{ leftXML = new XML(event.result); var x:XML; for each (x in leftXML.item){ leftArray.push(x); } lac = new ArrayCollection(leftArray); loadRight(); } private function loadRight():void{ var feedUrl:String = new String(file:///C:/TestListMoves/xml/righthand.xml); var loader2:HTTPService = new HTTPService(); loader2.method = POST; loader2.url = feedUrl; loader2.resultFormat = e4x; loader2.requestTimeout = 10; loader2.addEventListener(ResultEvent.RESULT, doRightLoaded); loader2.send(); } private function doRightLoaded(event:ResultEvent):void{ rightXML = new XML(event.result); var x:XML; for each (x in rightXML.item){ rightArray.push(x); } rac = new ArrayCollection(rightArray); } ]] /mx:Script mx:List x=97 y=135 id=leftList dataProvider={lac} height=409 dragEnabled=true dragMoveEnabled=true dropEnabled=true labelField=@name/mx:List mx:List x=379 y=135 id=rightList dataProvider={rac} height=409 dragEnabled=true dragMoveEnabled=true dropEnabled=true labelField=@name/mx:List mx:Button x=147 y=53 label=trace click=trace(leftList.dataProvider + quot;\nquot; + leftXML + '\n')/ mx:Button x=427 y=53 label=trace click=trace(rightList.dataProvider + quot;\nquot; + rightXML + '\n')/ /mx:Application -- code--
RE: [flexcoders] Re: Programmatically create MovieClip frames?
In the case where users would create their own animations on a web site, injecting frames at runtime with content dynamically into a .swf would not be the way to do it. You would want to control the animation with Actionscript. Adding that ability to the player would add unecessary overhead while not solving any real-world problem. Even on collaborative projects, where would the animation content live that would be injected? On collaborative projects, each animator can create their own .swfs and then a programmer loads them all in where they like into a central .swf. You had asked for someone to create a Flash 9 .swf for you with some blank frames, but I don't see what that would solve since you would still need to inject the content of the animation. Sorry, still just trying to understand why this would be useful... I think this disussion has been a good mental excercise at least. :) Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mtthwnthnyhys Sent: Friday, March 30, 2007 5:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Programmatically create MovieClip frames? Thanks Jason, Troy, and Paul, for all your help/feedback. Jason, I can't think of a use case for adding frames to a MovieClip either. Unless of course, you wanted to have animations that you could control with AS3, but didn't have access to the Flash CS3 preview. Though, now that I think about it, it seems like there are some interesting possibilities for dynamically generated animations. Imagine a 'community' site that invited users to create their own animated avatars... or a video game in which the player designs his or her own character... or collaborative animation project in which different artists are creating different parts, maybe even individual frames of an animated sequence... or where a lead animator is creating the key frames, and 'tweeners' are creating the in between frames... you could even track and control this CVS-like, without having to pass around/merge FLAs. Maybe these are pretty abstract, I know... I thought of them just now. The point is, I personally don't WANT to add frames to a MovieClip. But I don't have access to the Flash CS3 preview, and so I was wondering if it was possible to generate AS3/AVM2 MovieClips, in some other way. MovieClip.appendFrame() seems like it'd be easier than the method Troy describes of creating a custom AnimatedSprite class, which will eventually have all or most of the methods of a MovieClip... at least, the timeline control methods. Basically, if I were having this problem 20 days from now... I wouldn't be having this problem. You're right, I'd just make the MovieClips in Flash CS3, export the library into a SWC, and use them from there in my Flex app as I wanted. That would definately be the easiest way. Luckily, I foresaw this problem pretty early on in the project, so I have plenty of time to work on other things while I figure out the best way to handle this... maybe the other things will even take me until the end of April and I won't have this problem at all. In anycase, I appreciate all your help, and offers to help. If it turns out that I need someone to make me a SWF with a few blank frames somewhere down the line, I'll definately be hitting one of you guys up for that. Other than that, I think we can call this discussion closed. Unless someone has more information about it. Although, and maybe this is a seperate post/question in itself, I thought I once heard about being able to control/communicate with AVM1Movies once the new version of Flash came out... I guess that's not happening? NO DYNAMICALLY ADDING FRAMES TO MOVIE CLIPS!! Got it. Thanks all, //Matt --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Troy Gilbert [EMAIL PROTECTED] wrote: Okay, how about the simple scenario where you want the playback of a series of frames of animation... you know, exactly what a movie clip does? I could definitely do this by creating a class that extends sprite and in that class keeping an array of shapes (or sprites) and each ENTER_FRAME event moving my virtual playhead forward to the next sprite, etc., etc... And you know what I'd get? A MovieClip! Looks like Adobe already wrote that one! ;-) Seriously, though, the problem is not that you
RE: [flexcoders] Re: Make a component 'modal'
You could popup a copy of the component over the component in question. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Friday, March 30, 2007 10:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' You could try temporarily reparenting the strong focused component so it was over everything else in the displayList, then drop a big translucent grey box behind it, set to intercept mouse clicks. That sounds like it should work, eh? -Mark Hawley From: Shaun [EMAIL PROTECTED] Date: 2007/03/30 Fri AM 09:08:29 CST To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make a component 'modal' That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun [EMAIL PROTECTED] wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] passing data to an EventListener
Hey, that IS a clever idea, thanks! Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Friday, March 30, 2007 5:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] passing data to an EventListener You can use the data property, which is normally used in combination with item renderers or item editors, but nothing says you can't use it for something else ;-) import mx.controls.Button; private function appInit():void { var offset:Number = 0; for (var i:Number=0; i10; i++) { var b:Button = new Button(); b.data = {btnIndex:i}; b.y = offset; b.label = click me; b.toolTip = button +i; b.addEventListener(MouseEvent.CLICK, buttonClickHandler); addChild(b); offset+=20; } } private function buttonClickHandler(evt:Event):void { trace(index: +evt.currentTarget.data.btnIndex); } regards, Muzak - Original Message - From: dougco2000 [EMAIL PROTECTED] mailto:doug%40dougco.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Friday, March 30, 2007 8:43 AM Subject: [flexcoders] passing data to an EventListener I'm creating a number of buttons programmatically and I'd like to have a unique value passed along to a function when each one is clicked. So if I am doing something like: for (i=0;i10;i++) { b = new Button(); b.y = offset; b.label = click me; b.tooltip = button +i; b.addEventListener(MouseEvent.CLICK, butSelect); addChild(b); offset+=20; } And I want to have, let's say, i passed along to the butSelect function, how is that done? I humored myself and tried doing butSelect(i) but of course the mouseEvent is passed and you're not allowed to provide any parameters to the function. Thanks!
RE: [flexcoders] Re: Dispatching Event Question?
If you listen to systemManager for the event in capture phase you'll see it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulwelling Sent: Friday, March 30, 2007 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Dispatching Event Question? Hello Roman, I am trying to avoid spec'ing who will do the dispatching and just have my component listen for the event no matter who dispatches it. Any ideas? The A.addEventListener(..) seems to couple more than I want... Thanks, Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Roman Protsiuk [EMAIL PROTECTED] wrote: When you are adding an event listener the only thing that tells who is to dispatch the event is who's addEventListener() is called. I mean if you are calling addEventListener(...) this means that you are listening to 'this' that will dispatch the event. If a.addEventListener(...) then 'a' will dispatch it. What you need is smth like: instanceOfA.addEventListener(myEvent, myBListenerFunc); inside of the B instance. R. On 30 Mar 2007 08:25:28 -0700, paulwelling [EMAIL PROTECTED] wrote: Hello, Question on disipatching events that I hope someone can clear up... I have two custom components, A and B created at the Application level. I want to send a custom event from A to B. Inside of B creationComplete, I have addEventListener(myEvent, myBListenerFunc); Inside of A, on a button click, I dispatchEvent(new Event(myEvent)) Obviously I would like the function on B, myBListenerFunc() to be called, but is not. I'm sure I can do this without having to tell B that A is the dispatcher (in B, A.addEventListner(myEvent,myBListnerFunc);) Thanks, Paul
RE: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML Result.
I think you will be happy with HTTPService. Specify resultFormat=e4x in the HTTPService tag, otherwise flex converts the xml into an nested mx:Object structure. I find e4x XML much easier to work with. Don't bind directly to lastResult. It is too hard to debug. Instead use a result handler, and set an instance variable value(XMLListCollection) to event.result.STAFFREC in that, and bind the DataGrid dp to the instance variable. In the handler, you can trace the instance variable.toXMLString() to see exactly what yo have, and how to set the DataGridColumn dataField or labelFunction. I've written sample code tor this so many times I don't want to do it again right now, but post if you need more detail. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Olonade Tolulope williams Sent: Friday, March 30, 2007 6:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML Result. I have a flex DBGrid client that was supposed to consume a web service client. After much tweaking and coding. No success. I switched to HTTPService and this was returning xml results. But when DBGrid accepts the results they are all listed ONLY in row 1 of the DBGrid. Below is the mxml application as well as the web service I 1st used and finally the httpservice routine done in C# 2.0 Any help will be appreciated. Thanks. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:HTTPService id=SDSearch url=http://localhost:53541/SDSearch.NET/Default.aspx http://localhost:53541/SDSearch.NET/Default.aspx showBusyCursor=true mx:request byName{NameBox.text}/byName byPhoneNum{PhoneBox.text}/byPhoneNum /mx:request /mx:HTTPService mx:DataGrid enabled=true id=dataGrid editable=false x=130 y=179 width=411 height=273 dataProvider={SDSearch.lastResult.STAFFREC} alternatingItemColors=[#fcf7e4, #ff] mx:columns mx:DataGridColumn headerText=Staff Name dataField=STAFFNAME/ mx:DataGridColumn headerText=Phone Number dataField=PHONE_NUMBER/ /mx:columns /mx:DataGrid mx:Label x=28 y=88 text=Enter Name:/ mx:Label x=28 y=131 text=Enter Phone No:/ mx:TextInput id=NameBox x=144 y=86 width=382/ mx:TextInput id=PhoneBox x=144 y=129 width=382/ mx:Button x=247 y=530 label=Invoke Service click=SDSearch.send();/ /mx:Application public class Employee { public string STAFFNAME; public string Phone_Num; } public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string byName, byPhoneNum; string queryString, cnString; OleDbDataAdapter adapter; DataSet EmpData = new DataSet(); cnString = ConfigurationManager.AppSettings [ConnStrDB].ToString(); byName = Request.Params[byName].ToString().Trim(); byPhoneNum = Request.Params[byPhoneNum].ToString().Trim (); if (byPhoneNum.Length == 11) { queryString = SELECT * FROM Employees WHERE PHONE_NUMBER = ' + byPhoneNum + '; adapter = new OleDbDataAdapter(queryString, cnString); adapter.Fill(EmpData, Employees); Response.Write(STAFFREC); foreach (DataRow currrec in EmpData.Tables[0].Rows) { Response.Write(STAFFNAME + currrec [STAFFNAME].ToString() + /STAFFNAME); Response.Write(PHONE_NUMBER + currrec [PHONE_NUMBER].ToString() + /PHONE_NUMBER); } Response.Write(/STAFFREC); //XmlDataDocument dataDoc = new XmlDataDocument (EmpData); //return dataDoc; } else { queryString = SELECT * FROM Employees WHERE STAFFNAME LIKE '% + byName + %'; adapter = new OleDbDataAdapter(queryString, cnString); adapter.Fill(EmpData, Employees); Response.Write(STAFFREC); foreach (DataRow currrec in EmpData.Tables[0].Rows) { Response.Write(STAFFNAME + currrec [STAFFNAME].ToString() + /STAFFNAME); Response.Write(PHONE_NUMBER + currrec [PHONE_NUMBER].ToString() + /PHONE_NUMBER); } Response.Write(/STAFFREC); //XmlDataDocument dataDoc = new XmlDataDocument (EmpData); //return dataDoc; } } } // the web service.. [WebService(Namespace = http://tempuri.org/ http://tempuri.org/ )] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Employee { public string STAFFNAME; public string Phone_Num; } public class SDSearch : System.Web.Services.WebService { public SDSearch () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public XmlDataDocument getStaffMatch(string byName, string byPhoneNum) { string queryString,cnString; OleDbDataAdapter adapter; DataSet EmpData = new DataSet(); cnString = ConfigurationManager.AppSettings [ConnStrDB].ToString(); if (byPhoneNum.Length == 11) { queryString = SELECT * FROM Employees WHERE PHONE_NUMBER = ' + byPhoneNum + '; adapter = new OleDbDataAdapter(queryString, cnString); adapter.Fill(EmpData,Employees); XmlDataDocument dataDoc = new XmlDataDocument(EmpData); return dataDoc; } else //if (byName.Length 3) { queryString = SELECT * FROM Employees WHERE STAFFNAME LIKE '% + byName + %'; adapter =
RE: [flexcoders] Warning/Error Hints
I created a status bar for one app. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Friday, March 30, 2007 10:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Warning/Error Hints On Friday 30 Mar 2007, André Rodrigues Pena wrote: decreases the need of interaction and the use of the boring Alert.show() method. Thanks! :) 's what we did- started out using Alert's to display form errors, moved to Validators as we got the hang of it. -- Tom Chiverton Helping to interactively participate eye-catching relationships on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: Dispatching Event Question?
Hi Paul , I'm not 100% sure about this but .. How about .. Application.application.addEventListener(..) ? This should get caught if the Event bubbles ( bubbles = true ) .. If not then you can specify a specific listener and then re-dispatch the event with bubbles = true .. eg: function catchEvent(e:Event) { var myE:Event = new Event(e,true); dispatch(myE); } --- In flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com , paulwelling [EMAIL PROTECTED] wrote: Hello Roman, I am trying to avoid spec'ing who will do the dispatching and just have my component listen for the event no matter who dispatches it. Any ideas? The A.addEventListener(..) seems to couple more than I want... Thanks, Paul --- In flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com , Roman Protsiuk roman.protsiuk@ wrote: When you are adding an event listener the only thing that tells who is to dispatch the event is who's addEventListener() is called. I mean if you are calling addEventListener(...) this means that you are listening to 'this' that will dispatch the event. If a.addEventListener(...) then 'a' will dispatch it. What you need is smth like: instanceOfA.addEventListener(myEvent, myBListenerFunc); inside of the B instance. R. On 30 Mar 2007 08:25:28 -0700, paulwelling pwelling@ wrote: Hello, Question on disipatching events that I hope someone can clear up... I have two custom components, A and B created at the Application level. I want to send a custom event from A to B. Inside of B creationComplete, I have addEventListener(myEvent, myBListenerFunc); Inside of A, on a button click, I dispatchEvent(new Event(myEvent)) Obviously I would like the function on B, myBListenerFunc() to be called, but is not. I'm sure I can do this without having to tell B that A is the dispatcher (in B, A.addEventListner(myEvent,myBListnerFunc);) Thanks, Paul
RE: [flexcoders] Re: Problem with flash.Utils.Timer
I know that leaving that argument off completely results in a continuous timer. Try that. Here is an example of a timer, perhaps you will see what is different from your code. http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI D=578 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kumaran_sb Sent: Friday, March 30, 2007 10:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem with flash.Utils.Timer Hi the online documentation at Adobe has recommended setting the value = 0 to make the loop run continuously. Cheers Kumaran --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Clint Tredway [EMAIL PROTECTED] wrote: I think its not working right because you have set the continue param to 0. What happens if you set this to some other value? On 3/30/07, kumaran_sb [EMAIL PROTECTED] wrote: Hello flexcoders this is a related question to my previous one. I'm having trouble with the flash.utils.Timer which Im using to perform a scheduled event inside a Flex app. I want the timer to fire every 10 seconds, continuously till the application is killed. Unfortunately, however I initialize it, the TimerEvent seems to fire at every instant of time(i..e it does not seem to respect the 10 second delay). Has anyone seen this issue before ?Here is my code snippet.. _pingTimer = new Timer(1,0); _pingTimer.addEventListener(TimerEvent.TIMER,onTick); _pingTimer.start(); Any help would be much appreciated. Thanks Kumaran -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog
RE: [flexcoders] Re: Make a component 'modal'
Maybe investigate how the popups create the blur efffect? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Friday, March 30, 2007 10:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make a component 'modal' Hmm, now that's an idea... a little bit of a hack, but I'm ok with simplicity over elegance to start with. I think I'll head down that path unless someone throws out another (more) brilliant solution :) Thanks for the help guys. Shaun --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 30 Mar 2007, Shaun wrote: The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). Hmm. You could create partly opaque rectangles over the rest of the screen, for instance ? -- Tom Chiverton Helping to synergistically revolutionize intuitive solutions on: http://thefalken.livejournal.com http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Make a component 'modal'
Hey guys, thanks for the additional suggestions. I'm thinking reparenting might involve working through some layout issues, but would probably work. Alex, I assume you mean I should use popupmanager to popup a new instance of the component and set its location to be on top of first instance? What if I want to set focus to an arbitrary box that contains several components - i.e. something arbitrary that I can't create a new instance of? Is there some way to make a popup display an existing displayobject that I'm not aware of? Thanks again! Shaun --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You could popup a copy of the component over the component in question. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Friday, March 30, 2007 10:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' You could try temporarily reparenting the strong focused component so it was over everything else in the displayList, then drop a big translucent grey box behind it, set to intercept mouse clicks. That sounds like it should work, eh? -Mark Hawley From: Shaun [EMAIL PROTECTED] Date: 2007/03/30 Fri AM 09:08:29 CST To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make a component 'modal' That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun sthalberstadt@ wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Problems with tooltip position
At first I apologize for my terrible English. I have two TextInput and I want to show a tootip informing that the caps lock is on at the both fields. My problem is to position the tooltip because the way I was doing is not the best one. I used the global coordinates and for the first field works good, but for the second not. somebody could explain better how to use the global coordinates with many fields, one below the other? Thank you! Carlos H. My source code follows below: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=Init() width=100% height=100% mx:Script ![CDATA[ import mx.managers.ToolTipManager; import mx.controls.ToolTip; public var myTip:ToolTip; private function Init():void { campo1.addEventListener(KeyboardEvent.KEY_UP, TeclaLiberada); campo2.addEventListener(KeyboardEvent.KEY_UP, TeclaLiberada); } private function TeclaLiberada(e:KeyboardEvent):void { if(Keyboard.capsLock) { if(myTip==null) CRIA_TipCapsLock(e); } else { if(myTip!=null) { ToolTipManager.destroyToolTip(myTip); myTip=null; } } } private function CRIA_TipCapsLock(e:Event):void { var posicao_x:Number; var posicao_y:Number //Pega posicao do campo que originou o CAPS var pt:Point = new Point(e.currentTarget.x, e.currentTarget.y); pt=e.currentTarget.localToGlobal(pt); switch(e.currentTarget.id) { case campo1: posicao_x = pt.x + 40; posicao_y = pt.y - 60; break; case campo2: posicao_x = pt.x + 40; posicao_y = pt.y - 90; break; } var s:String = Caps Lock ON ! myTip = ToolTipManager.createToolTip(s,posicao_x,posicao_y,errorTipAbove); myTip.width = 100; myTip.height = 40; ]] /mx:Script mx:Canvas height=96 width=232 id=canvas1 mx:TextInput id=campo1 y=20 x=36/ mx:TextInput id=campo2 y=50 x=36/ /mx:Canvas /mx:Application
RE: [flexcoders] Re: Dispatching Event Question?
Yes, people have created central event handlers that redispatch events. I think Cairngorm does this. Probably find examples in the archives or google. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, March 30, 2007 12:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Dispatching Event Question? If you listen to systemManager for the event in capture phase you'll see it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulwelling Sent: Friday, March 30, 2007 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Dispatching Event Question? Hello Roman, I am trying to avoid spec'ing who will do the dispatching and just have my component listen for the event no matter who dispatches it. Any ideas? The A.addEventListener(..) seems to couple more than I want... Thanks, Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Roman Protsiuk [EMAIL PROTECTED] wrote: When you are adding an event listener the only thing that tells who is to dispatch the event is who's addEventListener() is called. I mean if you are calling addEventListener(...) this means that you are listening to 'this' that will dispatch the event. If a.addEventListener(...) then 'a' will dispatch it. What you need is smth like: instanceOfA.addEventListener(myEvent, myBListenerFunc); inside of the B instance. R. On 30 Mar 2007 08:25:28 -0700, paulwelling [EMAIL PROTECTED] wrote: Hello, Question on disipatching events that I hope someone can clear up... I have two custom components, A and B created at the Application level. I want to send a custom event from A to B. Inside of B creationComplete, I have addEventListener(myEvent, myBListenerFunc); Inside of A, on a button click, I dispatchEvent(new Event(myEvent)) Obviously I would like the function on B, myBListenerFunc() to be called, but is not. I'm sure I can do this without having to tell B that A is the dispatcher (in B, A.addEventListner(myEvent,myBListnerFunc);) Thanks, Paul
[flexcoders] Re: Make a component 'modal'
I actually tried that one, but from what I can tell it's not in the opensource part of the framework. Shaun --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Maybe investigate how the popups create the blur efffect? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Friday, March 30, 2007 10:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make a component 'modal' Hmm, now that's an idea... a little bit of a hack, but I'm ok with simplicity over elegance to start with. I think I'll head down that path unless someone throws out another (more) brilliant solution :) Thanks for the help guys. Shaun --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Tom Chiverton tom.chiverton@ wrote: On Friday 30 Mar 2007, Shaun wrote: The problem is that I don't want to pop up a new control or create a custom control every time I want this effect. Instead, I want to apply an effect to an existing control (that could be any control). Hmm. You could create partly opaque rectangles over the rest of the screen, for instance ? -- Tom Chiverton Helping to synergistically revolutionize intuitive solutions on: http://thefalken.livejournal.com http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Re: RTE when using itemRenderers in DataGrid.
I don't have 2.0 around right now. 2.0.1 seems better. I got a different error in 2.0.1 and was able to workaround it by calling dg.validateNow() before loadData() From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tonmmp Sent: Friday, March 30, 2007 6:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RTE when using itemRenderers in DataGrid. Greetings, The error: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls::DataGrid/mx.controls:DataGrid::commitEditedItemPosition()[C :\dev\GMC\sdk\frameworks\mx\controls\DataGrid.as:3249] at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()[C:\dev\G MC\sdk\frameworks\mx\controls\DataGrid.as:1220] at mx.core::UIComponent/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\ core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayLis t()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiat ion()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply () at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\ GMC\sdk\frameworks\mx\core\UIComponent.as:7789] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\G MC\sdk\frameworks\mx\core\UIComponent.as:7732] I really need some help on this one. Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Please recompile with -verbose-stacktraces and post the contents of the exception dialog. invalidateList requests validateDisplayList call in the next frame update. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of tonmmp Sent: Thursday, March 22, 2007 12:04 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: RTE when using itemRenderers in DataGrid. Greetings, I'm having the same issue, but only when switching between other application, using Alt-Tab. I've tried the mydatagrid.validateDisplayList(); but isn't that the same as doing mydatagrid..invalidateList(); ? I really need some help. Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , michael_ramirez44 michael_ramirez44@ wrote: I have been struggling with this issue for about 2 weeks. I was able to reproduce it in a small example. I add and remove an itemRenderer to a datagrid column at run-time. This only won't cause the RTE but I also set the datagrids dataProvider again which causes the error. You will need the Flash Player Debug version to actually see the error. You can view the example application at http://develop.gurufaction.com/flexbug/App.swf http://develop.gurufaction.com/flexbug/App.swf http://develop.gurufaction.com/flexbug/App.swf http://develop.gurufaction.com/flexbug/App.swf . I have also include the source with this post. --- App.mxml --- ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=initApp() mx:Script ![CDATA[ import mx.collections.*; public var renderer:ClassFactory; public function initApp():void { loadData(10); } public function loadData(rows:uint):void { var gridData:ArrayCollection = new ArrayCollection(); for( var x:int = 0; x rows; x++) { var vo:Object = new Object(); vo.fname = John ; vo.lname = Doe; vo.job = Programmer; gridData.addItem(vo); } dg.dataProvider = gridData; } public function withRenderer():void { renderer = new ClassFactory(LinkRenderer); fname.itemRenderer = renderer; loadData(50); } public function withOutRenderer():void { fname.itemRenderer = null; loadData(100); } ]] /mx:Script mx:TextArea text=To reproduce bug click 'With Item Renderer' and then scroll datagrid! width=300/ mx:HBox mx:Button id=wBtn click=withRenderer() label=With Item Renderer/ mx:Button id=woBtn click=withOutRenderer() label=WithOut Item Renderer/ /mx:HBox mx:DataGrid id=dg width=300 height=400 mx:columns mx:DataGridColumn id=fname dataField=fname headerText=Firstname / mx:DataGridColumn id=lname dataField=lname headerText=Lastname / mx:DataGridColumn id=job dataField=job headerText=Job Description / /mx:columns /mx:DataGrid /mx:Application --- LinkRenderer.mxml -- ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
[flexcoders] Finding the position of a given character inside a TextArea
Hi all, Is there a way to determine the position ( coordinates ) of a given character ( by index ) inside a textarea?? TextLineMetrics falls short... thx ;) -- : Aldo Bucchi : mobile (56) 8 429 8300
[flexcoders] Re: Opening file after download
You may need to involve the server to accomplish this. I typically get this behavior by streaming content through a server side page that sets the Content-Disposition header to attachment; filename=someFile.txt. That header is what lets the browser know it should display the [Save][Open] dialog. Ont the Flex side, I just invoke the server-side page with navigateToURL(). HTH, Doug --- In flexcoders@yahoogroups.com, Battershall, Jeff [EMAIL PROTECTED] wrote: Hello, I'm downloading a file using FileReference.download(), which prompts for a save location. What IE/FF provides is the ability to open after download, is there any way to replicate that behavior??? Many of my users would like to open immediately, not have to browse to the downloaded file location. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
Re: [flexcoders] Finding the position of a given character inside a TextArea
TextField has a function getCharBoundries() which returns the location/width/height/etc of a single character within a textfield. You can gain access to the textField inside a TextArea by extending the TextArea (or calling mx_internal::getTextField()). - Dan Freiman On 30 Mar 2007 11:07:32 -0700, Aldo Bucchi [EMAIL PROTECTED] wrote: Hi all, Is there a way to determine the position ( coordinates ) of a given character ( by index ) inside a textarea?? TextLineMetrics falls short... thx ;) -- : Aldo Bucchi : mobile (56) 8 429 8300
[flexcoders] Synchronized access to ArrayCollection ?
Hello flexcoders I'm relatively new to flex and ActionScript. I need some help with the following problem. I've an ActionScript ArrayCollection which is shared between a Consumer(which wakes up on a flash.Utils.TimerEvent and reads the collection) and a Producer(which writes to the same collection, based on a user interaction event). What would be the easiest way to synchronize access to this collection in Actionscript ? Thanks Kumaran
[flexcoders] Crash VM -- tree with form
Odd problem. This crashes the VM. I have stripped this down as far as I could and still don't see why. There are two files: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=view.* MyTree/ /mx:Application And, in view/MyTree.xml: ?xml version=1.0? mx:VBox width=100% height=100% xmlns:mx=http://www.adobe.com/2006/mxml; mx:Tree labelField=@label showRoot=true width=160 mx:XMLListCollection id=MailBox mx:XMLList folder label=Mail /folder /mx:XMLList /mx:XMLListCollection /mx:Tree mx:Form mx:FormItem label=Owner mx:TextInput id=owner width=200/ /mx:FormItem /mx:Form /mx:VBox If I remove the tree or change the id=owner to id=owner2 it works fine. This is Windows with Flex 2.0.1 SDK. Thanks.
Re: [flexcoders] Aligning LineCharts in a VBox
Figured it out myself (for once). Once I set the gutterLeft gutterRight properties to the same value for each of the charts everything lined up perfectly. mr19 wrote: I have two LineCharts in a VBox using the same data for the horizontalAxis. I would like the horizontal axis ticks on the two charts to line up. I have been unable to do this due to the vertical axis labels being of different length and the top chart using a secondVerticalAxis. Any help would be greatly appreciated. I've tried using the width attributes without any luck. Marc -- View this message in context: http://www.nabble.com/Aligning-LineCharts-in-a-VBox-tf3493042.html#a9758827 Sent from the FlexCoders mailing list archive at Nabble.com.