Hi, I had a similar problem a time ago, when some method should return a String but it returned an Array. Maybe they update the software but forget to update the documentation.
So, yeah, MDM please update the documentation. :-) Regards, Andre On 9/4/06, Andreas Rønning <[EMAIL PROTECTED]> wrote:
Thought i'd share this. Found it amusing. I've been using Zinc for a while and for the most part i have no complaints, since most i use it for is simply blocking alt+f4 and escape (kiosk apps). Recently however i had a requirement to play a high quality movie, so i thought cool, i get to use the MediaPlayer9 functionality (which for the uninitiated basically drops an instance of windows media player 9 on top of the flash window and gives you callbacks for it). So i need functionality for checking when playback has ended, and i find it in the event onWMP9ChangeState, which according to the docs is described as such: usage- mpInstance.onWMP9ChangeState:Function parameters- newState:Number I hook up a listener, put a switch/case in it for newState and.. Nothing happens. I read up the docs again and in the example, what the event actually passes is an object with a newState *parameter*. Ok cool, whatever, i change my switch conditional to accomodate this new fantastic knowledge, and... Still nothing. At this point i'm a little stressed out, and i put an mdm.Dialogs.prompt(obj.newState) to see what happens, and indeed, the event does fire, the prompt looks like what i expected it to, but still the switch/case doesn't work properly. So i'm tearing my hair out for a bit, until i somehow put typeof(obj.newState) in a prompt, and.. Yep. It's a string. So here we have docs that describe the parameter passed from an event as a number, but in fact is an object, containing a parameter that is the number. As a string. I'm not entirely sure what this means, but it actually made me laugh out loud. Putting a parseInt(obj.newState) solved my problem. For the love of god MDM, if any of you guys are on this list, fix your docs. PLEASE. For everyone else, you have been warned about the docs :P Consider them hints, not information. - A _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- /* André Nachtigall Tessmann [EMAIL PROTECTED] +55 53 81165721 */ _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com