Re: [flexcoders] what is multiton class and how to use it ?
Re: [flexcoders] What happened to the Flex Style Explorer?
Re: [flexcoders] difference between stage and application?
If memory serves, Container.addChild() overrides DisplayObject.addChild(), and requires that the argument implement the IUIComponent interface, which means only Flex components can be added. You need to use Container.rawChildren.addChild(Sprite) instead. You may also have to override updateDisplayList() to get it to layout correctly, because you're basically bypassing the Flex framework layout mechanism. So unless you really need to, using the Flex Integration Kit is much less hassle. What the kit does is wrap your Sprite or MovieClip object in a UIMovieClip class, which implements the bare bones interfaces required for a non-Flex object to work with the Flex framework, such as IUIComponent. You can also use the UIMovieClip class source to wrap your Sprite or non-Flex object without the Flex Integration Kit, this way you can bypass using Flash altogether if you find you don't need it. ___ Joseph Balderson, Flex Flash Platform Developer :: http://joeflash.ca Author, Professional Flex 3 :: http://tinyurl.com/profx3book Alex Harui wrote: You should use the Flash/Flex Component Kit to wrap your Flash content. Flash content won’t work well in Flex without being wrapped in some fashion. The minimum thing you could do is stick in an mx:UIComponent of the appropriate size in the application and addChild the sprite to it. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *michaeljonknight *Sent:* Wednesday, April 22, 2009 2:33 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] difference between stage and application? Hello, I am somewhat new to flex. We are working on a project that uses an exported swc from Flash and running into some problems getting everything we want to show up layered correctly. I want to add a menu bar (mx.controls.MenuBar) on top of some content from the flash swc (flash.display.Sprite). I can only get the menu bar to show up if I call application.addChild and the sprite to show up if I call application.stage.addChild. But the menu bar popups are behind the sprite. I don't really understand the difference between the application and the stage either. Can anyone help? And is there an established way to work with mx.controls and flash.display.sprite data? thanks in advance, madmik3 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] difference between stage and application?
Sorry, I realized you were talking about UIComponent.addChild(), not Container.addChild(), my bad. ___ Joseph Balderson, Flex Flash Platform Developer :: http://joeflash.ca Author, Professional Flex 3 :: http://tinyurl.com/profx3book Joseph Balderson wrote: If memory serves, Container.addChild() overrides DisplayObject.addChild(), and requires that the argument implement the IUIComponent interface, which means only Flex components can be added. You need to use Container.rawChildren.addChild(Sprite) instead. You may also have to override updateDisplayList() to get it to layout correctly, because you're basically bypassing the Flex framework layout mechanism. So unless you really need to, using the Flex Integration Kit is much less hassle. What the kit does is wrap your Sprite or MovieClip object in a UIMovieClip class, which implements the bare bones interfaces required for a non-Flex object to work with the Flex framework, such as IUIComponent. You can also use the UIMovieClip class source to wrap your Sprite or non-Flex object without the Flex Integration Kit, this way you can bypass using Flash altogether if you find you don't need it. ___ Joseph Balderson, Flex Flash Platform Developer :: http://joeflash.ca Author, Professional Flex 3 :: http://tinyurl.com/profx3book Alex Harui wrote: You should use the Flash/Flex Component Kit to wrap your Flash content. Flash content won’t work well in Flex without being wrapped in some fashion. The minimum thing you could do is stick in an mx:UIComponent of the appropriate size in the application and addChild the sprite to it. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *michaeljonknight *Sent:* Wednesday, April 22, 2009 2:33 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] difference between stage and application? Hello, I am somewhat new to flex. We are working on a project that uses an exported swc from Flash and running into some problems getting everything we want to show up layered correctly. I want to add a menu bar (mx.controls.MenuBar) on top of some content from the flash swc (flash.display.Sprite). I can only get the menu bar to show up if I call application.addChild and the sprite to show up if I call application.stage.addChild. But the menu bar popups are behind the sprite. I don't really understand the difference between the application and the stage either. Can anyone help? And is there an established way to work with mx.controls and flash.display.sprite data? thanks in advance, madmik3 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * 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:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] flex builder could not publish the project source: null
This just happened to me on a Flex project in FB 3.0.1. What cleared it up was I had downloaded a linked folder from a repository which was broken because I didn't have the same reference as the person who created it. Once I deleted the linked folder it exported the source just fine. ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/profx3book Brian Morearty wrote: I was creating a small sample app to demonstrate a question that I'm about to post here, and when I tried to publish the application source (Project: Publish Application Source, then hit OK) I got this error: Flex Builder could not publish the project source: null Tried closing and reopening. No luck. Nothing special about my app. Very small app with 2 images. And now I can't publish source for ANY of my apps. :-( Any idea how to get back to a happy state? - Brian Morearty Intuit -- 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: How to know which DisplayObjects are underneath another?
Overlapped is a little different than 'being at a lower depth.' It looks to me like you're looking for some collision detection in addition to depth sorting, as in if one circle overlaps the other (collides with), then hide the lower one. That's simple if you're comparing two circles. But the moment you get into n-overlapping circles, you're going to have to look into more complex logic, like figuring out which /group/ of circles overlaps, as a subgroup of the whole, and amongst just /those/ circles, hide all those underneath. The best place to start is to look into collision detection routines. First place to look would be the hitTest() method of the DisplayObject class. But that only gives you bounding box collision -- if you're looking for pixel-level collision detection, look into the hitTest() method of the BitmapData class. ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/profx3book huhgawz wrote: Thanks for you fast response. Your suggestion works but it is not what I'm looking for. I'm sorry I guess I didn't explain well. So here I come again: Taking into account my previous example (the one with a Canvas and multiple Circles positioned randomly)...I need to hide all those Circles that are totally overlapped by other Circles. Could someone help me with this? --- In flexcoders@yahoogroups.com, Lushen Wu l...@... wrote: huhgawz, I think most UIComponents subclass DisplayObjectContainer, which has a method getChildIndex #getChildIndex%28%29(child:DisplayObject ../../flash/display/DisplayObject.html):int ../../int.html so call this to find the child index (basically z-order) of the lowest-ordered circle you want to have visible, then iterate all the Children underneath that index using the property numChildren and method getChildAt #getChildAt%28%29(index:int ../../int.html):DisplayObject ../../flash/display/DisplayObject.html and set them visible=false ref: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html Hope that helps.. Lushen On 12/24/2008 12:50 PM, huhgawz wrote: Let's say you have a /Canvas/ in which you create multiple instances of a /Circle/ randomly positioned. Then you want to know which /Circles/ are underneath the top most /Circle/ (talking in /z-order/ terms) in order to hide them all. Could you share an example of this? I would really appreciate any guidance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] 1044 Compile time error - help?
Your root application file needs to be an Application class. If you need a proxy root component, build a custom MXML component based on Canvas and place it inside the Application container. ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/5qbqlk nwebb wrote: Hello, My first day working for a client on an existing project. Checked project out of SVN, but will not compile. I get a series of 1044 errors like this one: *1044: Interface method addChlidBridge in namespace mx.managers:ISystemManager is not implemented by class _ToolsBase_mx_managers_SystemManager.* All errors are to do with ToolsBase (the main application file) not implementing the ISystemManager interface. ToolsBase extends Application. I've tried various things ... I've commented out almost all of the code and checked the project settings and now I'm running out of options. Hoping someone may possibly be able to make a suggestion or two? Cheers
Re: [flexcoders] fla file format license
IFAIK, you cannot license the FLA format from Adobe, and it is a closed source binary format. Wait a little while for when they come out with the XFL format for Flash, otherwise you'll have to do what every other SWF tool vendor has done and create your own format. ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/5qbqlk vuthecuong wrote: Hi all Gurus, Because flash is related to Flex also, and I planned to use Flex in my project so I post here: I need advice from you about license of fla file format. = Background: we intend to develop standalone flash application with nearly same fearture as FLASH CS. Our application can save as (output) fla file also. Basic features are insert text,images into fla file, edit these text/images then output edited content to swf file. === So my question is: If we sell this app to end-user, do we violate the fla file license of Adobe? AFAIK, fla file is property of Adobe and it can not be edited in other app. If yes, could you point me to weblink of Abode fla file license or something like that? Please help me, I need your help. Best regards,
Re: [flexcoders] How to use the Scale9Grid?
I did a tutorial series which explains how to build an asset with 9-slice scaling in Flash and use it to custom skin a Flex component. It's challenging use programmatically unless you know the precise coordinates of how you want the image sliced up, and it has very specific usage requirements which are not all that well documented unless you know where to look (like here ;) http://www.communitymx.com/abstract.cfm?cid=6C7D2 http://www.communitymx.com/abstract.cfm?cid=92C3D http://www.communitymx.com/abstract.cfm?cid=23781 ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/5qbqlk Josh McDonald wrote: It defines how to stretch assets, for skinning, by chopping an image into 9 scale-zones. Corners don't scale, top and bottom scale horizontally, left and right scale vertically, and the centre scales in both axes. -Josh On Wed, Nov 12, 2008 at 6:58 PM, jovialrandor [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I can't seem to find any substantive documentation on the 'scale9grid' property. Is it only for SWF's? What does it mean to add to the Application tag? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
Re: [flexcoders] How to use the Scale9Grid?
scale9grid also goes by another name: search for 9-slice in the documentation, and that should give you a introduction to the topic. ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/5qbqlk Josh McDonald wrote: It defines how to stretch assets, for skinning, by chopping an image into 9 scale-zones. Corners don't scale, top and bottom scale horizontally, left and right scale vertically, and the centre scales in both axes. -Josh On Wed, Nov 12, 2008 at 6:58 PM, jovialrandor [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I can't seem to find any substantive documentation on the 'scale9grid' property. Is it only for SWF's? What does it mean to add to the Application tag? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] AIR 1.5 and Flash Player 10
I'm trying to figure out how to compile an AIR app with the Flex 3.2 SDK (stable build 3.2.0.3794), deployed with Flash Player 10 capability. Using the example below, you'd think it would work. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() mx:Script ![CDATA[ import flash.system.Capabilities; import flash.display.ColorCorrectionSupport; private function initApp():void { version.text = Flash Player version: + Capabilities.version; stat.text = Color Correction Support = +this.stage.colorCorrectionSupport; } ]] /mx:Script mx:Label id=version width=250 / mx:Label id=stat width=250 / /mx:WindowedApplication The compiler recognizes the FP10 classes, as does the code assist, but when I run it I get a null exception error on stage.colorCorrectionSupport -- which tells me that the FP10 classes are not actually being compiled into the SWF. When I add -target-player=10 to the compiler settings, I get an error configuration variable 'target-player' must only be set once, which tells me that this is already being set somewhere. So why won't my AIR app compile for Flash 10 classes? I crack open the aiglobal.swc file, examine the catalog.xml file, and it indicates swc xmlns=http://www.adobe.com/flash/swccatalog/9; ... flex version=4.0.0 build=0 / So I backed up the old airglobal.swc file, and created a new one with the 9 in the swc tag changed to a 10. But that didn't seem to change anything. Thing is, the catalog.xml file indicates that the Flash 10 classes are indeed in the airglobal.swc file. So does this mean that AIR 1.5 is being compiled to Flash 9? Do I need to change the Flex BUilder config settings to change this? And why on earth is AIR 1.5 included in the latest stable build (3.2.0.3794) of the Flex 3 SDK, and touted as being Flash 10-enabled, when it seems like you need Flex 4 to take advantage of these capabilities? Maybe I'm just reading this wrong, because that just makes no sense whatsoever. If it's true, when are we going to be able to compile to Flash 10 in AIR? When Flex 4 finally comes out? Has anyone figured out how to create an AIR app with the Flex 3.2 SDK, for FP10? Thanks. -- ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/5qbqlk
Re: [flexcoders] The end of ActionScript 3 as an EcmaScript 4 implementation
Can we get back on topic here? This is a Flex technical discussion forum discussing the future of ACTIONSCRIPT. Can the paid MS-pundits and SL-bashers go somewhere else please? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Scott Barnes wrote: Understandable, at times folks can have different levels of Success. In that right now China is ontop in the Gold Medal tally, therefore they are the most successful right? Personally being an Australian, I'd consider the 7 gold medals we have now as being success as that's 7 gold medals that someone in a given sport has that you or I don't? Eye of the beholder is more the lesson here? As for the Silverlight Video Quality, i'll let others echo what majority have stated ( I have tonnes more of these ): /The online coverage of the Olympic Games on MSN is spectacular. For this Olympics, in the digital media realm, a milestone innovation will surely be the entrance of Microsoft's Silverlight. – Andy Plesser, Beet.TV/ // /Initially, they [NBC] expected to use Adobe's Flash, given that is the standard for video delivered over the Internet these days. But, as they began to hash things out with Microsoft during a series of all-day meetings at NBC's 30 Rockefeller Plaza headquarters, Microsoft was able to show NBC some ways it could do more using its homegrown Silverlight technology. – Ina Fried, CNET/ // /Like Michael Phelps, Microsoft is chasing gold at the Olympics. With its Silverlight rich Internet application technology, Microsoft is helping NBC break records in online viewership…/ If Microsoft's http://www.eweek.com/c/a/Application-Development/Microsoft-Proving-Ground-Silverlight-at-the-Olympics/ Silverlight continues to have the success it has had in streaming video http://www.eweek.com/c/a/Application-Development/Microsoft-Proving-Ground-Silverlight-at-the-Olympics/ coverage of the Olympic Games around the world, it could mean gold for Microsoft as the software giant continues its competition with Adobe and that company's ubiquitous Flash technology _– Darryl Taft, eWeek_// //__// ///_Experts agree the enhanced features will boost usage of Microsoft's Web technology. 'This is an opportunity for them to showcase key features,' said Will Richmond, analyst and author of VideoNuze.com. 'It will certainly put Silverlight on the map with tens of millions of downloads because of the Olympics.' – Daisy Whitney, TVWeek_/// ///__/// ///It's not often when a piece of technology impresses me enough that I do the 'wow' thing when I'm using it. But the Silverlight streaming video implementation on NBCOlympics.com is truly awesome … I have to give Microsoft and its technology partners that pulled this off for the Olympics a huge round of applause. – Jon Perlow, ZDNET/// // HTH. On Sat, Aug 16, 2008 at 9:27 AM, Cole Joplin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Scott, I'm not exactly on board with Silverlight will continue to have successes as it has today. It's far too early to make that broad a statement. One day, maybe, but today? No. The first real all-Silverlight site, Ice Cube's UVNTV.com, has not been successful. Big fanfare, bad video, losing traffic at the plugin download page, big dud. Second big fanfare is the Silverlight player for video of the Beijing Olympics. Again, video quality has been roundly criticized as awful. Online viewership is way down from what they expected. Today, people don't want to download the Silverlight plugin. That is not a success. Not yet. --Cole --- On *Sat, 8/16/08, Scott Barnes /[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]/* wrote: From: Scott Barnes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Subject: Re: [flexcoders] The end of ActionScript 3 as an EcmaScript 4 implementation To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Date: Saturday, August 16, 2008, 1:30 AM Anatole, I understand there is a sense of umbrage towards Microsoft over this decision; I disagree with some of the wild theories floating around as to what the real motivation behind this is. Seven entities in total disagreed with Mozilla and Adobe that the proposal was a right fit. I however look forward to seeing what the next phase of this standard will become, and overall Silverlight will continue to have successes as it has today, if either decision were to be blessed around this said standard. Silverlight has the DLR, so if folks want to spin-up their own iteration of an ECMA standard of their choosing, you're more than welcome to it and I'd be curious to see how you triumph! HTH
Re: [flexcoders] The end of ActionScript 3 as an EcmaScript 4 implementation
Well, whomever is holding things up, a standard is only a guideline, right? And that's the risk you take when you base a technology on a comittee: sometimes, and for whatever reason, that committee might steer things in a different direction than you originally intended. Otherwise Adobe would be just another bully in the playground instead of a partner. So what happened was inevitable. Whether it's MS's fault or anyone else's we could debate until we're blue in the face. Who cares? If the committee in charge of the standard is holding back innovation, there are three choices: 1) stifle innovation in favour of the committee's wishes; 2) abandon the standard altogether; 3) create a new standard out of the ashes of the old. Thank god Adobe isn't kowtowing to the new Harmony standard, that would horribly cripple ActionScript. As an ActionScript developer, I want more innovation, not less, thank-you-very-much. That leaves Adobe with the uncomfortable choice of 2) or 3): each have their drawbacks. Adobe could abandon any ECMA standard altogether, and they'd be within their rights to do so. I don't see Java suffering for SUN's decision not to associate with (what is now) ECMA. (Other than the fact that it's a server-side dinosaur *ducks, runs* :) [KIDDING!] But ultimately I believe Adobe's best bet would be to form their own working committee, their own ECMA standard, similar to what MS has done with C#. Maybe then we'll see private constructors, method overloading and multiple inheritance in the language. Being a pessimist about web standardization, I could not envision the day when ActionScript would ever become a _usable_ web standard, so this comes as no great surprise. Hell, the WC3 and the various browser makers can't get their head out of their ass long enough to put together a standard that will be adopted in less than 20 years for crying out loud. What makes you think ActionScript would ever be adopted in enough browsers with enough standardization not to repeat the utter compatibility mess that CSS/JS is currently in? It's a fantastic idea, but I think Adobe's decision to try and have ActionScript in its current incarnation through tamarin be adopted as a new web standard was too far ahead of its time. I agree with one statement that has been made, can't remember by whom: the web is not ready for ECMAScript 4. Hell, it's not even ready for JavaScript 3 or CSS 3. Adobe would do far better to create their own standard that doesn't try to shoehorn the rest of the web into ActionScript, and get on with continuing being a serious programming language. Let the web standards pundits have ECMA 3.1 and Harmony. Maybe by the time my grandchildren are doing web programming it'll be ready for prime time. And people like myself can focus on developing robust web applications that actually work, with a serious language that continues to kick ass all over the internet. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca hank williams wrote: I don't quite see how it's a big step backward *or* a black eye for Adobe (as your blog argued). There are dozens of languages in widespread use out there... AS3 being (approximately) based on a standard, while a good bullet point for marketing, never yielded any advantage as far as I could see. This is a valid point, but the reason I call it a black eye is because adobe spent a lot of time hanging their hat on the idea that this was going to be a standard. To the extent that was helpful to them (I presume it was otherwise they wouldnt have bothered) it is no longer an accurate statement. Adobe wanted the industry to move one way, and Microsoft forced it to move another way. Hank Troy. -- blog: whydoeseverythingsuck.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL
Just an update... your technique of importing fl.video.FLVPlayback, VideoPlayer (and many others so compiler errors would not result) did not work. No line numbers were forthcoming from the compiler. Looking at the profiler and the debugger variables was no help in identifying a possible culprit. What finally solved the problem, after many hours of hacking through fl.video source code, was simply copying FLVPlaybackAS3.swc into the /libs folder to complement FLVpb.swc. Somehow that SWC overwrote the problem inherent in the FLVPlayback compiled from Flash into FLVpb.swc. Very strange. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Alex Harui wrote: yeah *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Joseph Balderson *Sent:* Monday, August 11, 2008 3:29 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL That's a neat trick... you mean copying FLVPlayback.as into /src/fl/video ? __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca Alex Harui wrote: You can just copy that one file into the folder structure in your project source. That should be enough to get a line number on the problem -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Joseph Balderson *Sent:* Monday, August 11, 2008 2:40 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL That was going to be my next move, thanks for confirming that Alex. Though going from FLVPlayback SWC to direct source is not so simple, so we'll stick to the kludge for now. __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca http://joeflash.ca http://joeflash.ca Alex Harui wrote: Doesn't sound like Flash/Flex. If you go back to compiling from the fl.* source you can get a line number for the exception and see what is going on. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Joseph Balderson Sent: Monday, August 11, 2008 10:21 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL Previously in [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found Alex Harui wrote: OK. I don't know what the EULA says about your options, but keep in mind that mixing fl.* and mx.* components doesn't work for fl.* components that get keyboard focus. You'll start getting runtime exceptions. So this might work for FLVPlayback, but I wouldn't guarantee it for other fl.* components. Although, now that you mention it, I am wrestling with a very strange runtime exception related to the FLVPlayback component in a project. I have a custom resizable Panel containing a custom Flex component which contains an FLVPlayback component encapsulated by UIMovieClip. If the source URL is invalid, and we try to call flvpb.setSize(), we get a RTE every time, which totally buggers up the application. It's consistent and reproducible, and only happens when the source is invalid. (I can't wait for Flash 10 when we can catch thrown RTEs) TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/intern http://www.adobe.com/2007/flash/flvplayback/intern http://www.adobe.com/2007/flash/flvplayback/intern http://www.adobe.com/2007/flash/flvplayback/intern al::doAutoResize() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Since there is a very minor case scenario where the URL might not be correct, the only solution we've figured out has been to pre-qualify URLs in the application by trying to establish a NetConnection to the URL, and then marking that URL as good before the vid player ever gets to use it, which is a nasty kludge. Do you think this might be a Flash-Flex integration thing, or simply an FLVPlayback component bug
Re: [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found
Thanks for the tip. Most of what I've done is use a few Flex SDK classes in Flash, custom Flash components in Flex with the kit. The only Flash component I've ever used in Flex has been the FLVPlayback component, and I've never had a problem with runtime exceptions related to focus. It's simple: in the apps I've used, the FLVPlayback component doesn't accept keyboard focus, perhaps because the UIMovieClip does not posses the required class members. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Alex Harui wrote: OK. I don’t know what the EULA says about your options, but keep in mind that mixing fl.* and mx.* components doesn’t work for fl.* components that get keyboard focus. You’ll start getting runtime exceptions. So this might work for FLVPlayback, but I wouldn’t guarantee it for other fl.* components. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Joseph Balderson *Sent:* Sunday, August 10, 2008 9:34 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found Awesome. That did the trick! Thanks Alex. I've since figured there are four ways to instantiate the FLVPlayback component in Flex, which will be the topic of a few upcoming articles: 1) Use the Flex Component Kit to wrap the FLVPlayback in a UIMovieClip (a well-known implementation) 2) Reference the FLVPlayback component class in the Flash CS3 installation directly, though this involves a few hacks since the class is expecting to find certain MovieClip assets which are not there if you don't use the SWC. (which is what I was trying to do) 3) Merge all the class files from all fl.* package locations (there are four) in the Flash CS3 installation directory into a local src/fl/ package, though you'll have to employ the same hacks as 2) - not my first choice, as it potentially breaks the EULA. 4) Just place the FLVPlayback SWC in the /libs directory from C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components\Video\FLVPlaybackAS3.swc This is my preference, since it's clean and doesn't involve the hacks necessary in 2) 3). __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca Alex Harui wrote: Try just C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Joseph Balderson *Sent:* Sunday, August 10, 2008 12:50 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found I'm creating a class which extends FLVPlayback directly, without using UIMovieClip, and implements IMXMLObject so it can be instantiated in MXML. The fl.* package where the class resides is listed as an external source, and the Flex code assist finds the package just fine. Problem is, when I try to compile, I get an error 1017: The definition of base class FLVPlayback was not found. on the line 6 in FLVpb.as where the class is declared. (see below) I am completely puzzled. I've used external classes before, but I am unsure why I am getting an error this time. Anyone have any ideas? (I know there's a bunch of other stuff I need to include in FLVpb to make sure FLVPlayback plays well with Flex, this is just an initial prototype) Here's my code: - [source path] FLVPlayback-fl: C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback\fl (Note: I could include all four places where the fl.* code resides in the Flash CS3 installation, but it doesn't seem to make a difference to this error.) - com.communitymx.flashflex.FLVpb: package com.communitymx.flashflex { import fl.video.FLVPlayback; import mx.core.IMXMLObject; import flash.display.MovieClip; public class FLVpb extends FLVPlayback implements IMXMLObject { public function FLVpb() { //TODO: implement function super(); } public function initialized(document:Object, id:String):void { document.rawChildren.addChild(this); } } } - Main.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http
Re: [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found
Thanks for the tip. Most of what I've done is use a few Flex SDK classes in Flash, custom Flash components in Flex with the kit. The only Flash component I've ever used in Flex has been the FLVPlayback component, and I've never had a problem with runtime exceptions related to focus. It's simple: in the apps I've used, the FLVPlayback component doesn't accept keyboard focus, perhaps because the UIMovieClip does not posses the required class members. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Alex Harui wrote: OK. I don’t know what the EULA says about your options, but keep in mind that mixing fl.* and mx.* components doesn’t work for fl.* components that get keyboard focus. You’ll start getting runtime exceptions. So this might work for FLVPlayback, but I wouldn’t guarantee it for other fl.* components. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Joseph Balderson *Sent:* Sunday, August 10, 2008 9:34 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found Awesome. That did the trick! Thanks Alex. I've since figured there are four ways to instantiate the FLVPlayback component in Flex, which will be the topic of a few upcoming articles: 1) Use the Flex Component Kit to wrap the FLVPlayback in a UIMovieClip (a well-known implementation) 2) Reference the FLVPlayback component class in the Flash CS3 installation directly, though this involves a few hacks since the class is expecting to find certain MovieClip assets which are not there if you don't use the SWC. (which is what I was trying to do) 3) Merge all the class files from all fl.* package locations (there are four) in the Flash CS3 installation directory into a local src/fl/ package, though you'll have to employ the same hacks as 2) - not my first choice, as it potentially breaks the EULA. 4) Just place the FLVPlayback SWC in the /libs directory from C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components\Video\FLVPlaybackAS3.swc This is my preference, since it's clean and doesn't involve the hacks necessary in 2) 3). __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca Alex Harui wrote: Try just C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Joseph Balderson *Sent:* Sunday, August 10, 2008 12:50 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found I'm creating a class which extends FLVPlayback directly, without using UIMovieClip, and implements IMXMLObject so it can be instantiated in MXML. The fl.* package where the class resides is listed as an external source, and the Flex code assist finds the package just fine. Problem is, when I try to compile, I get an error 1017: The definition of base class FLVPlayback was not found. on the line 6 in FLVpb.as where the class is declared. (see below) I am completely puzzled. I've used external classes before, but I am unsure why I am getting an error this time. Anyone have any ideas? (I know there's a bunch of other stuff I need to include in FLVpb to make sure FLVPlayback plays well with Flex, this is just an initial prototype) Here's my code: - [source path] FLVPlayback-fl: C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback\fl (Note: I could include all four places where the fl.* code resides in the Flash CS3 installation, but it doesn't seem to make a difference to this error.) - com.communitymx.flashflex.FLVpb: package com.communitymx.flashflex { import fl.video.FLVPlayback; import mx.core.IMXMLObject; import flash.display.MovieClip; public class FLVpb extends FLVPlayback implements IMXMLObject { public function FLVpb() { //TODO: implement function super(); } public function initialized(document:Object, id:String):void { document.rawChildren.addChild(this); } } } - Main.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http
[flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL
Previously in [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found Alex Harui wrote: OK. I don’t know what the EULA says about your options, but keep in mind that mixing fl.* and mx.* components doesn’t work for fl.* components that get keyboard focus. You’ll start getting runtime exceptions. So this might work for FLVPlayback, but I wouldn’t guarantee it for other fl.* components. Although, now that you mention it, I am wrestling with a very strange runtime exception related to the FLVPlayback component in a project. I have a custom resizable Panel containing a custom Flex component which contains an FLVPlayback component encapsulated by UIMovieClip. If the source URL is invalid, and we try to call flvpb.setSize(), we get a RTE every time, which totally buggers up the application. It's consistent and reproducible, and only happens when the source is invalid. (I can't wait for Flash 10 when we can catch thrown RTEs) TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::doAutoResize() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Since there is a very minor case scenario where the URL might not be correct, the only solution we've figured out has been to pre-qualify URLs in the application by trying to establish a NetConnection to the URL, and then marking that URL as good before the vid player ever gets to use it, which is a nasty kludge. Do you think this might be a Flash-Flex integration thing, or simply an FLVPlayback component bug? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca -- ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL
That was going to be my next move, thanks for confirming that Alex. Though going from FLVPlayback SWC to direct source is not so simple, so we'll stick to the kludge for now. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Alex Harui wrote: Doesn't sound like Flash/Flex. If you go back to compiling from the fl.* source you can get a line number for the exception and see what is going on. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Balderson Sent: Monday, August 11, 2008 10:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL Previously in [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found Alex Harui wrote: OK. I don't know what the EULA says about your options, but keep in mind that mixing fl.* and mx.* components doesn't work for fl.* components that get keyboard focus. You'll start getting runtime exceptions. So this might work for FLVPlayback, but I wouldn't guarantee it for other fl.* components. Although, now that you mention it, I am wrestling with a very strange runtime exception related to the FLVPlayback component in a project. I have a custom resizable Panel containing a custom Flex component which contains an FLVPlayback component encapsulated by UIMovieClip. If the source URL is invalid, and we try to call flvpb.setSize(), we get a RTE every time, which totally buggers up the application. It's consistent and reproducible, and only happens when the source is invalid. (I can't wait for Flash 10 when we can catch thrown RTEs) TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/intern al::doAutoResize() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Since there is a very minor case scenario where the URL might not be correct, the only solution we've figured out has been to pre-qualify URLs in the application by trying to establish a NetConnection to the URL, and then marking that URL as good before the vid player ever gets to use it, which is a nasty kludge. Do you think this might be a Flash-Flex integration thing, or simply an FLVPlayback component bug? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca
Re: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL
That's a neat trick... you mean copying FLVPlayback.as into /src/fl/video ? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Alex Harui wrote: You can just copy that one file into the folder structure in your project source. That should be enough to get a line number on the problem *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Joseph Balderson *Sent:* Monday, August 11, 2008 2:40 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL That was going to be my next move, thanks for confirming that Alex. Though going from FLVPlayback SWC to direct source is not so simple, so we'll stick to the kludge for now. __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca Alex Harui wrote: Doesn't sound like Flash/Flex. If you go back to compiling from the fl.* source you can get a line number for the exception and see what is going on. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Joseph Balderson Sent: Monday, August 11, 2008 10:21 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] FLVPlayback in Flex produces RTE #1009 when setSize() is called for a bad URL Previously in [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found Alex Harui wrote: OK. I don't know what the EULA says about your options, but keep in mind that mixing fl.* and mx.* components doesn't work for fl.* components that get keyboard focus. You'll start getting runtime exceptions. So this might work for FLVPlayback, but I wouldn't guarantee it for other fl.* components. Although, now that you mention it, I am wrestling with a very strange runtime exception related to the FLVPlayback component in a project. I have a custom resizable Panel containing a custom Flex component which contains an FLVPlayback component encapsulated by UIMovieClip. If the source URL is invalid, and we try to call flvpb.setSize(), we get a RTE every time, which totally buggers up the application. It's consistent and reproducible, and only happens when the source is invalid. (I can't wait for Flash 10 when we can catch thrown RTEs) TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/intern http://www.adobe.com/2007/flash/flvplayback/intern al::doAutoResize() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Since there is a very minor case scenario where the URL might not be correct, the only solution we've figured out has been to pre-qualify URLs in the application by trying to establish a NetConnection to the URL, and then marking that URL as good before the vid player ever gets to use it, which is a nasty kludge. Do you think this might be a Flash-Flex integration thing, or simply an FLVPlayback component bug? __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca
[flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found
I'm creating a class which extends FLVPlayback directly, without using UIMovieClip, and implements IMXMLObject so it can be instantiated in MXML. The fl.* package where the class resides is listed as an external source, and the Flex code assist finds the package just fine. Problem is, when I try to compile, I get an error 1017: The definition of base class FLVPlayback was not found. on the line 6 in FLVpb.as where the class is declared. (see below) I am completely puzzled. I've used external classes before, but I am unsure why I am getting an error this time. Anyone have any ideas? (I know there's a bunch of other stuff I need to include in FLVpb to make sure FLVPlayback plays well with Flex, this is just an initial prototype) Here's my code: - [source path] FLVPlayback-fl: C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback\fl (Note: I could include all four places where the fl.* code resides in the Flash CS3 installation, but it doesn't seem to make a difference to this error.) - com.communitymx.flashflex.FLVpb: package com.communitymx.flashflex { import fl.video.FLVPlayback; import mx.core.IMXMLObject; import flash.display.MovieClip; public class FLVpb extends FLVPlayback implements IMXMLObject { public function FLVpb() { //TODO: implement function super(); } public function initialized(document:Object, id:String):void { document.rawChildren.addChild(this); } } } - Main.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:ff=com.communitymx.flashflex.* layout=absolute ff:FLVpb x=50 y=50 id=player source=http://www.papervision3d.org/showreel/publicbeta/Papervision3D.flv; / /mx:Application -- ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca
Re: [flexcoders] Using Flash Component Kit - FlexContentHolder
Your FlexContentHolder (or one of them) should be the outermost container in your Flash FLA. This container does you no good in Flash, because it extends ContainerMovieClip to give your MC asset class members necessary for it to interact as a Flex component in a Flex application. But I don't see why you should have trouble tweening it. Perhaps I am not understanding your architecture, but it sounds like you're trying to use the Flex Component Kit the opposite direction in which it was intended, i.e. Flash-to-Flex, when you seem to be using for a Flex-to-Flash integration. The Flex Component Kit lets you wrap a MovieClip wither in a flex container or a flex component class, so your Flash assets can be used in Flex. It's not really intended for porting Flex components into Flash. I am surprised you are not getting compiler errors in Flash. Unless you included a few Flex-built SWCs (or hacked you way into referencing the Flex SDK from Flash), Flex component classes such as the mx.controls.List component would not be included in the FLA, which is why you may be having difficulty tweening and masking them. If you want to bring in a Flex component into Flash, you don't need the Flex Component Kit. What you need to do is compile a SWC library from Flex, and reference that SWC from Flash. There are various ways to do this. If you're bringing functionality from Flash into Flex, you don't need a Flex component. Just bundle up your Flash animation in a UIMovieClip or a ContainerMovieClip as per the tuts, and then use that in a custom Flex component. Each has its use-cases. If you need to be tweening a Flex UI component, do it in Flex, not Flash, no matter how comfortable you are with the Flash timeline. Tools for the job. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca benmarinic wrote: Hi Is it possible to motion tween the FlexContentHolder within Flash? I haven't been able to do this with keyframe animations. I would like to animate the Flash Component Kit container (which has a Flex List component inside it) and also apply a mask. When I try to do this the container doesn't display my Flex component and I see the 'fx' movieclip instead (with and without the addition of a mask). Any tips greatly appreciated. Ben -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found
Awesome. That did the trick! Thanks Alex. I've since figured there are four ways to instantiate the FLVPlayback component in Flex, which will be the topic of a few upcoming articles: 1) Use the Flex Component Kit to wrap the FLVPlayback in a UIMovieClip (a well-known implementation) 2) Reference the FLVPlayback component class in the Flash CS3 installation directly, though this involves a few hacks since the class is expecting to find certain MovieClip assets which are not there if you don't use the SWC. (which is what I was trying to do) 3) Merge all the class files from all fl.* package locations (there are four) in the Flash CS3 installation directory into a local src/fl/ package, though you'll have to employ the same hacks as 2) - not my first choice, as it potentially breaks the EULA. 4) Just place the FLVPlayback SWC in the /libs directory from C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components\Video\FLVPlaybackAS3.swc This is my preference, since it's clean and doesn't involve the hacks necessary in 2) 3). ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Alex Harui wrote: Try just C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Joseph Balderson *Sent:* Sunday, August 10, 2008 12:50 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Extending A Class From an External Source Produces Error 1017: Base Class Not Found I'm creating a class which extends FLVPlayback directly, without using UIMovieClip, and implements IMXMLObject so it can be instantiated in MXML. The fl.* package where the class resides is listed as an external source, and the Flex code assist finds the package just fine. Problem is, when I try to compile, I get an error 1017: The definition of base class FLVPlayback was not found. on the line 6 in FLVpb.as where the class is declared. (see below) I am completely puzzled. I've used external classes before, but I am unsure why I am getting an error this time. Anyone have any ideas? (I know there's a bunch of other stuff I need to include in FLVpb to make sure FLVPlayback plays well with Flex, this is just an initial prototype) Here's my code: - [source path] FLVPlayback-fl: C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback\fl (Note: I could include all four places where the fl.* code resides in the Flash CS3 installation, but it doesn't seem to make a difference to this error.) - com.communitymx.flashflex.FLVpb: package com.communitymx.flashflex { import fl.video.FLVPlayback; import mx.core.IMXMLObject; import flash.display.MovieClip; public class FLVpb extends FLVPlayback implements IMXMLObject { public function FLVpb() { //TODO: implement function super(); } public function initialized(document:Object, id:String):void { document.rawChildren.addChild(this); } } } - Main.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:ff=com.communitymx.flashflex.* layout=absolute ff:FLVpb x=50 y=50 id=player source=http://www.papervision3d.org/showreel/publicbeta/Papervision3D.flv http://www.papervision3d.org/showreel/publicbeta/Papervision3D.flv / /mx:Application -- __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca
Re: [flexcoders] THIS IS ABSOLUTELY NUTS
The cache problem has been mentioned by many – it might be worth noting from my experience Flash doesn’t always honour http meta tags such as No-Cache. In my experience Flash never obeyed the No-Cache metatag since I began working with Flash in version 4, it supposedly doesn't work for plugins, just the HTML of the page itself. The problem is not one of caching -- the browser will always cache the SWF unless you use some form of dynamic SWF encryption like Nitro-LM -- but that the browser uses the cashed SWF more than once. The best way to ensure that the browser always reloads the SWF from the server and not the cache, is to use SWFObject or JS to instantiate the OBJECT/EMBED tags for the flash plugin, and at the end of the SWF filename, append the following JS: ... myApp.swf?+(new Date()).getTime() ... This will create a unique string at the end of the filename, and the browser will think it's a unique file every time, thus loading the SWF from the server, every time. What I did was modify the index.template.html file to work with SWFObject, and append that JS on the end while I'm testing my application. See if that works. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Tim Rowe wrote: Though you seem to have this figured out, might I suggest that you add a build number to your compiled project somewhere that you can verify when loading it? This will at least help you determine what version you’re getting, whether it’s coming from cache etc. The cache problem has been mentioned by many – it might be worth noting from my experience Flash doesn’t always honour http meta tags such as No-Cache. Though others have already picked it to death, what is it that indicated to you that it ‘does not compile’. If it’s just that it appears to do very little, remember that like most common compilers, Flex does incremental building and linking. --Tim Rowe Software Engineer carsales.com.au *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dan Pride *Sent:* Wednesday, 2 July 2008 4:06 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] THIS IS ABSOLUTELY NUTS I have an application which will not compile, delivers no error code and simply gives me the last good app with no explanation whatsoever??? Who designed this thing and what were they thinking? Clean app does nothing. No error code No way to get an error code. What does one do??? I can develop fine, but when I go to export a release and send it up the the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I NEVER DID ANYTHING. AGAIN NO WARNING G -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Video Seek - Seek times accurate to milliseconds
From what I recall, seek accuracy is dependant on the keyframe rate of your FLV (which is not the same as the frame rate of your FLV), and not fps of the app. It's a tradeoff: if you encode your FLV with a high keyframe rate, your filesize will be astronomical, and you'd better streaming that sucka. And I don't beleive you can create cuepoints at a higher interval than your FLV keyframe rate. And taking BitmapData on a video has security restrictions, so you'd want to look into them, and for a live playing video that would be hugely processor intensive and land up possibly slowing down playback, which would defeat the point. So my advice is increase the keyframe encoding rate of your FLV, and if the filesize gets too large you'll have to stream it. That's your only practical solution. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca liu_bai_un wrote: I'm trying to figure out how to get more accurate seek times (to milliseconds). I've been using the VideoDisplay and imported Flash's FLVPlayback component to Flex. For the reference video I'm using, I get about a 3-4 second accuracy, when the frame rate is at 30fps. From my understanding, all video files loaded into Flex/AIR are considered progressive downloads, and therefore can only seek to keyframes*. I've been messing around with a couple ideas: - skipping to the previous keyframe, play, and pause on exact time - extending videoplayback/video class to take a screenshot of the frames in between - dynamically creating cuepoints for the video at 100 ms intervals It would be great if you guys comment on other suggestions or the feasiblility of the above solutions. * Just for reference, this is the javadocs for FLVPlayback.seek(): Seeks to a given time in the file, specified in seconds, with a precision of three decimal places (milliseconds). For several reasons, the playheadTime property might not have the expected value immediately after you call one of the seek methods or set playheadTime to cause seeking. First, for a progressive download, you can seek only to a keyframe, so a seek takes you to the time of the first keyframe after the specified time. (When streaming, a seek always goes to the precise specified time even if the source FLV file doesn't have a keyframe there.) Second, seeking is asynchronous, so if you call a seek method or set the playheadTime property, playheadTime does not update immediately. To obtain the time after the seek is complete, listen for the seek event, which does not start until the playheadTime property has updated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Repeater not repeating
You could always extend ArrayCollection so that the extended-AC notifies its bound objects when its Array source changes. It depends whether you want the code change made to the 'source' of the data (in which case you'd update the AC, not the Array, as Tom mentioned), or the 'destination' (change the source Array on extended-AC). ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Tom McNeer wrote: Jonathan, Thanks very much for your clear and thorough explanation. One of the major difficulties of discussing matters like this, of course, is semantics. Many common words we might use to describe apparent actions - like update or refresh -- have such specific meanings within the context of Flex -- often naming specific methods, in fact -- that someone like me, who is relatively new to Flex and ActionScript, may misspeak (and mislead) by referring to things incorrectly. I understand that the key concept is whether an object knows that something has happened. I mistakenly thought that the AC knew that its source had changed, but the Repeater didn't know that the AC had changed. You've straightened me out: the AC didn't know its source had changed, and therefore didn't communicate to any other object. The easiest solution is to use the AC directly to change the data. Thanks. I understand. I'll have to think about whether that's appropriate in this case, since a change in the source array would actually be generated by the addition of an object from a wholly different area of the app. But you've given me more understanding, and a good rule of thumb: when something doesn't appear to be updating, it probably hasn't been told to. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
Re: [flexcoders] Re: Flex Application will not refresh properly
Load a proxy SWF which checks/sets a LocalSharedObject for a cookie/timestamp. If timestamp reached, lead main app swf with getTime() string on the filename; if not then load just the SWF filename, so the browser takes the SWF from the cache. You can set the timestamp artificially short for debugging so that it always takes it form the server. I've seen this done for login proxies which autofill the user/pass fields, then refresh them with blank ones after a certain time, or which query the server for whether an update to the app has been issued, which resets the timestamp/cookie. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Brian Raymes wrote: Ah! That's a better approach, if you want a new swf loaded every time. Though, there should be a way to only load the swf if it has been updated. Obviously, we don't want the user to download the swf to determine whether or not a time stamp has changed, but how about some other server-side check, lets say, through the html file? Is it possible? --- In flexcoders@yahoogroups.com, Joseph Balderson [EMAIL PROTECTED] wrote: if you use SWFObject in your index.template.html or in your final HTML, and append the following js, the browser will never get the swf from the browser cache: ... mySwf.swf?+(new Date()).getTime() ... This will append a unique number at the end of the swf filename, making the browser think it's always a new file. or you could just clear the cache before every in-browser test. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Brian Raymes wrote: I have had similar problems when using I.E. 7/8. Firefox has been more consistent, but Safari (my least favorite browser) seems to be working the best. It appears to me that swfs are cached inconsistently. If I update a swf, I expect my browser to load the new version. I have had to delete my browser cache way too often to remedy this. If you are using ColdFusion as a mediator, add this to the top of your index.cfm (or whatever name yours) to help force a re-load the swfs every time. You might be able to accomplish this without ColdFusion in the basic html template as well. cfheader name=Cache-control value=no-cache, no-store, must-revalidate, max-age=-1 cfheader name=Pragma value=no-cache, no-store cfheader name=Expires value=-1 I would rather my browser detect new versions of swfs... I don't like having to re-download every page visit. The software I am working on must be loaded consistently if a change is made on my end. It is important for my customers to see everything up-to-date. Let me know if you find a better solution. Brian --- In flexcoders@yahoogroups.com, Ryan Schlig ryan.schlig@ wrote: I am having problems viewing the changes in my application on refresh. I have to actually close my browser and open up a new session before my changes will be seen. This is not only a local problem, it also happens when I push out new versions of my application to our servers. It seems as though IIS is not detecting a change in the html or swf. Anyone else ran into this and found a solution? Ryan Schlig -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] triggering a function (when an argument is a bindable value)?
What I'm looking for is the best way to trigger a method whenever a bindable value changes. Just make the destination property a setter method. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca nwebb wrote: Hi Joseph, thanks for the reply - no, the provided example was nothing more than a scenario off the top of my head, and probably not a great one, so I'm not looking for a formatter. What I'm looking for is the best way to trigger a method whenever a bindable value changes. Changewatcher achieves what I want to do here, and so does BindSetter to a lesser degree (where the destination is essentially a method ... but that seems to be stretching its intended use). ChangeWatcher seems to be the correct solution here - I just wanted to ensure I wasn't missing anything as I was intending to blog about it. Cheers for the reply though, much appreciated :) On Wed, Jun 25, 2008 at 5:58 AM, Joseph Balderson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: It seems like you are misunderstanding the use of binding, which is to tie the value of one property to another with loose coupling such that when one changes (i.e. the source), the other (i.e. the destination) reflects that value change precisely. It sounds like what you're looking for is a custom Formatter, able to take an input and interpret it based on an algorithm, and that formatter value can be bound to a destination property, which in your case seems to be the currentState of the application. If an algorithm will not suite your purposes, I would recommend you stick with the switch statement inside a manager class. If the user level and application state are so closely tied, why not just name your application state strings according to the user level strings. If some sort of validation and logic needs to happen beforehand, then what you're probably looking after is a manager class to make those decisions. __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca nwebb wrote: Hi, I was looking at how you can trigger a function when an argument is a bindable value e.g. //userLevel is a bindable value formatMessage is a function will be called when userLevel changes mx:Label text={formatMessage(userLevel)} / This is cool if you're just displaying a value in a text field. However, what if you don't necessarily want to return a value (i.e. you don't have a destination)? Hopefully this will show what I mean: private function stateManager(value:String):void { switch(value) { case basic: currentState = ''; break; case admin: currentState = 'AdminState'; break; default: currentState = ''; } } BindingUtils methods and the binding tag both expect a destination, but in this case there isn't one. Is the solution simply to use ChangeWatcher instead, or can this be done using binding syntax? Cheers
Re: [flexcoders] Flex TextInput componet 's problem
TextField is the very basic text field from the flash.text package of the Flash AS3 API, which inherits from InteractiveObject, so it a very basic object. TextInput is from the mx.controls package, and as such includes Flex events and databinding and such. Both have a text property, but one is much more complex than the other. Think of TextInput as a flex component with its TextField.type=input or TextFieldType.INPUT Think of Label and TextArea as flex components with their TextField.type=dynamic or TextFieldType.DYNAMIC ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Ray Zhang wrote: I don't know TextInput 's *text *and* textField.text* property 's difference anybody know ,tell me plz Ray
Re: [flexcoders] Re: Flex Application will not refresh properly
if you use SWFObject in your index.template.html or in your final HTML, and append the following js, the browser will never get the swf from the browser cache: ... mySwf.swf?+(new Date()).getTime() ... This will append a unique number at the end of the swf filename, making the browser think it's always a new file. or you could just clear the cache before every in-browser test. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Brian Raymes wrote: I have had similar problems when using I.E. 7/8. Firefox has been more consistent, but Safari (my least favorite browser) seems to be working the best. It appears to me that swfs are cached inconsistently. If I update a swf, I expect my browser to load the new version. I have had to delete my browser cache way too often to remedy this. If you are using ColdFusion as a mediator, add this to the top of your index.cfm (or whatever name yours) to help force a re-load the swfs every time. You might be able to accomplish this without ColdFusion in the basic html template as well. cfheader name=Cache-control value=no-cache, no-store, must-revalidate, max-age=-1 cfheader name=Pragma value=no-cache, no-store cfheader name=Expires value=-1 I would rather my browser detect new versions of swfs... I don't like having to re-download every page visit. The software I am working on must be loaded consistently if a change is made on my end. It is important for my customers to see everything up-to-date. Let me know if you find a better solution. Brian --- In flexcoders@yahoogroups.com, Ryan Schlig [EMAIL PROTECTED] wrote: I am having problems viewing the changes in my application on refresh. I have to actually close my browser and open up a new session before my changes will be seen. This is not only a local problem, it also happens when I push out new versions of my application to our servers. It seems as though IIS is not detecting a change in the html or swf. Anyone else ran into this and found a solution? Ryan Schlig -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Unit Testing for Flex
Try these: http://code.google.com/p/as3flexunitlib/wiki/Resources http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.html http://www.darronschall.com/weblog/archives/000216.cfm http://www.insideria.com/2008/04/unit-testing-with-flexunit-1.html ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Vinoth Babu wrote: Hi All, I had developed an Actionscript project using Flex IDE. Here most of the components are embedded using Flash and Sprite Do you have any idea of how to do unit testing? No luck with the following component usage FlexUnit – I could not find examples using Actionscript project asunit - No example for Flex environment Thanks Regards, Vinoth -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex's mx:RemoteObject with remote server?
http://livedocs.adobe.com/flex/201/html/dataservices_099_11.html http://livedocs.adobe.com/flex/3/html/data_access_3.html http://livedocs.adobe.com/flex/3/html/data_access_4.html http://livedocs.adobe.com/flex/201/langref/mx/rpc/remoting/RemoteObject.html RTFM? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca markflex2007 wrote: Hi, I want to make sure if we Flex's mx:RemoteObject to invoke object in remote server. I use it with localhost before and I want to make sure f it can work with romote server. Please give me detail or a domo. Thank you for your help. Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Return data to FileReference
Without having done it myself, I would say off the top of my head no, because the Event class (flash.events.Event.COMPLETE) does not contain user-settable data. But you may be able to do it indirectly, by creating a custom property fileName on the server-side dispatching object, and then using event.target.fileName on the client-side ...? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Rich Tretola wrote: I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
Re: [flexcoders] Loading swf.. (Posting Again)
http://drawlogic.com/2007/09/20/howto-using-loaders-in-as3/ ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Manu Dhanda wrote: Hii guyz, It's not an issue here, but I need someone's help to point me to the right tutorial where I can learn about loading swf. Also, the trick is that i have one introductory swf with user's making a few choices/selections from combobox's. Now, on some button click, I want to present my second swf, having results from the choices made by users. Also, as my second swf is bit bigger in size, I want it to load in the background, while users are still busy with first swf. Can anyone guide me please.. to the right source of information. And about my needs, like what is possible and what is not, in the way I need it to be. Thanks, Manu.
Re: [flexcoders] Loading swf.. (Posting Again)
Since loading SWFs is Loader is part of the Flash API and not exclusive to Flex, try the Flashcoders or Flashnewbie list and you're more apt to get a more detailed answer. ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Manu Dhanda wrote: Hii guyz, It's not an issue here, but I need someone's help to point me to the right tutorial where I can learn about loading swf. Also, the trick is that i have one introductory swf with user's making a few choices/selections from combobox's. Now, on some button click, I want to present my second swf, having results from the choices made by users. Also, as my second swf is bit bigger in size, I want it to load in the background, while users are still busy with first swf. Can anyone guide me please.. to the right source of information. And about my needs, like what is possible and what is not, in the way I need it to be. Thanks, Manu.
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
(not that I'm in favour of splitting, I'm not) -- but if the lists have not yet been created, and existing messages stay in the archive, what's to break? We're talking about a branching, not a migration, right? ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Tom Chiverton wrote: On Wednesday 18 Jun 2008, Joseph Balderson wrote: New (proposed) The trouble with creating a totally new set of names is all the links scattered all over the internet would break. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: string to actual actionscript code?
The array accessor [] does not quite duplicate what eval() used to. From my recollection you could actually run code with eval, which of course is impossible to do with []. I know there's a way to do code injection in AS3, but I don't remember the tecnique offhand. The interesting thing about [] of course is that AS3 can do two-dimensional arrays, and you can chain two array accessors together to make both the object and its property dynamic, like so: this.someInstance.someProperty == this[myObject][daProp] Which makes things very interesting. Of course this only works if the property exists or the class is dynamic. A for loop and the [] syntax is much lower level and much more efficient than a repeater, but of course a repeater is bindable and has other useful stuff. ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Josh McDonald wrote: No worries, the equivalent of eval(movie_number_ + idNumber); would be: this[movie_number_ + idNumber]; To explain, in actionscript 3 (and in Javascript), these two references are equivalent: this.someField = true; this[someField] = true; trace(the value is + anObject.button7); trace(the value is + anObject[button7]); Notice the fact that it's a string. You can also use numbers (this is how arrays work), and other objects, but with objects the runtime simply calls .toString() and then goes ahead with the string, IIRC. -Josh On Thu, Jun 19, 2008 at 9:20 PM, David Pariente [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thnx for the psicological help :) Tecnically i come from AS1 and AS2 where i used to create multiple copies of movieclips, and created with a name as: eval(movie_number_+idnumber); maybe i should need an easy example of how to create multiple objects dinamically, and most important, how to access them later. Thnx, u guys are kind ;) - Mensaje original De: Josh McDonald [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Para: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Enviado: martes, 17 de junio, 2008 0:50:17 Asunto: Re: [flexcoders] Re: string to actual actionscript code? Gordon, I can live without eval() and associated evilness, but I'd sell my left testicle for the ability to mark a Proxy as extending or implementing various classes or interfaces. Mario - As for this sort of pseudo-eval that theyou're after, you could definitely cook up something similar to that without *too much* work, but I don't think it's the correct solution to whatever the actual root problem is. We need more information as to context to be more help :) -Josh On Tue, Jun 17, 2008 at 4:27 AM, Gordon Smith [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] wrote: Why are you lost without eval()? What would you use it to do? Many developers think they need it when they really don't; there are often other ways to accomplish what they're trying to do. Gordon Smith Adobe Flex SDK Team *From:* [EMAIL PROTECTED] ups.com mailto:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] ups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *David Pariente *Sent:* Monday, June 16, 2008 7:35 AM *To:* [EMAIL PROTECTED] ups.com mailto:flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: string to actual actionscript code? They answer u about eval() cause that was what eval() was for. I used it so often in AS1 and AS2. Lost now in AS3 without it :( - Mensaje original De: mariovandeneynde mariovandeneynde@ yahoo.com mailto:[EMAIL PROTECTED] Para: [EMAIL PROTECTED] ups.com mailto:flexcoders@yahoogroups.com Enviado: lunes, 16 de junio, 2008 12:08:26 Asunto: [flexcoders] Re: string to actual actionscript code? No, I'm just wondering if there is a way to convert a string to actual actionscriptcode. .. --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ ... wrote: Hi, There is no eval() in actionscript if that is what you are wondering. Mike On Mon, Jun 16, 2008 at 5:33 AM, mariovandeneynde mariovandeneynde@ ... wrote: Greetings, I was wondering if the following situation would be possible: imagine having a string like var query:String = Object.property. toString
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
brucewhealton wrote: Maybe we need groups for different users at different experience levels. I think this list is so big that it is hard to find a response or thread, especially when one posts a question and wants to find out if someone responded. I have to look and look to see if I can find that thread anywhere, and it gets confusing when one sees so many similar, though different threads. I'd like a feature to show me threads that include messages where I've posted comments, questions, or etc. Again this is a mail client problem, not a list problem IMO. I have Thunderbird filters set so that all posts I make are tagged as responded, colour-coded and filed in my [flexcoders] folder. Likewise I can tag certain threads as watched if I wish (though it's not sophisticaed enough to give me an alert -- waiting for TB3.0 :), so I can find them later. Similar things can be done with Googlemail. If there was a chat room that would be great too. Again, a grouping by experience level might be good. Many projects or applications do have lists/groups for newbies and such, as well as more experienced folks - who will sometimes discuss things that have no meaning yet to the new user of Flex. Thanks, Bruce --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Ya i wrote the same thing like yesterday but Mr. Chotin said that is what the purpose of the Flexdev network on adobe. I was thinking along the line of just creating a Flex/AIr/Coldfusion app and open sourcing it too. Combine Adobe Feeds, mailing list, chat and everything but i think the FlexDev on adobe does a good job. - Original Message From: Enjoy Jake [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, June 18, 2008 6:52:55 PM Subject: Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups I forgot to mention the idea of including chat rooms as well. We could have a lobby, a few breakout rooms (eg: Flex Components, DataGrid, BlazeDS), and also allow users to create their own chat rooms (for one-on-one help). It's a lot easier to give/receive help when there is the possibility of immediate feedback - Original Message From: Enjoy Jake [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Wednesday, June 18, 2008 3:56:16 PM Subject: Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups The first time I sent this, it only went to flexcoders-owner@ yahoogroups. com. I apologize to those who received it twice. Maybe a mailing list like this isn't the best choice. Maybe it's time to create a more customized solution for solving our problems. I'd be happy to put something together (and even host it on my server) if you guys think it would be useful. I'm thinking a cross between a mailing list, phpBB, and digg would be nice. We could have a large number of tags the author could choose from, some sort of rating system for solutions, and easy-to-use search functionality. I'm thinking a Flex front-end with BlazeDS to communicate with a clean and efficient Java back-end that's using Hibernate. Again, if you think this would be useful and people are willing to offer some input as to what functionality we need, I'd be happy to work on it. Jake Hawkes - Original Message From: Tim Hoff [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Wednesday, June 18, 2008 3:46:45 PM Subject: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups Very well put Joseph; quite impressive prose and insight. -TH --- In [EMAIL PROTECTED] ups.com, Joseph Balderson news@ wrote: From the perspective of someone who in his opinion is only just edging into the advanced category in Flex, I've been a lurker for many years but only just now gradually changing to a more active status on the list. To me, the volume of emails to the list was intimidating, until I decided to manage my lists a little better through Thunderbird filtering, and be disciplined about the time I take every day to review the list, so it doesn't impact my productivity, much like I do every day with the MXNA. So I'm not convinced that splitting up the list simply to make things more efficient and the volume less intimidating for some people outweighs the potential risks. I agree with Tim Hoff (16/06/2008 10:53 PM) -- my concern is less for new users and lurkers than it is for frequent posters who are the lifeblood of this community, having to divide their precious attention from one list to however-many, which would dilute the quality of all lists, and could ultimately lead to abandonment by regular users on all lists. A community such as this must be a delicate balance between questions and answers, new users and advanced users, lurkers and frequent contributors. My concern is that for many, the formula works, our numbers are steady, and there is still a huge number of A-list participation. In attempting
Re: [flexcoders] Re: Flex Debugger Ignoring all breakpoints/Errors
The ongoing investigation is here: http://bugs.adobe.com/jira/browse/FB-13064 This one bug is having me wait until this is resolved to install Firefox 3. ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Matt Chotin wrote: FYI, we have found that there are some extensions when enabled in Firefox 3 will cause the debugger not to work. We're still investigating. You need to disable the extensions from the Firefox controls, not from the control itself. Greasemonkey and Adblock are known perpetrators. Matt On 6/19/08 11:09 AM, aut0poietic_us [EMAIL PROTECTED] wrote: I'm definitely using the Content Debugger Plugin Player WIN 9,0,124,0 as verified from both the URLs you provided above. I've heard mentioned in my googling this that Greasemonkey could have something to do with the problem, but I've got it disabled. I might try uninstalling it in a bit (got a 2 hour render running for same project). -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: string to actual actionscript code?
And I stand corrected, you cannot use eval to evaluate an expression, or use it on the left side of an equation as of Flash 5: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16187sliceId=2 http://www.senocular.com/flash/tutorials/faq/#varreference BUT... looking through my bookmark archives, there is the D.eval class in AS3, which does allow you to use full evel functionality in AS3: http://www.riaone.com/products/deval/docs/user-guide/ug.html ...Which Andrew Trice used to good effect in his Drawing API Explorer: http://www.insideria.com/2008/03/try-out-the-drawing-api-withou.html :) ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Josh McDonald wrote: You could evaluate any single expression though, right? Like eval(4 / 2) == 2. That worked? Maybe it's been longer than I thought :) -Josh On Fri, Jun 20, 2008 at 10:26 AM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You could not run code with eval(), for sure in AS2. I can't say for sure in AS1, as I never used that. Tracy -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [flexcoders] Re: string to actual actionscript code?
Using this[myObject + idNumber]; -- whether myObject is a MovieClip or a textField or whatever, is from an AS2 technique where you would declare MCs or TXTs on the stage with a for loop, or actually have them declared on the Flash IDE stage at authortime, so it does make sense, it's just old skool. I cut my teeth on techniques like this, back in the day. But you're right, putting newly declared objects in an array is a better method than storing the id or index in the instance name itself. Of course now we have much more sophisticated iterative instantiation techniques like Renderers. Wish to heck we had them five years ago... :) ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Gordon Smith wrote: You can't use code like this[movie_number_ + idNumber]; unless you've pre-declared vars (or getter/setters) named movie_number0, movieNumber1, movieNumber2, etc. -- which doesn't make any sense because you usually don't know how many you'll need -- or made your class dynamic -- which isn't recommended because dynamic vars are slower. Otherwise, you'll get a runtime error that, for example, movie_number3 isn't a valid property on your class. (I don't remember the exact wording of the error message.) So forget about that. You need to understand how to use an Array to keep track of multiple instances. It's easy: 1. Declare an instance var of type Array and initialize it to an empty Array: public var textBoxes:Array = []; 2. Every time to create a new TextBox, push it into the Array. For example, inside some method, do var textBox:TextBox = new TextBox(); textBox.foo = bar; addChild(textBox); textBoxes.push(textBox); 3. In any other method, you can refer to textBox[i] to get the ith one you created. Gordon Smith *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *David Pariente *Sent:* Thursday, June 19, 2008 7:18 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: string to actual actionscript code? Wow, that answer will really help me! :) What if it's not movies, but some other object that i wanna create 20 times? I thought it should get inside some kind of Array, but not sure if its this way too. i.e. var MyTextBox:TextBox=new textBox(); what if i need N instances of that MyTextBox? Should i create an Array before that? What's the right way to put those textBoxes into the Array? I'm sorry for the basic of my questionbut im quite new to AS3 and OOP, and i did use and misuse of evals a lot in AS1 and AS2. Thanx a lot for the help :) - Mensaje original De: Josh McDonald [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com Enviado: jueves, 19 de junio, 2008 14:16:50 Asunto: Re: [flexcoders] Re: string to actual actionscript code? No worries, the equivalent of eval(movie_number_ + idNumber); would be: this[movie_number_ + idNumber]; To explain, in actionscript 3 (and in Javascript), these two references are equivalent: this.someField = true; this[someField] = true; trace(the value is + anObject.button7) ; trace(the value is + anObject[button7]); Notice the fact that it's a string. You can also use numbers (this is how arrays work), and other objects, but with objects the runtime simply calls .toString() and then goes ahead with the string, IIRC. -Josh On Thu, Jun 19, 2008 at 9:20 PM, David Pariente xxmapachexx@ yahoo.es mailto:[EMAIL PROTECTED] wrote: Thnx for the psicological help :) Tecnically i come from AS1 and AS2 where i used to create multiple copies of movieclips, and created with a name as: eval(movie_number_+idnumber); maybe i should need an easy example of how to create multiple objects dinamically, and most important, how to access them later. Thnx, u guys are kind ;) - Mensaje original De: Josh McDonald [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] Para: [EMAIL PROTECTED] ups.com mailto:flexcoders@yahoogroups.com Enviado: martes, 17 de junio, 2008 0:50:17 Asunto: Re: [flexcoders] Re: string to actual actionscript code? Gordon, I can live without eval() and associated evilness, but I'd sell my left testicle for the ability to mark a Proxy as extending or implementing various classes or interfaces. Mario - As for this sort of pseudo-eval that theyou're after, you could definitely cook up something similar to that without *too much* work, but I don't think it's the correct solution to whatever the actual root problem is. We need more information as to context to be more help :) -Josh On Tue, Jun 17, 2008 at 4:27 AM, Gordon Smith [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] wrote: Why are you lost without eval()? What
Re: [flexcoders] Splitting FlexCoders in smaller, focused groups
I use Thunderbird for my Inbox management, don't know what I'd do without it, to be perfectly honest. I set up filter rules for every list I subscribe to, which looks for [flexcoders] in the subject for example, and automatically routes emails to the appropriate folder. If I want to flag a particular post as reference or to look into or to reply or whatever, I have colour-coded tags which all have 0-9 hotkeys, and with a single click that post is tagged. I don't bother deleting anything, cause I don't have to, which means it's all available as a reference if I need it. In fact I have filters that sort emails from newsletters, vendors, clients, colleagues, family, everything, and whatever the filter doesn't know what to do with goes into my Inbox. I get hundreds of emails a day, dozens not counting newsletters and lists. My Inbox gets maybe one or two a day. Initially you might spend a lot of time establishing filters, but after a time it manages itself, like training a spam algorithm. It also means that after seven years of list subscriptions my email folder is huge (3.7 GB), but the upside outweighs the downside. I'm not a big fan of online email services anyways. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Anatole Tartakovsky wrote: Josh, It is definitely up to flexcoders as a group to make these decision - not me for sure. I did suggest separate group on best practices and I do not think you can separate UI best practices in Front-end tool - but I might assume much. Enterprise in Flex is reasonably well defined - anything that is based on commercial LCDS + typical tasks for enterprises - portals integration, large team management, scalability, and whatever else. Basically people usually know if they are working in enterprise and would use their judgement. The same goes for 101 - people often know if they are within the first 6 month. 101 presumes that there is FAQ thread somewhere, and hopefully WiKi with repeated questions. It also gives Adobe better idea what new developers have problem with and they can make product more intuitive for new developers. As far as scaring people - my post clearly states that at this point new developers scare experienced ones instead of letting people work together. With smaller groups it is possible to get moderators. Take a look at weborb, every message you send gets to developers blackberry, but quite a few are answered by experienced developers that are in that group for quite some time. With smaller groups and defined target audience you can provide better targeted answers that would suite that community better. As far as better inbox management - I would love to hear about something that works - but I have not seen anything that would do 10 way split for me. Sincerely Anatole Tartakovsky Farata Systems On Mon, Jun 16, 2008 at 9:25 PM, Josh McDonald [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Define enterprise without resorting to some variation of mo' bettah What about best practices in Flex UI coding? Where do those posts go? And who decides what posts go in the advanced lists, and what go in the 101 list? Sounds like an invitation for grumpy nerds to flame noobs and scare them away from the community... I'm not suggesting we don't split the list at all, just that we put some serious thought into it first. Definitions of what belongs in what group, and a lot of publicly available information to help people locate the best list for their question. Maybe have some sort of community vote or something; we don't want to fracture the community, there's not *that* many of us yet. Personally I think the problems are at the moment best solved by clever inbox management. -Josh On Tue, Jun 17, 2008 at 11:10 AM, Anatole Tartakovsky [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dear All, Flexcoders has huge problem. In the last 15 month it is very much stagnant in terms of message count and participation. It is not growing and dropping members as fast as it gets them. I believe this group has overgrown the optimal size about a year ago and needs to be divided in more focused smaller groups. My mail box get 100+ messages a day on all kinds of topic - unless I can spend 30+ minutes that day to sort them out it goes directly into garbage can. Most people in the company unsubscribed from it 18 month ago. Most of veteran developers I know either unsubscribed or stopped looking in this mess greatly diminishing the quality of the responses. As a result group mostly host new developers and looses most of experienced ones after very short period of time
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
I think in dividing a list bursting at the seams, it seems, with too many diverse posts, that we don't forget that other list from which many migrated from when Flex 2/AS3 came out:Flashcoders. Flashcoders (and the newer Flash_Tiger) serves as a wellspring of AS3/Flash API info, so I wonder how practical an ActionscriptCoders list would be. And general UI design is also covered in some extent in Flashcoders, since they deal with many of the same issues. People make announcements related to open source projects all the time, and the rest should be for blogs, which is more a broadcast medium than lists, so the FlexAnnouncements list might not do so well. How about this: Existing - FlashCoders - FlashNewbie - FlashTiger - FlexCoders - FlexComponents - ApolloCoders (which would do well to change its name ;) - FlexJobs New (proposed) - FlexNewbies - FlexEnterprise ...and we see how they do before branching any more. ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Bjorn Schultheiss wrote: Existing - FlexCoders - FlexComponents - ApolloCoders - FlexJobs New - EnterpriseFlex - FlexUIDesign - FlexAnnouncements - ActionscriptCoders ? --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: 1. 101 Is creating a new group for this necessary or is flexcoders already handling this? 2. Coding (AS3/MXML) The name seems too abstract, what area are we targeting? Is is to show off new ideas or syntax questions. 3. Design and UI ( Flash/Components/CSS/Skin) Love it! Can we replace UI with UX : ) 4. Enterprise/Best Practices/Frameworks Does this include WebOrb/Blaze/LCDS ? 5. AIR - not big yet, but definitely a separate group of folks Apollocoders exists. not sure what the traffic is like. --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote: That's not a bad list of categories at all Anatole. It would be best if there's still some sort of (read-only?) meta-list that shows all messages, and if it were smart enough that you could read the all list and replies went to the correct lists it'd be a pretty good common ground I think. I'm no mailing-list-guy though, so no idea if that's feasible. -Josh On Tue, Jun 17, 2008 at 1:37 PM, Anatole Tartakovsky anatole.tartakovsky@ wrote: Matt, Splitting the last 500 topics in groups it would be: 1. 101 2. Coding (AS3/MXML) 3. Design and UI ( Flash/Components/CSS/Skin) 4. Enterprise/Best Practices/Frameworks 5. AIR - not big yet, but definitely a separate group of folks there Thank you Anatole Tartakovsky Farata Systems On Mon, Jun 16, 2008 at 11:28 PM, Matt Chotin mchotin@ wrote:t Practices/Frameworks I do think 12 is way too high a number BTW. Would recommend capping at 5 absolute max. On 6/16/08 8:28 PM, Matt Chotin mchotin@mchotin%40adobe.com wrote: Hey guys, If you think that splitting the lists is the right thing to do for the larger community then I'm not going to stop you. I think we were right in the past to recommend against the split, but I can see Anatole's point that traffic has stagnated and we'd certainly like the community to thrive. We'll certainly try to pay attention to as much as possible (not like it's me doing much but you know some Adobe folks are quite active), but no guarantees on how it will go. The Adobe forums themselves are definitely lacking, primarily because we can't access them via email. There is a project going on within Adobe to improve the experience drastically, and we definitely intend to split forums there (and hopefully convince everyone to come back over and move away from Yahoo Groups); but it's still a number of months away at the earliest. I would hope that folks will continue to help users of all levels, and we'll need moderators to handle whatever new lists are created. Matt On 6/16/08 8:17 PM, Bjorn Schultheiss bjorn.mailinglists@bjorn.mailinglists%40gmail.com wrote: I like the idea of splitting topics into different lists. I also like Anatole's suggestions for list types. Flexcoders has become to over-bloated.. I would be in favour for looking at topics that I'm interested in. Perhaps this will get more of the experienced contributors back on the list. Imagine if OSFlash had only one mailing list. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com , Anatole Tartakovsky anatole.tartakovsky@ wrote: Dear All, Flexcoders has huge problem. In the last 15 month it is very much stagnant in terms of message count and participation. It is not growing and dropping members as fast as it gets them. I believe this group has overgrown the optimal size about a year ago and needs to be divided in more focused smaller groups. My
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
From the perspective of someone who in his opinion is only just edging into the advanced category in Flex, I've been a lurker for many years but only just now gradually changing to a more active status on the list. To me, the volume of emails to the list was intimidating, until I decided to manage my lists a little better through Thunderbird filtering, and be disciplined about the time I take every day to review the list, so it doesn't impact my productivity, much like I do every day with the MXNA. So I'm not convinced that splitting up the list simply to make things more efficient and the volume less intimidating for some people outweighs the potential risks. I agree with Tim Hoff (16/06/2008 10:53 PM) -- my concern is less for new users and lurkers than it is for frequent posters who are the lifeblood of this community, having to divide their precious attention from one list to however-many, which would dilute the quality of all lists, and could ultimately lead to abandonment by regular users on all lists. A community such as this must be a delicate balance between questions and answers, new users and advanced users, lurkers and frequent contributors. My concern is that for many, the formula works, our numbers are steady, and there is still a huge number of A-list participation. In attempting to improve the list, we could be killing it -- so we need to be very sure of our data before proceeding IMO. A FAQ would be very welcome, as would Doug's recommendation for most commonly asked threads, as would tags, regardless of what the decision is on the split. But I would request that FAQ links and tag keywords be indicated in the signature of each email from the list, so that the many users who don't use the yahoo list's web interface can easily find the info and know what tags to use without having to switch between their mail client and a browser, otherwise having a FAQ and anything else apart from the emails is pointless. In fact, just having a FAQ and encouraging the use of tags could help many with list post management, and provide this list the boost it needs without taking drastic measures. This would be my request, and my recommendation. In addition, we could even include in the FAQ some post management strategies, such as filtering, tagging and colour-coding to help users manage the flow. And I would suggest an automated email generated by an algorithm with some text like You have not posted in ___ months... or You have now unsubscribed... followed by please help us make flexcoders a better community experience by telling us why you have _ This would be a far less intrusive and intimidating follow up and data collection method than an email personally send from a moderator, especially one from Adobe. Some people might perceive such attention as singling them out, and using an autogenerated email would eliminate the manpower necessary to collect data on infrequent/unsubscribed accounts. If we do decide to split the list at all, I would keep the number small just to make sure. My recommendation would be to split things into just three lists: flexcoders flexnewbie flexenterprise Even though the definitions are a little fuzzy, I think flexnewbie could be defined as not the difficulty of the question but the experience the user perceives themselves to be at, so there may very well be advanced and newbie questions on both lists, and that's okay. Likewise there will probably be some crossover into the flexenterprise list. I think it's fair to say that questions involving a substantial amount of Java/data services/large teams/enterprise workflows would qualify, without requiring the definition of enterprise be defined with scientific precision to participate. Too narrow a definition is a recipe for failure, any new the list needs to be defined without being too exclusive IMO. Thanks for listening, -- ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Tom Chiverton wrote: On Tuesday 17 Jun 2008, Matt Chotin wrote: Hey folks, let's calm down a little here, K? Aye. 1) Let's get an FAQ going that can be edited by moderators or members of the community. This would be a huge bonus, esp. given #3. Center. But for now how about we just allocate a page off of the opensource wiki. We can pick some moderators who can edit the page and I will get them added so they can take care of it. Happy to be added, drop me a note if you are not aware of my adobe.com ID (it's not @halliwells). 2) Some folks suggested that you either mark in the body or in the subject something that indicates what you're talking about. Seems reasonable. ... involved in the thread. The more people
Re: [flexcoders] i need answer plzzzzzzzzzzzzzzzzzz
help vampire alert! ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Maciek Sakrejda wrote: And use a better subject. Yours is ridiculous. -Original Message- From: Tom Chiverton [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] i need answer plzz Date: Mon, 16 Jun 2008 16:27:34 +0100 On Monday 16 Jun 2008, Kumaran Raj wrote: iam getting xml form of string from java method. i covert that into XMLSring than i display the xmlstring using Alert.i met a error TypeError: Error #1006: value is not a function. what is the problem with this send me pl Post Your Code. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?
Damn thread splicing. I didn't realize at the time that this thread was 30+ posts long, not 6. Gotta remember to look at the Re: in the subject... :P ___ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Tom Chiverton wrote: On Wednesday 04 Jun 2008, Joseph Balderson wrote: Ah. I thought he was talking about SWCEncrypt, which is actually an obfuscator. Yeah, but SWFObfuscator isn't as cool a product name, so I guess they went with being confusing... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Wierd problem with Flex debugging
To find out if you have a specific debug version of the player installed, go to this page http://www.macromedia.com/software/flash/about/ and right-click in the flash banner. If you are running the debug version of the Flash Player, it should say Debugger in the menu under Show Redraw Regions. By the way, Flex Builder 3 should install the debug version of the 9.0.115 player in your browser as a matter of course, so maybe something went wrong with your installation process? (I think that's the version it installs, it may have been updated to 9.0.124 for recent purchases) ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca [EMAIL PROTECTED] wrote: Hello all, So I started learning Flex Builder CS3 recently. I am new to Flex. I am studying through a self-paced class on Lynda.com. I get to the chapter on debugging and the instructor says I need to find out if I have the Flash Player 9 debug version. Unfortunately the instructor does not say what the debugger version of the Flash Player is or how to get it. I cannot find on Adobe’s site anything about a Flash player debug version. I do know that I do not have the debug version of Flash Player – I was instructed in how to check to see if I had the Debug version of the Flash player. Like I said, I know that I do not have it. I almost sound foolish. I mean maybe this is a setting on the Flash Player or with Flex. I called Adobe and spent a great deal of time talking to different folks. No one seems to know about a Debug version of Flash Player. I was instructed that I could send an email talking about my problem. I was told that I could purchase a support plan for one problem for nearly $500, when I just paid $699 for the Pro version of Flex Builder CS3, less than 3 weeks ago. I didn’t know that I was needing this version of the Flash Player until just recently. Personally, I thought that if I needed a different version of the Flash Player then support personnel for Adobe Flex would know something about this. I was told that Flex is a server application and so that is why it would cost almost $500 for support for one single problem. Of course, another tech support person that I spoke to before that, said that I had reached the support area for server products and that she didn’t know anything about Flex. The message was that I was mistakenly taken to a server product support number or extension and that this person supporting Adobe Server products knows nothing about Adobe Flex. I have never been asked to pay money to get a product to work right after purchasing the product. Please help me if you have any advice, knowledge or suggestions, Bruce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Retrieving instence name?
ClassName(instance) is marginally faster than (instance as ClassName) in my tests. So which one is faster? Is this still correct? (us lurkers want to know! :) ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Josh McDonald wrote: Goddammit, I've been going about it ass backwards! *kicks self* Thanks Alex. -J On Thu, Jun 5, 2008 at 4:15 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Var foo:MyClass = MyClass(wrongInstance); //throws exception Var bar:MyClass = wrongInstance as MyClass; // returns null unless it can be coerced (usually with primitive types) *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Josh McDonald *Sent:* Wednesday, June 04, 2008 10:40 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Retrieving instence name? I've read that ClassName(wrongInstance) just gives null? Hence you get a nullpointer exception even though that's not really your problem, and a newb in his debugger that sees a nullpointer exception when wrongInstance is clearly not null is gonna be awfully confused. -Josh On Thu, Jun 5, 2008 at 3:14 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: ClassName(instance) is marginally faster than (instance as ClassName) in my tests. Something's gonna blow if it isn't that type. I don't have any hard rules on which to use though. I also think there are cases where you need to use as and vice versa due to coercion rules, but I could be wrong about that. *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Josh McDonald *Sent:* Wednesday, June 04, 2008 9:16 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Retrieving instence name? Isn't ClassName(instance).foo a bad idea now we have (instance as ClassName).foo? I'd much rather have a NPE when it's actually null, and a CCE when instance isn't a ClassName. -Josh On Thu, Jun 5, 2008 at 1:55 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Code hints will not help when dealing with event.target unless you know what it is. Technically you should code lit like LoaderInfo(event.target).loader And hopefully, you'll get code hints when you type the '.' before loader. *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *flexawesome *Sent:* Wednesday, June 04, 2008 7:28 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Retrieving instence name? Woowow Ales, you are the BEST :)) How do you know the property of event.target.loader? I was unable to see the property by using cdoe tip Cheers --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Sorry, I actually hadn't looked at your code before. The target/currentTarget will be a LoaderInfo. Target.loader.name http://Target.loader.name is probably what you want. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of flexawesome Sent: Wednesday, June 04, 2008 2:19 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Retrieving instence name? Hey Alex, I was unable to retrieve the instance name.. I got trace info. = [object LoaderInfo] Any hits? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% mailto:flexcoders%25 40yahoogroups.com http://40yahoogroups.com , Alex Harui aharui@ wrote
Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book
I'm not trying to be glib, but don't use Vista. Use XP SP3. Joseph Balderson | http://joeflash.ca | 705-466-6345 b_alen wrote: Interesting. Me and my colleagues are also thinking of switching to Mac due to Vista crappiness. In fact we're 80% sure that next laptops will be Macs. My only concern is how to do .Net development and integration with Flex then. Anyone has a solution to that? --- In flexcoders@yahoogroups.com, scottyale2008 [EMAIL PROTECTED] wrote: How many Flex developers here are using a Mac for development? I've been a die hard Microsoft guy since ... well, since Microsoft first started. I went from CPM on a Morrow Meadows to Microsoft DOS (on computers with a Turbo button!), then Windows, now Vista. I do have an iPhone and it is an incredible device and the GUI is extremely well done. I've never used a Mac, but many of my friends have taken the plunge. Is it time to make the switch? I'm thinking about a Mac Book Pro. Is a Mac Book even worth considering for a Flex dev machine or is a Mac Book Pro the way to go? Anybody else make the switch recently from Windows to Mac? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book
(Slightly off-topic) Recently I wanted to get a fully-loaded, workhorse PC with XP-OEM installed, no crapware, and a matt screen (cause I cannot STAND the highly reflective screens that seem to be all the rage nowadays) -- and I found it in the Dell Latitude D830. My review here: http://www.joeflash.ca/blog/2008/04/how-i-bought-my-perfect-xp-laptop.html The other reason I bought it is that it's got a really solid construction, no cheap plastic, and without weighing a ton -- and at my former employers', that's all they would buy were the Latitude, so I know they can take quite a beating. So if you're going to buy a PC laptop, it pays to dig for the not-so-newest-fad to find quality. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Anatole Tartakovsky wrote: I would stay away from Vaio for developers machine - a lot of components with proprietary Sony drivers, XP models are not compatible with Vista ones, no driver upgrades - they are OK for occasional/office user, but hard to work with if you need to re-image or add/replace hardware. The only one laptop comparable in my mind to MBP is Thinkpad T61 - good LCDs and hard drives, power supply that does work on airplane, cheap memory and comparable performance - but the quality has been declining steadily for years, so it becomes chancy. However, the parts and design are still OK for machine with lifespan of 2 years. We still buy them for our staff that goes to Windows only shops - the difference in the price for identical hardware spec is about 30%. HTH, Anatole On Thu, Jun 5, 2008 at 6:50 PM, Josh McDonald [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: They're not really pricey if you care about build and component quality and style though - Sure I could buy a cheap fugly dell for 2/3 the price, but if I were stuck in Windows I wouldn't be caught dead using consumer laptops. Lousy components, ugly and too much cheap plastic. I'd have to go for a Vaio, which is priced like a Mackbook Pro anyway. On Fri, Jun 6, 2008 at 8:32 AM, Rob Rusher [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: For years I said that I couldn't/wouldn't switch to a Mac because I always need to do Windows specific tasks. But, with the Intel-based MacBook Pro and Parallels, I have install Windows XP SP3 on a separate partition and can run the two OS in tandem. So I've been on a Mac for a little over a year now. I love the form factor of the machine; light and small. It is very powerful. I can test alpha/beta software on Windows and Mac. I can do .NET development on Windows. I do Flex/AIR development on both platforms. I'd say that I'm fat and happy, but I only weigh a buck forty. But I'm am happy! The down side, Macs are a little pricey. Regards, Rob On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anecdote of the minute: I'm fine on my bigass iMac, but there's 2 or 3 vista laptops in the office, and soapUI seems to have some Vista incompatibilities. Could be the fact we're using 2.0.3 which AFAIK is still unreleased, but it could be Vista too :) On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Microsoft is already on record as pushing Windows 7 out the door as soon as possible (probably late 2009) due to the Vista debacle .. remember Windows ME? :) Nancy - Original Message - *From:* Joseph Balderson mailto:[EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Sent:* Thursday, June 05, 2008 11:20 AM *Subject:* Re: [flexcoders] Re: Thinking about going to the dark sideApple Mac Book I'm not trying to be glib, but don't use Vista. Use XP SP3. Joseph Balderson | http://joeflash.ca | 705-466-6345 b_alen wrote: Interesting. Me and my colleagues are also thinking of switching to Mac due to Vista crappiness. In fact we're 80% sure that next laptops will be Macs. My only concern is how to do .Net development and integration with Flex then. Anyone has a solution
Re: [flexcoders] SWFLoader doesn't fire complete event
It shouldn't. @Embed compiles any assets into the application SWF at compiletime, so there's no runtime loading, so no complete event. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Alex Harui wrote: I’d have to double-check, but I don’t think @Embed’s generate a complete event since it isn’t an external asynchronous load. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Joan Lafferty *Sent:* Sunday, June 01, 2008 8:28 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] SWFLoader doesn't fire complete event You could also try adding a listener to the SWFLoader for the “complete” event in the initialize or preinitialize event. Since both your complete event and source are defined in mxml, if the source loads really quickly, you probably will miss the event. Try: mx:SWFLoader id=”thisSWF” source='@Embed(source=deleteme.swf)' preinitialize=”thisSWF.addEventListener(‘complete', onComplete)” / *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Pete Miller *Sent:* Sunday, June 01, 2008 7:17 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] SWFLoader doesn't fire complete event I have problems with getting the 'complete' event to occur in an application I'm working on, so I wrote this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.*; import mx.controls.Alert; public function onComplete():void { Alert.show('Complete!', '', Alert.OK, this); } ]] /mx:Script mx:SWFLoader source='@Embed(source=deleteme.swf)' complete='onComplete()' / /mx:Application This doesn't work either. If I can see the swf on the screen, then why don't I get the 'complete' event? P. Keep your kids safer online with Windows Live Family Safety. Help protect your kids. http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?
What you both just described is obfuscation, not encryption. And there are varying levels of obfuscation. The barest level is replacing all props with _loc_1, whcih is child's play. I think what Andrew is referring to is strong obfuscation, that will replace vars with a meaningless string of characters which include illegal characters. The SWF will still play fine, but the moment you try and decompile into classes and recompile, you get a zillion compiler errors from all the illegal characters, and the code is completely intelligible, cause all custom class members have been replaced by goobledygook. That is what I call strong obfuscation. True SWF encryption is only possible with code injection decrypted at runtime, using either encrypted data or preferably over a secure streaming connection (RTMPE or the like) as far as I know, though I've never actually seen anyone go to the trouble. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Sherif Abdou wrote: The local variable get changed to _loc_1, so your best best is to write some sort of script that changes the public/private variables to something like __var_1, and make sure u increment by 1. you can do the same for functions function __test__1();. I dont think encryption will matter unless some crazy person wants to decipher what all they mean. - Original Message From: andrewwestberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, June 3, 2008 4:54:14 PM Subject: [flexcoders] Re: SWC Encrypt 2.0 - Does it work? - We ran SWCEncrypt on a Flex SWC and then tried decompiling a Flex app created with the encrypted SWC versus the unencrypted SWC. I could not tell any difference whatsoever. Both decompiled just fine, it appeared as if SWCEncrypt did absolutely nothing to the SWC file. I don't know if we were doing soemthing wrong (although really how can you? you just run it on a SWC), or if the encryptor doesn't support Flex SWCs specifically. I tested SWC encrypt on my flex swc today and I can also verify that it didn't do a darn thing to the code as viewed through Sothink's decompiler. (disclaimer: I consult for a company that does SWF and Flex/AIR module encryption that could be considered a competitor of these guys. Just checkin out the competition ;) ) -Andrew
Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?
I meant to say ...and the code is completely _un_intelligible... ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Joseph Balderson wrote: What you both just described is obfuscation, not encryption. And there are varying levels of obfuscation. The barest level is replacing all props with _loc_1, whcih is child's play. I think what Andrew is referring to is strong obfuscation, that will replace vars with a meaningless string of characters which include illegal characters. The SWF will still play fine, but the moment you try and decompile into classes and recompile, you get a zillion compiler errors from all the illegal characters, and the code is completely intelligible, cause all custom class members have been replaced by goobledygook. That is what I call strong obfuscation. True SWF encryption is only possible with code injection decrypted at runtime, using either encrypted data or preferably over a secure streaming connection (RTMPE or the like) as far as I know, though I've never actually seen anyone go to the trouble. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Sherif Abdou wrote: The local variable get changed to _loc_1, so your best best is to write some sort of script that changes the public/private variables to something like __var_1, and make sure u increment by 1. you can do the same for functions function __test__1();. I dont think encryption will matter unless some crazy person wants to decipher what all they mean. - Original Message From: andrewwestberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, June 3, 2008 4:54:14 PM Subject: [flexcoders] Re: SWC Encrypt 2.0 - Does it work? - We ran SWCEncrypt on a Flex SWC and then tried decompiling a Flex app created with the encrypted SWC versus the unencrypted SWC. I could not tell any difference whatsoever. Both decompiled just fine, it appeared as if SWCEncrypt did absolutely nothing to the SWC file. I don't know if we were doing soemthing wrong (although really how can you? you just run it on a SWC), or if the encryptor doesn't support Flex SWCs specifically. I tested SWC encrypt on my flex swc today and I can also verify that it didn't do a darn thing to the code as viewed through Sothink's decompiler. (disclaimer: I consult for a company that does SWF and Flex/AIR module encryption that could be considered a competitor of these guys. Just checkin out the competition ;) ) -Andrew -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] #2038: File I/O Error only in firefox
Either your file is corrupted, or the path to the file cannot be found, and you've not created an IOError event handler to catch the event. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Dennis Falling wrote: I searched the web and the group and found a thread going about this without a resolution (started with msg. 88102). Does anyone know a way around this? I need to allow the user to upload files over SSL, which works fine from IE but explodes in Firefox. Code: var url:String = Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND); var request:URLRequest = new URLRequest(url); request.method = URLRequestMethod.POST; _file.upload(request,fileData,false); When run in Firefox, I get a flash exception: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. Watching it in Wireshark I see the initial post, then a number of subsequent lines Continuation or non-HTTP traffic. Thanks!
Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?
Ah. I thought he was talking about SWCEncrypt, which is actually an obfuscator. I stand corrected. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Doug McCune wrote: Just to clarify, Andrew is in fact talking about encryption, not obfuscation. The NitroLM product (which I have not used) actually does raw byte encryption on your swf, which then gets loaded by a wrapper swf and decrypted at runtime based on a secret key that gets sent over a secure connection after valid credentials are passed to the server. You would have to be able to crack the swf encryption before a decompiler would even be able to give you any decompiled code. Doug On Wed, Jun 4, 2008 at 1:35 PM, Joseph Balderson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I meant to say ...and the code is completely _un_intelligible... __ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Joseph Balderson wrote: What you both just described is obfuscation, not encryption. And there are varying levels of obfuscation. The barest level is replacing all props with _loc_1, whcih is child's play. I think what Andrew is referring to is strong obfuscation, that will replace vars with a meaningless string of characters which include illegal characters. The SWF will still play fine, but the moment you try and decompile into classes and recompile, you get a zillion compiler errors from all the illegal characters, and the code is completely intelligible, cause all custom class members have been replaced by goobledygook. That is what I call strong obfuscation. True SWF encryption is only possible with code injection decrypted at runtime, using either encrypted data or preferably over a secure streaming connection (RTMPE or the like) as far as I know, though I've never actually seen anyone go to the trouble. __ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Sherif Abdou wrote: The local variable get changed to _loc_1, so your best best is to write some sort of script that changes the public/private variables to something like __var_1, and make sure u increment by 1. you can do the same for functions function __test__1();. I dont think encryption will matter unless some crazy person wants to decipher what all they mean. - Original Message From: andrewwestberg [EMAIL PROTECTED] mailto:andrewwestberg%40gmail.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Tuesday, June 3, 2008 4:54:14 PM Subject: [flexcoders] Re: SWC Encrypt 2.0 - Does it work? - We ran SWCEncrypt on a Flex SWC and then tried decompiling a Flex app created with the encrypted SWC versus the unencrypted SWC. I could not tell any difference whatsoever. Both decompiled just fine, it appeared as if SWCEncrypt did absolutely nothing to the SWC file. I don't know if we were doing soemthing wrong (although really how can you? you just run it on a SWC), or if the encryptor doesn't support Flex SWCs specifically. I tested SWC encrypt on my flex swc today and I can also verify that it didn't do a darn thing to the code as viewed through Sothink's decompiler. (disclaimer: I consult for a company that does SWF and Flex/AIR module encryption that could be considered a competitor of these guys. Just checkin out the competition ;) ) -Andrew -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: New to flex, wonder why one works and the other doesn't...
In other words, UIComponents /can/ natively contain other UIComponents, only the child UIComponent will by default have a 0 width and height. Which it means it won't show up on the stage. Which means, by default, you cannot get a native (non-extended) UIComponent to show up when you add it to another UIComponent. Which means you cannot (successfully) add a native UIComponent to another UIComponent. Thanks for catching the technicality, as a writer I love that kind of precision. But basically what Charlie was saying is correct: UIComponent's can't contain other UIComponents without being a subclass of Container or implementing the IContainer interface. -- only he forgot to add 'and have them successfully show up on stage'. So you're both correct IMO. Thanks for the clarity. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Michael Labriola wrote: Guys, sorry, but that's not quite right. UIComponents can contain other UIComponents without being a container. It is a common use case. Take a look at the simple example Adobe includes with their docs: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=1742.html You will notice that the mocal text component is a UIComponent but it contains a button and a text area... both UIComponents. The difference is that containers like Canvas have the logic to size and position any child they contain by default. UIComponent does not. So, in a UIComponent descendant, you need to write code to size and position every child or they will exist as 0 width and 0 height component. HTH, Labriola --- In flexcoders@yahoogroups.com, Charlie Hubbard [EMAIL PROTECTED] wrote: Right. Image is a UIComponent, and TextArea is a UIComponent. UIComponent's can't contain other UIComponents without being a subclass of Container or implementing the IContainer interface. Not a simple task. addChild() is defined in DisplayObject which apart of the Flash API not the Flex API. BitmapAsset is a sublcass of DisplayObject and not UIComponent. So you can add it to the text area directly using this code: var img : BitmapAsset = new imgCls() as BitmapAsset; img.x = txtArea.mouseX; img.y = txtArea.mouseY; txtArea.addChild( img ); Now, try that out, and you'll start to see some issues that you'll have to asess if this is going to work for what you're trying to do. Since the bitmap is not apart of the document in the TextArea you are going to get clipping or scrolling. If you want to do that you'll have to get really dirty with the TextArea API. Probably even ditching TextArea altogether and writing your own, or modifying rich text editor. Charlie On Thu, May 29, 2008 at 5:37 PM, aarhac [EMAIL PROTECTED] wrote: Hello, I have figured out how to work around my problem, but I do wonder why one of the following methods works, and the other doesn't. I would be grateful if someone could explain the error in the failing method. The code is pasted below (Below the line of dashes) in it's entirety, and is commented as to which works and which doesn't. The image referenced in this case is a 32x32 pixel png file on my local system. I am attempting to display the image on a text area. Using the default example from the flex documentation to embed an image, I cannot get the image to show up when added to the text area's display list, but it does show just fine when added to the root display list. I also added the image to the textArea using addChildAt(txtIcon, txtArea.numChildren) with no change in effect. The second method works just fine. I imagine that the problem has something to do with applying the image as a byte array to image.source, but I wonder why exactly? Is this a bug? Thanks in advance, --Aaron ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute !--Works-- mx:Image id=txtIcon source=@Embed(source='c:/icon.png')/ mx:TextArea id=txtArea width=400 height=200 click=addImage()/ mx:Script ![CDATA[ import mx.controls.Image; import mx.core.BitmapAsset; // Doesn't work [Embed(source=c:/icon.png)] [Bindable] public var imgCls:Class; public function addImage():void { // Doesn't work var loadedImg:Image = new Image(); loadedImg.source = new imgCls() as BitmapAsset; loadedImg.x = 10; loadedImg.y = 10; txtArea.addChild(loadedImg); // Note: While the above doesn't work, adding the // image to the root display list does work: //addChild(loadedImg); // Works txtIcon.x = 50; txtIcon.y = 10; txtArea.addChild(txtIcon); } ]] /mx:Script
Re: [flexcoders] New to flex, wonder why one works and the other doesn't...
Of course! I knew the answer was simple, man that was bugging me. Thanks Charlie. :) ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Charlie Hubbard wrote: Right. Image is a UIComponent, and TextArea is a UIComponent. UIComponent's can't contain other UIComponents without being a subclass of Container or implementing the IContainer interface. Not a simple task. addChild() is defined in DisplayObject which apart of the Flash API not the Flex API. BitmapAsset is a sublcass of DisplayObject and not UIComponent. So you can add it to the text area directly using this code: var img : BitmapAsset = new imgCls() as BitmapAsset; img.x = txtArea.mouseX; img.y = txtArea.mouseY; txtArea.addChild( img ); Now, try that out, and you'll start to see some issues that you'll have to asess if this is going to work for what you're trying to do. Since the bitmap is not apart of the document in the TextArea you are going to get clipping or scrolling. If you want to do that you'll have to get really dirty with the TextArea API. Probably even ditching TextArea altogether and writing your own, or modifying rich text editor. Charlie On Thu, May 29, 2008 at 5:37 PM, aarhac [EMAIL PROTECTED] wrote: Hello, I have figured out how to work around my problem, but I do wonder why one of the following methods works, and the other doesn't. I would be grateful if someone could explain the error in the failing method. The code is pasted below (Below the line of dashes) in it's entirety, and is commented as to which works and which doesn't. The image referenced in this case is a 32x32 pixel png file on my local system. I am attempting to display the image on a text area. Using the default example from the flex documentation to embed an image, I cannot get the image to show up when added to the text area's display list, but it does show just fine when added to the root display list. I also added the image to the textArea using addChildAt(txtIcon, txtArea.numChildren) with no change in effect. The second method works just fine. I imagine that the problem has something to do with applying the image as a byte array to image.source, but I wonder why exactly? Is this a bug? Thanks in advance, --Aaron ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute !--Works-- mx:Image id=txtIcon source=@Embed(source='c:/icon.png')/ mx:TextArea id=txtArea width=400 height=200 click=addImage()/ mx:Script ![CDATA[ import mx.controls.Image; import mx.core.BitmapAsset; // Doesn't work [Embed(source=c:/icon.png)] [Bindable] public var imgCls:Class; public function addImage():void { // Doesn't work var loadedImg:Image = new Image(); loadedImg.source = new imgCls() as BitmapAsset; loadedImg.x = 10; loadedImg.y = 10; txtArea.addChild(loadedImg); // Note: While the above doesn't work, adding the // image to the root display list does work: //addChild(loadedImg); // Works txtIcon.x = 50; txtIcon.y = 10; txtArea.addChild(txtIcon); } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] book errata
Check the peachpit website. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Mark Volkmann wrote: Is there an errata page for the book Adobe Flex 3 - Training from the Source? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] New to flex, wonder why one works and the other doesn't...
This one was interesting, at first glance looks like it should work, until I actually tried it. Turns out TeatArea inherits from UIComponent, but it does not inherit from Container, which contain methods for adding and removing Flex children. So you cannot add an Image to a TextArea using addChild(), which is a method of the Flash API. It's not perfect, but it's the only explanation I can think of why this would not work. Why don't you set your TextArea backgroundAlpha to 0, wrap your TextArea in another Container like Canvas, and add your Image to that container over top of the TextArea? If your TextArea is instantiated in MXML, swap the depths of the two so your image appears beneath the TextArea. You can still get the TextArea to appear to have a white background by setting Canvas backgroundAlpha to 1 and the backgroundColor to white. A little convoluted, but it gives you more control. And saves you a few ulcers ;) An easier way, of course, is to simply set the backgroundImage style to your image, if don't you mind it being centred or stretched. Consequently, TextArea does inherit addChild() from DisplayObjectContainer, but DisplayObjectContainer is a part of the Flash API, not the Flex API. So you'd think that adding the asset cast as Bitmap or Sprite (without the Image) would work, but it doesn't, I guess cause there's no rawChildren property for TextArea. Interesting. If anyone's got an explanation why you can't addChild([img asset]) on a TextArea I'd like to hear it. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 aarhac wrote: Hello, I have figured out how to work around my problem, but I do wonder why one of the following methods works, and the other doesn't. I would be grateful if someone could explain the error in the failing method. The code is pasted below (Below the line of dashes) in it's entirety, and is commented as to which works and which doesn't. The image referenced in this case is a 32x32 pixel png file on my local system. I am attempting to display the image on a text area. Using the default example from the flex documentation to embed an image, I cannot get the image to show up when added to the text area's display list, but it does show just fine when added to the root display list. I also added the image to the textArea using addChildAt(txtIcon, txtArea.numChildren) with no change in effect. The second method works just fine. I imagine that the problem has something to do with applying the image as a byte array to image.source, but I wonder why exactly? Is this a bug? Thanks in advance, --Aaron ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute !--Works-- mx:Image id=txtIcon source=@Embed(source='c:/icon.png')/ mx:TextArea id=txtArea width=400 height=200 click=addImage()/ mx:Script ![CDATA[ import mx.controls.Image; import mx.core.BitmapAsset; // Doesn't work [Embed(source=c:/icon.png)] [Bindable] public var imgCls:Class; public function addImage():void { // Doesn't work var loadedImg:Image = new Image(); loadedImg.source = new imgCls() as BitmapAsset; loadedImg.x = 10; loadedImg.y = 10; txtArea.addChild(loadedImg); // Note: While the above doesn't work, adding the // image to the root display list does work: //addChild(loadedImg); // Works txtIcon.x = 50; txtIcon.y = 10; txtArea.addChild(txtIcon); } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] the old caching problem... many answers no solution!!!
Might as well ask why is the sky blue. This is is not new. HTML no-cache headers have not worked for any embedded assets, including quicktime or any other files, since the first browsers were first able to use applets and other media over 14 years ago. It's just the way it is. And the fix is easy enough using javascript, so quit whining. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Josh McDonald wrote: Why isn't this built into the JavaScript in /html-template, if explorer is still ignoring the timestamps on .swf files? And what makes .swf files special? Even explorer can abide by the no-cache and expires headers when fetching .html -J On Fri, May 30, 2008 at 5:57 AM, Joseph Balderson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: As I mentioned in my previous email, use the following to refer to your flash SWF file, no backend code required: myFile.swf?+ (new Date()).getTime( ) You'll need to use it in Javascript tags, such as SWFObject or the default adobe tags. You can easily modify the index.template.html file to have Flex Builder include this code in all its html files. What it does is use js to append a unique number on the end of the filename, making the browser think it's being asked to get a new file each and every time, which assures that the browser will always fetch the file from the server. __ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 amandeepsingh bajwa wrote: Hi Joseph vo...!!! amazed by how wide can a programmer can see. No sir, i dont work for military or something. My only requirement is to make the clients fetch the latest swf instead of what the browser has cached. Absolutely no problem with swf being getting stores their. True we need to concentrate upon securing the data rather than the swf itself. I ll always remember this tip. But the problem i face at the moment is to make client browser to fetch the latest version of swf from server and not cached one. The topic is not new and I have seen various Q's related to this in the archive, but could hardly understand any. confused!!! - Original Message From: Joseph Balderson [EMAIL PROTECTED] mailto:news%40joeflash.ca To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, 29 May, 2008 4:56:53 PM Subject: Re: [flexcoders] the old caching problem... many answers no solution!!! All that html metadata does is assure that the HTML code will be refreshed each and every time the viewer sees the page. But to my knowledge this does not affect whether a media asset such as a flash document (SWF) is refreshed on each pageview. It is impossible to prevent a SWF from apprearing in the browser's cache folder. But you can insert generate the embed and param tags dynamically with javascript, and then using something like: myFile.swf? nocahe=+ (new Date()).getTime( ) (not excatly sure of the syntax, it's been a while) ...you can assure that the browser will load the SWF anew with each page view/refresh so that the SWF is being fetched from the server each time versus from the browser cache after the first view. But the file will still appear in the browser's cache folder no matter what you do, including runtime loading of a content SWF into a proxy.. I suppose, theoretically you can stream the content SWF from a streaming server such as Red5 or FMS into a bytearray in a host SWF and convert the bytecode into usable content, but I've never tried it, and do not know how you would implement the particulars. This would be the only way to ensure that the SWF never appears in the browser cache. Usually it's more important to secure the data in the application than the application itself. Better to apply a bytecode obfuscator than to go through all that trouble unless you're doing work for the military or something. _ _ _ _ _ _ Joseph Balderson | http://joeflash.. ca http://joeflash.ca Flex Flash Platform Developer
Re: [flexcoders] Flex Builder 2 to Flex Buiulder 3 IDE changes: some good, some bad
Uncheck these two: Window Preferences Flex Editors ActionScript Code Keep imports organized Remove unused imports when organizing Problem solved. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 mr_j_harris wrote: I upgraded from Flex Builder 2 to Flex Builder 3- to be able to use the AdvancedDataGrid was the driver behind the decision. The first thing I noticed was in the debugger, variables window, yellow highlighting on the modified variables. Nice! The second thing I noticed was the source-code mode editor's propensity to re-organize my 'import' statements. This I didn't appreciate. Oh, sure, it's a little organized - alphabetical, respecting hierarchy. There was an option to do this in Flex Builder 2, called 'organize imports' or something. However, I liked my imports arranged like this, in three or four groups: #1 system level (flash, mx etc) #2 '3rd party' level; (cairngorm for example) #3 utility-level - homebrew - perhaps built with parts from layers 1 2, but not application specific #4 application level - dto, event, control, command objects specific to the application. Call me neurotic, but this way I can can glance at the groups and see what this file is about. So, please leave my imports alone! -- [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] the old caching problem... many answers no solution!!!
All that html metadata does is assure that the HTML code will be refreshed each and every time the viewer sees the page. But to my knowledge this does not affect whether a media asset such as a flash document (SWF) is refreshed on each pageview. It is impossible to prevent a SWF from apprearing in the browser's cache folder. But you can insert generate the embed and param tags dynamically with javascript, and then using something like: myFile.swf?nocahe=+(new Date()).getTime() (not excatly sure of the syntax, it's been a while) ...you can assure that the browser will load the SWF anew with each page view/refresh so that the SWF is being fetched from the server each time versus from the browser cache after the first view. But the file will still appear in the browser's cache folder no matter what you do, including runtime loading of a content SWF into a proxy. I suppose, theoretically you can stream the content SWF from a streaming server such as Red5 or FMS into a bytearray in a host SWF and convert the bytecode into usable content, but I've never tried it, and do not know how you would implement the particulars. This would be the only way to ensure that the SWF never appears in the browser cache. Usually it's more important to secure the data in the application than the application itself. Better to apply a bytecode obfuscator than to go through all that trouble unless you're doing work for the military or something. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 mailamannow wrote: Hi Following is the Code available at http://livedocs.adobe.com/flex/3/html/help.html?content=performance_05.html (1)Where exactly to use it so as to prevent client side caching? Cache-control: no-cache, no-store, must-revalidate, max-age=-1 Pragma: no-cache, no-store Expires: -1 (2)is there a better way to prevent that when i m not using php, jsp, https service, flex data service, and all the stuff whose tutorials are mostly available when i google for the same. i simply want my swf not to be cached by the browser. please guide Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] the old caching problem... many answers no solution!!!
As I mentioned in my previous email, use the following to refer to your flash SWF file, no backend code required: myFile.swf?+ (new Date()).getTime( ) You'll need to use it in Javascript tags, such as SWFObject or the default adobe tags. You can easily modify the index.template.html file to have Flex Builder include this code in all its html files. What it does is use js to append a unique number on the end of the filename, making the browser think it's being asked to get a new file each and every time, which assures that the browser will always fetch the file from the server. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 amandeepsingh bajwa wrote: Hi Joseph vo...!!! amazed by how wide can a programmer can see. No sir, i dont work for military or something. My only requirement is to make the clients fetch the latest swf instead of what the browser has cached. Absolutely no problem with swf being getting stores their. True we need to concentrate upon securing the data rather than the swf itself. I ll always remember this tip. But the problem i face at the moment is to make client browser to fetch the latest version of swf from server and not cached one. The topic is not new and I have seen various Q's related to this in the archive, but could hardly understand any. confused!!! - Original Message From: Joseph Balderson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, 29 May, 2008 4:56:53 PM Subject: Re: [flexcoders] the old caching problem... many answers no solution!!! All that html metadata does is assure that the HTML code will be refreshed each and every time the viewer sees the page. But to my knowledge this does not affect whether a media asset such as a flash document (SWF) is refreshed on each pageview. It is impossible to prevent a SWF from apprearing in the browser's cache folder. But you can insert generate the embed and param tags dynamically with javascript, and then using something like: myFile.swf? nocahe=+ (new Date()).getTime( ) (not excatly sure of the syntax, it's been a while) ...you can assure that the browser will load the SWF anew with each page view/refresh so that the SWF is being fetched from the server each time versus from the browser cache after the first view. But the file will still appear in the browser's cache folder no matter what you do, including runtime loading of a content SWF into a proxy.. I suppose, theoretically you can stream the content SWF from a streaming server such as Red5 or FMS into a bytearray in a host SWF and convert the bytecode into usable content, but I've never tried it, and do not know how you would implement the particulars. This would be the only way to ensure that the SWF never appears in the browser cache. Usually it's more important to secure the data in the application than the application itself. Better to apply a bytecode obfuscator than to go through all that trouble unless you're doing work for the military or something. _ _ _ _ _ _ Joseph Balderson | http://joeflash.. ca http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx. com/author. cfm?cid=4674 http://communitymx.com/author.cfm?cid=4674 mailamannow wrote: Hi Following is the Code available at http://livedocs. adobe.com/ flex/3/html/ help.html? content=performa nce_05.html http://livedocs.adobe.com/flex/3/html/help.html?content=performance_05.html (1)Where exactly to use it so as to prevent client side caching? Cache-control: no-cache, no-store, must-revalidate, max-age=-1 Pragma: no-cache, no-store Expires: -1 (2)is there a better way to prevent that when i m not using php, jsp, https service, flex data service, and all the stuff whose tutorials are mostly available when i google for the same. i simply want my swf not to be cached by the browser. please guide Thanks - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ..txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Meet people who discuss and share your passions. Join them now. http://in.rd.yahoo.com/tagline_groups_7/*http://in.promos.yahoo.com
Re: [flexcoders] Importing SWC Files in FLEX
Typically the reason no one answers a post is because the answer is too self evident, can be arrived at with a little googling, and no one wants to see this degenerate into a newbie list. (Maybe there should be a FlexNewbies list?) Or it's not possible, which most also judge as self evident. In answer to your question... You can either use the Flex Component Kit for Flash CS3, or you simply place the Flash component on the stage, export your SWC, place it in your /lib folder, and access the relevant fl.* classes in your flex project. Peter DeHaan has a good post on using the Flex Component Kit: http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-for-flash-cs3/ If you're having problems getting SWC files to work at all, you should probably brush up library usage in Flex. If you're having problems using some of the SWC files that contain the core Flash classes in the application directory, they won't work, for various reasons. You have to use the Flash compiler to include what classes you need in your SWC, and then use that in Flex. You also could try some of the articles up on Adobe Dev Connection: http://www.adobe.com/devnet/flex/articles/skins_styles.html http://www.adobe.com/products/flex/features/video/glenn_ruehle/ http://www.adobe.com/devnet/flex/articles/video_flex.html http://www.adobe.com/devnet/flash/articles/flex_component_workflow_print.html I'm also writing a tutorial series on Community MX about integrating Flash and Flex together http://www.communitymx.com/abstract.cfm?cid=AEF3D, some of which you may also find useful as the series unfolds. Hope that helps. ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 anuj181 wrote: Hi Does anyone know how to import SWC file created in CS3 into Flex Project. I googled it and found lot of samples but in my case whenever i gave Library path, the swc file is not showing in my project' lib directory and when i manually move swc file it shows unknown icon on the file. Does anyone has any idea what's going on. Please help me out. All i need is to create few symobls/movies in CS3 and want to use them in my Flex Project Thanks Anuj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] CS3 to flex tutorials
I'm actually writing a tutorial series on Community MX about that very topic http://www.communitymx.com/abstract.cfm?cid=AEF3D. In the coming weeks there will be articles about creating Flash components and porting them to Flex, so stay tuned. For now you could try some of the articles up on Adobe Dev Connection: http://www.adobe.com/devnet/flex/articles/skins_styles.html http://www.adobe.com/products/flex/features/video/glenn_ruehle/ http://www.adobe.com/devnet/flex/articles/video_flex.html http://www.adobe.com/devnet/flash/articles/flex_component_workflow_print.html ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Kenneth Sutherland wrote: Anyone recommend some good tutorials for creating a flash component that I can export into flex and change its values from flex. I’ve followed the following example on http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ which was pretty helpful. I’ve managed to create a component using the above example that can change its state but I’m unsure as to how to create in flash changeable properties. Say for example you wish to create the above example from the link (for those that haven’t looked at the link it creates a blue ball that expands and contracts depending on its state) but as well as changing its size say you wished to give it a dynamic colour, or similar that would be settable at run time. I’ve only just started to look at flash so if anyone could point me in the direction of some tutorials or tell me how it’s done that would be great. Most of the examples I’ve looked at so far do not have dynamic properties or miss out the steps that an experienced flash dev would probably know like the back of their hand J, but the whole timeline thing is still a bit for foreign to me right now. Cheers. Kenneth Sutherland Technical Developer Realise Ltd 0131 476 7432 _www.realise.com http://www.realise.com_ enlightened e-business solutions Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Trying to apply scale9grid to an image loaded at runtime
Scale-9 only works if parts of the image are fully within each of the 9 slices of the scale-9 grid. Which means that you'll have to separate your image into 9 different segments before applying the scale-9 grid, providing the grid 'lines and the 9 sections of the image match up precisely. You can do this the painful way by slicing up your image into 9 parts and importing each separately, or using BitmapData to do the same, which is more code involved. As for scale-9 for vectors, you might be interested in an article I wrote about using scale-9 for Flex skins: http://www.communitymx.com/abstract.cfm?cid=6C7D2 Hope that helps, ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Tom Bray wrote: I need to be able to load an image, allow the user to specify the scale9grid values, and then scale the image. I've tried a bunch of different things but either the scale9grid values aren't used or I get an invalid parameter exception. Is it possible to do this? Thanks, Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Code Hinting in include-based Code Behind files
Anyone? ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Joseph Balderson wrote: A potentially silly question, but one I have not managed to figure out. My question is, is there any way to get code hinting for MXML assets working in included as files? Often in my projects I use a pseudo-code behind for MXML files by simply including the AS code in the source prop for the Script tag in the MXML file. Say in CustomComponent.mxml, we have mx:Script source=CustomComponentCode.as/ ... mx:Button id=daBtn/ The problem is, in CustomComponentCode.as, I don't get code hinting for MXML assets declared in CustomComponent.mxml -- daBtn does not trigger code hinting, which is a real pain. I suppose one solution is to declare all component instances in AS, but that completely defeats the purpose of MXML. For smaller components, I usually land up coding the entire component in one MXML file, then separate out the AS from the MXML when it's done, but this can lead to spaghetti code, so it would be great if I could use the two files right from the start. I don't want to get into a debate about code behind techniques; I know there are other, more robust ways of using code behind such as using bona-fide classes, but the include technique seems a lot more logical and straightforward to me. Thanks,
[flexcoders] Code Hinting in include-based Code Behind files
A potentially silly question, but one I have not managed to figure out. My question is, is there any way to get code hinting for MXML assets working in included as files? Often in my projects I use a pseudo-code behind for MXML files by simply including the AS code in the source prop for the Script tag in the MXML file. Say in CustomComponent.mxml, we have mx:Script source=CustomComponentCode.as/ ... mx:Button id=daBtn/ The problem is, in CustomComponentCode.as, I don't get code hinting for MXML assets declared in CustomComponent.mxml -- daBtn does not trigger code hinting, which is a real pain. I suppose one solution is to declare all component instances in AS, but that completely defeats the purpose of MXML. For smaller components, I usually land up coding the entire component in one MXML file, then separate out the AS from the MXML when it's done, but this can lead to spaghetti code, so it would be great if I could use the two files right from the start. I don't want to get into a debate about code behind techniques; I know there are other, more robust ways of using code behind such as using bona-fide classes, but the include technique seems a lot more logical and straightforward to me. Thanks, -- ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674
Re: [flexcoders] FlexReport Beta - Public Release
That's awesome, thanks for making this. FlashPaper 3, here we come... ;) I wonder how your code compares with the source for Share, if Adobe ever releases it. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer Frederico Garcia wrote: I'm releasing the first beta of FlexReport, a client-side open source (LGPL) report generation library for Flex. You can see a demo (and sources) at www.kemelyon.com/bts Hope you find FlexReport useful and contribute with any improvements you make. Regards, Frederico Garcia -- 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] flexmdi compiled with flex sdk 2.0.1 hotfix 3
Thanks Brian! ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer madflexcoder wrote: I compiled the flexmdi framework with flex sdk version 2.0.1 hotfix 3. The download can be found in the downloads at the googlecode page. http://code.google.com/p/flexmdi/ For those of you that were looking for it or having trouble compiling with flex 201 feel free to email me offlist for any specific problems that you may encounter. usual caveats apply. thanks, Brian.. -- 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] Setting custom component properties in MXML
If you are defining your component in MXML, then no, id cannot be private. When you define a component in MXML, the component class will inherit from whatever the main container class is, which in this case is Canvas. Canvas extends UIComponent, which defines the id attribute as being public. The only way to create a component with a private id attribute is to create the component in ActionScript, extend a subclass of UIcomponent, then override the id getter setter. And this goes for 'redefining' any built-in property of a UIComponent class. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer Merrill, Jason wrote: When using your own custom made components in MXML, what is the best way to easily set properties? I.e., say I have a simple component that has an image inside a panel, and I want to set the image source in my MXML, like this: c:MyImageComponent imageSource=myPhoto.jpg / The way I figured was to setup the component like this with a public property - this works, but seems kinda kludgy - isn't there a more preferred way (WITHOUT doing it all in Actionscript)? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=500 height=800 creationComplete=update() mx:Script ![CDATA[ public var imageSource:String; private function update():void { userPhotoImage.source = imageSource; } ]] /mx:Script mx:Panel x=100 y=100 mx:Image id=userPhotoImage x=10 y=10/ /mx:Panel /mx:Canvas Bonus question - is there a way to make the component ids inside of the main component private? (i.e., in the example above, make the id for the mx:Image component private). Because when I see code hinting, I see both the public property imageSource, but also the Image component's id, userPhotoImage, which I would prefer to keep private. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community -- 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] How to use flexmdi framework in flex builder 2.0.1
I'm also having problems getting FlexMDI working with FB 2.01. I keep getting the errors Unable to load SWC flexmdi.swc and An internal build error has occurred. Please check the Error Log. I checked the catalog.xml in the swc, and it's compiled for Flex 3, which is probably why FB is having a coniption fit. versions swc version=1.1 / flex version=3.0 build=172357 / /versions We're using it on a project that requires Flex 2.01 for now, so Fx3 is not an option. Ben, do you have a version of the FlexMDI swc compiled in Flex 2.01? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer gt_shrikant wrote: hi, i downloaded the source along with SWC, and i tried to use this flexmdi in one mine project. i have flex builder 2.0.1. i added the flexmdi.swc to library path using add swc, and added namespace defination at tag. i didnt got any tag which works……… and it shows error like cannot resolve component implementation. later i removed the swc and i added the source folder to library path …… then also it is not worked ………. so what might b the reason…. plese post the exact step-by-setp instructions what to do after downloaded the .ZIP folder……. so i may help lots of begnniers… thnx shrikant -- 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 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 to use flexmdi framework in flex builder 2.0.1
In a word: laziness. Have not installed SVN on this new machine yet, so I used the swc because it was easier, and like a fool assumed the source would be the same. Thanks for the clarity Ben and Max. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer Max Frigge wrote: Hi, i am using the flexmdi in FB2 and it works like a charm. I use the source files though... why are u so keen in using the swc files. I reckon it's very nice to have the source there so that you can easily customize it. So my advice would to use the source instead.. Cheers, Max - Original Message From: Joseph Balderson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Cc: ben.clinkinbeard [EMAIL PROTECTED] Sent: Friday, January 11, 2008 9:24:27 AM Subject: Re: [flexcoders] How to use flexmdi framework in flex builder 2.0.1 I'm also having problems getting FlexMDI working with FB 2.01. I keep getting the errors Unable to load SWC flexmdi.swc and An internal build error has occurred. Please check the Error Log. I checked the catalog.xml in the swc, and it's compiled for Flex 3, which is probably why FB is having a coniption fit. versions swc version=1.1 / flex version=3.0 build=172357 / /versions We're using it on a project that requires Flex 2.01 for now, so Fx3 is not an option. Ben, do you have a version of the FlexMDI swc compiled in Flex 2.01? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer gt_shrikant wrote: hi, i downloaded the source along with SWC, and i tried to use this flexmdi in one mine project. i have flex builder 2.0.1. i added the flexmdi.swc to library path using add swc, and added namespace defination at tag. i didnt got any tag which works……… and it shows error like cannot resolve component implementation. later i removed the swc and i added the source folder to library path …… then also it is not worked ………. so what might b the reason…. plese post the exact step-by-setp instructions what to do after downloaded the .ZIP folder……. so i may help lots of begnniers… thnx shrikant -- 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 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 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- 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: How to use flexmdi framework in flex builder 2.0.1
DOH! I must have missed that post. Thanks Ben. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer ben.clinkinbeard wrote: I have been pestering Brian Holmes to create a Flex 2 SWC for a while now since he was the one who screwed up and made the original Flex 3. :) Feel free to harass him until he does it: http://brianjoseph31.typepad.com/smashedapples/2007/09/moxie-killed-th.html As mentioned below, you can point to the source from 2.0.1 without any problems. You could also create your own SWC from said source if its important to you to use the SWC. HTH, Ben --- In flexcoders@yahoogroups.com, Joseph Balderson [EMAIL PROTECTED] wrote: I'm also having problems getting FlexMDI working with FB 2.01. I keep getting the errors Unable to load SWC flexmdi.swc and An internal build error has occurred. Please check the Error Log. I checked the catalog.xml in the swc, and it's compiled for Flex 3, which is probably why FB is having a coniption fit. versions swc version=1.1 / flex version=3.0 build=172357 / /versions We're using it on a project that requires Flex 2.01 for now, so Fx3 is not an option. Ben, do you have a version of the FlexMDI swc compiled in Flex 2.01? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer gt_shrikant wrote: hi, i downloaded the source along with SWC, and i tried to use this flexmdi in one mine project. i have flex builder 2.0.1. i added the flexmdi.swc to library path using add swc, and added namespace defination at tag. i didnt got any tag which works……… and it shows error like cannot resolve component implementation. later i removed the swc and i added the source folder to library path …… then also it is not worked ………. so what might b the reason…. plese post the exact step-by-setp instructions what to do after downloaded the .ZIP folder……. so i may help lots of begnniers… thnx shrikant -- 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 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 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] So You Want To Hire a SWF Developer?
FYI, there's a free article on Community MX http://www.communitymx.com/abstract.cfm?cid=284FA I penned to help recruiters, HR personnel, managers and developers wrestling with the question what do we call the person who builds SWF files for a living, and what exactly do they do? By no means the final word on job descriptions (so please don't take offence if you feel you don't fit into any of the categories), this should offer some clarity on the evolution of the Flash ecosystem of technologies and proposed skillset descriptions in the current marketplace. A further description of the document can be found here http://www.joeflash.ca/blog/2008/01/so-you-want-to-hire-a-swf-developer.html, and a PDF version of the document can be downloaded on the article page link above. Pass this along to any managers, recruiters or HR people who may have a use for it. Apologies for the plug, but a lot of people I know could use this information, just wanted to share. Cheers, -- ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer
Re: [flexcoders] So You Want To Hire a SWF Developer?
Thanks for the feedback. I'm aware that Flex components can be skinned; what was mentioned was The Flex 2 components, by contrast, must be styled with CSS as opposed to skinned -- I should have been more specific in my language and said that Flex components are more easily styled than skinned. Though there have been great strides made in the Flex3/Flash CS3 workflow, Flex components are still styling-oriented, and for that reason Flash Developers will choose the CS3 components over the Flex ones if they can. Thanks for pointing that out though. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer Narciso Jaramillo wrote: Hi Joseph, Interesting article! It's true that the Flash platform developer landscape has changed quite a bit in the last couple of years, and it's great to see people starting to explain the nuances. I just wanted to point out one factual error in your article. Page 2 says that the Flex 2 components must be styled through CSS and can't be skinned. In fact, you can create purely graphical skins for Flex components using either bitmap or vector artwork created in the CS3 tools. In Flex 2, it was a somewhat manual process, described in this article: http://www.adobe.com/devnet/flex/articles/flex_skins.html In Flex 3, which is coming out soon, we've automated the process, so you have a fully automated workflow for Flex skinning from the CS3 design tools into Flex Builder: http://www.adobe.com/go/flex3_cs3_skinning_extensions Thanks, nj -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Balderson Sent: Thursday, January 10, 2008 12:21 AM To: undisclosed-recipients Subject: [flexcoders] So You Want To Hire a SWF Developer? FYI, there's a free article on Community MX http://www.communitymx.com/abstract.cfm?cid=284FA I penned to help recruiters, HR personnel, managers and developers wrestling with the question what do we call the person who builds SWF files for a living, and what exactly do they do? By no means the final word on job descriptions (so please don't take offence if you feel you don't fit into any of the categories), this should offer some clarity on the evolution of the Flash ecosystem of technologies and proposed skillset descriptions in the current marketplace. A further description of the document can be found here http://www.joeflash.ca/blog/2008/01/so-you-want-to-hire-a-swf-developer .html, and a PDF version of the document can be downloaded on the article page link above. Pass this along to any managers, recruiters or HR people who may have a use for it. Apologies for the plug, but a lot of people I know could use this information, just wanted to share. Cheers,
Re: [flexcoders] How to check if a file exist in the server?
Try loading it, and if you get an IOError, the file does not exist. There could be other reasons you may get an IOError, but it's useful for specifically that purpose. http://www.joeflash.ca/blog/2007/11/ioerror-2044-solution.html ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer Anzer wrote: How to check if a file exist or not in the server? Currently am doing it with HTTPService, but I need to know if there is any better mechanism since I want to check files with big sizes and I think HTTPService will load the actual file into memory (not sure if that’s correct, let me know if not). Thanks www.FlickrMailer.com http://www.flickrmailer.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] Parallel Source Folders
Okay, I guess this answers my question. Bummer. http://www.joeberkovitz.com/blog/2007/10/31/flex-builder-source-folders-need-to-go-back-in-the-oven/ OR http://tinyurl.com/33wqtg ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer Joseph Balderson wrote: Apologies for the noob question, but is it at all possible to declare parallel source folders for MXML files, all of which point to the source root of the application? In projects where I don't need SVN, just prototyping a few things, the source folder can get cluttered with drafts of stuff, so I'd like to have a drafts and a src folder, like so /src /drafts ...both of which are considered source folders attached to the application root. I've searched through all the Build settings for the project, but can't seem to get this to work in FlexBuilder. Do I need to add something to a config file or as a -compiler directive to initiate this? And has this been made any easier to set up in FB 3?
Re: [flexcoders] How do I make the background fill the whole screen, not just the Application?
Your Application should stretch with the inner browser width height by default, you don't need to monkey with the Stage object like you do in Flash. If what you want is a background which covers the whole browser screen, let the Application fill up the space. Then place the rest of your content in another container. For instance, if you want your content to be centred on the stage but your content to absolutely positioned, use the following code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center verticalAlign=middle backgroundColor=#00 backgroundGradientAlphas=[1.0,1.0] backgroundGradientColors=[0x00, 0xAA] mx:Canvas backgroundColor=#FF width=400 height=400 mx:Button label=daButton1 top=20 left=20/ mx:Button label=daButton2 right=20 bottom=20/ /mx:Canvas /mx:Application The two buttons use constrained layout positioning as opposed to absolute positioning, so they float a certain distance from the sides of the canvas container. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer kolt_siewerts wrote: Dear group, coming from the Flash side of AS3-Development, I'm struggling with a small problem. Here is an example (source code via right-click): http://www.kolt-siewerts.com/flexTest/ My application has to grow with the window, so I set StageScaleMode.SHOW_ALL instead of the default NO_SCALE. Now whenever the window has not the same aspect ratio as the Application, black bars appear. But I want the background of my App to fill the screen no matter what ratio the window has. Thanks for any ideas or hints, I've searched the internet for a couple of days now and did not find a solution... Regards, kolt -- 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] Parallel Source Folders
Apologies for the noob question, but is it at all possible to declare parallel source folders for MXML files, all of which point to the source root of the application? In projects where I don't need SVN, just prototyping a few things, the source folder can get cluttered with drafts of stuff, so I'd like to have a drafts and a src folder, like so /src /drafts ...both of which are considered source folders attached to the application root. I've searched through all the Build settings for the project, but can't seem to get this to work in FlexBuilder. Do I need to add something to a config file or as a -compiler directive to initiate this? And has this been made any easier to set up in FB 3? -- ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer
Re: [flexcoders] Looking for an HTMLEditor Component
Here's the two that I've used: http://drumbeatinsight.com/htmlcomponent http://ccgi.arutherford.plus.com/blog/wordpress/?page_id=132 ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Abobe Certified Developer Trainer | 705-466-6345 Writing partner, Community MX | http://www.communitymx.com Jurgen Beck wrote: We are building a CMS in Flex and one of the biggest challenges at the moment is the fact that Flex (Flash) doesn't have good support for HTML tags. We are currently using the RichTextEditor component and convert the HTML output to valid HTML tags. However, this leaves us with some serious challenges. So, here is the question: Has anyone created a Flex HTML editor component they are willing to sell? I have looked at several solutions, including working with IFrames or div tags and using HTML components such as FCKEditor. None of them really fit the model we need, as they all have some significant drawbacks. Please note that this is for a component that allows WYSIWYG editing of HTML content, not just a component that displays HTML content. Thanks, Jurgen -- 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] Can we Display XML file As Is in Flex ????
Try using the toString() method of the XML class, and then dump it into a text field. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Abobe Certified Developer Trainer | 705-466-6345 Writing partner, Community MX | http://www.communitymx.com tarun chandra wrote: Hi, I want to display an XML file as is (like in IE) in an mxml page. Is it possible to do it in flex?? And if it is, can anyone please tell me how to do it. Thank You, Tarun -- 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] Can we Display XML file As Is in Flex ????
That's what I meant ;) Thanks for the catch. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Abobe Certified Developer Trainer | 705-466-6345 Writing partner, Community MX | http://www.communitymx.com Alex Harui wrote: toXMLString() *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Joseph Balderson *Sent:* Monday, December 17, 2007 9:46 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can we Display XML file As Is in Flex Try using the toString() method of the XML class, and then dump it into a text field. __ Joseph Balderson, Flash Platform Developer | http://joeflash.ca http://joeflash.ca Abobe Certified Developer Trainer | 705-466-6345 Writing partner, Community MX | http://www.communitymx.com http://www.communitymx.com tarun chandra wrote: Hi, I want to display an XML file as is (like in IE) in an mxml page. Is it possible to do it in flex?? And if it is, can anyone please tell me how to do it. Thank You, Tarun -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Calling All Flex Writers!
Hi everyone, I've just been put in charge of a Flex 3 title by Wrox/Wiley Publishing, and we're currently looking for co-authors on the project. More details here: http://www.joeflash.ca/blog/2007/12/professional-flex-3-book-calling-all-flex-writers.html (or http://tinyurl.com/yphf7k) Pass on the word to any experienced Flex developers you know who may want to get involved. Thanks, Joseph -- ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Abobe Certified Developer Trainer | 705-466-6345 Writing partner, Community MX | http://www.communitymx.com
Re: [flexcoders] Re: How to detect DoubleClick in Button?
AS3: myUIComponent.doubleClickEnabled=true; myUIComponent.addEventListener(MouseEvent.DOUBLE_CLICK, dblClickHandler); MXML mx:Button label=MXML DblClick Event doubleClickEnabled=true doubleClick=dblClickHandler(event)/ EXAMPLE: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initApp() mx:Script ![CDATA[ import mx.controls.Alert; import flash.events.MouseEvent; private function initApp():void { dblClickBtn.doubleClickEnabled=true; dblClickBtn.addEventListener(MouseEvent.DOUBLE_CLICK, dblClickHandler); } private function dblClickHandler(evtObj:MouseEvent):void { Alert.show('Double Clicked!', 'Alert Box', mx.controls.Alert.OK); } ]] /mx:Script mx:Button label=MXML DblClick Event doubleClickEnabled=true doubleClick=dblClickHandler(event)/ mx:Button id=dblClickBtn label=AS DblClick Event / /mx:Application ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Abobe Certified Developer Trainer | 705-466-6345 Writing partner, Community MX | http://www.communitymx.com lampei wrote: I don't think there's an actual event that will do it, but you could write your own. Something like: When the mousedown event fires, set a variable with a date. When the user clicks again make sure a minimum amount of time has passed (and also make sure it's less than a certain max time you determine). If the second click of the button falls within your pre-defined range, fire off the double-click event, else, set the variable to new Date and wait for another click. --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hey there, I have a button and would like to detect DoubleClick event. Is that possible? Thanks a lot