[flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods

2008-07-31 Thread Jo Morano
Hi! I am going over the examples in Flex 3 Cookbook and the one that allows connecting to user's microphone (page 243) has a compilation error. What's the best way to fix that? VBox mx:Script ![CDATA[ import flash.media.Microphone; public var mic:Microphone; // -- error: constructor

Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods

2008-07-31 Thread Paul Andrews
- Original Message - From: Jo Morano To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 9:40 PM Subject: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods Hi! I am going over the examples in Flex 3

Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods

2008-07-31 Thread Paul Andrews
- Original Message - From: Paul Andrews To: flexcoders@yahoogroups.com Sent: Friday, August 01, 2008 12:33 AM Subject: Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods - Original Message - From: Jo

Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods

2008-07-31 Thread Rick Winscot
: - Original Message - From: Jo Morano mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 9:40 PM Subject: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods Hi! I am going over

Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods

2008-07-31 Thread Jo Morano
Moving the script up to the application level didn't help. I've put the code from the book which should just compile (using an app now and moving vbox below): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 creationComplete=createMic()

Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods

2008-07-31 Thread Nancy Gill
Where is your createMic function? - Original Message - From: Jo Morano To: flexcoders@yahoogroups.com ; [EMAIL PROTECTED] Sent: Thursday, July 31, 2008 5:40 PM Subject: Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance

Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods

2008-07-31 Thread Paul Andrews
- Original Message - From: Jo Morano To: flexcoders@yahoogroups.com ; [EMAIL PROTECTED] Sent: Friday, August 01, 2008 1:40 AM Subject: Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods Moving the script up to the application