RE: [flexcoders] Re: Can Flex directly replace Flash????
Thanks for the reply guys :) Real quick though, could you both clarify what you (Kenny and Cisnky) mean by "use AS3"? All AS3 means to me, is that it's the next evolution of ActionScript, in which you now use Packages instead of Classes, and some changes/enhancements regarding code syntax & methodologies. I am sure there is much more to it than that - I only researched AS3 a little bit. I was just wondering if you guys were referring to the AS3 Version of the Flash IDE available on the Adobe Website - and that I should recode/recompile my existing AS2 Flash Application, with the AS3 methodologies (and then pull that into my Flex App)?? Again, not sure what you both meant exactly, so if you could clarify that whole thing, I would be extremely grateful. I am trying very hard, to see if I can use Flex 100% of the time, and sort of put Flash on the back-burner for a while. Thanks in advance for all your wonderful input, Mike -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lostinrecursion Sent: Saturday, February 03, 2007 7:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can Flex directly replace Flash I agree. AS3 actually has the most incredible drag and drop support and it is also very easy to implement via Flex. In fact, all List based components have this functionality native to them. But adding it to a non list base component isn't awfully hard either. Look in the docs for drag and drop and look for "Image to a Canvas" examples on drag/drop - I believe that ought to answer many of your questions. Good luck with the app. Sounds heavy. -Kenny -- 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] Re: Can Flex directly replace Flash????
Hello Michael! You hit the nail right on the head - this is exactly what I am looking for. In fact, this scenario closely resembles how I wrote my existing version with Flash. I will scour your post a few times over, and research every aspect of it - then hopefully I will be able to put together a game plan in my head, on how to start the conversion process. The cool part too, is that I can port most of my AS 2.0 code over, as it relates to all the GPS Conversion logic, and all other math logic / coordinate conversion functions that I had to slave countless hours over figuring out. Again, thank you Michael - you provided several key pieces of information, and I have a pretty good feel as to what to do next. I may still e-mail you off-list however, with some other questions. Take care, Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Saturday, February 03, 2007 8:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Can Flex directly replace Flash > is how to handle all the Drag/Drop logic with the Icons, Sounds interesting. :) I would make a component, MapViewer extends UIComponent. Composite 2 components into this component. - MapLoader extends SWFLoader - MapAssets extends Canvas MapViewer will be the control into positioning the icons as your drop them INTO the MapAssets aka the map assets instance is position 0,0 with the MapLoader right on top. MapView sizes and positions the MapLoader and MapAssrts instances. Once you have this base set up, set your tool bar - drag off the tool bar, create a dragData object with a new instance of the said icon, - user drops icon onto MapViewer - MapViewer konws how to accept dragDrop, then processes the x,y position converts coords, takes that new instance you created from the tool bar factory and addChild() into the MapAssets component precisely where the user dropped it. Now that the icon is perfectly placed INSIDE the MapAssets instance as the user pans the map around, them icon follows because the MapViewer is positioning the MapLoader along with the MapViewer. May or may not make sense but from what you described I could easily get that scenario going. Peace, Mike On 2/3/07, lostinrecursion <[EMAIL PROTECTED]> wrote: I agree. AS3 actually has the most incredible drag and drop support and it is also very easy to implement via Flex. In fact, all List based components have this functionality native to them. But adding it to a non list base component isn't awfully hard either. Look in the docs for drag and drop and look for "Image to a Canvas" examples on drag/drop - I believe that ought to answer many of your questions. Good luck with the app. Sounds heavy. -Kenny -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Re: Can Flex directly replace Flash????
is how to handle all the Drag/Drop logic with the Icons, Sounds interesting. :) I would make a component, MapViewer extends UIComponent. Composite 2 components into this component. - MapLoader extends SWFLoader - MapAssets extends Canvas MapViewer will be the control into positioning the icons as your drop them INTO the MapAssets aka the map assets instance is position 0,0 with the MapLoader right on top. MapView sizes and positions the MapLoader and MapAssrts instances. Once you have this base set up, set your tool bar - drag off the tool bar, create a dragData object with a new instance of the said icon, - user drops icon onto MapViewer - MapViewer konws how to accept dragDrop, then processes the x,y position converts coords, takes that new instance you created from the tool bar factory and addChild() into the MapAssets component precisely where the user dropped it. Now that the icon is perfectly placed INSIDE the MapAssets instance as the user pans the map around, them icon follows because the MapViewer is positioning the MapLoader along with the MapViewer. May or may not make sense but from what you described I could easily get that scenario going. Peace, Mike On 2/3/07, lostinrecursion <[EMAIL PROTECTED]> wrote: I agree. AS3 actually has the most incredible drag and drop support and it is also very easy to implement via Flex. In fact, all List based components have this functionality native to them. But adding it to a non list base component isn't awfully hard either. Look in the docs for drag and drop and look for "Image to a Canvas" examples on drag/drop - I believe that ought to answer many of your questions. Good luck with the app. Sounds heavy. -Kenny -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.