RE: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use of Adobe's Flash-to-iPhone Compiler
That such a notable, respected and high quality mac developer has come out publically against this ridiculous decision is great news. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Carl Welch Sent: Tuesday, 13 April 2010 10:46 a.m. To: Flash Coders List Subject: Re: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use of Adobe's Flash-to-iPhone Compiler 37 signals just posted a good article: Five rational arguments against Apple's 3.3.1 policy http://37signals.com/svn/posts/2273-five-rational-arguments-against-appl es-331-policy --carl ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What good is a Controller?
If you work on a PC I can highly recommend FlashDevelop. It comes with a really nice AS3 Preloader preset. Coupled with the Flex compiler you're straight into flaless Flash. Btw my opinion, I reckon you really need to take the plunge into AS3, asap. Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Wednesday, 31 March 2010 11:26 a.m. To: Flash Coders List Subject: Re: [Flashcoders] What good is a Controller? Thanks guys for your responses. Kerry, Too true. I've had to teach myself PHP, XML, MySQL, Javascript and I already knew HTML before I learned flash. I know there are a lot of AS2 jobs out there, but I live in a major city and major cities don't dwell in the older languages. So yeah, the scenario you were speaking of, just minus the wife. (but I digress) I really want to get into OOP and I feel like AS3 would be a better language to learn that in. I was going to learn it in AS2 just so I would know it, but that may be a good Learning AS3 project. Just don't want to bite off more than I can chew. I wish I already knew what the transitions were for the things I know how to code in AS2, but redoing all those projects in AS3 is what I have no time to do. So which of those other flash developing programs would be ok for doing AS2? Best, Karl On Mar 30, 2010, at 5:10 PM, Kerry Thompson wrote: Karl DeSaulniers wrote: I want to learn AS3, I really do, but it takes too much time away from making money for me that I find myself missing out. :( I wish it was easier to make the transition, but then everyone would be a AS3 developer, right. Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. COBOL used to be the dominant language for business apps. I haven't programmed in COBOL for 25 years, but I still see COBOL gigs posted. Once you get a sizable app built in a language, you have to have a compelling reason to switch to another. So, there are still COBOL programmers around, maintaining 20-year-old programs. I chose to teach myself AS3 because it's the future. I had a year of pretty low income while I was learning, and doing gigs at a reduced price to get practical experience. Fortunately, my wife earns enough that I could take that year to become proficient. Some people don't have that luxury. By the time you run out of AS2 gigs, you might be old enough to retire, or we might all be doing AS4, or some totally new environment and language. No one can predict the computer future with any accuracy, so we have to keep re-inventing ourselves every 3-5 years. In your career, you will probably need to learn at least 4 or 5 new languages--in my 30th year or programming, I'm on my 9th language. Cordially, Kerry Thompson ___ 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] bubbling listening
What he said - events only bubble up the display list. EventDispatcher doesn't extend DisplayObject (rather the other way round) - so even if your Sprite is an instance inside an EventDispatcher it can't be on the EventDispatcher's stage (EventDispatcher doesn't have a stage). Instead of subclassing EventDispatcher, consider subclassing a DisplayObject (Sprite or MovieClip) - which because they extend EventDispatcher will give you access to all the functionality you need. Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve Mathews Sent: Thursday, 18 March 2010 2:08 p.m. To: Flash Coders List Subject: Re: [Flashcoders] bubbling listening Might be obvious, but bubbling only works on the display list. So if your classes aren't all on the display list, then it won't work. Steve On Wed, Mar 17, 2010 at 11:39 AM, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Hi Jason, thanks for responding! Make sense? Almost. :-) What do you mean The EventDispatcher contains an instance of a sprite. The EventDispatcher has a private var that's a reference to a custom class that extends Sprite. The Event Dispatcher is instanced in the singleton, it's not on the stage, it just directs traffic, so to speak. Normally what you would do is not create an instance of EventDispatcher, but instead have your custom class extend Sprite (which already extends EventDispatcher anyway), have that sprite dispatch a custom event. Yes, that's happening. Then have your class listen to the instance of that class for the custom event you dispatch. Yes, I'm doing that too. So in summary, you write an event class, dispatch that custom event from the sprite class (the custom class that extends sprite) and listen for that event on that instance in your Singleton (the fact that it's a Singleton should be irrelevant). This is the part I'm not getting to work. What I have working is the following: Singleton - has private var EventDispatcher EventDispatcher - has private var CustomSprite CustomSprite dispatches CustomEvent. EventDispatcher catches CustomEvent from Sprite. EventDispatcher dispatches same CustomEvent. -- unnecessary step?? Singleton catches CustomEvent from EventDispatcher (passed along from CustomSprite). What I want is: CustomSprite dispatches CustomEvent Singleton catches CustomEvent. Within singleton, this does *not* work: myEventDispatcher[myCustomSprite].addEventListener... I have to pass the event up the ladder to the singleton. I'd rather leap over the EventDispatcher. - Michael M. ___ 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] Tween Issues
What Tween engine are you using? The built in Adobe Tween class? Are your tween instances declared within a class? I used to get a lot of issues with Tweens doing random things. I discovered that any tween instances needed to be declared as class vars as opposed to locally scoped. i.e., rather than private function moveSomething():void { var t:Tween = new Tween(...); } try: private var myTween:Tween; private function moveSomething():void { myTween = new Tween(...); } Personally I'd ditch Tween and move to TweenLite/TweenMax. Hope this helps. Barry. Theodore Lehr wrote: I have a bar graph where the bars are tweened the do no alway finish tweening... They are being drawn from the top down, so they do not alway make it to the bottom - and sometimes they do not get drawn at all... What could be causing this? ___ You have a bug in your code. Sorry--if you want something more specific, you need to tell us more. Cordially, Kerry Thompson ___ 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] Using MVC for a site framework
Cor, I've found it the other way - trying to find complex examples of MVC are hard - there are heaps of overly simple ones that don't really tell me a lot about wiring complicated applications together. Also, I recommend you take any advice/examples objectively. There are many ways to skin an MVC cat. Some frameworks are tightly coupled, some are loosely coupled, some use dependency injection, some don't. Some peoples examples have the logic in the controller, some in the model. Some people use the controller to load data and the model to store it. Some people extend the metaphor to MVCS (S for service - using service classes to load external data). There are so many different takes on it. Here's a really basic tutorial fwiw. Again, I'm not sure I agree with all of the methods involved, but like anything you can watch and learn from it and apply the bits that make sense to you. http://pv3d.s3.amazonaws.com/videos/tutorials/actionscript3/mvc/mvc.mp4 Personally, the more I look into Robotlegs the more I like it. Especially now people are starting to consider AS3Signals as the event method. This writeup says it all for me: http://alecmce.com/library/robotlegspong1 There's even source code to check the whole thing out. Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor Sent: Wednesday, 20 January 2010 9:00 a.m. To: 'Flash Coders List' Subject: RE: [Flashcoders] Using MVC for a site framework Jason, GREAT!!! Thank you. I hope the little one lets you rest. ;-) Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: dinsdag 19 januari 2010 20:58 To: Flash Coders List Subject: RE: [Flashcoders] Using MVC for a site framework Cor, if I can find some time, I'll try and send you a simple MVC example. We'll see how tonight goes with my 2 year old. Jason Merrill Bank of America Global Learning Learning Performance Soluions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor Sent: Tuesday, January 19, 2010 2:55 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] Using MVC for a site framework My version is ActionScript 3 Design Patterns by William Sanders Chandima Cumaranatunge. The MVC there is describe as a combination of several other patterns. The books is good, but I have to start at one level below that. Is there somewhere a shareable example of the MVC pattern?? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John McCormack Sent: dinsdag 19 januari 2010 20:48 To: Flash Coders List Subject: Re: [Flashcoders] Using MVC for a site framework Cor, I am only familiar with a part of it but the book ActionScript 3 Design Patterns by Joey Lott and Danny Patterson from Adobe Press has a nice example using an analogue and digital clock but only one set of data. You can imagine a wrist watch view asking to get informed when the time changes. John Cor wrote: Hi Jason, I hope you don't mind me addressing you of list. If you do, please ignore this message and I apologize to you! I am trying to grasp the MVC pattern, but it is very hard for me. I am looking for a very simple example which explains the way it works. If you can help me with this, I would be very greatful. Thanks in advance. Kind regards Cor van Dooren The Netherlands -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: dinsdag 19 januari 2010 17:35 To: Flash Coders List Subject: RE: [Flashcoders] Using MVC for a site framework This is my opinion, I'm sure others will have their own that may differ (and probably recommend you check out some frameworks - though that can be a lot to tackle) : the controller would listen to the model to know when the data is ready and available. It would then tell the view to start building. The main class would hold the references to the model, view, controller, but would not command any classes to do anything really. You could have the view listen to the model as well and skip the controller doing it, but I like the view to be more decoupled than that. I usually try and keep most listeners in the controller where possible, though many end up in the view, depending on the situation. I never have listeners in the model though, only events that are dispatched. I actually have the model start and do it's own XML loading, but you could have the controller tell it to do that, just seems like an unnecessary
RE: [Flashcoders] Still Infinitely Looping
Try: public function myLeftHand(e:Event=null):void { // } The myLeftHand method is being called when an event fires, so the event must be passed in as a method parameter. Event=null allows the event to be optional - so you could also call it without dispatching an event. Whomever told you to use enterframe to have something happen on frame 20 made a mistake. It's a valid way to get it working, I personally think an enterframe loop is a waste of resource for that case and, more importantly, I just don't think you're there yet. Go back to putting an action on the timeline at frame 20. Barry. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Still Infinitely Looping
Bingo - use this. Nice Henrik. Use addFrameScript and you get both code in one place and the speed of a framescript instead of a listener that is executed needlessly. ___ 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] ComboBox troubles
Hey Karl. The issue you are facing is that the function on the comboListen object (comboListen.change) steals your scope - so you don't have any access to all the things you need: picturesArry, thumbHolder etc. So, you can either, forget creating an object to handle events and just put your change function right there: function change(evt_obj:Object) { var selectNum:Number = colorBox.selectedIndex; if (selectNum = 1) { var pic = picturesArry[thumbHolder.ID][0]; thumbHolder[picture_box].loadMovie(pic, 0); thumbHolder.LoadVars(pic); } else { var pic = picturesArry[thumbHolder.ID][selectNum]; thumbHolder[picture_box].loadMovie(pic, 0); thumbHolder.LoadVars(pic); } } colorBox.addEventListener(change, this); Or, use the Delegate class to set the correct scope: import mx.utils.Delegate; var comboListen = new Object(); comboListen.change = Delegate.create(this, onChange); function onChange() { var selectNum:Number = colorBox.selectedIndex; if (selectNum = 1) { var pic = picturesArry[thumbHolder.ID][0]; thumbHolder[picture_box].loadMovie(pic,0); thumbHolder.LoadVars(pic); } else { var pic = picturesArry[thumbHolder.ID][selectNum]; thumbHolder[picture_box].loadMovie(pic,0); thumbHolder.LoadVars(pic); } } colorBox.addEventListener(change, comboListen); Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, 19 November 2009 2:28 p.m. To: Flash Coders List Subject: Re: [Flashcoders] ComboBox troubles Oh and this is an AS2 project too. Karl Sent from losPhone On Nov 18, 2009, at 7:22 PM, Karl DeSaulniers k...@designdrumm.com wrote: Hello List, Have a little snag on my hands. I am trying to get the value of a selected comboBox to change the picture of another MC. My code: var comboListen = new Object(); comboListen.change = function(evt_obj:Object) { trace(evt_obj.selectedIndex); var selectNum:Number = evt_obj.selectedIndex; if (selectNum = 1) { var pic = picturesArry[thumbHolder.ID][0]; thumbHolder[picture_box].loadMovie(pic,0); thumbHolder.LoadVars(pic); } else { var pic = picturesArry[thumbHolder.ID][selectNum]; thumbHolder[picture_box].loadMovie(pic,0); thumbHolder.LoadVars(pic); } }; colorBox.addEventListener(change,comboListen); thumbHolder = main MC that holds the picture and the comboBox [picture_box] = the picture MC inside thumbHolder that I want to load into. colorBox = the comboBox inside thumbHolder that I want to change the picture MCs contents with. FYI, by the time I get to using the listener, [picture_box] has already been loaded with the first image in the array of pictures. thumbHolder, colorBox and [picture_box] are dynamically loaded onto the stage at run time. How do I get colorBox's selection to change the picture in thumbHolder[picture_box]? Any help would be greatly appreciated at this point. this is my third day with this and I'm going crazy. Is there something I need to import to control the comboBox? I have import mx.control.ComboBox; already imported, do I need it? 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
RE: [Flashcoders] Problem with First Flash Movie
OK, I'm lost. You need a function mcHatAndFace so you can call an asset from the library? Does var myHatAndFaceInstance:mcHatAndFace = new mcHatAndFace(); not work? I suspect classes and subclasses might be beyond your level of ability right now, may I respectfully suggest you learn a bit more about why and how you use classes before dropping yourself in it? In the meantime keep firing questions about how to do specific things (as above) - the answers for those smaller questions might be more digestible. Barry. Now that would be wonderful, but I haven't figured out how to do that, because I have to somehow call mcHatAndFace so that I can work with that asset in the library. Indeed, you have hit on the very root of the problem, I believe. Please give me an idea how I might call that asset without using a function. TIA, beno ___ 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] Flicker feed doesn't seem to load
Put this code before your parsing routine: var atom:Namespace = new Namespace(http://www.w3.org/2005/Atom;); var dc:Namespace = new Namespace(http://purl.org/dc/elements/1.1/;); var flickr:Namespace = new Namespace(urn:flickr:); var media:Namespace = new Namespace(http://search.yahoo.com/mrss/;); default xml namespace = atom; It defines the namespaces for each specified in the start of the xml feed you're loading (feed xmlns=http://www.w3.org/2005/Atom; xmlns:dc=http://purl.org/dc/elements/1.1/; xmlns:flickr=urn:flickr: xmlns:media=http://search.yahoo.com/mrss/;) See how that works. Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Sinning Sent: Sunday, 15 November 2009 11:07 a.m. To: spamtha...@gmail.com; Flash Coders List Subject: Re: [Flashcoders] Flicker feed doesn't seem to load I'm considering using the old-school XMLDocument Class. This is so frustrating. I actually walked away from this about 6 hours ago, but I keep checking back on the list to see if anyone has a clue. Latcho wrote: From what I remember; Very bad documented: the API for using namespaces. Resulted in errorous code / xml. I ended up stripping the namespace from the xml. Latcho Andrew Sinning wrote: I'm finding to problems with the flick feed that I'm trying to load. In the root tag there are name-space attributes: xmlns:dc=http://purl.org/dc/elements/1.1/; xmlns:flickr=urn:flickr: xmlns:media=http://search.yahoo.com/mrss/; Flash has support for those, but I don't remember how you do it. ___ 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] Access shared object from other class
You're declaring it as a public variable, so if your other class has a relationship with your main instance you should have direct access: yourMainInstance._sharedBoardObject; I suspect what you're missing is a relationship with the instance of Main. Barry -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ktt Sent: Thursday, 15 October 2009 9:33 a.m. To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Access shared object from other class Hello, How to acces remote shared object from other class? I have package { import flash.net.*; import flash.display.*; public class Main extends Sprite { public var _sharedBoardObject:SharedObject; public var ncBoard:NetConnection; public var rtmpAddress:String; public function Main():void { ncBoard = new NetConnection(); rtmpAddress = rtmp://192.168.0.1/myApp; ncBoard.connect(rtmpAddress); _sharedBoardObject = SharedObject.getRemote(sharedBoard02, ncBoard.uri, false); _sharedBoardObject.connect(ncBoard); } } } I would like to add some data or modify shared object. How can I acces _sharedBoardObject from another class? Or maybe I need to connect to sharedBoard02 directly? Regards, Ktt ___ 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] just target children of particular node
Another approach that mitigates the risk posed by the xml structure changing (quite possible with a dynamic menu I reckon): siteNav.section.(@name==theirs).subsection bjh -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of thomas horner Sent: Friday, 28 August 2009 11:18 p.m. To: 'Flash Coders List' Subject: RE: [Flashcoders] just target children of particular node sorry worked it out - was easy and obvious - doh! for each (var section:XML in siteNav.section[3].subsection) { -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of thomas horner Sent: 28 August 2009 12:06 To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] just target children of particular node ok in the following xml how would i create a loop just from the children of his for each (var section:XML in siteNav.section.subsection) { site section name=about src=index/nav/about keep=false/ section name=hers src=index/nav/hers keep=false subsection name=small src=index/nav/hers/smalltheirs keep=true / subsection name=medium src=index/nav/hers/mediumtheirs keep=true / subsection name=large src=index/nav/hers/largetheirs keep=true / /section section name=his src=index/nav/his keep=false subsection name=small src=index/nav/his/smalltheirs keep=true / subsection name=medium src=index/nav/his/mediumtheirs keep=true / subsection name=large src=index/nav/his/largetheirs keep=true / /section section name=theirs src=index/nav/theirs keep=false subsection name=small src=index/nav/theirs/smalltheirs keep=true / subsection name=medium src=index/nav/theirs/mediumtheirs keep=true / subsection name=large src=index/nav/theirs/largetheirs keep=true / /section section name=contact src=index/nav/contact keep=true / /site ___ 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] ExternalInterface.call not working on desktop...??
AFAIK ExternalInterface doesn't work in the standalone player, only in the browser. You should be getting error messages to that effect. You can test whether or not it's available to use with the Boolean ExternalInterface.available property. BH -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of BOYD SPEER Sent: Friday, 31 July 2009 10:49 a.m. To: Flash Coders List Subject: Re: [Flashcoders] ExternalInterface.call not working on desktop...?? The menu.swf actually is set to Access local files only and seems to work only from the website... Thanks for responding Karl... would changing the setting to Access network files only allow a broader or narrower selection of files...? - Original Message - From: Karl DeSaulniers k...@designdrumm.com Date: Thursday, July 30, 2009 5:31 pm Subject: Re: [Flashcoders] ExternalInterface.call not working on desktop...?? To: Flash Coders List flashcoders@chattyfig.figleaf.com Check you publish settings, you probably have it set to network only. Karl On Jul 30, 2009, at 5:21 PM, BOYD SPEER wrote: Hi all, I am probably missing something obvious but I have a flash .swf in embedded in .html and an ExternalInterface.call( to javascript). It works great from my website in both I.E. and Firefox - but not from the computer desktop (even though all the files are in the same relationship in their folders, etc..) Is there some security setting or other setting that I need to check to make this work? or is it just not possible? Thanks for any insights! -Boyd ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Seek bar not working with FLVPlayback Component?
Fwiw, you can set Actionscript cue points that trigger when your flv reaches a frame. That wouldn't increase flv file size. This works irrespective of keyframes in the video file. However it has less accuracy (+/- 500ms apparently) than a metadata cue point and associated keyframe. var cue1:Object = new Object(); cue.time = 8.5; // seconds cue.name = THIS_IS_MY_CUE_POINT; cue.type = CuePointType.ACTIONSCRIPT; myFlvPlaybackInstance.addASCuePoint(cue); myFlvPlaybackInstance.addEventListener(MetadataEvent.CUE_POINT, handleCuePoint); BH. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Peter B Sent: Friday, 31 July 2009 1:29 p.m. To: Flash Coders List Subject: Re: [Flashcoders] Seek bar not working with FLVPlayback Component? You can't. Setting cue points for time based navigation inserts a key frame. You can only seek to key frames. It's all covered in that article, specifically: Specify the type of cue point you want to embed. You can embed either a navigation or event cue point. * Event cue points are used to trigger ActionScript methods when the cue point is reached, and let you synchronize the video playback to other events within the Flash presentation. * Navigation cue points are used for navigation and seeking, and to trigger ActionScript methods when the cue point is reached. Embedding a navigation cue point inserts a keyframe at that point in the video clip to enable viewers to seek to that point in the video. Note: Adding additional keyframes can lower the overall quality of a video clip. For this reason, navigation cue points should only be used when users will need to seek to a particular point within the video. ___ 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] To Void or not to void?? That is my question..
Karl, a function returns something if you include a line return value at the end of the function... For example, if you had a function that returned a random number below 100: function giveMeARandomNumberBelow100():Number { var myRandomNumberBelow100:Number = Math.random() * 100; return myRandomNumberBelow100; } Pointless function of course, but you get the idea? Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Tuesday, 14 July 2009 4:30 p.m. To: Flash Coders List Subject: Re: [Flashcoders] To Void or not to void?? That is my question.. Thanks for the quick response Taka, So what contitutes a return? I have used the :Void on functions that had a gotoAndPlay() inside it and it didnt work. But if I removed the :Void, it did!?! Karl On Jul 13, 2009, at 11:18 PM, Taka Kojima wrote: :Void is AS2, and :void is AS3 The definition of void is nothingness: the state of nonexistence... The syntax of functionName():void{} simply states that the function returns nothing... i.e. there is no return at the end of the function. Although specifying a :void return type is not necessary in AS3, it is considered best practice to include it. I believe it will generate warnings if you don't. In AS2, it really doesn't matter if you do :Void after functions. The reason this syntax exists is to make it easy for compilers to easily identify problems in regards to object types, i.e. if you're trying to use the return value of a function as a MovieClip when it should really be an Array, or void. It also makes it easier for you to see what type of value the function is returning just by looking at the top of the function definition. - Taka On Mon, Jul 13, 2009 at 9:07 PM, Karl DeSaulniers k...@designdrumm.comwrote: Using AS2. When is it best to use the :Void ? and what is the difference between that and :void ? I have a somewhat understanding of what each are, I am asking more to you (The List) as a programers, what is the best case scenarios to use these things? What are the advantages and why use them if say, your function works without them? I know that the Void is a Boolean, but I also know you cant use it when the statement returns something. Does this return include any of the basics like gotoAndPlay? or does it literally mean a return(); ??? Thanks for any clarification anyone can give me. Best, 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] styled text disappears when clicked or animated
I have a similar issue, runtime created Textfields in a scrolling list. If the mouse is within the bounds of the list and I use the scrollwheel to scroll, when the text goes under the cursor it vanishes. I've tried cache as bitmap, didn't work. Any ideas to overcome this annoying little bit of Flash voodoo? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel Stransky Sent: Friday, 10 July 2009 9:37 a.m. To: Flash Coders List Subject: [Flashcoders] styled text disappears when clicked or animated I have an entire site full of runtime created TextFields. Some are styled with Stylesheet objects, others with TextFormat objects. That all works fine but when it comes time to script some tweens on them or their display parents, the text disappears! Running the .swf by itself locally tends to work just fine but as soon as a browser displays it... poof, gone. I haven't done much testing with and without formatting/styling/embeded fonts since going without is pretty much out of the question. Anyone know the wicked little trick I know exists out there somewhere? I just want to finish this bad boy and get some sleep. :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] styled text disappears when clicked or animated
Joel, wondering (seeing as cacheBitmap alone doesn't seem to want to work for me) if adding a subtle filter to text might encourage it to stay put? I'm going to give it a try. Barry. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Friday, 10 July 2009 11:19 a.m. To: Flash Coders List Subject: Re: [Flashcoders] styled text disappears when clicked or animated From Adobe LiveDocs: cacheAsBitmap AS2 http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Partsfile=2445.html Best, Karl ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] adding child movie clips in a loop
Put them in an array. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of php_mysql_ as_ dev Sent: Monday, 15 December 2008 9:00 a.m. To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] adding child movie clips in a loop Hello This code seems to give me a column of 10 instances of myMovieClip. But it doesn't make sense because each instance is referenced by mc. How would I reference each clip? public class create_ten_clips extends MovieClip { public var mc:MovieClip = new MovieClip(); public function create_ten_clips() { for(var i:int = 0; i 10; i++) { mc =new myMovieClip(); this.addChild(mc); mc.y=i*100; } } } ___ 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] What heck is up with parent in actionscript 3?
...no free flash player... I don't recall ever having to pay for the Flash player. I can't believe I'm asking this, but what _are_ you on about? *opens can of worms, stands back* Don't use it ! Running after latest and greatest thing isn't necessarely a good thing. Beside, no free flash player supports AS3 at the moment, so your choice will affect freedom of people to use the content you make available. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] What heck is up with parent in actionscript 3?
Seriously, consider dispatching an event from the child, listened to by the parent. There has to be a way to make a call to a MC's parent... isn't there? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re: Flex vs. Flash
I wouldn't have thought there were too many AS3 developers still using code within the .fla? It's so easy to set up FlashDevelop to compile with the Flex SDK and build every bit of your project through it. Of course you can then add visual assets, timeline animations, skin your components etc in Flash, compile a .swc and utilize those assets in FlashDevelop with autocomplete. Now you can even preload them properly ;) Must give Flex a go one of these days though. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] The Charges Against ActionScript 3.0
I agree with you to a point Steven, but speaking for myself if I may. I used to be a child as you put it - to the extent that all Flash developers/designers were back in the day. Keeping up with the code side of things as they have developed - beyond the expectations of everyone - has been interesting (I don't have a programming background). We've all had to grow, as developers and users have expected more from the tools and the applications made with them. Call it progress, professional development, whatever. If you don't keep up in this industry you're toast (or destined to make banners). I wonder why someone who likes their timeline paradigm would even bother with AS3, why not just stick to AS2? You can still code for player 9 and take advantage of fullscreen or HD. Might not last long but for now why not? If you don't care about learning the code, why would you care about whether it's AS3 or not? To me that point is missing from Colin's argument, Adobe made the effort to include 2 VM's so old content would be supported. Just us AS2. Am I missing something? Barry. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Thursday, 17 July 2008 12:18 p.m. To: Flash Coders List Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0 Ashim D'Silva wrote: Flash is not a toy. You can't pick it up, with no prior knowledge, and expect to have a app 2 hours later. --- This is where we part ways. Flash used to be a toy, and, up until Flash 8, it still could be. Now, with AS3, Flash has ceased to be a child's toy and is now only a toy for adults. Child, in this sense, means non-programmer who is more comfortable with design and timeline animation, and adult meaning seasoned programmer. The notion that Flash is not (or was ever) meant to be easy enough to just pick up and make something really quick is diametrically opposed to reality. The reason you see so much BAD Flash is because it was SO EASY to use for even non programmers. It's the same with all the bad HTML. It's like saying that AJAX means that the web browser is no longer a toy. The difference here is that browsers still accept noob HTML coding standards (according to people who are AJAX/CSS experts), but Actionscript 3 gives you zero latitude. Flash is, at its _root, a vector animation tool with a scripting language tacked on. To say that a vector animation tool is not a toy is pretty far off the mark. Actionscript 3 takes Flash away from the realm of the artist and into the realm of the programmer. It makes simple things harder (regardless if it's better, it's still harder for non-coders) and is thus much less appealing to its original core audience, and a VAST MAJORITY of the people who use it. Sorry, but good Flash coders are hard to find. You just think otherwise because you run in these circles. For every person participating in online Flash development communities, there are thousands who aren't. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Netstream fails to close
FYI, When I post to this list I'm openly and honestly explaining my situation. I would never suggest that someone with as much experience as yourself 'pulled code out of their ass'. I have a fair bit of experience myself and it wasn't working for me. The links I included were simply to illustrate that others had the same difficulty. No they didn't have the answers, or I wouldn't have needed to post here asking for help. I was calling ns.pause() nz.close() I wasn't setting the object to null or waiting x milliseconds. I didn't want to re-instantiate the object. A delay was something I was considering. What it turned out to be was that in some other class in the same sequence of events the NetConnection object instance was having it's setServer method called *before* the ns.pause() and ns.close(). I rearranged the code and it worked. Streams terminate as they should. Client is happy. Seriously, thank-you for your help, I do appreciate it. There's no need to get upset mate. Barry. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Tuesday, 8 July 2008 8:36 p.m. To: Flash Coders List Subject: Re: [Flashcoders] Netstream fails to close Barry, FYI, I didn't just throw out an idea and pull some code out of my ass. I have tackled this exact issue for a client that needed to stop a stream from downloading when they closed the stream, and couldn't actually kill streams when the user interaction resulted in spamming new NetStreams. The solution is to throttle the requests, using the exact code I provided. If you're saying you call ns.pause(); ns.close(); ns = null; and the NetStream continues to download afterwards *when you do not attempt to open another NetStream*, then there's something else going on because that works. If you immediately try to play another stream, even if it's not on same NetStream instance, then the previous one will not stop downloading (that's the bug). When you throttle the requests for new streams, the problem goes away. -Steven ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Netstream fails to close
It's mentioned by plenty of people here: http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=Flash_MX_2004file=1594.html here: http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Ma cromedia_Flash/Q_23515050.html here: http://forum.lighttpd.net/topic/72358 none of which have answers that work. I could cast the sound onto a separate object and mute it, so that you don't see or hear any ill effects, but my proxy tells me the flv is still downloading, so if one of my clients users clicks on 10 video clips their connection will crawl to a halt. Anyone? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Sunday, 6 July 2008 9:41 a.m. To: Flash Coders List Subject: Re: [Flashcoders] Netstream fails to close The only bug with NetStream that I know of is if you're spamming it with new streams too quickly. The solution is to throttle the requests. A safe time to wait between changing the streams is 250ms. It's really simple to write a queueing system that does this. You just overwrite the same variable and reset the timer. var currentStream:String; var timer:Timer = new Timer(250, 1); timer.addEventListener(TimerEvent.TIMER, onTimerEvent); function queueNewStream(value:String):void { currentStream = value; timer.reset(); timer.start(); } function onTimerEvent(event:Event):void { netStream.pause(); netStream.close(); netStream.load(currentStream); } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Netstream fails to close
Appreciate the responses. Pause doesn't work. There is only one netstream object instance so no scoping issue. It's a bona fide bug, I just want to know if anyone has a workaround/hack to beat it. From: [EMAIL PROTECTED] on behalf of Steven Sacks Sent: Sun 6/07/2008 6:00 a.m. To: Flash Coders List Subject: Re: [Flashcoders] Netstream fails to close You have to pause() before you close(). Jason Van Cleave wrote: sounds like a scope issue where you have multiple netstream objects On Thu, Jul 3, 2008 at 9:54 PM, Barry Hannah [EMAIL PROTECTED] wrote: I'm trying to fix a bug in a video player. Selecting a new video to play from a playlist, plays correctly but the first clip's audio doesn't die. I'm using NetStream.close(), it doesn't appear to work. It works if I wait for the first clip to download fully, just not if I select a new clip when the first is still loading. HELP! ___ 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 Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Netstream fails to close
I'm trying to fix a bug in a video player. Selecting a new video to play from a playlist, plays correctly but the first clip's audio doesn't die. I'm using NetStream.close(), it doesn't appear to work. It works if I wait for the first clip to download fully, just not if I select a new clip when the first is still loading. HELP! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Is Adobe fixing this big FP9 problem?
1) Are flv's affected? 2) Does it ruin Adobe media player? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Is Adobe fixing this big FP9 problem?
Can you please refrain from your personal tirade on this list? I'm sick of your potty mouth, it's completely unprofessional and unnecessary. If you have an axe to grind with Steven, email him directly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of laurent Sent: Tuesday, 15 April 2008 10:57 a.m. To: Flash Coders List Subject: Re: [Flashcoders] Is Adobe fixing this big FP9 problem? Steven Sacks a écrit : Thanks for the link to Alex Harui's post, Francis. It unquestionably supports my stance that only advanced developers should be using AS3 and everyone else (95% of Flash developers) should stick with AS1/AS2. Bullshit This issue of not unloading swfs unless you explicitly turn everything off inside it is another prime reason why only expert developers should be coding AS3. Bullcrap The fact that it doesn't actually work even when you do requires a high level of programming skill to manage correctly. This is not the realm of designers, animators and low to mid level Flash developers. Who are you for god sake ? I know who you are it's just to mean it means nothing. Nobody wants to acknowledge the strictness in AS3 is not merely syntax, but extends to the entire way you develop. Most Flash developers out there are not strict or disciplined programmers. Nice. sources ? I don't ask for your clean code here. AS2's looseness (and the ability to unload swfs) is still best for creative Flash development except in the trained hands of Flash experts who know how to manage the memory management issues. yeah we know creatives are just a bunch of troubadour...nearly monkeys, give them bananas and they'll have fun. If the GC implementation in Flash was truly transparent, then somebody would be able to explain why Grant's localConnection hack to force the GC to run worked. The Flash team would also provide some API methods into it. There is no API to the GC, therefore it's implementation is not transparent. True they must be something hidden by the team, something nasty, their own shit I think. Remember shit is the essence of the world everything grows out of shit. And to the guy who said Disney doesn't give a shit, you're wrong. Disney is undergoing a major overhaul of all their Flash content to AS3. They've been in touch with Adobe about this. Let's not spread misinformation here. I think Adobe has done enough. You can't even read you mail box...I don't know who's misinforming people here, where do you glance your informations, from true moment of inspiration or you work for the aliens...? Laurent Quoting Dsiney, Hey man you know how much money we make in our parks, on exploiting poor students, comedians, other unknown artists make them play Dingo or Donal Duck ;) What is memory used for in a computer ? Memory is dangerous man. ___ 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 Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: Date Object for MySQL Database
I suspect the database requires it in ISO date format. The application layer should be able to convert a correctly formatted string to an ISO date, I have a class that (for better or worse) extends the Date class adding two methods: getIsoFromDate() and getDateFromIso(). Sent to your gmail. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Cintron Sent: Thursday, 20 March 2008 1:09 p.m. To: Flash Coders List Subject: [Flashcoders] RE: Date Object for MySQL Database Hey all, I'm in a bit of a conundrum. I have 3 text fields in my Flex App. Textfield 1 is for Month, Textfield 2 is for Day and Textfield 3 is for year. I want to insert those fields into my database. My database has a column date field. I cannot get the strings to be inserted into the DB. When I send the request, my fields value is -00-00. Some how it is not converting. I sent the object as a datatype Date(). Here is what I did... var weekVO:WeekVO = new WeekVO(new Date(this.yearTextInput.text, this.monthTextInput.text, this.dayTextInput)); Clearly I'm doing something wrong, unfortunately I am unfamiliar with the objective. Does anyone have any insight? -- Anthony Cintron Flash || Flash Developer www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] dictionary vs array
The best use for them is to be able to find something you've stored by its key - as opposed to having to loop through an entire array to find it. Pretty damn handy, but sorting them can be complicated. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte | BLITZ Sent: Wednesday, 12 March 2008 8:42 a.m. To: Flash Coders List Subject: RE: [Flashcoders] dictionary vs array Thanks Steven, I never really understood what a dictionary was myself, so dictionary would be useful for something like this ? dictionary = new Dictionary(); button1 = new Button() dictionary[button1] = http://www.google.com;; button2 = new Button() dictionary[button2] = http://www.yahoo.com;; function onButtonClick(event:MouseEvent){ trace(dictionary[event.target]); } BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Tuesday, March 11, 2008 12:14 PM To: Flash Coders List Subject: Re: [Flashcoders] dictionary vs array An Array is a linear collection. A Hash is a random access collection (lookup table) of name-value pairs. Dictionary is a fancy Hash that can take an Object as a key, instead of a String, and uses strict (===) equality for its lookups. hash = new Object(); hash.foo = bar; array = new Array(); array.push(hello); array.push(world); dictionary = new Dictionary(); dictionary[hash] = array; trace(hash.foo); -- bar trace(array) -- hello, world trace(dictionary[hash]); -- hello, world ___ 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 Scanned by Bizo Email Filter ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Streaming video (RTMP / Flash Media Server 3) load progress bar
Is there any way to show load progress with streaming video? NetStream.bytesLoaded and NetStream.bytesTotal return 0, NetStream.bufferLength shows merely how many seconds are left to load to reach your previously set NetStream.bufferTime property. I even found an undocumented decodedFrames property which traces out remarkably similarly to NetStream.time. How do I indicate the load progress? Barry. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders