Re: [Flashcoders] Re: Datagrid cell focus
Well, that was unexpected. Then I would say Adobe forums are your best bet Bill. Unless there is still someone here that can help? I wish I knew more or I would. Sry. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Sep 21, 2014, at 12:13 PM, Dave Watts dwa...@figleaf.com wrote: I think this question may be in the archives. Have you checked there? Not positive how to get there, just know one exists. Might post your question again as many flash devs are not paying attention to the list as much anymore, but peek in from time to time. They probably just missed it or because it's a data grid question, be hiding from it. :P The archives don't work since the last server migration, unfortunately. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Datagrid cell focus
I think this question may be in the archives. Have you checked there? Not positive how to get there, just know one exists. Might post your question again as many flash devs are not paying attention to the list as much anymore, but peek in from time to time. They probably just missed it or because it's a data grid question, be hiding from it. :P GL, Best, Karl Sent from losPhone On Sep 20, 2014, at 9:10 AM, Bill li...@rangingthoughts.org wrote: So -- what other ActionScript/AS3 lists are still running? Anything else out there? On 9/12/2014 7:26 AM, Bill wrote: I would like to try my question again; FlashPro CS6, using pure .as3 code; I have a 6 column DataGrid. 4 of the columns use the normal TextField, and they work fine. On 2 of the columns I have set up a custom cell renderer, using the normal *public class MyCellRenderer extends CellRenderer implements ICellRenderer * The custom cells display their information fine, but they do not fire *DataGridEvent.ITEM_FOCUS_IN *or Flash Datagrid *DataGridEvent.ITEM_EDIT_BEGIN * These columns are marked c4.editable = true; What am I missing here to get these events to be fired off? Thanks Bill ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR native extension - Windows debugging
I still get banner jobs believe it or not. Working on one currently. But has become a lot more sparse then before the S. Jobs bandwagon started rolling. Best, Karl Sent from losPhone On Sep 5, 2014, at 2:16 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Well that's great it's going well for you. I personally don't see a lot of Flash-based jobs out there anymore though. But great it's not dead to you. I do miss it. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr. Sent: Friday, September 05, 2014 2:51 PM To: Flash Coders List Subject: Re: [Flashcoders] AIR native extension - Windows debugging I never really used Flash much for the WWW. I build applications and Flash is doing great for me. I have over a dozen apps in the iTunes store and 6 of them are now going over to the Android store and dozens, upon dozens are available for PC/MAC. Touchscreens for trade shows, corporate and private, kiosks, video walls, audience polling software and the list goes on and on. Have a nice day, John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Sep 5, 2014, at 12:49 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I just have to add, the rumors of Flash dying are overblown, is correct. Flash isn't dying, its already dead. Doesn't matter how good the runtime is, it's hardly used much anymore compared to what it used to be. Sorry, I don't mean to be snarky, but I just don't agree with the Flash isn't dead idea. Does it have to go away completely to be dead? No, but it's certainly lost 90% of its relevance on the WWW, and that to me, is dead. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash FireBug
Hi All, Don't know how many of you have already seen this but thought it was worth the share. Might help someone down the road. https://addons.mozilla.org/en-US/firefox/addon/flashfirebug/?src=cb-dl-popular Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Pulling data from social media
Hi John, Well, googling twitter api for flash as3 yielded some good results for me. There was this link that looks promising. https://blog.twitter.com/2006/twitter-api-flash-developers Also found this package example. http://www.untoldentertainment.com/blog/2009/04/02/tutorial-pull-twitter-updates-into-flash/ don't know if its what your wanting, but found it with google search terms: pull twitter feeds with flash as3 There is this too. http://www.fladev.com/featured/how-to-build-a-flash-actionscript-3-0-twitter-widget/ Hope one of these does the trick. Good luck! Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Aug 25, 2014, at 10:44 PM, John R. Sweeney Jr. jr.swee...@comcast.net wrote: Howdy all, Well my client wants to pull 20 latest feeds from their Twitter, Instagram and Pinterest. I’ve already found out that Twitter stopped supporting RSS feeds and retired the REST api v1 and now have the Twitter API v1.1 that is JSON only. Does anyone access Twitter feeds some other way. Twitter says that RSS is out and I haven’t worked with JSON before. Also, I’m trying find out about how to access Pinterest and Instagram to just get the number of followers of four specific users. I really can’t find any meaningful help out their in relationship with Flash/AS3. Has anyone done either of these or know of a direction you can point me in to get some guidance? Thanks in advance for any help, John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Pulling data from social media
Ah ok. I see. In that case, here you go. Next best thing. http://snipplr.com/view/56283/as3-load-and-access-json-data-example/ Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Aug 26, 2014, at 1:51 AM, John R. Sweeney Jr. jr.swee...@comcast.net wrote: Hi Karl, Thank you for your links, but unfortunately, I saw all of these and they are dated 2009, 2010 and/or 2012 and use the API v1. That API was retired in May of 2013. I found this from the Twitter Developers pages: We've chosen to throw our support behind the JSON format shared across the platform. Consequently, we’ve decided to discontinue support for XML, Atom, and RSS.” And all the examples I’m finding are older and whether its direct calls from Flash or PHP, if they are calling to .rss or .xml and through the API v1, the pages don’t exist or links are broken, etc. Very frustrating and that’s just Twitter Having less luck with Pinterest and Instagram. Thanks again though for the suggestions, John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Aug 26, 2014, at 12:58 AM, Karl DeSaulniers k...@designdrumm.com wrote: Hi John, Well, googling twitter api for flash as3 yielded some good results for me. There was this link that looks promising. https://blog.twitter.com/2006/twitter-api-flash-developers Also found this package example. http://www.untoldentertainment.com/blog/2009/04/02/tutorial-pull-twitter-updates-into-flash/ don't know if its what your wanting, but found it with google search terms: pull twitter feeds with flash as3 There is this too. http://www.fladev.com/featured/how-to-build-a-flash-actionscript-3-0-twitter-widget/ Hope one of these does the trick. Good luck! Best, ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Pulling data from social media
Sorry, I'm not more help. If I didn't have to get this project out by the morning I would. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Aug 26, 2014, at 2:23 AM, Karl DeSaulniers k...@designdrumm.com wrote: Ah ok. I see. In that case, here you go. Next best thing. http://snipplr.com/view/56283/as3-load-and-access-json-data-example/ Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Aug 26, 2014, at 1:51 AM, John R. Sweeney Jr. jr.swee...@comcast.net wrote: Hi Karl, Thank you for your links, but unfortunately, I saw all of these and they are dated 2009, 2010 and/or 2012 and use the API v1. That API was retired in May of 2013. I found this from the Twitter Developers pages: We've chosen to throw our support behind the JSON format shared across the platform. Consequently, we’ve decided to discontinue support for XML, Atom, and RSS.” And all the examples I’m finding are older and whether its direct calls from Flash or PHP, if they are calling to .rss or .xml and through the API v1, the pages don’t exist or links are broken, etc. Very frustrating and that’s just Twitter Having less luck with Pinterest and Instagram. Thanks again though for the suggestions, John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Aug 26, 2014, at 12:58 AM, Karl DeSaulniers k...@designdrumm.com wrote: Hi John, Well, googling twitter api for flash as3 yielded some good results for me. There was this link that looks promising. https://blog.twitter.com/2006/twitter-api-flash-developers Also found this package example. http://www.untoldentertainment.com/blog/2009/04/02/tutorial-pull-twitter-updates-into-flash/ don't know if its what your wanting, but found it with google search terms: pull twitter feeds with flash as3 There is this too. http://www.fladev.com/featured/how-to-build-a-flash-actionscript-3-0-twitter-widget/ Hope one of these does the trick. Good luck! Best, ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] getting data from outside servers
Edit the swf to look for a relative path to find its XML. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Aug 11, 2014, at 9:54 AM, Ted Lehr t...@qvine.com wrote: So it seems Flash by default does not allow a movie to get data (say xml) from another server. So if I have a movie on http://www.thissite.com/movie.swf and in that movie I have: var xmlLoader:URLRequest = new URLRequest(http://www.thissite.com/data.xml;); Is there anyway around this? T ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
That is a relative url. So the videos need to be in the same directory as the javascript file or you need to give it the correct path. Was it my url that didn't work? It worked on my iPhone. I do not have an iPad to test with. Contact me off list and we will finish discussing it. I only posted here because the code was working for me. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 29, 2014, at 10:54 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Unfortunately that new code still does not show video on iPad. * I noticed that / is missed in source tag for video and added it but that does not help.* source src=jack_giant_video.mp4 type=video/mp4 */*\n'+ 2014-07-28 21:40 GMT+04:00 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, Here you go. This works for me on my iPhone. I did notice in your code on the link you sent me, there was a number of extra lines and white space. If this happens again from copying from your email, view the source on the live example link provided and copy from there. Live Example: http://designdrumm.com/clients/natalia [CODE] !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=UTF-8 / meta name=author content=DESIGN DRUMM Š 2014 / meta name=viewport content=width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=1 / titleJack And The Giant/title script type=text/javascript function hasFlash() { try { var AXO = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); if(AXO) { return true; } else { return false }; } catch(e){ return navigator.mimeTypes [application/x-shockwave-flash] != undefined ? true:false; } }; function hasQt() { if (navigator.plugins) { for (i=0; i navigator.plugins.length; i++ ) { if (navigator.plugins[i].name.indexOf (QuickTime) = 0) { return true; } } } if ((navigator.appVersion.indexOf(Mac) 0) (navigator.appName.substring(0,9) == Microsoft) (parseInt(navigator.appVersion) 5) ) { return true; } return false; }; function supports_video() { return !!document.createElement('video').canPlayType; } function supports_h264_baseline_video() { if (!supports_video()) { return false; } var v = document.createElement(video); return v.canPlayType('video/mp4; codecs=avc1.42E01E, mp4a.40.2'); } function supports_ogg_theora_video() { if (!supports_video()) { return false; } var v = document.createElement(video); return v.canPlayType('video/ogg; codecs=theora, vorbis'); } function supports_webm_video() { if (!supports_video()) { return false; } var v = document.createElement(video); return v.canPlayType('video/webm; codecs=vp8, vorbis'); } function loadVideo() { var videoCode = ''; if( hasFlash() == false supports_h264_baseline_video() != ) { /*HTML5 - h.264*/ videoCode = 'video id=jack_giant width=100% height=100% controls preload=auto poster=jack_giant.png style=position:absolute;z-index:0;\n'+ ' source src=jack_giant.mp4 type=video/mp4\n'+ ' /video\n'; } else if( hasFlash() == false supports_ogg_theora_video() != ) { /*HTML5*/ videoCode = 'video id=jack_giant width=100% height=100% controls preload=auto poster=jack_giant.png style=position:absolute;z-index:0;\n'+ ' source src=jack_giant.ogg type=video/ogg\n'+ ' /video\n'; } else if( hasFlash() == false supports_webm_video() != ) { /*HTML5*/ videoCode = 'video id=jack_giant width=100% height=100% controls preload=auto poster=jack_giant.png style=position:absolute;z-index:0;\n'+ ' source src=jack_giant.webm type=video/webm\n'+ ' /video\n'; } else if( hasFlash() == false supports_video() == false hasQt() == true ) { /*HTML4 QuickTime Embed - works on IE 7 and 8*/ videoCode = 'object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase= http://www.apple.com/qtactivex/qtplugin.cab; height=100% width=100% \n'+ ' param name=src value=jack_giant.mov \n'+ ' embed src=jack_giant.mov'+ 'height=100%'+ 'width=100%'+ 'type=video/quicktime'+ 'pluginspage=http://www.apple.com/quicktime/download/ '+ 'style=position:absolute;z-index:0;'+ '/\n'+ '/object\n'; } else if( hasFlash() == true ) { /*FLASH
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
'+ ' embed src=jack_giant.swf' + 'bgcolor=#fdef96 width=100% height=100% '+ 'quality=high' + 'scale=noscale' + 'name=jack_giant' + 'align=mc' + 'salign=mc' + 'allowScriptAccess=sameDomain' + 'allowFullScreen=false' + 'type=application/x-shockwave-flash'+ 'style=position:absolute;z-index:0;'+ ' /\n'+ '/object\n'; } else { videoCode = 'pYour browser does not support HTML5 Video, QuickTime or Flash. Please upgrade your browser to the latest version or use a video compatible browser or download the a href=http://www.adobe.com/go/getflash;Flash Plugin/a or the a href=http://www.apple.com/quicktime/download/;QuickTime Plugin/a to view this video./p'; } document.getElementById(videoplayer).innerHTML = videoCode; } /script /head body div id=videoplayer/div script type=text/javascript loadVideo(); /script /body /html [END CODE] Oh and here is the reference for the QuickTime code in case you want to embed differently. No cache progressive downloads, real-time feed, etc. https://developer.apple.com/library/mac/documentation/QuickTime/Conceptual/QTScripting_HTML/QTScripting_HTML_Document/ScriptingHTML.html#//apple_ref/doc/uid/TP40001525-2-ApplicationsandExamples HTH, Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 27, 2014, at 12:26 PM, Henrik Andersson he...@henke37.cjb.net wrote: This assumes that all mobile devices are incapable of Flash. That's patently false. It also ignores the issue of non-mobile devices that doesn't support Flash. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
This one should do the trick. It's device independent. Even checks to see if h.264 video is supported. HTH, !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=UTF-8 / titleJack And The Giant/title script type=text/javascript function hasFlash() { try { var AXO = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); return AXO ? true:false; } catch(e){ return navigator.mimeTypes [application/x-shockwave-flash] != undefined ? true:false; } }; function hasQt() { if (navigator.plugins) { for (i=0; i navigator.plugins.length; i++ ) { if (navigator.plugins[i].name.indexOf (QuickTime) = 0) { return true; } } } if ((navigator.appVersion.indexOf(Mac) 0) (navigator.appName.substring(0,9) == Microsoft) (parseInt(navigator.appVersion) 5) ) { return true; } return false; }; function supports_video() { return !!document.createElement('video').canPlayType; } function supports_h264_baseline_video() { if (!supports_video()) { return false; } var v = document.createElement(video); return v.canPlayType('video/mp4; codecs=avc1.42E01E, mp4a.40.2'); } function loadVideo() { if( !hasFlash supports_h264_baseline_video()) { /*HTML5 - h264*/ videoCode = 'video id=jack_giant width=100% height=100% controls preload=auto poster=jack_giant.png style=position:absolute;z-index:0;\n'+ ' source src=jack_giant.mp4 type=video/mp4\n'+ ' /video\n'; } else if( !hasFlash !supports_h264_baseline_video() supports_video()) { /*HTML5*/ videoCode = 'video id=jack_giant width=100% height=100% controls preload=auto poster=jack_giant.png style=position:absolute;z-index:0;\n'+ ' source src=jack_giant.ogg type=video/ogg\n'+ ' source src=jack_giant.webm type=video/webm\n'+ ' /video\n'; } else if( !hasFlash !supports_video() hasQt ) { /*HTML4 QuickTime Embed - works on IE 7 and 8*/ videoCode = 'object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase=http://www.apple.com/qtactivex/qtplugin.cab; height=100% width=100% \n'+ ' param name=src value=jack_giant.mov \n'+ ' embed src=jack_giant.mov'+ 'height=100%'+ 'width=100%'+ 'type=video/quicktime'+ 'pluginspage=http://www.apple.com/quicktime/download/;'+ 'style=position:absolute;z-index:0;'+ '/\n'+ '/object\n'; } else if( hasFlash ) { /*FLASH*/ videoCode = 'object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354\n'+ ' codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\n'+ ' width=100% height=100% id=jack_giant align=mc style=position:absolute;z-index:0;\n'+ ' param name=allowScriptAccess value=sameDomain /\n'+ ' param name=allowFullScreen value=false /\n'+ ' param name=movie value=jack_giant.swf /\n'+ ' param name=quality value=high /\n'+ ' param name=bgcolor value=#fdef96 /' + ' param name=scale value=noscale /\n'+ ' param name=align value=mc /\n'+ ' param name=salign value=mc /\n'+ ' embed src=jack_giant.swf' + 'bgcolor=#fdef96 width=100% height=100% '+ 'quality=high' + 'scale=noscale' + 'name=jack_giant' + 'align=mc' + 'salign=mc' + 'allowScriptAccess=sameDomain' + 'allowFullScreen=false' + 'type=application/x-shockwave-flash'+ 'style=position:absolute;z-index:0;'+ ' /\n'+ '/object\n'; } else { videoCode = 'pYour browser does not support HTML5 Video, QuickTime or Flash. Please upgrade your browser to the latest version or use a video compatible browser or download the a href=http://www.adobe.com/go/getflash;Flash Plugin/a or the a href=http://www.apple.com/quicktime/download/;QuickTime Plugin/a to view this video./p'; } document.getElementById(video_player).innerHTML = videoCode; } /script /head body div id=video_player/div script type=text/javascript loadVideo(); /script /body /html Best, Karl DeSaulniers Design
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
Hi Natalia, Looks like this is your best solution and doesn't involve any javascript. video width=100% height=100% controls source src=jack_giant.mp4 type=video/mp4 source src=jack_giant.ogg type=video/ogg source src=jack_giant.webm type=video/webm object data=jack_giant.mp4 width=100% height=100% embed src=jack_giant.swf width=100% height=100% /object /video [Source] http://www.w3schools.com/html/html_videos.asp You'll have to work it into what your doing. I think someone earlier mentioned this though. HTH, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 22, 2014, at 12:07 PM, Karl DeSaulniers k...@designdrumm.com wrote: Well, it may not be the best solution, but technically my code is not sniffing the userAgent the way your implying, it's sniffing for a device name in the userAgent string. Doesn't matter what version of iPhone you have because the name iPhone will always be in the userAgent string for a web browser on an iPhone. Same with the name windows, android, Symbian etc etc. If I were sniffing the userAgent string for a browser version I would agree with you. My script has survived three iPhones so far. :) But I will look into your suggestion. Thank you. Best, Karl Sent from losPhone On Jul 22, 2014, at 8:34 AM, James Merrill jmerri...@gmail.com wrote: Do not sniff for user agents! What will your code do when someone uses the next iPhone? Or if they have opera installed on their amazon fire? You can not predict what user agent strings will look like in the future, and are bound to serve up the wrong content to the wrong people. This problem has been solved by JS developers, and it's called feature detection. Instead of relying upon user agent sniffing, check whether the browser supports video tags. This library is all you need. http://modernizr.com/ Then you can simply do: if(Modernizr.video){ //code to show html5 video } else { //code to show flash video } On Tue, Jul 22, 2014 at 8:57 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Thank you very much for the help. As I understand I use correct code. I don't use different pages for video and flash. I did two blocks on the page. div id=video style=display:none video id=video width=100% height=100% poster=screenshot.png controls=controls preload=none source src=jack_giant_video.mp4 type=video/mp4 / /video /div div id=flash style=display:block object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0 width=100% height=100% id=jack_giant align=middle param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=false / param name=movie value=jack_giant.swf /param name=quality value=high /param name=scale value=noscale /param name=bgcolor value=#fdef96 / embed src=jack_giant.swf quality=high scale=noscale bgcolor=#fdef96 width=100% height=100% name=jack_giant align=middle allowScriptAccess=sameDomain allowFullScreen=false type=application/x-shockwave-flash pluginspage= http://www.macromedia.com/go/getflashplayer; / /object /div script language=javascript if ((navigator.userAgent.match(/iPad/i) != null) || (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById(video).style.display = block; document.getElementById(flash).style.display = none; } /script I should improve JavaScript as Karl shows but unfortunately iPad does not play video when html file tests. I tested this mp4 video in browsers that support html5 and they play video. The same video iPad does not play. Where can be problem? 2014-07-22 4:44 GMT+04:00 Karl DeSaulniers k...@designdrumm.com: Here is what I use, it's simple and works like a charm for me. script type=text/javascript var nAgt = navigator.userAgent; var isMobile = { Android: function() { return nAgt.match(/Android/i) ? true : false; }, BlackBerry: function() { return nAgt.match(/BlackBerry/i) ? true : false; }, iOS: function() { return nAgt.match(/iPhone|iPad|iPod/i) ? true : false; }, Windows: function() { return nAgt.match(/IEMobile/i) ? true : false; }, Symbian: function() { return nAgt.match(/SymbianOS/i) ? true : false; }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows() || isMobile.Symbian()); } }; if( isMobile.any() ) { location.href = HTML5/index.html ; } else { location.href = FLASH/index.html ; } /script You can also chek for individual devices by just calling any of the following... isMobile.Android() isMobile.BlackBerry() isMobile.iOS() isMobile.Windows() isMobile.Symbian() You can also add your own deviced if you know the userAgent. Just add it to the array! :) Now, this does not check if flash is installed. I
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
Ah, in that case switch it. video width=100% height=100% controls object data=jack_giant.mp4 width=100% height=100% embed src=jack_giant.swf width=100% height=100% /object source src=jack_giant.mp4 type=video/mp4 source src=jack_giant.ogg type=video/ogg source src=jack_giant.webm type=video/webm /video Not 100% sure if that will actually do it, hadn't tested, but my understanding is it loads the first viable solution in the DOM chain so it should hit the object before source of the video tag and if the object and embed don't fire, then it would find the source tags. If the video tag doesn't fire, then the object is still there. Well, in theory anyway. Worth a test I'd say. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 25, 2014, at 5:06 AM, Henrik Andersson he...@henke37.cjb.net wrote: You got the priorities wrong. He wants to use Flash if possible, with the video as the fallback. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
Actually, if you want just flash to play first, then I think it would be set like this. video width=100% height=100% controls object data=jack_giant.swf width=100% height=100% embed src=jack_giant.swf width=100% height=100% /object source src=jack_giant.mp4 type=video/mp4 source src=jack_giant.ogg type=video/ogg source src=jack_giant.webm type=video/webm /video Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 25, 2014, at 5:15 AM, Karl DeSaulniers k...@designdrumm.com wrote: Ah, in that case switch it. video width=100% height=100% controls object data=jack_giant.mp4 width=100% height=100% embed src=jack_giant.swf width=100% height=100% /object source src=jack_giant.mp4 type=video/mp4 source src=jack_giant.ogg type=video/ogg source src=jack_giant.webm type=video/webm /video Not 100% sure if that will actually do it, hadn't tested, but my understanding is it loads the first viable solution in the DOM chain so it should hit the object before source of the video tag and if the object and embed don't fire, then it would find the source tags. If the video tag doesn't fire, then the object is still there. Well, in theory anyway. Worth a test I'd say. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 25, 2014, at 5:06 AM, Henrik Andersson he...@henke37.cjb.net wrote: You got the priorities wrong. He wants to use Flash if possible, with the video as the fallback. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
Well, it may not be the best solution, but technically my code is not sniffing the userAgent the way your implying, it's sniffing for a device name in the userAgent string. Doesn't matter what version of iPhone you have because the name iPhone will always be in the userAgent string for a web browser on an iPhone. Same with the name windows, android, Symbian etc etc. If I were sniffing the userAgent string for a browser version I would agree with you. My script has survived three iPhones so far. :) But I will look into your suggestion. Thank you. Best, Karl Sent from losPhone On Jul 22, 2014, at 8:34 AM, James Merrill jmerri...@gmail.com wrote: Do not sniff for user agents! What will your code do when someone uses the next iPhone? Or if they have opera installed on their amazon fire? You can not predict what user agent strings will look like in the future, and are bound to serve up the wrong content to the wrong people. This problem has been solved by JS developers, and it's called feature detection. Instead of relying upon user agent sniffing, check whether the browser supports video tags. This library is all you need. http://modernizr.com/ Then you can simply do: if(Modernizr.video){ //code to show html5 video } else { //code to show flash video } On Tue, Jul 22, 2014 at 8:57 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Thank you very much for the help. As I understand I use correct code. I don't use different pages for video and flash. I did two blocks on the page. div id=video style=display:none video id=video width=100% height=100% poster=screenshot.png controls=controls preload=none source src=jack_giant_video.mp4 type=video/mp4 / /video /div div id=flash style=display:block object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0 width=100% height=100% id=jack_giant align=middle param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=false / param name=movie value=jack_giant.swf /param name=quality value=high /param name=scale value=noscale /param name=bgcolor value=#fdef96 / embed src=jack_giant.swf quality=high scale=noscale bgcolor=#fdef96 width=100% height=100% name=jack_giant align=middle allowScriptAccess=sameDomain allowFullScreen=false type=application/x-shockwave-flash pluginspage= http://www.macromedia.com/go/getflashplayer; / /object /div script language=javascript if ((navigator.userAgent.match(/iPad/i) != null) || (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById(video).style.display = block; document.getElementById(flash).style.display = none; } /script I should improve JavaScript as Karl shows but unfortunately iPad does not play video when html file tests. I tested this mp4 video in browsers that support html5 and they play video. The same video iPad does not play. Where can be problem? 2014-07-22 4:44 GMT+04:00 Karl DeSaulniers k...@designdrumm.com: Here is what I use, it's simple and works like a charm for me. script type=text/javascript var nAgt = navigator.userAgent; var isMobile = { Android: function() { return nAgt.match(/Android/i) ? true : false; }, BlackBerry: function() { return nAgt.match(/BlackBerry/i) ? true : false; }, iOS: function() { return nAgt.match(/iPhone|iPad|iPod/i) ? true : false; }, Windows: function() { return nAgt.match(/IEMobile/i) ? true : false; }, Symbian: function() { return nAgt.match(/SymbianOS/i) ? true : false; }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows() || isMobile.Symbian()); } }; if( isMobile.any() ) { location.href = HTML5/index.html ; } else { location.href = FLASH/index.html ; } /script You can also chek for individual devices by just calling any of the following... isMobile.Android() isMobile.BlackBerry() isMobile.iOS() isMobile.Windows() isMobile.Symbian() You can also add your own deviced if you know the userAgent. Just add it to the array! :) Now, this does not check if flash is installed. I have the old skool flash fallback for that and a link to the html 5 page in there as well so if they know they have a html5 compatible desktop browser, they can just click that if they don't what to install flash per se. HTH. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 21, 2014, at 7:36 PM, Mike Starr starrten...@gmail.com wrote: So this looks complicated. A few resources I recommend: Adobe GoLive ActiveX On Mon, Jul 21, 2014 at 10:20 AM, Ross P. Sclafani ross.sclaf...@gmail.com wrote: I have done this for a video player i build that does hundreds of millions of streams / year across
Re: [Flashcoders] Html coding: video for iPad and Flash on one page
Here is what I use, it's simple and works like a charm for me. script type=text/javascript var nAgt = navigator.userAgent; var isMobile = { Android: function() { return nAgt.match(/Android/i) ? true : false; }, BlackBerry: function() { return nAgt.match(/BlackBerry/i) ? true : false; }, iOS: function() { return nAgt.match(/iPhone|iPad|iPod/i) ? true : false; }, Windows: function() { return nAgt.match(/IEMobile/i) ? true : false; }, Symbian: function() { return nAgt.match(/SymbianOS/i) ? true : false; }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows() || isMobile.Symbian()); } }; if( isMobile.any() ) { location.href = HTML5/index.html ; } else { location.href = FLASH/index.html ; } /script You can also chek for individual devices by just calling any of the following... isMobile.Android() isMobile.BlackBerry() isMobile.iOS() isMobile.Windows() isMobile.Symbian() You can also add your own deviced if you know the userAgent. Just add it to the array! :) Now, this does not check if flash is installed. I have the old skool flash fallback for that and a link to the html 5 page in there as well so if they know they have a html5 compatible desktop browser, they can just click that if they don't what to install flash per se. HTH. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 21, 2014, at 7:36 PM, Mike Starr starrten...@gmail.com wrote: So this looks complicated. A few resources I recommend: Adobe GoLive ActiveX On Mon, Jul 21, 2014 at 10:20 AM, Ross P. Sclafani ross.sclaf...@gmail.com wrote: I have done this for a video player i build that does hundreds of millions of streams / year across platforms and devices. I use SWFObject to attempt to write the flash SWF, and put our html5 rendering code into the callback after the attempt, if the flash failed to write. On Jul 21, 2014, at 1:57 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Thank you very much for this link. But I need a bit different. If browser support HTML5 and Flash it should play Flash. Only platforms that does not support Flash should play video. 2014-07-20 21:55 GMT+04:00 Ruben Quintana ruben.quint...@gmail.com: http://coolestguidesontheplanet.com/use-html-5-video-on-all-browsers/ On Sun, Jul 20, 2014 at 12:05 PM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: I need play video only for iPad and other devices that does not support Flash. Does this code do that? 2014-07-20 19:51 GMT+04:00 Micky Hulse mickyhulse.li...@gmail.com: On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya natavi.m...@gmail.com wrote: I tested on Windows - just blank page. It seems does not like style=display:none but I don't know another solition. I typically use: video poster=foo.jpg width=480 height=360 preload=none controls source src=foo.webm type=video/webm source src=foo.ogv type=video/ogg source src=foo.mp4 type=video/mp4 ... Flash fallback goes here ... /video You'll have to change width/height to match video. This app is great for converting your source to diff formats: http://www.mirovideoconverter.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable Flash Banners
Thanks everyone who commented. I got them done and they are working well. Client loves them. Now we will see if the code I wrote will work for the hosting company. Thanks again for the advice! Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Mar 16, 2014, at 8:13 AM, Paul A. p...@ipauland.com wrote: If you don't have control of the html page where the ad is being hosted, there will be a flash API supplied with whatever ad system is being used to support such ads, so a generic approach won't be suitable in such cases. Essentially you make a Flash design for the larger size, but mask it to fit the smaller add display. When you wish to expand the ad you can expand the mask to cover the larger area after calling the advertising API to tell it to expand the HTML element that encloses the flash area. I did this last year and it worked via a series of callbacks, but will vary according to the ad system being used. Paul On 16/03/2014 05:25, Karl DeSaulniers wrote: Oh!? I am not sure if they are being hosted with those systems. I will need to check with the client. Thanks for the heads up. Do you happen to have a link to these specs? If not I'm sure I can google it up. Thanks again. Best, Karl Sent from losPhone On Mar 15, 2014, at 11:43 PM, Roger Persson ro...@radiergum.com wrote: Hi Karl, Don't know if this is the case for you but if your banner is to be hosted by a network like Google Ads or AdForm they will have some specific code you need to use for the expanding to work. Best regards /roger Karl DeSaulniers skrev 2014-03-15 23:39: Can anyone point me in the right direction for expandable banners? To be honest I am looking for an example or some script I can just use, but would take tut or doc links as well. Expandable banners with inset video to be exact. Also, correct me if I am wrong, but doesn't Javascript handle the expansion part? TIA. Best, Karl Sent from losPhone ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Expandable Flash Banners
Can anyone point me in the right direction for expandable banners? To be honest I am looking for an example or some script I can just use, but would take tut or doc links as well. Expandable banners with inset video to be exact. Also, correct me if I am wrong, but doesn't Javascript handle the expansion part? TIA. Best, Karl Sent from losPhone ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Expandable Flash Banners
Oh!? I am not sure if they are being hosted with those systems. I will need to check with the client. Thanks for the heads up. Do you happen to have a link to these specs? If not I'm sure I can google it up. Thanks again. Best, Karl Sent from losPhone On Mar 15, 2014, at 11:43 PM, Roger Persson ro...@radiergum.com wrote: Hi Karl, Don't know if this is the case for you but if your banner is to be hosted by a network like Google Ads or AdForm they will have some specific code you need to use for the expanding to work. Best regards /roger Karl DeSaulniers skrev 2014-03-15 23:39: Can anyone point me in the right direction for expandable banners? To be honest I am looking for an example or some script I can just use, but would take tut or doc links as well. Expandable banners with inset video to be exact. Also, correct me if I am wrong, but doesn't Javascript handle the expansion part? TIA. Best, Karl Sent from losPhone ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] IOS Flash question
I have emailed with attachments, but it involved a PHP file that put the email together and attached the file as base64 then sent it on its way. Might be a good approach for you as well. Then you can just have your iOS app send just a form request. PDF attachments can get tricky though. Sometimes the encryption messes with the layout of the PDF. As long as it wasn't a really complex PDF it sent no problem, but mine were custom layouts with graphics and tables, etc. I did get it to work finally though. Once emailed, the customer could view the PDF in their email automatically with the built in PDF viewer in the iOS. Best, Karl Sent from losPhone On May 28, 2013, at 4:10 AM, Paul A. p...@ipauland.com wrote: Maybe someone has a suggestion. A client has some iPads without 3G. The client wants to be able to email PDF files directly to a customer from the iPad (A bit difficult without a connection) and I've never really found a way to get flash to initiate an email with content already in place, or as an attachment. Normally to display a PDF via flash I'd use a link to a web-hosted PDF, or a local file. Any ideas about how I do this from an IOS App written in flash? Thanks, Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
Ok, I am understanding things a little better I believe. Quick question to solidify some knowledge. In reference to my question about a private class, is the class CustomClient at the bottom an example of a private class? It was mentioned that even if you don't have the word private there and don't put public, flash automatically will interpret it as a private class. It is inside the class file but outside the package for the main class (which was also mentioned), it does not have public on it so you can't call it outside this file. This is what a private class is, correct? package { import flash.display.Sprite; import flash.events.NetStatusEvent; import flash.events.SecurityErrorEvent; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.Event; public class NetConnectionExample extends Sprite { private var videoURL:String = http://www.helpexamples.com/flash/video/cuepoints.flv;; private var connection:NetConnection; private var stream:NetStream; private var video:Video = new Video(); public function NetConnectionExample() { connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); connection.connect(null); } private function netStatusHandler(event:NetStatusEvent):void { switch (event.info.code) { case NetConnection.Connect.Success: connectStream(); break; case NetStream.Play.StreamNotFound: trace(Stream not found: + videoURL); break; } } private function securityErrorHandler(event:SecurityErrorEvent):void { trace(securityErrorHandler: + event); } private function connectStream():void { addChild(video); var stream:NetStream = new NetStream(connection); stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); stream.client = new CustomClient(); video.attachNetStream(stream); stream.play(videoURL); } } } class CustomClient { public function onMetaData(info:Object):void { trace(metadata: duration= + info.duration + width= + info.width + height= + info.height + framerate= + info.framerate); } public function onCuePoint(info:Object):void { trace(cuepoint: time= + info.time + name= + info.name + type= + info.type); } } Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
Thanks Ktu. That actually makes sense. I was not looking for a reason necessarily to use a private class, but more so, saw this example and had the though this must be a private class and wanted to verify for my own understanding. Which you have provided. I see and understand what you mean by it is not the most necessary thing to create a private namespace class and that I will more then likely be able to accomplish what i need through regular classes and never need to set a private class up. Thank you for the clarification. Well. Finished Perkins, on to Moock. Actually getting excited... LoL Thanks again, Best, Karl Sent from losPhone On May 26, 2013, at 10:40 AM, ktu ktu_fl...@cataclysmicrewind.com wrote: yes. this is an example of a private class. but as someone earlier mentioned, you shouldn't ever _need_ to use them. and it would be more appropriate not to use them in production code. using the internal namespace gives you some restriction, and you could even use your own namespace for restriction but that's quite uncommon as well. for reference.. - you cannot add a namespace to this 'private' class and should result in a compile error if you do. (ex. public class CustomClient) therefore, it must always be defined as 'class ClassName' with no namespace. - any classes that you need within this 'private' class must be imported outside the package package com { // code } import flash.display.Sprite class MySprite { // code } - and if some outside object gets a reference to it, you should be able to access public functions and properties so long as you do not try to cast the object as anything other than Object. in my experience, i have yet to feel the need for a pseudo 'private' class. the internal namespace serves me well most and in a few occasions a custom namespace was required. good luck :) On Sun, May 26, 2013 at 6:58 AM, Karl DeSaulniers k...@designdrumm.comwrote: Ok, I am understanding things a little better I believe. Quick question to solidify some knowledge. In reference to my question about a private class, is the class CustomClient at the bottom an example of a private class? It was mentioned that even if you don't have the word private there and don't put public, flash automatically will interpret it as a private class. It is inside the class file but outside the package for the main class (which was also mentioned), it does not have public on it so you can't call it outside this file. This is what a private class is, correct? package { import flash.display.Sprite; import flash.events.NetStatusEvent; import flash.events.SecurityErrorEvent; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.Event; public class NetConnectionExample extends Sprite { private var videoURL:String = http://www.helpexamples.com/flash/video/cuepoints.flv;; private var connection:NetConnection; private var stream:NetStream; private var video:Video = new Video(); public function NetConnectionExample() { connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); connection.connect(null); } private function netStatusHandler(event:NetStatusEvent):void { switch (event.info.code) { case NetConnection.Connect.Success: connectStream(); break; case NetStream.Play.StreamNotFound: trace(Stream not found: + videoURL); break; } } private function securityErrorHandler(event:SecurityErrorEvent):void { trace(securityErrorHandler: + event); } private function connectStream():void { addChild(video); var stream:NetStream = new NetStream(connection); stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); stream.client = new CustomClient(); video.attachNetStream(stream); stream.play(videoURL); } } } class CustomClient { public function onMetaData(info:Object):void { trace(metadata: duration= + info.duration + width= + info.width + height= + info.height + framerate= + info.framerate); } public function onCuePoint(info:Object):void { trace(cuepoint: time= + info.time + name= + info.name + type= + info.type); } } Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ktu; The information contained in this message may or may
Re: [Flashcoders] AS3 finally..
Oh well hot dog I can afford that! :) Thanks all. Karl Sent from losPhone On May 21, 2013, at 11:44 AM, mike g mike.ogr...@gmail.com wrote: $8.49 here: http://www.ebay.com/ctg/Essential-ActionScript-3-0-Colin-Moock-2007-Paperback-/59066703 On Tue, May 21, 2013 at 9:02 PM, Matt S. mattsp...@gmail.com wrote: You can get Moock's book for $26 on Powells: http://www.powells.com/biblio/1-9780596526948-6 Its been out for a while now though, so I would hit your local used bookstore, I'm willing to bet there's a few copies out there, you can probably score it for $10 or something. Not that Moock doesn't deserve full-price for this invaluable resource of course! And whatever you pay, it's simply required reading if you're serious about AS3. .m On Mon, May 20, 2013 at 11:57 PM, Karl DeSaulniers k...@designdrumm.com wrote: Thank you John. Yes, I have already watched some really good tuts on gotoandlearn and plan to watch more when I start working on my project. My book is from lynda.com too. Going to invest in Moocks book as suggested earlier as well. Just need to gen some funds. :) Karl DeSaulniers Design Drumm http://designdrumm.com On May 20, 2013, at 10:30 PM, John R. Sweeney Jr. wrote: Or subscribe to http://www.lynda.com Excellent training tutorials on tons of software. Very in-depth, but you do pay for it. If you know AS2, check out www.gotoandlearn.com. Many free tutorials on specific tasks, but you'll see them working and their AS3 code, so you can start making the correlation between what is different in 2 versus 3. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On May 20, 2013, at 9:25 PM, Rick Hassen wrote: but you may want to consider getting a good AS3 book. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
Thanks Marco. Got your email. Will check it when I get home tonight. Best, Karl Sent from losPhone On May 21, 2013, at 1:18 PM, Marco Terrinoni ma...@mularam.com wrote: Check your junk mail Karl, sent you a PM but may have got filtered Cheers Marco Terrinoni - Director MULARAM PRODUCTIONS web design // animation // illustration uk: +44 7876 652 643 e: ma...@mularam.com w: www.mularam.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: 21 May 2013 18:50 To: Flash Coders List Subject: Re: [Flashcoders] AS3 finally.. Oh well hot dog I can afford that! :) Thanks all. Karl Sent from losPhone On May 21, 2013, at 11:44 AM, mike g mike.ogr...@gmail.com wrote: $8.49 here: http://www.ebay.com/ctg/Essential-ActionScript-3-0-Colin-Moock-2007-Pa perback-/59066703 On Tue, May 21, 2013 at 9:02 PM, Matt S. mattsp...@gmail.com wrote: You can get Moock's book for $26 on Powells: http://www.powells.com/biblio/1-9780596526948-6 Its been out for a while now though, so I would hit your local used bookstore, I'm willing to bet there's a few copies out there, you can probably score it for $10 or something. Not that Moock doesn't deserve full-price for this invaluable resource of course! And whatever you pay, it's simply required reading if you're serious about AS3. .m On Mon, May 20, 2013 at 11:57 PM, Karl DeSaulniers k...@designdrumm.com wrote: Thank you John. Yes, I have already watched some really good tuts on gotoandlearn and plan to watch more when I start working on my project. My book is from lynda.com too. Going to invest in Moocks book as suggested earlier as well. Just need to gen some funds. :) Karl DeSaulniers Design Drumm http://designdrumm.com On May 20, 2013, at 10:30 PM, John R. Sweeney Jr. wrote: Or subscribe to http://www.lynda.com Excellent training tutorials on tons of software. Very in-depth, but you do pay for it. If you know AS2, check out www.gotoandlearn.com. Many free tutorials on specific tasks, but you'll see them working and their AS3 code, so you can start making the correlation between what is different in 2 versus 3. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On May 20, 2013, at 9:25 PM, Rick Hassen wrote: but you may want to consider getting a good AS3 book. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3336 / Virus Database: 3162/6341 - Release Date: 05/20/13 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
This is very interesting to me. I don't know how that all works in a real-case scenario yet, but I will. ;) When I get into design patterns I think I may revisit this post. Thanks Kevin. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 21, 2013, at 5:51 PM, Kevin Newman wrote: Why? The answer has to do with Adobe's adherence to the ECMAScript working standard that they were basing AS3 on. At the time (before the ECMAScript 4 process fell apart), the body determined that private constructors were not needed, so adobe built this restriction into AS3. Private constructors aren't useless, particularly for single pattern. With a private constructor, you can instantiate the class from within itself, assign it to a private class (static) property, and then expose the single instance through a public class (static) getter function. You'd be protected from every other way to instantiate the class. There are ways to do singleton without it, they are just more of a pain. Like taking an instance of a key class in the constructor, where the Key class is defined in the local class file scope chain. Since nothing else will have access to that Key class except your singleton class, you can use that as a nice locking mechanism. I can't think of any use for private class off the top of my head, but that doesn't mean there isn't one. Kevin N. On 5/21/13 2:39 AM, Cor wrote: Karl, One: why doesn't ActionScript 3 allow private classes? A: They are useless because they couldn't be used, I guess. You can use a Class within a public class which then would be private to that class it self. Two: why is writing public class a best practice if private class does not exist? Look a the variations with static etc. HTH Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
Again, I am shown the great generosity of this list. Much thanks Marco. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 21, 2013, at 2:12 PM, Karl DeSaulniers wrote: Thanks Marco. Got your email. Will check it when I get home tonight. Best, Karl Sent from losPhone On May 21, 2013, at 1:18 PM, Marco Terrinoni ma...@mularam.com wrote: Check your junk mail Karl, sent you a PM but may have got filtered Cheers Marco Terrinoni - Director MULARAM PRODUCTIONS web design // animation // illustration uk: +44 7876 652 643 e: ma...@mularam.com w: www.mularam.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: 21 May 2013 18:50 To: Flash Coders List Subject: Re: [Flashcoders] AS3 finally.. Oh well hot dog I can afford that! :) Thanks all. Karl Sent from losPhone On May 21, 2013, at 11:44 AM, mike g mike.ogr...@gmail.com wrote: $8.49 here: http://www.ebay.com/ctg/Essential-ActionScript-3-0-Colin-Moock-2007-Pa perback-/59066703 On Tue, May 21, 2013 at 9:02 PM, Matt S. mattsp...@gmail.com wrote: You can get Moock's book for $26 on Powells: http://www.powells.com/biblio/1-9780596526948-6 Its been out for a while now though, so I would hit your local used bookstore, I'm willing to bet there's a few copies out there, you can probably score it for $10 or something. Not that Moock doesn't deserve full-price for this invaluable resource of course! And whatever you pay, it's simply required reading if you're serious about AS3. .m On Mon, May 20, 2013 at 11:57 PM, Karl DeSaulniers k...@designdrumm.com wrote: Thank you John. Yes, I have already watched some really good tuts on gotoandlearn and plan to watch more when I start working on my project. My book is from lynda.com too. Going to invest in Moocks book as suggested earlier as well. Just need to gen some funds. :) Karl DeSaulniers Design Drumm http://designdrumm.com On May 20, 2013, at 10:30 PM, John R. Sweeney Jr. wrote: Or subscribe to http://www.lynda.com Excellent training tutorials on tons of software. Very in-depth, but you do pay for it. If you know AS2, check out www.gotoandlearn.com. Many free tutorials on specific tasks, but you'll see them working and their AS3 code, so you can start making the correlation between what is different in 2 versus 3. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On May 20, 2013, at 9:25 PM, Rick Hassen wrote: but you may want to consider getting a good AS3 book. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3336 / Virus Database: 3162/6341 - Release Date: 05/20/13 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
Quick two part question. One: why doesn't ActionScript 3 allow private classes? Two: why is writing public class a best practice if private class does not exist? I could not find an explination in the books I am studying so I thought I'd ask here. TIA. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 19, 2013, at 6:01 AM, mike g wrote: Just wondering, has Colin Moock put forward any thoughts re. Flash/Actionscript's future direction? On Sun, May 19, 2013 at 6:02 PM, Paul A. p...@ipauland.com wrote: On 19/05/2013 09:18, Hans Wichman wrote: Karl, no harm intended, but do yourself and us a favor and get something like Essential Actionscript 3 from Moock, it will save you lots and lots of unnecessary self inflicted punishment :). Excellent advice. Don't try and get to grips with the language via the forum. This is a gentler introduction: http://shop.oreilly.com/**product/0636920010401.dohttp://shop.oreilly.com/product/0636920010401.do Also http://www.adobe.com/devnet/**actionscript/learning.htmlhttp://www.adobe.com/devnet/actionscript/learning.html Good luck __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
Thank you John. Yes, I have already watched some really good tuts on gotoandlearn and plan to watch more when I start working on my project. My book is from lynda.com too. Going to invest in Moocks book as suggested earlier as well. Just need to gen some funds. :) Karl DeSaulniers Design Drumm http://designdrumm.com On May 20, 2013, at 10:30 PM, John R. Sweeney Jr. wrote: Or subscribe to http://www.lynda.com Excellent training tutorials on tons of software. Very in-depth, but you do pay for it. If you know AS2, check out www.gotoandlearn.com. Many free tutorials on specific tasks, but you'll see them working and their AS3 code, so you can start making the correlation between what is different in 2 versus 3. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On May 20, 2013, at 9:25 PM, Rick Hassen wrote: but you may want to consider getting a good AS3 book. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
Thank you Ktu. That is what I was looking for. Much thanks, Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 20, 2013, at 10:58 PM, Ktu wrote: you can have public class, internal class (limited to package), and you can make pseudo private classes by declaring a class in the same file as another class, but outside the package. the main reason you write 'public class' is because the _default_ is internal. if you simply say class MyClass {}it is treated as internal. On Mon, May 20, 2013 at 11:57 PM, Karl DeSaulniers k...@designdrumm.comwrote: Thank you John. Yes, I have already watched some really good tuts on gotoandlearn and plan to watch more when I start working on my project. My book is from lynda.com too. Going to invest in Moocks book as suggested earlier as well. Just need to gen some funds. :) Karl DeSaulniers Design Drumm http://designdrumm.com On May 20, 2013, at 10:30 PM, John R. Sweeney Jr. wrote: Or subscribe to http://www.lynda.com Excellent training tutorials on tons of software. Very in-depth, but you do pay for it. If you know AS2, check out www.gotoandlearn.com. Many free tutorials on specific tasks, but you'll see them working and their AS3 code, so you can start making the correlation between what is different in 2 versus 3. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On May 20, 2013, at 9:25 PM, Rick Hassen wrote: but you may want to consider getting a good AS3 book. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ktu; The information contained in this message may or may not be privileged and/or confidential. If you are NOT the intended recipient, congratulations, you got mail! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 finally..
In place of void? so like... function someFunc():Number { //return a number } function someFunc():String { //return a string } Karl DeSaulniers Design Drumm http://designdrumm.com On May 19, 2013, at 12:26 AM, John R. Sweeney Jr. wrote: Void was AS2 and wasn't really necessary. void is AS3 and since it uses strong typing, very necessary. void will not return anything. If you want back values (numeric) use Number (text) use String, etc. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On May 18, 2013, at 10:15 PM, Karl DeSaulniers wrote: My first question. What is the purpose of void versus Void? When do you use void and Void and when is it not needed or wise to use void on a function? I may have asked this a few years ago, but can not find any of the emails, so if its a duplicate I apologize. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 finally..
Hello fellow Flashers, Been a while. Ok, its time. I am now going to learn AS3 for real.. lol I know I know... please no comments from the peanut gallery. I am also making my first AS3 lesson an iPhone app. Whoo hoo! (Im a glutton for punishment I guess) So, I will have some more questions regarding that process here in the near future I am sure. My first question. What is the purpose of void versus Void? When do you use void and Void and when is it not needed or wise to use void on a function? I may have asked this a few years ago, but can not find any of the emails, so if its a duplicate I apologize. IE function someFunc():void { //do something } function someFunc():Void { //do something } function someFunc() { //do something } If I understand correctly, to use void, your function can not return any values? It can only manipulate things? I don't fully understand Void with a Cap V, so will need enlightenment. To have a function return a value with the return statement, void should be voided?? (sry. had to) If you want to answer directly, please, be my guest. If you want to send me somewhere to learn, by all means. I'll take what I can get. Hopefully my being a newbie and asking questions right now will fervor some lost zeal in some people and they will want to help me. :) (fingers crossed) Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS2: SWF Decompiler Recommendations
+1 Karl DeSaulniers Design Drumm http://designdrumm.com On May 17, 2013, at 4:34 PM, Rick Hassen wrote: I used Trillix a few years ago with AS3 and was impressed with it. Everything was there just like a normal flash file. http://www.flash-decompiler.com/ From: ross.sclaf...@gmail.com Subject: Re: [Flashcoders] AS2: SWF Decompiler Recommendations Date: Fri, 17 May 2013 17:20:23 -0400 To: j...@duber.com; flashcoders@chattyfig.figleaf.com CC: sothink swfdecompiler i do not envy you. Ross P. Sclafani design / technology / creative http://ross.sclafani.net http://www.twitter.com/rosssclafani http://www.linkedin.com/in/rosssclafani [347] 204.5714 let go of even your longest held beliefs, the only truth is in observation. On May 17, 2013, at 3:31 PM, Jim Duber j...@duber.com wrote: Greetings all, I'm writing to ask for recommendations with regard to SWF decompilers. I had several large projects on my stolen laptop that were not backed up. These are AS2 projects authored in Flash CS4, with lots of timeline scripts all over the place, including several Flash Media Server calls for recording audio data. Media assets are backed up, so I'm not so worried as much about that as I am in recovering all the code bits in somewhat of a logical manner. I've never had an occasion to use a swf decompiler (and hope never to HAVE TO again!). In the meantime, I'm hoping to get some solid advice from the list. Thanks very much, Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Stolen Laptop: Adobe Support Laughable
Which do you need? Mac or PC? I think I may still have a CS4 DMG for powerMac (pre Intel). Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 15, 2013, at 1:22 AM, Cédric Muller wrote: Yep :( But the Cloud thing is quite interesting (I would consider the upgrade). Making users captive in a creative eco system. Cedric Le 15 mai 2013 à 05:51, John R. Sweeney Jr. a écrit : If they won't help you, that's probably your best bet. Just get CS4 disk or the digital files (which are about 6 or 7 gig) and use your serial number. Sorry. :( John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On May 14, 2013, at 8:24 PM, Jim Duber wrote: Any better suggestions? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Adobe Flash future
This is probably a moot point, but being the platform flash is and its ability to manipulate objects and apply code to the interactions of the objects in an easy user friendly layout, it would seem that Adobe would look into enabling flash to pick if it used ActionScript or Javascript or even a jQuery port. Along with choosing a flash stage or a DOM stage. I for one would relish in the ability to use flash as a html creator, html5, DHTML or otherwise. Being able to layout HTML DOM elements the same way as a movieclip, or adding DHTML timelines inside a DIV and having flash export the files to make it work in every browser. That would be epic. Its not about the language or the file it exports, for me, Flash the application is just a superlative website creation tool. SWF or not. In the past flash came in and did what HTML could not. Ok, so you lead the pack for a while and they caught up. So now join the pack and take it to the next level. That's what Flash is/was about... t! he next level. 2¢ Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 14, 2013, at 4:55 AM, David Hunter wrote: I think the fact that this list is pretty inactive says it all. I'm freelancing at an agency right now who I make AIR apps for. I used to make a lot of them for a few years, but recently I think they are looking more and more at html5/js solutions. A few years ago I used to make Flash websites for them, but never any more; then I made AIR apps, and now that seems on the slide... it's a shame for all the reasons we already know. The only other work I get with Flash is the occasional banner ad! I'm sure there are still some niche areas for Flash, but largely it feels dead from where I sit. David David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 @DHDPIC On 10 May 2013 16:31, Kevin Newman capta...@unfocus.com wrote: That seems to be mostly about ASNext/AVMNext which has since been canned, and the developers moved not back to AS3, but to webkit and other web tech. Kevin N. On 5/10/13 7:20 AM, John McCormack wrote: Alex Harui at Adobe had these interesting things to say: http://tech.groups.yahoo.com/**group/flexcoders/message/**165517http://tech.groups.yahoo.com/group/flexcoders/message/165517 John __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadvar call to asp fail
Well remember. It could be your users connection, computer or browser that isn't working properly also. Do you have error checks where the data is being send and received? When the database is read, updated? Or when a certain part of the page loads? You can block entry yourself notifying the user of a wrong browser or blocked connection like through a proxy server. Etc. If not, set those up and have the results silently write to a log file of your own that you can check or even set up the error to be emailed silently to yourself when it happens. I've done this in PHP, not ASP but I'm thinking that is the most basic stuff so you could probably find resources or example code on the net. Best, Karl Sent from losPhone On Jan 29, 2013, at 12:50 PM, Rodrigo Augusto Guerra rodr...@alumni.org.br wrote: hi all, I'm having some problems with a flash+asp app. it´s just a 30 questions quiz that EACH answer given by the user recorded in a sql table(tb1), and the sum of the corrected questions on a 2nd table (tb2). the code: I call the asp page using the following code: lvQuizSnd.sendAndLoad(tempPath + asp/gravar.asp,lvQuizRec,POST); lvQuizRec.onLoad = function(success) { if(success){ //page accessed ok }else{ _root.reportError(rodr...@aaa.com,erro acessando asp, strDadosEnviados); } } the problem: I have some users that answers all the 30 questions, but on tb1 (the one that should record all the answrrs) I see LESS records than 30, it may be 10, 20 or 2. And I know that the user answered all the questions because i have his total score (on tb2) that let´s say is 30. he got all right, so I MUST have 30 records on tb1, and THIS IS NOT HAPPENING I wasnt able to simulate the error. everytime I try to answr I get all the answers recorded. I want some hints on WHY this is hapening. if it's a problem CONNECTING/ACESSING the ASP page as the code implies what could it be? - too many connections at the same time? - drop packages? - timeout? *what* could I check on server (maybe a log) to see if a request to a asp page is not attended, dropped, blocked my crap isp is not helping and it just say that the server is normal, which obviously is NOT. Any help/insight will be much appreciated -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] 3D engine for dynamic text
Looks like its mature enough. It exports ActionScript for you at least. Probably a really good option if your into game development. Amazing graphic engine IMO. Only problem I see is the fact that your swf will play a little slower than a native Unity export. But if its giving you the code that runs the game in ActionScript, you may be able to tweak the code and optimize it to run better. Plus if you find out how to optimize their code, they may pay you for that knowledge since that is what they are working on as well. Just a thought.. :) http://docs.unity3d.com/Documentation/Manual/flash-gettingstarted.html Also, @Jason For your other thread, they have a conference of their own. Don't know if its something of interest, but you can read up and decide that one yourself. http://unity3d.com/unite/unite2013 Best, Karl On Jan 14, 2013, at 11:37 PM, Claudio M. E. Bastos Iorio wrote: I've did it. You have a Flash exporter in Unity. Is not as mature as you would expect, but it works. However, take into account that you'll need to avoid using certain Unity classes, etc if you target Flash. Definitely worth it, but also consider the learning curve as well. Claudio M. E. Bastos Iorio http://www.blumersolutions.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Monday, January 14, 2013 11:51 PM To: Flash Coders List Subject: Re: [Flashcoders] 3D engine for dynamic text Has anyone tried Unity 3D? Do you know if it works with flash. I have that one and was wanting to try it out, just hadn't yet. Worth the time or no? There is also Swift 3D which has been updated recently (I believe). Swift 3D works with vectors well as far as I could tell. Best, Karl On Jan 14, 2013, at 3:50 PM, Randall Tinfow wrote: Know little about 3D for AS3, so I'm struggling to decide where to focus my efforts. What's the recommendation for a library that will build a 3D model and animate in realtime from input text? Papervision3D Away3D Sandy3D Alternativa3D? Hopefully the learning curve will not bury me. Thanks, Randy Tinfow IMAGE PLANT ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] 3D engine for dynamic text
Has anyone tried Unity 3D? Do you know if it works with flash. I have that one and was wanting to try it out, just hadn't yet. Worth the time or no? There is also Swift 3D which has been updated recently (I believe). Swift 3D works with vectors well as far as I could tell. Best, Karl On Jan 14, 2013, at 3:50 PM, Randall Tinfow wrote: Know little about 3D for AS3, so I'm struggling to decide where to focus my efforts. What's the recommendation for a library that will build a 3D model and animate in realtime from input text? Papervision3D Away3D Sandy3D Alternativa3D? Hopefully the learning curve will not bury me. Thanks, Randy Tinfow IMAGE PLANT ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] pull in html section to Flash
Hi Natalia, Well I know of an AS2 way of doing it, but not AS3. Someone may be able to shed some light on that for you. You can get data from a database with a server side language like PHP or ASP and send the data to flash. Again, I am rusty at AS3. I have successfully done such with AS2 so I know it can be done. I even think that it was as easy as an echo() from PHP back to my flash site with a loadVariable() function in flash. But dont quote me. Has been a little while. :) Plenty of google questions on this. google.. flash AS3 to PHP example PHP to flash AS3 example Might yield just what your looking for. Substitute ASP for PHP if that is your server language. HTH, Best, Karl On Nov 21, 2012, at 1:44 AM, natalia Vikhtinskaya wrote: Thank you Karl Some more questions: 1. What Flash function can pull in basic html to flash? 2. And what Flash function can get access to the database? I suppose that can not be done directly from flash. And how to manage that dynamically with new url each time? 2012/11/21 Karl DeSaulniers k...@designdrumm.com: Hi Natalia, Yes you can, but it is the most basic of html. No DIVs for example. From the link you provided, that html would not work inside flash I don't think. If possible, get access to the database the comments are stored on and filter the data to your flash piece. HTH, Best, Karl On Nov 21, 2012, at 12:55 AM, natalia Vikhtinskaya wrote: Hi to all I need advice. Is that possible to build a Flash/AS3 file that can pull in HTML data from a website? The site has a comment section (similar to this http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need that section to display, in real time, in the Flash file. We also have the unique url of the site. It changes on every page reload. What possible and not possible for flash in this situation and what way I can use? Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] pull in html section to Flash
Hi Natalia, Yes you can, but it is the most basic of html. No DIVs for example. From the link you provided, that html would not work inside flash I don't think. If possible, get access to the database the comments are stored on and filter the data to your flash piece. HTH, Best, Karl On Nov 21, 2012, at 12:55 AM, natalia Vikhtinskaya wrote: Hi to all I need advice. Is that possible to build a Flash/AS3 file that can pull in HTML data from a website? The site has a comment section (similar to this http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need that section to display, in real time, in the Flash file. We also have the unique url of the site. It changes on every page reload. What possible and not possible for flash in this situation and what way I can use? Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Game physics programming needed.
:O On Oct 28, 2012, at 11:03 PM, Bryan Thompson wrote: Oren, it's so simple. There is a link at the bottom of every message you get. Click this: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders and use your common sense to figure out how to unsubscribe. It's just not that difficult. If you still can't figure it out, consider giving up computing and look into basket weaving. Bryan -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Oren B. Sent: Sunday, October 28, 2012 6:43 PM To: Flash Coders List Subject: Re: [Flashcoders] Game physics programming needed. ok, its getting really annoying. i have unsubscribed for 3 times from this mailing list. please remove me for good or ill have to trash your sessions with silverlight appraisals. :) thanks, Oren ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
Yeah the css thing got me for a while. $('#myElement').css('top', '0px'); $('#myElement').css('left', '0px'); or $('#myElement').css('top', '0px').css('left', '0px'); or $('#myElement').css({'top':'100px', 'left': '0px'}); Does the same thing. :-/ Karl On Oct 26, 2012, at 8:21 AM, David Hunter wrote: I'm on my first serious project using js. Some of it is pretty neat and simple and all the AS3 knowledge makes grabbing and treating elements (for animation and what not) very easy. I would definitely recommend using jQuery, and I am using jQuery Transit for some animations. However some of it baffles me, mainly stuff with CSS and positioning elements (which I thought I was OK with) and has added a lot of un-chargeable time. But in the long run I'm sure we will all adjust. I'd really like to learn to approach javascript from a class-based approach, so I must check out some of the links posted on this thread. Good luck to all making the transition! David On 25 October 2012 20:23, Karl DeSaulniers k...@designdrumm.com wrote: jQuery I think you will find is a very friendly language. Once you get into jQuery UI and jQuery animation, I think that is when your wheels will churn most. Best of luck! Karl On Oct 25, 2012, at 10:35 AM, Merrill, Jason wrote: I'm about to start my first HTML5/CSS3/Javascript job - wish me luck! :) Going through a lot of courses on Lynda.com - completed some Javascript courses and jQuery, now enjoying Lee Brimlow's HTML 5 For Flash Developers course right now. Good stuff - I wish Javascript was a more advanced language but it has some pretty cool features. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-bounces@chattyfig.**figleaf.comflashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-bounces@**chattyfig.figleaf.comflashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Karl DeSaulniers Sent: Thursday, October 25, 2012 9:59 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Yay! I just completed my first AS3 job Go Me! :P Best, Karl On Oct 25, 2012, at 8:48 AM, John R. Sweeney Jr. wrote: And we'll be there again, I'm sure... :) John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 25, 2012, at 3:15 AM, Paul A. wrote: No worries - we've all been there. __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders --**--** -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/**emaildisclaimerhttp://www.bankofamerica.com
Re: [Flashcoders] AS3
Well, got an update on the progress. First off, thank you all for your participation in helping me with my problem. Unfortunately this was a case of epic fail on my part. movieClipOverButtonitis was the disease. Seems the frame MC I had over the scene was blocking my button, so the code I wrote originally, now works. Instead I took the hole the frame made for the scene to show through. Filled it with red, deleted the frame and used the red box to mask the scene. Same effect, just no movieClip in the way... _ So if I wasted anyones time with this question, I deeply apologize. Thanks again people... YOU ROCK! Best Karl On Oct 24, 2012, at 5:43 PM, Karl DeSaulniers wrote: That didn't fix my problem. :( I got all excited too.. lol Karl On Oct 24, 2012, at 5:38 PM, Karl DeSaulniers wrote: I did start with a AS2 FLA and switched to AS3. So your saying the IDE does not add the appropriate stuff when you just convert? WTF! Good to know Kevin. Thanks Best, Karl On Oct 24, 2012, at 4:25 PM, Kevin Newman wrote: When I first started in AS3, there were two blocks that caught me up a lot. I started from an older AS2 FLA and then converted to AS3 - that was the cause of the problem. If you do that, you end up with an AS3 fla that doesn't have the right settings in the AS3 Properties panel. You won't have automatically declare stage instance set, or strict mode (you want both). Also, to get actual line numbers with errors, you'll need to check allow debugging in publish settings - I know it sounds like it's a permissions thing, but it really enables debugging symbols to be embedded in the swf, so that when you get an error, you'll actually get a useful error number with it. Good luck! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
Yay! I just completed my first AS3 job Go Me! :P Best, Karl On Oct 25, 2012, at 8:48 AM, John R. Sweeney Jr. wrote: And we'll be there again, I'm sure… :) John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 25, 2012, at 3:15 AM, Paul A. wrote: No worries - we've all been there. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
jQuery I think you will find is a very friendly language. Once you get into jQuery UI and jQuery animation, I think that is when your wheels will churn most. Best of luck! Karl On Oct 25, 2012, at 10:35 AM, Merrill, Jason wrote: I'm about to start my first HTML5/CSS3/Javascript job - wish me luck! :) Going through a lot of courses on Lynda.com - completed some Javascript courses and jQuery, now enjoying Lee Brimlow's HTML 5 For Flash Developers course right now. Good stuff - I wish Javascript was a more advanced language but it has some pretty cool features. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Karl DeSaulniers Sent: Thursday, October 25, 2012 9:59 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Yay! I just completed my first AS3 job Go Me! :P Best, Karl On Oct 25, 2012, at 8:48 AM, John R. Sweeney Jr. wrote: And we'll be there again, I'm sure... :) John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 25, 2012, at 3:15 AM, Paul A. wrote: No worries - we've all been there. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3
Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple?? What the heck am I doing wrong??? Also, how do you use just a button instead of a mc? I tried using just a button and it wouldn't even switch to the over state that is inside the button!!? AS2 is just so much more simple... sigh* TIA, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
Thanks Paul.. I will try that. On Oct 24, 2012, at 7:33 AM, Paul A. wrote: Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple?? What the heck am I doing wrong??? Also, how do you use just a button instead of a mc? I tried using just a button and it wouldn't even switch to the over state that is inside the button!!? AS2 is just so much more simple... sigh* TIA, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
Your not the only one who has said that about AS2.. lol I know nothing about any AS3 classes. Frankly they confuse me with the whole extend and static and public and aa! Makes my brain hurt just thinking about how I MUST learn them or fade into AS2 history. Karl On Oct 24, 2012, at 8:02 AM, Hans Wichman wrote: Hi Karl, jus keep breathin;), this will pass and you'll never go back to as2 again;). Anyway on subject, have you tried out the standard SimpleButton class? If it doesnt fit your need, why not, maybe we can help with that, but that class should work for most simple cases. In addition, do you still use the Flash IDE? Since as3 offers so many options, here is just one of the possible ones that might fit your workflow: - create a basic button class, put all the buttonMode, handCursor etc stuff in there - add the eventlistener mumbojumbo in there as well, in short everything to create a button - if you want to implement the functionality for different states such as _up, _down etc go ahead and do so Now create a movieclip with timeline states _up, _down etc, and specify your button class as base class for this clip: -voila a button, you can do this with as many buttons as you like Of course if you'd rather keep the assets external that is possible as well, but it might require a slightly different setup. HTH, JC On 24-10-2012 14:33, Paul A. wrote: Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple?? What the heck am I doing wrong??? Also, how do you use just a button instead of a mc? I tried using just a button and it wouldn't even switch to the over state that is inside the button!!? AS2 is just so much more simple... sigh* TIA, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
OH? What is the best coding standards way? I used an annon function because button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); Does not work. Karl On Oct 24, 2012, at 8:43 AM, Merrill, Jason wrote: function() { gotoAndStop(divinedivers); }); Yeah, this is weird and unnecessary. Anonymous functions are recommended against in AS3. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 8:33 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple?? What the heck am I doing wrong??? Also, how do you use just a button instead of a mc? I tried using just a button and it wouldn't even switch to the over state that is inside the button!!? AS2 is just so much more simple... sigh* TIA, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have
Re: [Flashcoders] AS3
I am glad I could get the blood stirring in this list again. :P Karl On Oct 24, 2012, at 10:02 AM, Merrill, Jason wrote: Right, it's cool, we're on the same page, my only point is there is no functional reason to use them (no pun intended) and in my personal opinion, they have more potential to introduce problems. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 10:34 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Jason, I wasn't arguing anything except that IMHO using them makes code more readable in some circumstances. It's not an either/or. We can agree to differ. On 24/10/2012 15:23, Merrill, Jason wrote: That still isn't an argument to use them in my opinion, personally I think the code is much more convoluted that way. Your argument is essentially it's a preference in coding style, not that there are situations that specifically call for their use. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 10:19 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 On 24/10/2012 15:08, Merrill, Jason wrote: Ok, what's a good case to use them? Just curious, I have never found a situation where they were warranted. Sometimes (depending on what your buttons do), it seems rather artificial to have to fabricate a stand-alone function to handle an event when the action required is very simple. I used to always create named event handler functions and realised I was adopting some fixed pattern that was actually obfuscating my code unnecessarily in some situations. The OP was using an event handler simply to control the timeline and manufacturing a named function to do this very specific thing seems unnecessary. With an inline function you can see straight off what happens when the event is handled, without looking up the handler function to see what it does. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 10:07 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 On 24/10/2012 14:43, Merrill, Jason wrote: function() { gotoAndStop(divinedivers); }); Yeah, this is weird and unnecessary. Anonymous functions are recommended against in AS3. Really? I used to be of the same opinion, but certainly not as a blanket rule. It all depends. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 8:33 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers
Re: [Flashcoders] AS3
Thank you Cor! The buttons are MCs placed on the stage. At first they were Buttons, but when they wouldn't change even the states within the Button, so I converted them to MCs. Also, what does the , false, 0, true); do? Does it have to do with removing the listener? uhg im not going to sleep well tonight. Being that this is a clients FLA, I am not able to email my FLA. Will try your suggestions and let you know. Thank you! Best, Karl On Oct 24, 2012, at 10:51 AM, Cor wrote: Hi Karl, Hahahaha, AS3 is very much easier then AS2. But can be a little tricky to grasp when you are switching. Believe me, once you see the structure, you don't understand that AS2 has ever existed. First the Q: How do you use a button instead of a MC. There is no difference, they are both Objects with each some specific properties. The button is in fact a movieclip with just a timeline of 4 states. I recommend never to use Flash Components(!). Create youre own button or movieclip. When you create a graphic and transform (F8) it into a Symbol you can choose to set it as a MC or Button. I prefer MC always and write my own class to deal with the states. I will send you some examples in a following mail. In this mail I will address your code problem as is. I always look at code to see if something is redundant. So if there is ANYTHING I discover is present more then once, I create something so there is only 1 of it, and reuse that as often as needed. In your case I can't see if the buttons are put on stage phisically or with code. I always use code only, my stage stays empty and I have no frames on the timeline! My guess is that in this case the buttons are already on the stage, so I will set the code as follows: //put all the button names in this array var aButtons:Array = [ button1_btn, button2_btn]; var idx:int = -1; //no button selected yet for (var i:uint = 0; i aButtons.length; ++i){ aButtons[i].buttonMode = true; aButtons[i]..mouseChildren = false; aButtons[i].addEventListener(MouseEvent.CLICK, btnClickHandler, false, 0, true); aButtons[i].addEventListener(MouseEvent.ROLL_OVER, btnOverHandler, false, 0, true); aButtons[i].addEventListener(MouseEvent.ROLL_OUT, btnOutHandler, false, 0, true); } function btnClickHandler(e:MouseEvent):void{ //get the position in the array of the clicked button idx = aButtons.indexof(e.target); switch (idx) { case 0: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 1: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function btnOverHandler(e:MouseEvent):void { //get the position in the array of the clicked button idx = aButtons.indexof(e.target); //RENAME THE FRAME TO 'over' !! aButtons[idx].gotoAndStop(over); //toggle this button MC frame } function btnOutHandler(e:MouseEvent):void { //get the position in the array of the clicked button idx = aButtons.indexof(e.target); //RENAME THE FRAME TO 'out' !! aButtons[idx].gotoAndStop(out); //toggle this button MC frame } I typed this instantly in this mail, so watch for a possible typo? I go to dinner now, and create and send the promised examples after that. If you have problems with the code above, please tell me. For simplicity, I suggest mailing a FLA to eachother. regards Cor Karl DeSaulniers k...@designdrumm.com schreef: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple
Re: [Flashcoders] AS3
I've got Todd Perkins book But project is due today, so no time to read. Must dive head first into this empty pool. :P Karl On Oct 24, 2012, at 2:58 PM, Hans Wichman wrote: Hi Karl, when you are starting with as3: whatever works :)). Basically both will work (anon and nonanon (double wow)), but anonymous is harder (read impossible) to remove. So if you create a view that exists throughout the lifetime of the app, with buttons that do the same, either way will work. If you are creating and removing a lot of buttons, I'd skip anonymous, and nicely removely the listeners when done. button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); will not work because you are registering the result of the toggleB1(1) call, which in most cases will not be a function reference. What you wanted to do is something like the old as2 proxy or delegate call, which you can recreate in as3 and would result in something like: button1_btn.addEventListener(MouseEvent.ROLL_OUT, Proxy.create (toggleB1, [1])); Thing is, as3 is going to pass event objects as arguments as well, so this is getting more complicated than its worth real fast. But I would do myself a favor and pick up actionscript 3 essentials and actionscript 3 cookbook. Doesn't take too long to get through them and saves you a lot and a lt of frustration :) hth jc On 24-10-2012 21:49, Karl DeSaulniers wrote: OH? What is the best coding standards way? I used an annon function because button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); Does not work. Karl On Oct 24, 2012, at 8:43 AM, Merrill, Jason wrote: function() { gotoAndStop(divinedivers); }); Yeah, this is weird and unnecessary. Anonymous functions are recommended against in AS3. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 8:33 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple?? What the heck am I doing wrong??? Also, how do you use just a button instead of a mc? I tried using just a button and it wouldn't even switch to the over state that is inside the button!!? AS2 is just so much more simple... sigh* TIA, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you
Re: [Flashcoders] AS3
So will this work? divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { this.gotoAndStop(OVER);}); I mean. Will this = divers_btn? or do I HAVE to specify divers_btn.gotoAndStop()? After all I am applying the listener to it. @jason Not that I am going to continue with annon functions, just currious. Basically, I am trying to set up the listener for the buttons to be generic for the buttons hover states. Then specify data for the click state per button. So if button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); doesnt work, how do I specify which frame to move to. Trying to set up a toggle if you will. I DONT want to have to create a function for EVERY state for EVERY button I have. That just seems stupid to me to have to do. Very bloated IMO. Best, Karl On Oct 24, 2012, at 2:58 PM, Hans Wichman wrote: Hi Karl, when you are starting with as3: whatever works :)). Basically both will work (anon and nonanon (double wow)), but anonymous is harder (read impossible) to remove. So if you create a view that exists throughout the lifetime of the app, with buttons that do the same, either way will work. If you are creating and removing a lot of buttons, I'd skip anonymous, and nicely removely the listeners when done. button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); will not work because you are registering the result of the toggleB1(1) call, which in most cases will not be a function reference. What you wanted to do is something like the old as2 proxy or delegate call, which you can recreate in as3 and would result in something like: button1_btn.addEventListener(MouseEvent.ROLL_OUT, Proxy.create (toggleB1, [1])); Thing is, as3 is going to pass event objects as arguments as well, so this is getting more complicated than its worth real fast. But I would do myself a favor and pick up actionscript 3 essentials and actionscript 3 cookbook. Doesn't take too long to get through them and saves you a lot and a lt of frustration :) hth jc On 24-10-2012 21:49, Karl DeSaulniers wrote: OH? What is the best coding standards way? I used an annon function because button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); Does not work. Karl On Oct 24, 2012, at 8:43 AM, Merrill, Jason wrote: function() { gotoAndStop(divinedivers); }); Yeah, this is weird and unnecessary. Anonymous functions are recommended against in AS3. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 8:33 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple?? What the heck am I doing wrong??? Also, how do you use just a button instead of a mc? I tried using just a button and it wouldn't even switch to the over state that is inside the button!!? AS2 is just so much more
Re: [Flashcoders] AS3
Thanks Henrik, Well for this, there are two buttons on stage. When you hover over one it makes a message appear, if the other another message appears. So if I dont use those, your saying that when I roll out, the listener is removed automatically? I dont want my project to make peoples computer fans start freaking out because of unremoved listeners. lol Best, Karl On Oct 24, 2012, at 3:11 PM, Henrik Andersson wrote: Karl DeSaulniers skriver: Thank you Cor! The buttons are MCs placed on the stage. At first they were Buttons, but when they wouldn't change even the states within the Button, so I converted them to MCs. Also, what does the , false, 0, true); do? Does it have to do with removing the listener? uhg im not going to sleep well tonight. It doesn't do anything in practice. It only matters if the listened to object is alive when the source of the listener isn't. Which almost never happens unless you are listening to the stage. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
That kinda made sense. Will have to read about 5 more times though.. lol :P thanks Henrik. Time to go vote. I will be back later to see if I can pull an elephant out my WHOO HOO. Best, Karl On Oct 24, 2012, at 3:32 PM, Henrik Andersson wrote: Karl DeSaulniers skriver: Thanks Henrik, Well for this, there are two buttons on stage. When you hover over one it makes a message appear, if the other another message appears. So if I dont use those, your saying that when I roll out, the listener is removed automatically? I am saying that the last argument to addEventListener becomes irrelevant. the argument only matters if the listener function has captured a reference to its original scope (shown as savedThis in the debugger) (the class instance it came from) AND the original scope has no more live references to it AND the listened to object is live. This is irrelevant, since in nearly all cases the original scope was the one who created the listened to object in the first place and as such both will die at the same time. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
Ok, I tried suggestions and things are still not working. The hand cursor doesn't even show. Here is the set up Scene 2 - frame 1 : Main MC - Scene2MC frame 96: Layer 1 : (Actions were working on) Layer 2: button1_btn Layer 3: button2_btn with the way I am referencing button1_btn and button2_btn, could it be that they are not recieving the scope? Do I need to point them like this.Scene2MC.button1_btn.addListener(... I thought not, because the actions and the button are inside Scene2MC I may just have to pass on this job. I cant even get buttons to work.. lol Best, Karl On Oct 24, 2012, at 3:13 PM, Karl DeSaulniers wrote: So will this work? divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { this.gotoAndStop(OVER);}); I mean. Will this = divers_btn? or do I HAVE to specify divers_btn.gotoAndStop()? After all I am applying the listener to it. @jason Not that I am going to continue with annon functions, just currious. Basically, I am trying to set up the listener for the buttons to be generic for the buttons hover states. Then specify data for the click state per button. So if button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); doesnt work, how do I specify which frame to move to. Trying to set up a toggle if you will. I DONT want to have to create a function for EVERY state for EVERY button I have. That just seems stupid to me to have to do. Very bloated IMO. Best, Karl On Oct 24, 2012, at 2:58 PM, Hans Wichman wrote: Hi Karl, when you are starting with as3: whatever works :)). Basically both will work (anon and nonanon (double wow)), but anonymous is harder (read impossible) to remove. So if you create a view that exists throughout the lifetime of the app, with buttons that do the same, either way will work. If you are creating and removing a lot of buttons, I'd skip anonymous, and nicely removely the listeners when done. button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); will not work because you are registering the result of the toggleB1(1) call, which in most cases will not be a function reference. What you wanted to do is something like the old as2 proxy or delegate call, which you can recreate in as3 and would result in something like: button1_btn.addEventListener(MouseEvent.ROLL_OUT, Proxy.create (toggleB1, [1])); Thing is, as3 is going to pass event objects as arguments as well, so this is getting more complicated than its worth real fast. But I would do myself a favor and pick up actionscript 3 essentials and actionscript 3 cookbook. Doesn't take too long to get through them and saves you a lot and a lt of frustration :) hth jc On 24-10-2012 21:49, Karl DeSaulniers wrote: OH? What is the best coding standards way? I used an annon function because button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); Does not work. Karl On Oct 24, 2012, at 8:43 AM, Merrill, Jason wrote: function() { gotoAndStop(divinedivers); }); Yeah, this is weird and unnecessary. Anonymous functions are recommended against in AS3. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com ] On Behalf Of Paul A. Sent: Wednesday, October 24, 2012 8:33 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener
Re: [Flashcoders] AS3
Already have Javascript and jQuery under belt. (well mostly) This job is primarily AS3 so I thought I'd give it a try. Karl On Oct 24, 2012, at 3:35 PM, Ross P. Sclafani wrote: if you were writing as2 without extending classes etc, why arent you just working in JS, its the new hot chick on the block, afterall... On Oct 24, 2012, at 3:45 PM, Karl DeSaulniers k...@designdrumm.com wrote: Your not the only one who has said that about AS2.. lol I know nothing about any AS3 classes. Frankly they confuse me with the whole extend and static and public and aa! Makes my brain hurt just thinking about how I MUST learn them or fade into AS2 history. Karl On Oct 24, 2012, at 8:02 AM, Hans Wichman wrote: Hi Karl, jus keep breathin;), this will pass and you'll never go back to as2 again;). Anyway on subject, have you tried out the standard SimpleButton class? If it doesnt fit your need, why not, maybe we can help with that, but that class should work for most simple cases. In addition, do you still use the Flash IDE? Since as3 offers so many options, here is just one of the possible ones that might fit your workflow: - create a basic button class, put all the buttonMode, handCursor etc stuff in there - add the eventlistener mumbojumbo in there as well, in short everything to create a button - if you want to implement the functionality for different states such as _up, _down etc go ahead and do so Now create a movieclip with timeline states _up, _down etc, and specify your button class as base class for this clip: -voila a button, you can do this with as many buttons as you like Of course if you'd rather keep the assets external that is possible as well, but it might require a slightly different setup. HTH, JC On 24-10-2012 14:33, Paul A. wrote: Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); }); divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { divers_btn.gotoAndStop(OVER);}); .. Paul On 24/10/2012 12:39, Karl DeSaulniers wrote: Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true; button2_btn.buttonMode = true; button1_btn.useHandCursor = true; button2_btn.useHandCursor = true; button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; button1_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(1); }); button2_btn.addEventListener(MouseEvent.CLICK, function() { changeSelect(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB1(2); }); button2_btn.addEventListener(MouseEvent.ROLL_OVER, function() { toggleB2(2); }); button1_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB1(1); }); button2_btn.addEventListener(MouseEvent.ROLL_OUT, function() { toggleB2(1); }); function changeSelect(p):void { switch (p) { case 1: this.gotoAndStop(divinedivers); //goto frame divinedivers in this MC break; case 2: this.gotoAndStop(scubadudes); //got frame scubadudes in this MC break; } } function toggleB1(f):void { button1_btn.gotoAndStop(f); //toggle this button MC frame } function toggleB2(f):void { button2_btn.gotoAndStop(f); //toggle this button MC frame } Why does AS3 have to make things so difficult for something so simple?? What the heck am I doing wrong??? Also, how do you use just a button instead of a mc? I tried using just a button and it wouldn't even switch to the over state that is inside the button!!? AS2 is just so much more simple... sigh* TIA, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm
Re: [Flashcoders] AS3
I did start with a AS2 FLA and switched to AS3. So your saying the IDE does not add the appropriate stuff when you just convert? WTF! Good to know Kevin. Thanks Best, Karl On Oct 24, 2012, at 4:25 PM, Kevin Newman wrote: When I first started in AS3, there were two blocks that caught me up a lot. I started from an older AS2 FLA and then converted to AS3 - that was the cause of the problem. If you do that, you end up with an AS3 fla that doesn't have the right settings in the AS3 Properties panel. You won't have automatically declare stage instance set, or strict mode (you want both). Also, to get actual line numbers with errors, you'll need to check allow debugging in publish settings - I know it sounds like it's a permissions thing, but it really enables debugging symbols to be embedded in the swf, so that when you get an error, you'll actually get a useful error number with it. Good luck! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3
That didn't fix my problem. :( I got all excited too.. lol Karl On Oct 24, 2012, at 5:38 PM, Karl DeSaulniers wrote: I did start with a AS2 FLA and switched to AS3. So your saying the IDE does not add the appropriate stuff when you just convert? WTF! Good to know Kevin. Thanks Best, Karl On Oct 24, 2012, at 4:25 PM, Kevin Newman wrote: When I first started in AS3, there were two blocks that caught me up a lot. I started from an older AS2 FLA and then converted to AS3 - that was the cause of the problem. If you do that, you end up with an AS3 fla that doesn't have the right settings in the AS3 Properties panel. You won't have automatically declare stage instance set, or strict mode (you want both). Also, to get actual line numbers with errors, you'll need to check allow debugging in publish settings - I know it sounds like it's a permissions thing, but it really enables debugging symbols to be embedded in the swf, so that when you get an error, you'll actually get a useful error number with it. Good luck! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Actionscript lives on.
Flash is not dead. It's hibernating. I for one don't see why everyone went with Apples view. Flash works on almost all other phone devices doesn't it? I do agree with Jobs, that flash pieces (not Flash itself) can be an inferior product, but this I believe was a problem that lay in the flash programers hands. With SOME of the fault in the way flash handles things. So yeah +1 on the money grab idea. As far as vector. I thought the advantage to vector was because it utilized math algorithms instead of pixel/raster and when it comes to processing, pure math is quicker. Karl Sent from losPhone On Sep 18, 2012, at 4:48 AM, Cédric Muller flashco...@benga.li wrote: Jon Bradley wrote : The problem of flash for mobile is as much about politics and protecting the Apple appstore than anything else -it seems to me that flash was a threat by allowing apps to be produced bypassing Apples appstore. It is the problem of HTML5 too, since all these may happen in the browser, they all bypass and gracefully skip the appstore model. I think the problem is the AppStore, and not the technology(ies). And you are right, it has much to do with politics and moneymaking. Cedric___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Actionscript lives on.
I personally think that if Flash wants to compete with the likes of HTML 5 and jQuery, it needs to step out of the plugin area. Make it an EMCA viable script language. Like Actionscript becoming Javascripts competitor. Make it so Actionscript can control and manipulate DOM. Just sayin.. Karl PS: I don't think the original topic was vectors anyway, so your good. :) On Sep 18, 2012, at 5:26 AM, Cédric Muller wrote: Karl DeSaulniers wrote : Flash is not dead. It's hibernating. . With SOME of the fault in the way flash handles things. Adobe was a little confusing on that one. It somehow proved it lacked of vision, and failed to capitalize the 'money grabbing' process that was needed for Mankind (sarcasm). And since then, it looks like Flash is living the Director's fate (and maybe the Director's Cut too ...). Flash is still very good, as a runtime. As are a lot of runtimes. What we observe is that browsers are runtimes, and that we can do many things with them that don't justify Flash use anymore (as it was always the case, take the usability gurus .. err darketers ). So all in all, Flash Player is still a strong runtime that lets developpers leverage some amazing things with it. Moreover, this AppStore storm got rid of a lot of bad Flash use (indirectly, a lot of bad applications with bad usability principles can be found on the iOS ecosystem from now on). Flash is now considered as a technology, and no more as a new paradigm (which is what the iOS AppStore is currently going through). 15 minutes of fame. Cedric. Sorry for the OT, as I don't really anything to add regarding vectors vs bitmaps ... though I 'plus' the view that it truly depends on the utilization: sometimes bitmaps are better, sometimes vectors are better: know your tech and make experiments in order to test in real situations. (Though I was amazingly amazed by the way Flash Player simply merges with Retina displays, for example. Vectors power!) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Actionscript lives on.
Well in my understanding from starting with Flash 5. HTML and javascript could not do what Flash was doing and that made it all the rage. Now that HTML (so to speak) has caught up, I think Flash would do a great service and join in if you will. Just because they turn you down, doesn't mean you don't try again. I think that Adobe could make Actionscript better than Javascript and jQuery AND you would still be able to use the Flash program to create things like you did for the plugin phase of Flash. Just this time it exports HTML instead of SWF. I think the power of Actionscript would make a superb DOM manipulator, especially for its OOP capabilities. But alas, you are probably right. I just wanted, more so, to get it off my chest... If I had the money to buy Flash from Adobe, that is what I would do with it. It makes sense to me. Its probably what Flash should have done in the first place instead of creating a plugin env. Best, Karl On Sep 18, 2012, at 5:44 AM, Paul Andrews wrote: The web standards comittee already squashed Adobe's attempt to get ecmascript 2 adopted as a browser standard - making actionscript and javascript compatible. Adobe is never going to try and make Flash compete with javascript as a DOM manipulator. Adobe is going to concentrate on markets where flash has an advantage. Paul On 18/09/2012 11:35, Karl DeSaulniers wrote: I personally think that if Flash wants to compete with the likes of HTML 5 and jQuery, it needs to step out of the plugin area. Make it an EMCA viable script language. Like Actionscript becoming Javascripts competitor. Make it so Actionscript can control and manipulate DOM. Just sayin.. Karl PS: I don't think the original topic was vectors anyway, so your good. :) On Sep 18, 2012, at 5:26 AM, Cédric Muller wrote: Karl DeSaulniers wrote : Flash is not dead. It's hibernating. . With SOME of the fault in the way flash handles things. Adobe was a little confusing on that one. It somehow proved it lacked of vision, and failed to capitalize the 'money grabbing' process that was needed for Mankind (sarcasm). And since then, it looks like Flash is living the Director's fate (and maybe the Director's Cut too ...). Flash is still very good, as a runtime. As are a lot of runtimes. What we observe is that browsers are runtimes, and that we can do many things with them that don't justify Flash use anymore (as it was always the case, take the usability gurus .. err darketers ). So all in all, Flash Player is still a strong runtime that lets developpers leverage some amazing things with it. Moreover, this AppStore storm got rid of a lot of bad Flash use (indirectly, a lot of bad applications with bad usability principles can be found on the iOS ecosystem from now on). Flash is now considered as a technology, and no more as a new paradigm (which is what the iOS AppStore is currently going through). 15 minutes of fame. Cedric. Sorry for the OT, as I don't really anything to add regarding vectors vs bitmaps ... though I 'plus' the view that it truly depends on the utilization: sometimes bitmaps are better, sometimes vectors are better: know your tech and make experiments in order to test in real situations. (Though I was amazingly amazed by the way Flash Player simply merges with Retina displays, for example. Vectors power!) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Actionscript lives on.
Unfortunately the problem is pixels themselves. With higher res screens the desire for clean imagery is greater. So with pixels, they have to be set at there largest size at 72 DPI. So this means with zoomed material you have to have multiple images set at their largest size per device otherwise zooming gets pixelated (dividing one pixel into two). Thus to achieve a clean image, your one pixel increases exponentially in file size. With vector, it's a little more math to describe 1 size that then is scaleable. Now you can go the route of one middle sized image and allow some pixelation on larger screens and over processing on some smaller screens. But to truly get the cleanest fastest pixel based image on all devices and screen you have to have I'd say at least 3-5 different files. Each a different size. Seems like a lot of overhead to me. Also, I always wondered why postscript wasn't utilized in HTML image and font rendering. Seems to me that postscript would fit nicely unless I am not understanding postscript. But now I am OT. Guess to get back OT I'd just say I loved how Flash handled vector. I could design in Adobe Illustrator or fireworks, be able to scale what ever size I wanted and export to flash. It was soo easy on bandwidth as far as my experiences went with the projects I did. In a world of trying to fit a banner ad with all it's animations and graphics audio and possibly video under 100K I utilized vector 8 out of 10 times to reduce file sizes. Karl Sent from losPhone On Sep 18, 2012, at 11:57 AM, John McCormack j...@easypeasy.co.uk wrote: Henrick I do agree with you that Flash's vector graphics would save a lot of bandwidth. What I meant was that if you download a bitmap the effect on battery life would be the same for Flash, HTML5 and JS, so the argument about Flash didn't stand up. On this vector vs bitmaps thing... For an image with just a single pixel (4 bytes + header) the demand on the CPU would far less than if you used vector data. For an image in which encoding is not used, a single 640x480 image has 307,200 pixels at 4 bytes per pixel = 1MB plus but, of course, you couldn't describe it with vectors. The effect on battery life of this is image dependent, not language dependent. As far as I can recall, with higher demand the CPU goes faster causing more logical state changes per second and whenever a logical bit changes state the transistors in the chips momentarily pass excess current and that's why the CPU uses more power and gets hot. The same happens with overclocking. Of course vectors are great for scaled images and if JS and HTML5 don't do those as well as Flash they won't be as good zoomed in. Anyway, its absolutely wonderful to hear you all again. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML in Datagrid component
Ooh Sry, brain fart.. :P Try this.. function stringToMysqlFormat($original_input) { //for inserting the data INTO mysql $my_string = html_entities(mysql_real_escape_string($original_input)); return $my_string; } function mysqlToHTMLFormat($encoded) { //for echoing the data FROM mysql $my_html = html_entity_decode(stripslashes($encoded)); return $my_html; } Not that it matters all the time, but I stay away from php variables that are the same name as a code in any other lang. IE String or HTML. Just forgot as I was writing last time. Damn auto-pilot. :) HTH, Best, Karl ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML in Datagrid component
Doh.. your right. Let me try again. Best, Karl On Aug 8, 2012, at 2:07 AM, Cor wrote: Hi Karl, :-) This is exactly what I did in the first mail, or do I miss something?? Original: function stringToMysqlFormat($original_input) { //for inserting the data with special characters INTO mysql $html_encoded = htmlentities(mysql_real_escape_string($original_input)); return $html_encoded; } function mysqlToHTMLFormat($encoded) { //for displaying the data FROM mysql $html_decoded = html_entity_decode(stripslashes($encoded)); return $html_decoded; } Best regards, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: woensdag 8 augustus 2012 9:02 To: Flash Coders List Subject: Re: [Flashcoders] HTML in Datagrid component Ooh Sry, brain fart.. :P Try this.. function stringToMysqlFormat($original_input) { //for inserting the data INTO mysql $my_string = html_entities(mysql_real_escape_string($original_input)); return $my_string; } function mysqlToHTMLFormat($encoded) { //for echoing the data FROM mysql $my_html = html_entity_decode(stripslashes($encoded)); return $my_html; } Not that it matters all the time, but I stay away from php variables that are the same name as a code in any other lang. IE String or HTML. Just forgot as I was writing last time. Damn auto-pilot. :) HTH, Best, Karl ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2197 / Virus Database: 2437/5185 - Release Date: 08/07/12 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML in Datagrid component
(mysql_real_escape_string($project_nummer)); $result = mysql_query($sql); $recordArray = array(); //maak assoc array om fieldnames als XML-tags te gebruiken while ($row = mysql_fetch_assoc($result)) { array_push($recordArray, $row); } $xmlOutput.=uren_verbruik; for ($i=0; $icount($recordArray); $i++) { //echo $recordArray[$i]['id']; $xmlOutput .= \tuv\n; // $key is de assoc fieldname en $value de inhoud foreach ($recordArray[$i] as $key = $value) { $xmlOutput .= \t\t . $key . . htmlspecialchars(stripslashes($value), ENT_QUOTES, UTF-8) . / . $key . \n; } $xmlOutput .= \t/uv\n; } $xmlOutput.=/uren_verbruik; //--- MATERIALEN $sql = SELECT * FROM tbl_materialen; $result = mysql_query($sql); $recordArray = array(); //maak assoc array om fieldnames als XML-tags te gebruiken while ($row = mysql_fetch_assoc($result)) { array_push($recordArray, $row); } $xmlOutput.=materialen; for ($i=0; $icount($recordArray); $i++) { //echo $recordArray[$i]['id']; $xmlOutput .= \tmat\n; // $key is de assoc fieldname en $value de inhoud foreach ($recordArray[$i] as $key = $value) { $xmlOutput .= \t\t . $key . . htmlspecialchars(stripslashes($value), ENT_QUOTES, UTF-8) . / . $key . \n; } $xmlOutput .= \t/mat\n; } $xmlOutput.=/materialen; //--- USERDATA ZONDER ACCOUNT_TYPE EN WACHTWOORD ! $sql = SELECT user_id, voorletters, tussenvoegsel, achternaam, uurloon FROM tbl_users; $result = mysql_query($sql); $recordArray = array(); //maak assoc array om fieldnames als XML-tags te gebruiken while ($row = mysql_fetch_assoc ($result)) { array_push($recordArray, $row); } $xmlOutput.=users; for ($i=0; $icount($recordArray); $i++) { //echo $recordArray[$i]['id']; $xmlOutput .= \tuser\n; // $key is de assoc fieldname en $value de inhoud foreach ($recordArray[$i] as $key = $value) { $xmlOutput .= \t\t . $key . . htmlspecialchars(stripslashes($value), ENT_QUOTES, UTF-8) . / . $key . \n; } $xmlOutput .= \t/user\n; } $xmlOutput.=/users; //sluit de root tag $xmlOutput .= /data; header(Content-type: text/xml); print returnXML=.$xmlOutput; } //End READ PROJECT ? //END CODE -- FYI, the ENT_QUOTES and UTF-8 can be removed if you wish. That is mostly what I wanted to see if works. Best, Karl On Aug 8, 2012, at 2:19 AM, Cor wrote: Karl, Maybe the full picture helps some more I use these functions to create a xml string to return to Flash. With use of the mysql fieldnames as key en the content as value and never have to worry about wath the fieldnames are. So when Flash reads a project it send a URLVariable to PHP: Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML in Datagrid component
Hi Cor, The side effects of using double and single together on one string can produce unexpected results with escaped or non-escaped data that goes in the string. For example: This works $string = this is a string for bob's database; or this will to $string = 'this is a string for bob\'s database'; notice you have to escape the single quote in bob's or it will break. or this will work to $string = this is a string for \The Super\ database; notice you have to escape the double quotes in The Super or it will break. or this $string = 'this is a string for The Super database'; works. however this $var = bob's; $string = 'this is a string for .$var. database'; will not, it will break on $var because the single quote in bob's is not escaped. but if it was $var = bob's; $string = this is a string for .$var. database; it would work. Õ.õ .. ack! What ever you start and end the string with be it single or double, continue those when wrapping $var inbetween and if there is that same single or double quote inside the $var, make sure it is escaped. however, if you use double quotes, you dont have to put the quotes around .$var. .. I and many other programers do that for clean code so as to not loose where $var is in the string. but it could be $string = this is a string for $var database; but if I did something like this $string = 'this is a string for $var database'; it doesn't work for me. not sure why, but I think its because with single quotes, the dollar symbol gets equated as a string literal and not the beginning of a php var. very strange in my opinion how strings work in php. very picky. :) Also, when I make a call to the database, I always use mysql_real_escape_string() inside the actual sql statement for security reasons. ..but alas, all this may not be your problem. Try echoing the data before the sql statement is created, after the sql statement is created but before calling the database and after retreival from the database to compare what is in the string. Also look inside the database to see what actually gets inserted. Might even go as far as making sure the table cel is not escaping data on its own. Like an escape data setting or something. You might find that your data is getting double escaped. :P Totally reaching on that one, but you would be surprised at some of the stuff I've seen.. lol WC3 is very good too, but for php stuff I always go with php.net. More thurough in my opinion. Plus the user comments from people in the field where they find bugs, test code and such has helped me emensly. Did my code work for you? I'm thinking you would have said something if it did. :-/ Good luck! Best, Karl On Aug 8, 2012, at 4:49 AM, Cor wrote: Hello Karl, Because the code is never to be reused, I have put it all-in-one. But I agree on creating separate functions. Before I go into that I would like to solve my datagrid issue first. I thought using it is common to use double quotes when handling strings and single quotes when code needs to be parsed? Are there side effects to be expected when using only single quotes? From php.net is where I have got this so far. Also http://www.w3schools.com is very helpful. Thanks very much for all your help!!! Best regards, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: woensdag 8 augustus 2012 11:12 To: Flash Coders List Subject: Re: [Flashcoders] HTML in Datagrid component Hey Cor, One thing I noticed was the string $xmlOutput was switching between single and double quotes. Probably want to stick to one or the other. Excuse the re-write, but this is how I would write that php. Don't know if it works as I can not test, but try this code and let me know what you get. Also, you may want to separate each call to the database into separate functions. IE: function getProjects() { } function getUserData() { } function getMaterials() { } $projects = getProjects(); $userdata = getUserData(); $materials = getMaterials(); etc.. then have a function that puts together the XML results. function createXML($projects, $userdata, $materials) { } Your call on that though. If the code I gave does not work, try taking a look here to see if you can find a solution for the special characters. http://php.net/manual/en/function.htmlspecialchars.php php.net is gold! Best of luck! :) Hope everybody doesn't mind the php convo being a flash list. If so message me personally Cor. //CODE -- ?php / Read Project / if (isset($_POST['sendRequest']) $_POST['sendRequest'] == read_project) { $xmlOutput = ; $project_nummer = ; $project_klantnummer = ; $currentTable = tbl_projecten; if ($_POST['isParticulier'] == ja) { $currentTable = tbl_particulier_projecten
Re: [Flashcoders] HTML in Datagrid component
Shooting in the dark, but try this. function stringToMysqlFormat($original_input) { //for inserting the data INTO mysql $original_input = urlencode(stripslashes($original_input)); $string = mysql_real_escape_string($original_input); return $string; } function mysqlToHTMLFormat($encoded) { //for displaying the data FROM mysql $html = htmlspecialchars(urldecode($encoded)); return $html; } Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML in Datagrid component
Can you post what some data looks like before you put it into mysql? On Aug 6, 2012, at 8:52 AM, Cor wrote: Hi All, I am having a problem with loading data correctly in my Datagrid. User input data is stored in MySQL through PHP with these functions: function stringToMysqlFormat($original_input) { //for inserting the data with special characters INTO mysql $html_encoded = htmlentities(mysql_real_escape_string($original_input)); return $html_encoded; } function mysqlToHTMLFormat($encoded) { //for displaying the data FROM mysql $html_decoded = html_entity_decode(stripslashes($encoded)); return $html_decoded; } It works OK in all the textfields, but not in my Datagrid. Then it shows like the HTML formatted way: Atilde; etc. How to solve this? Best regards, Cor van Dooren ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML in Datagrid component
Yes and no. That is your SQL insert statement, which is good to know, but I was referring to the value of $original_input. Or is that statement the value of $original_input? What has the html special characters in it? Best, Karl On Aug 6, 2012, at 3:39 PM, Cor wrote: Does this hel: INSERT INTO `tbl_projecten` (`project_nummer`, `project_werk`, `project_betreft`, `project_datum`, `project_klantnummer`, `project_ordernummer_klant`, `project_contactpersoon`, `project_opdracht`, `project_aanneemsom`, `project_conform`, `project_besteldatum`, `project_BTW`, `project_betaling_binnen`, `project_kleuren`, `project_rekeningtekst`) VALUES (1, 'Entree', 'Aanbrengen van glasweefsel en het sausen daarvan', '19-11-2011', 24, '0005873-0016178', '', 'order', '5.953,44', 'bestelling', '11 november 2011', '19', '14', '', ''); -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 6 augustus 2012 22:02 To: Flash Coders List Subject: Re: [Flashcoders] HTML in Datagrid component Can you post what some data looks like before you put it into mysql? On Aug 6, 2012, at 8:52 AM, Cor wrote: Hi All, I am having a problem with loading data correctly in my Datagrid. User input data is stored in MySQL through PHP with these functions: function stringToMysqlFormat($original_input) { //for inserting the data with special characters INTO mysql $html_encoded = htmlentities(mysql_real_escape_string($original_input)); return $html_encoded; } function mysqlToHTMLFormat($encoded) { //for displaying the data FROM mysql $html_decoded = html_entity_decode(stripslashes($encoded)); return $html_decoded; } It works OK in all the textfields, but not in my Datagrid. Then it shows like the HTML formatted way: Atilde; etc. How to solve this? Best regards, Cor van Dooren ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2197 / Virus Database: 2437/5181 - Release Date: 08/06/12 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTML in Datagrid component
try this. function stringToMysqlFormat($original_input) { //for inserting the data INTO mysql $original_input = stripslashes($original_input); $string = mysql_real_escape_string($original_input); return $string; } function mysqlToHTMLFormat($encoded) { //for displaying the data FROM mysql $html = htmlspecialchars($encoded); return $html; } On Aug 6, 2012, at 6:15 PM, Karl DeSaulniers wrote: Yes and no. That is your SQL insert statement, which is good to know, but I was referring to the value of $original_input. Or is that statement the value of $original_input? What has the html special characters in it? Best, Karl On Aug 6, 2012, at 3:39 PM, Cor wrote: Does this hel: INSERT INTO `tbl_projecten` (`project_nummer`, `project_werk`, `project_betreft`, `project_datum`, `project_klantnummer`, `project_ordernummer_klant`, `project_contactpersoon`, `project_opdracht`, `project_aanneemsom`, `project_conform`, `project_besteldatum`, `project_BTW`, `project_betaling_binnen`, `project_kleuren`, `project_rekeningtekst`) VALUES (1, 'Entree', 'Aanbrengen van glasweefsel en het sausen daarvan', '19-11-2011', 24, '0005873-0016178', '', 'order', '5.953,44', 'bestelling', '11 november 2011', '19', '14', '', ''); -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 6 augustus 2012 22:02 To: Flash Coders List Subject: Re: [Flashcoders] HTML in Datagrid component Can you post what some data looks like before you put it into mysql? On Aug 6, 2012, at 8:52 AM, Cor wrote: Hi All, I am having a problem with loading data correctly in my Datagrid. User input data is stored in MySQL through PHP with these functions: function stringToMysqlFormat($original_input) { //for inserting the data with special characters INTO mysql $html_encoded = htmlentities(mysql_real_escape_string($original_input)); return $html_encoded; } function mysqlToHTMLFormat($encoded) { //for displaying the data FROM mysql $html_decoded = html_entity_decode(stripslashes($encoded)); return $html_decoded; } It works OK in all the textfields, but not in my Datagrid. Then it shows like the HTML formatted way: Atilde; etc. How to solve this? Best regards, Cor van Dooren ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2197 / Virus Database: 2437/5181 - Release Date: 08/06/12 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fonts taking up too much space
Looking at your swf, my suggestion would be to take the copy that is not input fields and turn them to outlines in Illustrator then put them back in the layout. Flash handles vector really well. Not much size increase for mathematical equations. Then only embed the necessary glyphs for the input files. Best, Karl On Jun 27, 2012, at 3:16 PM, Kevin Newman wrote: Every static glyph for every font face and weight/style is also embedded. The only way to really reduce the size of those fonts is to embed fewer glyphs. One strategy might be to consolidate the number of fonts you are using. If you are using 4 typefaces, try to reduce it to 3 or even 2. That'll probably have the biggest reduction. I've never really tried it, but you could try editing the font names so that they are shorter in the font embed screen, then make sure all your text fields are set to those new embedded names (such as a, b, c and d). I'm not sure how much space that would save, but it might get you a few bytes. And maybe it's obvous, but make sure you aren't including XMP metadata or debug symbols (uncheck both boxes in the publish settings) - that's a couple of KB. Kevin N. On 6/26/2012 4:59 PM, Tristan wrote: I did not embed any fonts but the numerals and period for the input box. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fonts taking up too much space
Ah that's right! Well there you go. Best, Karl On Jun 27, 2012, at 3:59 PM, Don Talcott wrote: No need to outline in Illustrator. In Flash, select the text, go to Modify/Break Apart. Do this twice, and you will have outline of text. On Jun 27, 2012, at 4:42 PM, Karl DeSaulniers wrote: Looking at your swf, my suggestion would be to take the copy that is not input fields and turn them to outlines in Illustrator then put them back in the layout. Flash handles vector really well. Not much size increase for mathematical equations. Then only embed the necessary glyphs for the input files. Best, Karl On Jun 27, 2012, at 3:16 PM, Kevin Newman wrote: Every static glyph for every font face and weight/style is also embedded. The only way to really reduce the size of those fonts is to embed fewer glyphs. One strategy might be to consolidate the number of fonts you are using. If you are using 4 typefaces, try to reduce it to 3 or even 2. That'll probably have the biggest reduction. I've never really tried it, but you could try editing the font names so that they are shorter in the font embed screen, then make sure all your text fields are set to those new embedded names (such as a, b, c and d). I'm not sure how much space that would save, but it might get you a few bytes. And maybe it's obvous, but make sure you aren't including XMP metadata or debug symbols (uncheck both boxes in the publish settings) - that's a couple of KB. Kevin N. On 6/26/2012 4:59 PM, Tristan wrote: I did not embed any fonts but the numerals and period for the input box. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders DON TALCOTT 316 Greenwood Avenue Decatur, Georgia 30030 404.538.1642 dtalc...@mindspring.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fonts taking up too much space
Just remember if its fonts on top of fonts, break each layer separately and then merge. Otherwise your bottom font may be cropped by the top fonts bounding box. Best, Karl On Jun 27, 2012, at 4:34 PM, Karl DeSaulniers wrote: Ah that's right! Well there you go. Best, Karl On Jun 27, 2012, at 3:59 PM, Don Talcott wrote: No need to outline in Illustrator. In Flash, select the text, go to Modify/Break Apart. Do this twice, and you will have outline of text. On Jun 27, 2012, at 4:42 PM, Karl DeSaulniers wrote: Looking at your swf, my suggestion would be to take the copy that is not input fields and turn them to outlines in Illustrator then put them back in the layout. Flash handles vector really well. Not much size increase for mathematical equations. Then only embed the necessary glyphs for the input files. Best, Karl On Jun 27, 2012, at 3:16 PM, Kevin Newman wrote: Every static glyph for every font face and weight/style is also embedded. The only way to really reduce the size of those fonts is to embed fewer glyphs. One strategy might be to consolidate the number of fonts you are using. If you are using 4 typefaces, try to reduce it to 3 or even 2. That'll probably have the biggest reduction. I've never really tried it, but you could try editing the font names so that they are shorter in the font embed screen, then make sure all your text fields are set to those new embedded names (such as a, b, c and d). I'm not sure how much space that would save, but it might get you a few bytes. And maybe it's obvous, but make sure you aren't including XMP metadata or debug symbols (uncheck both boxes in the publish settings) - that's a couple of KB. Kevin N. On 6/26/2012 4:59 PM, Tristan wrote: I did not embed any fonts but the numerals and period for the input box. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders DON TALCOTT 316 Greenwood Avenue Decatur, Georgia 30030 404.538.1642 dtalc...@mindspring.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Loader Mouse Event
Maybe load the image into a empty MC and put the rollover on the MC? Best, Karl On Jun 11, 2012, at 12:32 PM, Kerry Thompson wrote: I've never tried to get a mouse event on a loader. Do you have a progress bar? I would add a MouseEvent listener to the progress bar, not the loader itself. If that doesn't work, add a movie clip with a 0 alpha on top of the loader, and attach the mouse listener to that. You could use a standard Flash shape like a rectangle, and lengthen it in sequence with the progress bar, You would want something like this to keep it in sequence: progBar.addEventListener(ProgressEvent.PROGRESS, progressHandler); and, in your progressHanler function, set its length and height to that of the progress bar. Cordially, Kerry Thompson On Mon, Jun 11, 2012 at 1:08 PM, Ted Lehr t...@qvine.com wrote: So I have a Loader that is loading an image: var Img:Loader = new Loader(); var urlReq:URLRequest = new URLRequest(http://www.someurl.com;); img.load(urlReq); and I am trying: img.addEventListener(MouseEvent.ROLL_OVER,x); this does not seem to work - does that make sense? and if so, how can I get a mouse event on the loader - do I need to load it in another mc? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Converting a flash game to facebook app
That was awesome Ben! Thanks, Best, Karl On May 31, 2012, at 11:25 PM, Ben Sand wrote: The way an app should work (and bear in mind this could be different for hosted games): Tracking of an individual user should all be handled as per normal with your server, using cookies. You should be able to find a user account plugin for whatever framework you're working with to manage this for you. Ideally find one that integrates with facebook to make your life easier. The client shouldn't communicate with Facebook directly, except to get publicly available data, such as a small profile pic of any user. Background: * You as a developer create an App on Facebook, specifying the permission the app should have, eg. see friend lists, create events, read messages, post on wall etc. (for some reason you also specify this when you connect to the facebook servers, not sure why...). Facebook then issues you with an API key/ secret for your app. You can recreate this if it becomes compromised in some way. * Your server holds the facebook API key. 1. Client talks to your server and asks to login/authenticate. 2. Your server redirects client to Facebook, with a login request for your app and a list of permissions (again, not sure why this needs to be repeated, possibly because you're allowed to request a subset of permissions). 3. Facebook presents the app name and a list of desired permissions and asks the user to agree. The screen used to do this changes all the time, which is quite annoying, they don't seem to have worked out an ideal presentation for it yet. 4. If the user accepts, your app gets notified (probably by the user, although it might be by facebook) and the user is redirected to your site. At any rate. you now have a user token that can be used to connect to facebook to enquire about the user. 5. At any point in time, using a combination of your API key and the user token your server can access the permissions the user granted you, by contacting facebook directly. If you release the API key, at the very least, someone can masquerade as your app. They may be able to access data for users they don't have a token for, not sure about that. And one more fun thing we found out the other day - if a user changes their password, the token will change, and your app needs to have some mechanism for updating it, or the user will likely hit a 500 error. On 1 June 2012 04:13, Hans Wichman hans.wich...@gmail.com wrote: Hi Henrik, not to hijack Paul's thread, but do you have some more info on this subject. Eg the client would need some way to uniquely id itself to the server, lest the server give out this data to anyone which is kind of the same as making your api key public?. The client could be decompiled etc etc, referrers can be faked.. is there some kind of standard setup that you know of that prevents this? My guess it would benefit Paul as well as the rest of us (me;)). regards, Hans On 31-5-2012 18:00, Henrik Andersson wrote: The idea is obviously to let your server be the one who asks the Facebook servers for the data, meaning that the only possible attack points are the server itself and the connection. If your server is compromised then you have fail security. If the connection is compromised then SSL failed. SSL is much less likely to fail. Point is, the client never sees the key. Hans Wichman skriver: Hi Ben, if you put the keys on your server, can't they be sniffed anyway or am i missing something? tnx H __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Catfish adverts
http://www.matto1990.com/jquery/catfish/ Best, Karl On May 24, 2012, at 3:30 AM, Paul Andrews wrote: I have been asked to work on some flash catfish adverts. Does anyone know of any references about how they should behave? I can't find much online about them - specifically the close functionality. Thanks, Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Catfish adverts
Lol, didn't see this post. Best, Karl On May 24, 2012, at 3:55 AM, David Hunter wrote: maybe this might shed some light: http://www.matto1990.com/jquery/catfish/ presumably the close functionality is some kind of ExternalInterface.call(); Hope that helps. On 24 May 2012 09:30, Paul Andrews p...@ipauland.com wrote: I have been asked to work on some flash catfish adverts. Does anyone know of any references about how they should behave? I can't find much online about them - specifically the close functionality. Thanks, Paul __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get Timezone City?
That's what this code does. Gets the timezone like CST or America/Chicago for example based on local settings. Or is that not what your wanting? Best, Karl On May 17, 2012, at 4:30 AM, David Hunter wrote: Thanks Karl, I can grab the time using the Date class in AS3, I'm more stuck on how to detect what city they have set in their system preferences or some other way to detect what city they are in. IP address? Thanks, David On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote: You could use PHPs date function. http://us.php.net/manual/en/**function.date.phphttp://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/**func_date_date.asphttp://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get Timezone City?
You could always prompt your user to enter their city if your needing specifics. Getting the city from the time zone is a bit general. Getting the city by ip can also get a little misleading since ips can be spoofed or you could end up getting their ISPs ip or if it's a virtual machine. But that's my experience. Someone may have a solution I'm not aware of. Best, Karl Sent from losPhone On May 17, 2012, at 6:48 AM, Karl DeSaulniers k...@designdrumm.com wrote: That's what this code does. Gets the timezone like CST or America/Chicago for example based on local settings. Or is that not what your wanting? Best, Karl On May 17, 2012, at 4:30 AM, David Hunter wrote: Thanks Karl, I can grab the time using the Date class in AS3, I'm more stuck on how to detect what city they have set in their system preferences or some other way to detect what city they are in. IP address? Thanks, David On 17 May 2012 00:37, Karl DeSaulniers k...@designdrumm.com wrote: You could use PHPs date function. http://us.php.net/manual/en/**function.date.phphttp://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/**func_date_date.asphttp://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get Timezone City?
You could use PHPs date function. http://us.php.net/manual/en/function.date.php http://www.w3schools.com/php/func_date_date.asp ?php $timezone = date('T'); ? or ?php $timezone = date('e'); ? Then flashvars it into your flash clock. Just a thought. Best, Karl On May 16, 2012, at 5:20 PM, David Hunter wrote: Hi All, I'm making a screensaver / air app of a clock and one of the desired features is to grab the city of the timezone that the computer is set to. For example my clock is set to GMT and London, but I could set it to Eastern Daylight Time and the city to New York or Miami. Does anyone know if it is possible to grab the city selected associated with the time of the computer? (I'm on a mac, not sure if the setup is the same on a PC...) Thanks, David -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.parameters; var appURL=flashVars.appURL; } this.loaderInfo.addEventListener(Event.COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E- AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Found here : http://www.permadi.com/tutorial/flashVars/indexAs3.html Best, Karl On May 1, 2012, at 12:12 AM, Karl DeSaulniers wrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.parameters; var appURL=flashVars.appURL; } this.loaderInfo.addEventListener(Event.COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E- AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
I think in your code, var flashVars:Object; should be.. var flashVars:Object = new Object; ..and your just missing, var appURL=flashVars.appURL; HTH, Best, Karl On May 1, 2012, at 12:12 AM, Karl DeSaulniers wrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.parameters; var appURL=flashVars.appURL; } this.loaderInfo.addEventListener(Event.COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E- AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Oh, yeah sry. Just showing the difference with the object and embed. There still are AS2 devs out there... :P But more so, I was also showing that the name=FlashVars is in quotes for the object tag. Best, Karl On May 1, 2012, at 12:21 AM, Kerry Thompson wrote: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. I've done some more digging, and it may not even be related to the FlashVars. There are some other things in the HTML that aren't working, so there may be a deeper, or prior, problem. Thanks, Karl. Cordially, Kerry Thompson On Tue, May 1, 2012 at 1:12 AM, Karl DeSaulniers k...@designdrumm.comwrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.**parameters; var appURL=flashVars.appURL; } this.loaderInfo.**addEventListener(Event.**COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.**addEventListener(Event.**COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D- **11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-**flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/**getflashplayerhttp://www.adobe.com/go/getflashplayer img src= http://www.adobe.com/images/**shared/download_buttons/get_** flash_player.gifhttp://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR and external mp3's
Have you tried running your mp3 through iTunes converter and using an exported mp3 from that? Might be a quick fix. Best, Karl On Mar 14, 2012, at 1:57 PM, John R. Sweeney Jr. wrote: Has anyone built a app in AIR for iPad? I'm experimenting now, for a project coming up and have found that when I access an external mp3 and try to load and play, that it doesn't play. Works on my desktop, but not on the iPad. I have internal audio that works just fine, but can't hear the external, so I'm assuming that is not loading? I'm sure there are other gotcha's going to the iPad, so any ideas of a good resource or book on the specific subject of AIR for iPad that someone would recommend. This one is going to be fun… :) John Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR Screensaver?
Here you go... http://www.instantstorm.com/ Best, Karl On Mar 13, 2012, at 3:17 AM, David Hunter wrote: Hmmm changing it to .saver isn't working, it comes up grey in System Preferences and when you select it drops a message box You cannot use the Flash Player screen saver on this computer. I'm on OS X version 10.6.8 . Similar message if I try just an swf not a projector. It's in the same folder as the ones I made in Quartz Composer, and they work fine. On 13 March 2012 01:30, Karl DeSaulniers k...@designdrumm.com wrote: /Library/Screen Savers (for all users of the computer to use it, otherwise install in the /Users/Library/Screen Savers directory) I also think that if the user clicks a .saver file, it should offer to install itself. Not sure of one built in flash though. I'd try it on my mac before hand to test. Best, Karl On Mar 12, 2012, at 8:11 PM, John R. Sweeney Jr. wrote: If you only want PC, this will work. For the MAC is .saver. You also have to listen for any key strokes, key presses or mouse movement to exit your program. And don't forget that users have NO idea where to put a .scr file or the .saver files and on the MAC side the LIbrary folder is usually hidden to the average user. Best of luck, John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 12, 2012, at 7:38 PM, Henrik Andersson wrote: Make a projector that automatically enters fullscreen at start and exits at input. Then rename it to *.scr, done. __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR Screensaver?
Or try these.. http://www.flashsaver.org/en/ http://www.video-flash.de/swf-screensaver-for-mac/ HTH, Karl On Mar 13, 2012, at 5:28 AM, Karl DeSaulniers wrote: Here you go... http://www.instantstorm.com/ Best, Karl On Mar 13, 2012, at 3:17 AM, David Hunter wrote: Hmmm changing it to .saver isn't working, it comes up grey in System Preferences and when you select it drops a message box You cannot use the Flash Player screen saver on this computer. I'm on OS X version 10.6.8 . Similar message if I try just an swf not a projector. It's in the same folder as the ones I made in Quartz Composer, and they work fine. On 13 March 2012 01:30, Karl DeSaulniers k...@designdrumm.com wrote: /Library/Screen Savers (for all users of the computer to use it, otherwise install in the /Users/Library/Screen Savers directory) I also think that if the user clicks a .saver file, it should offer to install itself. Not sure of one built in flash though. I'd try it on my mac before hand to test. Best, Karl On Mar 12, 2012, at 8:11 PM, John R. Sweeney Jr. wrote: If you only want PC, this will work. For the MAC is .saver. You also have to listen for any key strokes, key presses or mouse movement to exit your program. And don't forget that users have NO idea where to put a .scr file or the .saver files and on the MAC side the LIbrary folder is usually hidden to the average user. Best of luck, John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 12, 2012, at 7:38 PM, Henrik Andersson wrote: Make a projector that automatically enters fullscreen at start and exits at input. Then rename it to *.scr, done. __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR Screensaver?
Because OSX 10.6 needs a 64bit screensaver and the one your creating is 32bit. Google your issue and you will see what I am talking about. That's what I did. Best, Karl On Mar 13, 2012, at 12:46 PM, David Hunter wrote: Unfortunately that Screensaver For Mac doesn't seem to work for me. Their demo files don't even work. I'm on OS X 10.6.8 . Can someone on another system (or even the same) test it to see if it works? Only need to download and double-click the .saver file to test. Big thanks in advance, David On 13 March 2012 13:00, David Hunter m...@davidhunterdesign.com wrote: Thanks Karl that last one looks like it could be the ticket. Will give it a go later and post how successful it is. Best, David On 13 March 2012 10:55, Karl DeSaulniers k...@designdrumm.com wrote: Or try these.. http://www.flashsaver.org/en/ http://www.video-flash.de/swf-**screensaver-for-mac/http://www.video-flash.de/swf-screensaver-for-mac/ HTH, Karl On Mar 13, 2012, at 5:28 AM, Karl DeSaulniers wrote: Here you go... http://www.instantstorm.com/ Best, Karl On Mar 13, 2012, at 3:17 AM, David Hunter wrote: Hmmm changing it to .saver isn't working, it comes up grey in System Preferences and when you select it drops a message box You cannot use the Flash Player screen saver on this computer. I'm on OS X version 10.6.8 . Similar message if I try just an swf not a projector. It's in the same folder as the ones I made in Quartz Composer, and they work fine. On 13 March 2012 01:30, Karl DeSaulniers k...@designdrumm.com wrote: /Library/Screen Savers (for all users of the computer to use it, otherwise install in the /Users/Library/Screen Savers directory) I also think that if the user clicks a .saver file, it should offer to install itself. Not sure of one built in flash though. I'd try it on my mac before hand to test. Best, Karl On Mar 12, 2012, at 8:11 PM, John R. Sweeney Jr. wrote: If you only want PC, this will work. For the MAC is .saver. You also have to listen for any key strokes, key presses or mouse movement to exit your program. And don't forget that users have NO idea where to put a .scr file or the .saver files and on the MAC side the LIbrary folder is usually hidden to the average user. Best of luck, John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 12, 2012, at 7:38 PM, Henrik Andersson wrote: Make a projector that automatically enters fullscreen at start and exits at input. Then rename it to *.scr, done. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com Flashcoders@chattyfig.** figleaf.com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders **http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com Flashcoders@chattyfig.** figleaf.com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders **http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http
Re: [Flashcoders] AIR Screensaver?
Not sure what you mean. It asks you to update the screensaver file? Did you make it 64bit? Karl On Mar 13, 2012, at 7:32 PM, David Hunter wrote: H it works in test mode but when I run it properly from a hot corner it says I need to update it. On 14 March 2012 00:29, David Hunter m...@davidhunterdesign.com wrote: Nice one! got it working. Not sure if that will be acceptable to the client but the upshot is that I can make a wicked screensaver for myself in Flash. Thanks Karl, David On 13 March 2012 23:13, Karl DeSaulniers k...@designdrumm.com wrote: Because OSX 10.6 needs a 64bit screensaver and the one your creating is 32bit. Google your issue and you will see what I am talking about. That's what I did. Best, Karl On Mar 13, 2012, at 12:46 PM, David Hunter wrote: Unfortunately that Screensaver For Mac doesn't seem to work for me. Their demo files don't even work. I'm on OS X 10.6.8 . Can someone on another system (or even the same) test it to see if it works? Only need to download and double-click the .saver file to test. Big thanks in advance, David On 13 March 2012 13:00, David Hunter m...@davidhunterdesign.com wrote: Thanks Karl that last one looks like it could be the ticket. Will give it a go later and post how successful it is. Best, David On 13 March 2012 10:55, Karl DeSaulniers k...@designdrumm.com wrote: Or try these.. http://www.flashsaver.org/en/ http://www.video-flash.de/swf-screensaver-for-mac/http://www.video-flash.de/swf-**screensaver-for-mac/ http://**www.video-flash.de/swf-**screensaver-for-mac/http://www.video-flash.de/swf-screensaver-for-mac/ HTH, Karl On Mar 13, 2012, at 5:28 AM, Karl DeSaulniers wrote: Here you go... http://www.instantstorm.com/ Best, Karl On Mar 13, 2012, at 3:17 AM, David Hunter wrote: Hmmm changing it to .saver isn't working, it comes up grey in System Preferences and when you select it drops a message box You cannot use the Flash Player screen saver on this computer. I'm on OS X version 10.6.8 . Similar message if I try just an swf not a projector. It's in the same folder as the ones I made in Quartz Composer, and they work fine. On 13 March 2012 01:30, Karl DeSaulniers k...@designdrumm.com wrote: /Library/Screen Savers (for all users of the computer to use it, otherwise install in the /Users/Library/Screen Savers directory) I also think that if the user clicks a .saver file, it should offer to install itself. Not sure of one built in flash though. I'd try it on my mac before hand to test. Best, Karl On Mar 12, 2012, at 8:11 PM, John R. Sweeney Jr. wrote: If you only want PC, this will work. For the MAC is .saver. You also have to listen for any key strokes, key presses or mouse movement to exit your program. And don't forget that users have NO idea where to put a .scr file or the .saver files and on the MAC side the LIbrary folder is usually hidden to the average user. Best of luck, John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 12, 2012, at 7:38 PM, Henrik Andersson wrote: Make a projector that automatically enters fullscreen at start and exits at input. Then rename it to *.scr, done. __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.** figleaf.com Flashcoders@chattyfig.**figleaf.comFlashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/**flashcoders http://chattyfig.figleaf.com/mailman/listinfo/flashcoders http://chattyfig.**figleaf.com/**mailman/**listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders **http://chattyfig.figleaf.**com/**mailman/listinfo/ **flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders http://chattyfig.**figleaf.com/mailman/listinfo/**flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.** figleaf.com Flashcoders@chattyfig.**figleaf.comFlashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/**flashcoders http://chattyfig.figleaf.com/mailman/listinfo/ flashcoders http://chattyfig.**figleaf.com/**mailman/**listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders **http://chattyfig.figleaf.**com/**mailman/listinfo/ **flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders http://chattyfig.**figleaf.com/mailman/listinfo/**flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders
Re: [Flashcoders] AIR Screensaver?
Just provide a 64bit and 32bit version to the client. They always love choices... :) I'd also google the percentage of users on 10.6 as opposed to 10.5 Show that to the client and let them make the call on which to release first. Good luck with Mountain Lion. Heard they were tightening the reigns. Karl On Mar 13, 2012, at 7:29 PM, David Hunter wrote: Nice one! got it working. Not sure if that will be acceptable to the client but the upshot is that I can make a wicked screensaver for myself in Flash. Thanks Karl, David On 13 March 2012 23:13, Karl DeSaulniers k...@designdrumm.com wrote: Because OSX 10.6 needs a 64bit screensaver and the one your creating is 32bit. Google your issue and you will see what I am talking about. That's what I did. Best, Karl On Mar 13, 2012, at 12:46 PM, David Hunter wrote: Unfortunately that Screensaver For Mac doesn't seem to work for me. Their demo files don't even work. I'm on OS X 10.6.8 . Can someone on another system (or even the same) test it to see if it works? Only need to download and double-click the .saver file to test. Big thanks in advance, David On 13 March 2012 13:00, David Hunter m...@davidhunterdesign.com wrote: Thanks Karl that last one looks like it could be the ticket. Will give it a go later and post how successful it is. Best, David On 13 March 2012 10:55, Karl DeSaulniers k...@designdrumm.com wrote: Or try these.. http://www.flashsaver.org/en/ http://www.video-flash.de/swf-screensaver-for-mac/http://www.video-flash.de/swf-**screensaver-for-mac/ http://**www.video-flash.de/swf-**screensaver-for-mac/http://www.video-flash.de/swf-screensaver-for-mac/ HTH, Karl On Mar 13, 2012, at 5:28 AM, Karl DeSaulniers wrote: Here you go... http://www.instantstorm.com/ Best, Karl On Mar 13, 2012, at 3:17 AM, David Hunter wrote: Hmmm changing it to .saver isn't working, it comes up grey in System Preferences and when you select it drops a message box You cannot use the Flash Player screen saver on this computer. I'm on OS X version 10.6.8 . Similar message if I try just an swf not a projector. It's in the same folder as the ones I made in Quartz Composer, and they work fine. On 13 March 2012 01:30, Karl DeSaulniers k...@designdrumm.com wrote: /Library/Screen Savers (for all users of the computer to use it, otherwise install in the /Users/Library/Screen Savers directory) I also think that if the user clicks a .saver file, it should offer to install itself. Not sure of one built in flash though. I'd try it on my mac before hand to test. Best, Karl On Mar 12, 2012, at 8:11 PM, John R. Sweeney Jr. wrote: If you only want PC, this will work. For the MAC is .saver. You also have to listen for any key strokes, key presses or mouse movement to exit your program. And don't forget that users have NO idea where to put a .scr file or the .saver files and on the MAC side the LIbrary folder is usually hidden to the average user. Best of luck, John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 12, 2012, at 7:38 PM, Henrik Andersson wrote: Make a projector that automatically enters fullscreen at start and exits at input. Then rename it to *.scr, done. __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.** figleaf.com Flashcoders@chattyfig.**figleaf.comFlashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/**flashcoders http://chattyfig.figleaf.com/mailman/listinfo/ flashcoders http://chattyfig.**figleaf.com/**mailman/**listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders **http://chattyfig.figleaf.**com/**mailman/listinfo/ **flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders http://chattyfig.**figleaf.com/mailman/listinfo/**flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.** figleaf.com Flashcoders@chattyfig.**figleaf.comFlashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/**flashcoders http://chattyfig.figleaf.com/mailman/listinfo/flashcoders http://chattyfig.**figleaf.com/**mailman/**listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders **http://chattyfig.figleaf.**com/**mailman/listinfo/ **flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders http://chattyfig.**figleaf.com/mailman/listinfo/**flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906
Re: [Flashcoders] AIR Screensaver?
Maybe export 64bit from Flash? Couldn't say for sure. If someone can verify if you can even do 64bit exports from Flash. I would think CS5 could. Haven't tested that one. Best, Karl On Mar 13, 2012, at 8:04 PM, David Hunter wrote: i googled it as you suggested and the advice was to run system preferences in 32-bit mode. can i recompile the .screensaver file in 64-bit ? On 14 March 2012 00:45, Karl DeSaulniers k...@designdrumm.com wrote: Not sure what you mean. It asks you to update the screensaver file? Did you make it 64bit? Karl On Mar 13, 2012, at 7:32 PM, David Hunter wrote: H it works in test mode but when I run it properly from a hot corner it says I need to update it. On 14 March 2012 00:29, David Hunter m...@davidhunterdesign.com wrote: Nice one! got it working. Not sure if that will be acceptable to the client but the upshot is that I can make a wicked screensaver for myself in Flash. Thanks Karl, David On 13 March 2012 23:13, Karl DeSaulniers k...@designdrumm.com wrote: Because OSX 10.6 needs a 64bit screensaver and the one your creating is 32bit. Google your issue and you will see what I am talking about. That's what I did. Best, Karl On Mar 13, 2012, at 12:46 PM, David Hunter wrote: Unfortunately that Screensaver For Mac doesn't seem to work for me. Their demo files don't even work. I'm on OS X 10.6.8 . Can someone on another system (or even the same) test it to see if it works? Only need to download and double-click the .saver file to test. Big thanks in advance, David On 13 March 2012 13:00, David Hunter m...@davidhunterdesign.com wrote: Thanks Karl that last one looks like it could be the ticket. Will give it a go later and post how successful it is. Best, David On 13 March 2012 10:55, Karl DeSaulniers k...@designdrumm.com wrote: Or try these.. http://www.flashsaver.org/en/ http://www.video-flash.de/swf-**screensaver-for-mac/http://www.video-flash.de/swf-screensaver-for-mac/ http:**//www.video-flash.de/swf-screensaver-for-mac/http://www.video-flash.de/swf-**screensaver-for-mac/ http://**www.video-flash.de/**swf-**screensaver-for-mac/http://www.video-flash.de/swf-**screensaver-for-mac/ htt**p://www.video-flash.de/swf-**screensaver-for-mac/http://www.video-flash.de/swf-screensaver-for-mac/ HTH, Karl On Mar 13, 2012, at 5:28 AM, Karl DeSaulniers wrote: Here you go... http://www.instantstorm.com/ Best, Karl On Mar 13, 2012, at 3:17 AM, David Hunter wrote: Hmmm changing it to .saver isn't working, it comes up grey in System Preferences and when you select it drops a message box You cannot use the Flash Player screen saver on this computer. I'm on OS X version 10.6.8 . Similar message if I try just an swf not a projector. It's in the same folder as the ones I made in Quartz Composer, and they work fine. On 13 March 2012 01:30, Karl DeSaulniers k...@designdrumm.com wrote: /Library/Screen Savers (for all users of the computer to use it, otherwise install in the /Users/Library/Screen Savers directory) I also think that if the user clicks a .saver file, it should offer to install itself. Not sure of one built in flash though. I'd try it on my mac before hand to test. Best, Karl On Mar 12, 2012, at 8:11 PM, John R. Sweeney Jr. wrote: If you only want PC, this will work. For the MAC is .saver. You also have to listen for any key strokes, key presses or mouse movement to exit your program. And don't forget that users have NO idea where to put a .scr file or the .saver files and on the MAC side the LIbrary folder is usually hidden to the average user. Best of luck, John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 12, 2012, at 7:38 PM, Henrik Andersson wrote: Make a projector that automatically enters fullscreen at start and exits at input. Then rename it to *.scr, done. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com Flashcoders@chattyfig.** figleaf.com Flashcoders@chattyfig.**figle**af.comhttp://figleaf.com Flashcoders@chattyfig.**figleaf.comFlashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/ flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/**flashcoders http://chattyfig.**figleaf.com/mailman/** listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders http://chattyfig.**figleaf.**com/**mailman/**listinfo/** flashcodershttp://figleaf.com/**mailman/**listinfo/flashcoders http://chattyfig.**figleaf.com/**mailman/**listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman/listinfo/flashcoders **http://chattyfig.figleaf.com/**mailman/listinfo/ flashcodershttp://chattyfig.**figleaf.com/**mailman/** listinfo/flashcodershttp://chattyfig.figleaf.com/**mailman
Re: [Flashcoders] AIR Screensaver?
Here you go. Not a 32 and 64 bit projector file. A 32 and 64 bit .saver file. http://www.screentime.com/software/flash-screensaver But, you have to pay to get 64 bit. :) Karl On Mar 13, 2012, at 8:15 PM, John R. Sweeney Jr. wrote: Okay. I'll gladly show my ignorance. How did you make at 32-bit AND 64-bit projector? I've looked all through publish settings and google and Adobe. I find now reference. So I'll ask you. ;) Thanks, John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 13, 2012, at 7:50 PM, Karl DeSaulniers wrote: Just provide a 64bit and 32bit version to the client. They always love choices... :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR Screensaver?
I had asked if it was possible. But was not sure myself. For his project, he just needs the .saver file to be 64 bit to work on 10.6+ I thought maybe Flash CS5 could since it targets those devices, but again not sure. Don't have it. Should be possible if it isn't, IMO. Best, Karl On Mar 13, 2012, at 10:22 PM, John R. Sweeney Jr. wrote: I didn't think you could make a 64- projector from Flash. Thanks, John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 13, 2012, at 8:33 PM, Karl DeSaulniers wrote: Here you go. Not a 32 and 64 bit projector file. A 32 and 64 bit .saver file. http://www.screentime.com/software/flash-screensaver But, you have to pay to get 64 bit. :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR Screensaver?
/Library/Screen Savers (for all users of the computer to use it, otherwise install in the /Users/Library/Screen Savers directory) I also think that if the user clicks a .saver file, it should offer to install itself. Not sure of one built in flash though. I'd try it on my mac before hand to test. Best, Karl On Mar 12, 2012, at 8:11 PM, John R. Sweeney Jr. wrote: If you only want PC, this will work. For the MAC is .saver. You also have to listen for any key strokes, key presses or mouse movement to exit your program. And don't forget that users have NO idea where to put a .scr file or the .saver files and on the MAC side the LIbrary folder is usually hidden to the average user. Best of luck, John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Mar 12, 2012, at 7:38 PM, Henrik Andersson wrote: Make a projector that automatically enters fullscreen at start and exits at input. Then rename it to *.scr, done. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC - ScreenManager
If you can't take the Henrik, get out of the kitchen.. lol On Mar 8, 2012, at 11:53 AM, Terry Riney wrote: On 3/8/2012 12:42 PM, Henrik Andersson wrote: Terry Riney skriver: Would like to pass a score/time/damage to client will stick with score/damage right now: package observer{ import observer.Observer; /** * A Java-style Observable class used to represent the subject * of the Observer design pattern. Observers must implement the Observer * interface, and register to observe the subject via addObserver(). */ Congratulations on reinventing the EventDispatcher class. I hope you had fun reinventing the wheel. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I will be writing code in other languages. As my first post said this is for my use. If I start changing things and someone follows this post it will be difficult to follow along. You comments are noted if a little on the strident side. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC style Correction
So a view can possibly have its own MVC within it? As long as the view is the only one using the data? View Controller View Model View View Or am I interp. this incorrectly? Best, Karl On Mar 7, 2012, at 10:29 AM, John McCormack wrote: Issues which have not been resolved has to do with how the logic is distributed amongst MVC partners. So if anyone comes across an example in which they are uncertain, please let us hear about it. On that subject, the book by Joel Hooks' and Lindsey Fallow: ActionScript Developers Guide to RobotLegs: http://shop.oreilly.com/product/0636920021216.do says... As to whether checking an email address is valid view logic or application logic, there's no fixed answer. A good filter is that if only the view classes care about this logic, it belongs in your view layer. If other parts of the application need to be checked or informed, it's controller code. John On 07/03/2012 15:50, Paul Andrews wrote: On 07/03/2012 15:37, Ross Sclafani wrote: yay me! Indeed! Your MVC introductory example was superb. Paul Ross P. Sclafani design / technology / creative http://ross.sclafani.net http://www.twitter.com/rosssclafani http://www.linkedin.com/in/rosssclafani [347] 204.5714 let go of even your longest held beliefs, the only truth is in observation. On Mar 7, 2012, at 10:27 AM, David Hunter wrote: Hi all, Really pleased that my original question has generated so much positive discussion, debate and learning on MVC. For me it has certainly shed some light on different ways to implement it and probably some improvements or different approaches I could take in the future. Currently I connect them all together exactly as Ross has his set up in his first example. Although I may experiment with some slightly different approaches or try out a framework. Regards, David On 7 March 2012 07:25, Corc...@chello.nl wrote: +1 Best regards, Cor van Dooren -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John McCormack Sent: dinsdag 6 maart 2012 21:30 To: Flash Coders List Subject: Re: [Flashcoders] MVC style Correction Absolutely agree, so thank you everyone - very much. Each day I look for more. As a result of people talking about RobotLegs I bought and today received Joel Hooks' ActionScript Developers Guide to RobotLegs. A new direction - which I am thankful for. John On 06/03/2012 18:57, Kevin Newman wrote: Also, this thread has helped to flesh out my understanding of MVC to a substantial degree. I love that. :-) Kevin N. On 3/6/12 11:40 AM, Kevin Newman wrote: That's how I understand MVC anyway. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC style Correction
I see. Thanks. Karl On Mar 7, 2012, at 4:52 PM, Peter Ginneberge wrote: What he was asking was where does certain logic go, such as: where do you check whether an email address is valid. So if only the view cares about the valid email address, you can do so in the view, otherwise move the logic to the controller. It also depends on how strict you are about what a view can / cannot do. Some people (and frameworks) prefer to have no logic whatsoever in the view (dumb view) and have all the logic in the controller or in a go-between pattern: Observer / Mediator / Presenter - whichever fits their need. For instance PureMVC and RobotLegs use Mediators: http://puremvc.org/component/option,com_wrapper/Itemid,34/ http://www.robotlegs.org/diagram/ regards, Muzak - Original Message - From: Karl DeSaulniers k...@designdrumm.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 07, 2012 9:15 PM Subject: Re: [Flashcoders] MVC style Correction So a view can possibly have its own MVC within it? As long as the view is the only one using the data? View Controller View Model View View Or am I interp. this incorrectly? Best, Karl On Mar 7, 2012, at 10:29 AM, John McCormack wrote: Issues which have not been resolved has to do with how the logic is distributed amongst MVC partners. So if anyone comes across an example in which they are uncertain, please let us hear about it. On that subject, the book by Joel Hooks' and Lindsey Fallow: ActionScript Developers Guide to RobotLegs: http://shop.oreilly.com/product/0636920021216.do says... As to whether checking an email address is valid view logic or application logic, there's no fixed answer. A good filter is that if only the view classes care about this logic, it belongs in your view layer. If other parts of the application need to be checked or informed, it's controller code. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MVC style Correction
@Ross The more and more we all talk about this, and I get to see examples, the more I would like to see a working example of yours. I really like the simplicity and flow of your idea and with your permission, like to try out your style of MVC based off your example. My idea is to leverage the MVC into just 3 classes M: V: and C: and nothing more. (I am probably crazy but this little itch I have now will not go away) But because I have a disconnect on how the MVC is applied to an actual application I can not get grips on where to start. I feel that ANY actionscript one creates should be simplistic in nature and I feel that for any project you can fit everything into just a model a view or a controller. Or at least I'd like to try and test my theory... :) Please dont call me crazy, you'll just be spinning your SWFWheels. PS: by no means am I saying that anyone else's examples are crude or wrong. I have no stance to say such. Just a heart felt feeling I have that amongst the confusion of how its done correctly, there is a simplistic solution that everyone may be overlooking. That NEO if you will. On Mar 5, 2012, at 6:05 PM, Karl DeSaulniers wrote: Thanks Cor. On Mar 5, 2012, at 4:26 AM, Cor wrote: @Karl, I just created my first MVC and it is still in progress... Lots of fun! This video helped me a lot! http://pv3d.org/2009/02/11/actionscript-3-model-view-controller-mvc/ Unfortuneatly the tutor mentions Controller can update View, but that example is not included. If anyone can give me a little example of how that is done in MVC, don't hasitate. :-) best regards Cor van Dooren The Netherlands -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 27 februari 2012 11:19 To: Flash Coders List Subject: Re: [Flashcoders] MVC style Correction That actually makes a lot of sense to me and I haven't written one MVC yet. Thanks for the break-down! In relation to what Henrik said about using adaptors, I see the sub controllers as the adaptors, but they are not actually adaptors, just sub controllers with targets to the main controller. Yes? Best, Karl On Feb 27, 2012, at 1:16 AM, Ross Sclafani wrote: thanks, its just how i do MVC it really get interesting when you follow a mitosis development pattern... You start with one model, controller, and view, add features to each in parallel, and as each class gets too big, you break them out into subcontrollers, submodels, and subviews. Then sub-sub. My projects have a triple-tree structure branching out from the core model, controller, and view classes finer granularity as you reach further in, and always broken into M, V, and C: Models contain properties only. they dispatch a CHANGE Event every time one of their properties change,. Views display properties of the model. they listen for the CHANGE Event, and update their appearance with the new values stored in the model every time it changes. Controllers manipulate properties of the model. Whether trigger by event handlers in the views, or internal timers or network activity, any command that sets any value of any property of the model is placed in a controller. Controllers might use other controllers to trigger changes in submodels outside its subdomain the project starts off very compact, then grows with its functionality as required, always growing out from the center so you never paint yourself into a corner then later to optimize, you can get specific about which submodel a particular view is listening to, in turn limiting the number of change events it receives to those actually represented in the view. all subcontrollers hold a reference to the root controller, so it is easy to target any node on the controller tree from anywhere inside of it. same with the model tree. some submodel properties can emit the CHANGE Event only on a local level, and not send the event up the hierarchy, isolating the scope of view updates An MVC Example FLVPlayback is an interesting MVC component: it holds a NetStream as a model of the video it holds a Video as a view of the Video It acts as controller to set the model in motion by connecting it to a stream the ui is also a view of the video: the percent elapsed is represented n the scrub bar, ther is a play button while paused, a pause button while playing, then there are the time readouts.. if the video its playing, the user clicks pause in the view, it tells the controller to pause the stream in the model, which notifies the views, so the Video is paused, and pause button becomes a play button. thats how i do MVC. data is stored in mvc.models, data is displayed in mvc.views, and data is manipulated in mvc.controllers. Ross P. Sclafani design / technology / creative http://ross.sclafani.net http://www.twitter.com/rosssclafani http://www.linkedin.com/in/rosssclafani [347
Re: [Flashcoders] MVC style Correction
Forgive me if I am wrong, but I watched that video and it confused me. The gentleman started creating the view first then made the model and had the interaction between the two then went and created the controller and in creating the controller took away some code from the view that the model handled and gave it to the controller. He also had the view having reference to the model and controller. var model:Model = new Model(); var controller:Controller = new Controller(model); var view:View = new View(model, controller); shouldn't it be.. var controller:Controller = new Controller(); var model:Model = new Model(controller); var view:View = new View(model); ? Trying to wrap my head around this. Thanks for this video though Cor! It helped me see a real example so far of how to implement a MVC. Best, Karl On Mar 5, 2012, at 7:00 AM, Cor wrote: Thanks Paul, In the documentation I read there is mostly the View telling the Controller an event has taken place. The View holds e reference of the Model and the Controller. Look at : http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/actions cript/pdfs/ora_as3_design_patterns_ch12.pdf on page number 429 (is the 11th page of this file) So I have create this in my Document class like this: var model:Model = Model.getInstance(); //Singleton var controller:Controller = new Controller(model); var view:View = new View(model, controller, this.stage); addChild(view); To check if I understand you correctly, you would do something like this: var model:Model = Model.getInstance(); //Singleton var view:View = new View(model, this.stage); var controller:Controller = new Controller(model, view); addChild(view); And in the view instance, instead of my way: private function btn_clickHandler(e:MouseEvent):void { controller.setValueInModel(arrayButtons.indexOf(e.target)); } private function btn_clickHandler(e:MouseEvent):void { myPublicVar = arrayButtons.indexOf(e.target); dispatchEvent(new Event(View.MY_CUSTOM_EVENT)); } Ofcourse the Controller would then have a listener : view.addEventListener( View.MY_CUSTOM_EVENT, callback_function); Correct??? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews Sent: maandag 5 maart 2012 13:31 To: Flash Coders List Subject: Re: [Flashcoders] MVC style Correction On 05/03/2012 10:26, Cor wrote: @Karl, I just created my first MVC and it is still in progress... Lots of fun! This video helped me a lot! http://pv3d.org/2009/02/11/actionscript-3-model-view-controller-mvc/ Unfortuneatly the tutor mentions Controller can update View, but that example is not included. If anyone can give me a little example of how that is done in MVC, don't hasitate. :-) I don't think the controller should be updating the view. Period. Nor do I think that the view should be calling methods of the controller class. One of the main benefits of MVC is separation of concerns. Views shouldn't care about controllers, controllers should care about views. My views dispatch events about their changes and the controller listens for the events, not caring which view dispatched it. The controller updates the model, and the view listens for changes in the model. There are several ways to build the MVC pattern. The video shows one way, but really it shows a coupling that shouldn't be as tight as it is and the idea of a controller updating a view, is a no-no. Sometimes people use a micro-mvc architecture within a view to control it - no problem about that, but we should keep our MVC components as separate black boxes. Paul best regards Cor van Dooren The Netherlands -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 27 februari 2012 11:19 To: Flash Coders List Subject: Re: [Flashcoders] MVC style Correction That actually makes a lot of sense to me and I haven't written one MVC yet. Thanks for the break-down! In relation to what Henrik said about using adaptors, I see the sub controllers as the adaptors, but they are not actually adaptors, just sub controllers with targets to the main controller. Yes? Best, Karl On Feb 27, 2012, at 1:16 AM, Ross Sclafani wrote: thanks, its just how i do MVC it really get interesting when you follow a mitosis development pattern... You start with one model, controller, and view, add features to each in parallel, and as each class gets too big, you break them out into subcontrollers, submodels
Re: [Flashcoders] MVC style Correction
Bang! :) On Mar 6, 2012, at 4:21 AM, Cor wrote: My guess is the view needs the reference to the controller, because it invokes function in there to update the model through the controller. I am not a OOP or MVC specialist, and know nothing more as showed in the video, so don't shoot me! -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: dinsdag 6 maart 2012 11:08 To: Flash Coders List Subject: Re: [Flashcoders] MVC style Correction Forgive me if I am wrong, but I watched that video and it confused me. The gentleman started creating the view first then made the model and had the interaction between the two then went and created the controller and in creating the controller took away some code from the view that the model handled and gave it to the controller. He also had the view having reference to the model and controller. var model:Model = new Model(); var controller:Controller = new Controller(model); var view:View = new View(model, controller); shouldn't it be.. var controller:Controller = new Controller(); var model:Model = new Model(controller); var view:View = new View(model); ? Trying to wrap my head around this. Thanks for this video though Cor! It helped me see a real example so far of how to implement a MVC. Best, Karl On Mar 5, 2012, at 7:00 AM, Cor wrote: Thanks Paul, In the documentation I read there is mostly the View telling the Controller an event has taken place. The View holds e reference of the Model and the Controller. Look at : http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/ devnet/a ctions cript/pdfs/ora_as3_design_patterns_ch12.pdf on page number 429 (is the 11th page of this file) So I have create this in my Document class like this: var model:Model = Model.getInstance(); //Singleton var controller:Controller = new Controller(model); var view:View = new View(model, controller, this.stage); addChild(view); To check if I understand you correctly, you would do something like this: var model:Model = Model.getInstance(); //Singleton var view:View = new View(model, this.stage); var controller:Controller = new Controller(model, view); addChild(view); And in the view instance, instead of my way: private function btn_clickHandler(e:MouseEvent):void { controller.setValueInModel(arrayButtons.indexOf(e.target)); } private function btn_clickHandler(e:MouseEvent):void { myPublicVar = arrayButtons.indexOf(e.target); dispatchEvent(new Event(View.MY_CUSTOM_EVENT)); } Ofcourse the Controller would then have a listener : view.addEventListener( View.MY_CUSTOM_EVENT, callback_function); Correct??? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews Sent: maandag 5 maart 2012 13:31 To: Flash Coders List Subject: Re: [Flashcoders] MVC style Correction On 05/03/2012 10:26, Cor wrote: @Karl, I just created my first MVC and it is still in progress... Lots of fun! This video helped me a lot! http://pv3d.org/2009/02/11/actionscript-3-model-view-controller-mvc/ Unfortuneatly the tutor mentions Controller can update View, but that example is not included. If anyone can give me a little example of how that is done in MVC, don't hasitate. :-) I don't think the controller should be updating the view. Period. Nor do I think that the view should be calling methods of the controller class. One of the main benefits of MVC is separation of concerns. Views shouldn't care about controllers, controllers should care about views. My views dispatch events about their changes and the controller listens for the events, not caring which view dispatched it. The controller updates the model, and the view listens for changes in the model. There are several ways to build the MVC pattern. The video shows one way, but really it shows a coupling that shouldn't be as tight as it is and the idea of a controller updating a view, is a no-no. Sometimes people use a micro-mvc architecture within a view to control it - no problem about that, but we should keep our MVC components as separate black boxes. Paul best regards Cor van Dooren The Netherlands -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 27 februari 2012 11:19 To: Flash Coders List Subject: Re: [Flashcoders] MVC style Correction That actually makes a lot of sense to me and I haven't written one MVC yet. Thanks for the break