Hi Monica, it should be sufficient to set _conn to null.
Cheers, Ralf. On 8/8/06, moni_singhal <[EMAIL PROTECTED]> wrote: > Hi, > I m facing a problem while migrating one of my aplication from > Flex1.5 to Flex2.0. > In ActionScript 2.0, we could use 'delete' to remove an object or on > an object property. > In ActionScript 3.0, the delete operator is now ECMAScript > compatible, meaning delete can only be used on a dynamic property of > an object. > > So how to declare a dynamic property ,if in flex1.5 my code is like > dat: > > _conn = new LocalConnection(); > _conn.fileUploaded = fileUploaded; > _conn.connect(localConnectionKey + connectionNumber); > ****************** > delete _conn; > Now i m getting d error: > Error: Attempt to delete the fixed property _conn. Only dynamically > defined properties can be deleted. > delete _conn; > > > So could you plz help me out how to create a dynamically defined > properties in this context. > > Thanks, > Monika > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > -- Ralf Bokelberg <[EMAIL PROTECTED]> Flex & Flash Consultant based in Cologne/Germany -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

