[flexcoders] Re: new Microphone API's in Flash CS4 / Flash 10 missing?
nevermind. I found what was wrong. senior moment. On Fri, Nov 6, 2009 at 3:14 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Hey All, Why does the Microphone class have documented api's, but yet when compiling in flash cs4 they aren't available. Microphone.getMicrophone().codec = SoundCodec.SPEEX; //SoundCodec isn't found, and it complains that codec isn't a property. But it's clearly reference in the documentation. http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Microphone.html#codec There are numerous new properties on the mic class, and even the latest flex sdk doesn't have them available. Any ideas? Thanks
[flexcoders] new Microphone API's in Flash CS4 / Flash 10 missing?
Hey All, Why does the Microphone class have documented api's, but yet when compiling in flash cs4 they aren't available. Microphone.getMicrophone().codec = SoundCodec.SPEEX; //SoundCodec isn't found, and it complains that codec isn't a property. But it's clearly reference in the documentation. http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Microphone.html#codec There are numerous new properties on the mic class, and even the latest flex sdk doesn't have them available. Any ideas? Thanks
[flexcoders] ASDoc and .as includes?
Hey all, How can I get asdoc to play nice with includes? By includes, I don't mean the asdoc -includes command flag. that's for including swcs. I mean the preprocessor includes like: include some_as_file.as I have some classes that use the same logic, so I've put it in includes. But it breaks asdoc. any ideas? Thanks -Aaron
Re: [flexcoders] few compc questions
Ah, I didn't realize it was part of the compiler. switches. Thanks. On Mon, Dec 22, 2008 at 10:30 AM, Manish Jethani manish.jeth...@gmail.com wrote: On Sat, Dec 20, 2008 at 1:13 AM, aaron smith beingthexemplaryli...@gmail.com wrote: Yeah that -include-libraries worked. Strange as it isn't documented in the compc help, or the online docs for compc. How did you come about finding that? I gave the '-help' option to compc on the commandline. bash$ compc -help include Adobe Flex Compiler (compc) Version 3.2.0 build 3958 Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved. -compiler.include-libraries [library] [...] alias -include-libraries a list of libraries (SWCs) to completely include in the SWF (repeatable) ... -- http://manishjethani.com/
Re: [flexcoders] Re: SWF file format question - SymbolClass Tag
Ok, that makes sense. Do you know by any chance if anything like this will be added to Flash CS4 anytime soon? This is precisely why I'm going down this road of modifying the actual SWF - because it's not flex compiled. Thanks. On Mon, Dec 22, 2008 at 10:26 AM, Alex Harui aha...@adobe.com wrote: The most common way to do this is to generate a link-report from the shell and use load-externs when building the sub-swf. Keep in mind that by doing so you commit the sub-swf to be linked with and running the same version of Flex as the shell. The Marshal Plan in Flex 3.2 is a way to build sub-swfs w/o requiring same versions. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aaron smith Sent: Sunday, December 21, 2008 1:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: SWF file format question - SymbolClass Tag Hey Gordon, The reason I wanted to remove a class was because I have two swfs - a shell, and some other swfs, and didn't want the same class compiled into every swf - thereby wasting K. So i was looking for a way to manual remove a class from sub-swfs. -A On Sun, Dec 21, 2008 at 12:55 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Thanks, externs is pretty much what I was looking for. On Fri, Dec 19, 2008 at 9:02 PM, Alex Harui aha...@adobe.com wrote: There are three mxmlc options: -load-externs (removes all files listed from some other -link-report -compiler.external-library-path (remove all files from a SWC) -externs (removes a class) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag Also, I'm pretty sure that there is some compiler option you can use to prevent specific classes from getting linked in. That's a lot easier than trying to remove them after they've been linked in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag The AS3 classes are in the DoABC (or maybe a DoABC2?) tag. It seems unlikely that you could remove a class and still have the SWF work. If the class wasn't used by your application, the MXML compiler wouldn't have linked it in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aaron smith Sent: Wednesday, December 17, 2008 3:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SWF file format question - SymbolClass Tag Actually, I could be wrong. would it make more sense if it was the DoABC tag? There's a field on DoABC called ABCData - I would assume that's the bytecode. hmm. i'll keep looking arund. if anyone has any ideas hook me up. On Wed, Dec 17, 2008 at 1:44 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Has anyone read through the SWF file format, and been able to decipher how exactly AS3 classes are compiled into the SWF? From reading through all of the control tags it seems it would be the SymbolClass tag. So, it would seem, I could rip out SymbolClass tags from the bytecode (for a specific class) - while keeping track of the new file length, then write the swf again and have a swf that doesn't include the definition for a particular class. Anyone else think that makes sense? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: SWF file format question - SymbolClass Tag
Ok. then I won't go down that route. I'll go down the asset swf with mxmlc route. I wrote this JSFL (http://codeendeavor.com/archives/47), but there are cases when it doesn't work, like cross referencing classes, etc.. thanks man. -A On Tue, Dec 23, 2008 at 10:17 AM, Alex Harui aha...@adobe.com wrote: I doubt they will be adding such a feature anytime soon. You may be able to fake out CS4 by modifying the files you link against in a sub-swf to have native APIs. However, if I had that large a project in Flash, I would probably just use jsfl to export SWFs of assets and build the rest using ANT and mxmlc and then you can use the link options. Modifying a SWF post-build is hard. There are plenty of offsets in the SWF that will need updating. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aaron smith Sent: Monday, December 22, 2008 11:08 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: SWF file format question - SymbolClass Tag Ok, that makes sense. Do you know by any chance if anything like this will be added to Flash CS4 anytime soon? This is precisely why I'm going down this road of modifying the actual SWF - because it's not flex compiled. Thanks. On Mon, Dec 22, 2008 at 10:26 AM, Alex Harui aha...@adobe.com wrote: The most common way to do this is to generate a link-report from the shell and use load-externs when building the sub-swf. Keep in mind that by doing so you commit the sub-swf to be linked with and running the same version of Flex as the shell. The Marshal Plan in Flex 3.2 is a way to build sub-swfs w/o requiring same versions. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aaron smith Sent: Sunday, December 21, 2008 1:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: SWF file format question - SymbolClass Tag Hey Gordon, The reason I wanted to remove a class was because I have two swfs - a shell, and some other swfs, and didn't want the same class compiled into every swf - thereby wasting K. So i was looking for a way to manual remove a class from sub-swfs. -A On Sun, Dec 21, 2008 at 12:55 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Thanks, externs is pretty much what I was looking for. On Fri, Dec 19, 2008 at 9:02 PM, Alex Harui aha...@adobe.com wrote: There are three mxmlc options: -load-externs (removes all files listed from some other -link-report -compiler.external-library-path (remove all files from a SWC) -externs (removes a class) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag Also, I'm pretty sure that there is some compiler option you can use to prevent specific classes from getting linked in. That's a lot easier than trying to remove them after they've been linked in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag The AS3 classes are in the DoABC (or maybe a DoABC2?) tag. It seems unlikely that you could remove a class and still have the SWF work. If the class wasn't used by your application, the MXML compiler wouldn't have linked it in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aaron smith Sent: Wednesday, December 17, 2008 3:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SWF file format question - SymbolClass Tag Actually, I could be wrong. would it make more sense if it was the DoABC tag? There's a field on DoABC called ABCData - I would assume that's the bytecode. hmm. i'll keep looking arund. if anyone has any ideas hook me up. On Wed, Dec 17, 2008 at 1:44 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Has anyone read through the SWF file format, and been able to decipher how exactly AS3 classes are compiled into the SWF? From reading through all of the control tags it seems it would be the SymbolClass tag. So, it would seem, I could rip out SymbolClass tags from the bytecode (for a specific class) - while keeping track of the new file length, then write the swf again and have a swf that doesn't include the definition for a particular class. Anyone else think that makes sense? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com
[flexcoders] compc -include-namespace question
Does the -include-namespace correlate to the mxmlc namespaces.namespace switch? Also, (this is kind of broad), but in what situation do the namespace flags need to be used? I'm thinking it's for the namespaces in mxml (like myNameSpace:..) Thanks yo.
Re: [flexcoders] compc -include-namespace question
Thanks Manish! perfect explanation. Thanks again! On Tue, Dec 23, 2008 at 2:02 PM, Manish Jethani manish.jeth...@gmail.com wrote: On Wed, Dec 24, 2008 at 1:33 AM, aaron smith beingthexemplaryli...@gmail.com wrote: Does the -include-namespace correlate to the mxmlc namespaces.namespace switch? Also, (this is kind of broad), but in Yes. what situation do the namespace flags need to be used? I'm thinking it's for the namespaces in mxml (like myNameSpace:..) Thanks yo. include-namespace is an alternate way of doing include-classes. compc ... -namespace http://example.com/foo $foo_dir/manifest.xml -include-namespaces http://example.com/foo Here you're: 1. mapping the namespace http://example.com/foo to the manifest.xml file in $foo_dir 2. including all classes listed in that namespace The manifest.xml file looks like this: ?xml version=1.0 encoding=utf-8? componentPackage component id=FooComponent class=com.example.foo.FooComponent / ... /componentPackage The advantage of course is that you can use the namespace directly in any application that uses the SWC. Application foo:FooComponent xmlns:foo=http://example.com/foo; / ... /Application -- manishjethani.com
Re: [flexcoders] compc -include-namespace question
Hey Manish, one more question about your response. It seems like the only way to use the compiled namespaces is with the local namespace in mxml, like: local:MyComponent label=Click Me/ Is this correct? I don't see a way to specifically allow you to compile in a component so that you can use mxml like so: foo:MyComponent label=Click Me/ Thanks. On Tue, Dec 23, 2008 at 4:16 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Thanks Manish! perfect explanation. Thanks again! On Tue, Dec 23, 2008 at 2:02 PM, Manish Jethani manish.jeth...@gmail.com wrote: On Wed, Dec 24, 2008 at 1:33 AM, aaron smith beingthexemplaryli...@gmail.com wrote: Does the -include-namespace correlate to the mxmlc namespaces.namespace switch? Also, (this is kind of broad), but in Yes. what situation do the namespace flags need to be used? I'm thinking it's for the namespaces in mxml (like myNameSpace:..) Thanks yo. include-namespace is an alternate way of doing include-classes. compc ... -namespace http://example.com/foo $foo_dir/manifest.xml -include-namespaces http://example.com/foo Here you're: 1. mapping the namespace http://example.com/foo to the manifest.xml file in $foo_dir 2. including all classes listed in that namespace The manifest.xml file looks like this: ?xml version=1.0 encoding=utf-8? componentPackage component id=FooComponent class=com.example.foo.FooComponent / ... /componentPackage The advantage of course is that you can use the namespace directly in any application that uses the SWC. Application foo:FooComponent xmlns:foo=http://example.com/foo; / ... /Application -- manishjethani.com
Re: [flexcoders] compc -include-namespace question
Oh wait, I see it. So I could define map a namespace in the application tag to the comipled namespace. like... Application xmlns:foo=http://example.com/foo; And that would allow me to use foo:MyComponent. Right? Thanks again. On Tue, Dec 23, 2008 at 4:37 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Hey Manish, one more question about your response. It seems like the only way to use the compiled namespaces is with the local namespace in mxml, like: local:MyComponent label=Click Me/ Is this correct? I don't see a way to specifically allow you to compile in a component so that you can use mxml like so: foo:MyComponent label=Click Me/ Thanks. On Tue, Dec 23, 2008 at 4:16 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Thanks Manish! perfect explanation. Thanks again! On Tue, Dec 23, 2008 at 2:02 PM, Manish Jethani manish.jeth...@gmail.com wrote: On Wed, Dec 24, 2008 at 1:33 AM, aaron smith beingthexemplaryli...@gmail.com wrote: Does the -include-namespace correlate to the mxmlc namespaces.namespace switch? Also, (this is kind of broad), but in Yes. what situation do the namespace flags need to be used? I'm thinking it's for the namespaces in mxml (like myNameSpace:..) Thanks yo. include-namespace is an alternate way of doing include-classes. compc ... -namespace http://example.com/foo $foo_dir/manifest.xml -include-namespaces http://example.com/foo Here you're: 1. mapping the namespace http://example.com/foo to the manifest.xml file in $foo_dir 2. including all classes listed in that namespace The manifest.xml file looks like this: ?xml version=1.0 encoding=utf-8? componentPackage component id=FooComponent class=com.example.foo.FooComponent / ... /componentPackage The advantage of course is that you can use the namespace directly in any application that uses the SWC. Application foo:FooComponent xmlns:foo=http://example.com/foo; / ... /Application -- manishjethani.com
Re: [flexcoders] Re: SWF file format question - SymbolClass Tag
Thanks, externs is pretty much what I was looking for. On Fri, Dec 19, 2008 at 9:02 PM, Alex Harui aha...@adobe.com wrote: There are three mxmlc options: -load-externs (removes all files listed from some other –link-report -compiler.external-library-path (remove all files from a SWC) -externs (removes a class) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag Also, I'm pretty sure that there is some compiler option you can use to prevent specific classes from getting linked in. That's a lot easier than trying to remove them after they've been linked in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag The AS3 classes are in the DoABC (or maybe a DoABC2?) tag. It seems unlikely that you could remove a class and still have the SWF work. If the class wasn't used by your application, the MXML compiler wouldn't have linked it in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aaron smith Sent: Wednesday, December 17, 2008 3:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SWF file format question - SymbolClass Tag Actually, I could be wrong. would it make more sense if it was the DoABC tag? There's a field on DoABC called ABCData - I would assume that's the bytecode. hmm. i'll keep looking arund. if anyone has any ideas hook me up. On Wed, Dec 17, 2008 at 1:44 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Has anyone read through the SWF file format, and been able to decipher how exactly AS3 classes are compiled into the SWF? From reading through all of the control tags it seems it would be the SymbolClass tag. So, it would seem, I could rip out SymbolClass tags from the bytecode (for a specific class) - while keeping track of the new file length, then write the swf again and have a swf that doesn't include the definition for a particular class. Anyone else think that makes sense? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: SWF file format question - SymbolClass Tag
Hey Gordon, The reason I wanted to remove a class was because I have two swfs - a shell, and some other swfs, and didn't want the same class compiled into every swf - thereby wasting K. So i was looking for a way to manual remove a class from sub-swfs. -A On Sun, Dec 21, 2008 at 12:55 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Thanks, externs is pretty much what I was looking for. On Fri, Dec 19, 2008 at 9:02 PM, Alex Harui aha...@adobe.com wrote: There are three mxmlc options: -load-externs (removes all files listed from some other –link-report -compiler.external-library-path (remove all files from a SWC) -externs (removes a class) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag Also, I'm pretty sure that there is some compiler option you can use to prevent specific classes from getting linked in. That's a lot easier than trying to remove them after they've been linked in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Friday, December 19, 2008 4:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: SWF file format question - SymbolClass Tag The AS3 classes are in the DoABC (or maybe a DoABC2?) tag. It seems unlikely that you could remove a class and still have the SWF work. If the class wasn't used by your application, the MXML compiler wouldn't have linked it in. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aaron smith Sent: Wednesday, December 17, 2008 3:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SWF file format question - SymbolClass Tag Actually, I could be wrong. would it make more sense if it was the DoABC tag? There's a field on DoABC called ABCData - I would assume that's the bytecode. hmm. i'll keep looking arund. if anyone has any ideas hook me up. On Wed, Dec 17, 2008 at 1:44 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Has anyone read through the SWF file format, and been able to decipher how exactly AS3 classes are compiled into the SWF? From reading through all of the control tags it seems it would be the SymbolClass tag. So, it would seem, I could rip out SymbolClass tags from the bytecode (for a specific class) - while keeping track of the new file length, then write the swf again and have a swf that doesn't include the definition for a particular class. Anyone else think that makes sense? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] few compc questions
Yeah that -include-libraries worked. Strange as it isn't documented in the compc help, or the online docs for compc. How did you come about finding that? Thanks for that tip about resource bundles. -Aaron On Fri, Dec 19, 2008 at 11:02 AM, Manish Jethani manish.jeth...@gmail.com wrote: On Fri, Dec 19, 2008 at 3:36 PM, aaron smith beingthexemplaryli...@gmail.com wrote: -Does anyone know what the -include-resource-bundles switch does with compc? It includes the specified resource bundles and any dependencies. compc -output myResources_en_US.swc \ -include-resource-bundles foo.bar.tooltips -locale=en_US Includes foo/bar/tooltips.properties. If you have any 'Embed' metadata in the properties file where you're including some other objects (SWFs, PNGs, etc.), those objects will be included too. Basically this is for compiling a resource bundle SWC in a specific locale. e.g. myResources_en_US.swc. You can then use this SWC to compile your main application by putting it in mxmlc's library path. -Why does compc expose all of the metadata switches and compiler switches when most don't apply? :-/ -Is there a way to create a new swc, and include classes from other swcs in the new one? I think you can include _all_ classes from another SWC by using -include-libraries but I'm not sure about including specific classes. Manish
[flexcoders] few compc questions
-Does anyone know what the -include-resource-bundles switch does with compc? -Why does compc expose all of the metadata switches and compiler switches when most don't apply? -Is there a way to create a new swc, and include classes from other swcs in the new one? Thanks
[flexcoders] Re: SWF file format question - SymbolClass Tag
Actually, I could be wrong. would it make more sense if it was the DoABC tag? There's a field on DoABC called ABCData - I would assume that's the bytecode. hmm. i'll keep looking arund. if anyone has any ideas hook me up. On Wed, Dec 17, 2008 at 1:44 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Has anyone read through the SWF file format, and been able to decipher how exactly AS3 classes are compiled into the SWF? From reading through all of the control tags it seems it would be the SymbolClass tag. So, it would seem, I could rip out SymbolClass tags from the bytecode (for a specific class) - while keeping track of the new file length, then write the swf again and have a swf that doesn't include the definition for a particular class. Anyone else think that makes sense? Thanks
[flexcoders] SWC compression format?
Does anyone have any idea what format a swc is compressed with? I'm trying to figure out how to take the ouput of a swc (with the -directory switch from compc), run the optimize command line tool on the library.swf, and then zip it back up as a swc. any ideas? thanks
Re: [flexcoders] SWC compression format?
thanks guys, I think this should work. On Wed, Dec 17, 2008 at 7:49 AM, Johannes Nel johannes@gmail.com wrote: i think its gnu zip On Wed, Dec 17, 2008 at 5:13 PM, John McCormack j...@easypeasy.co.uk wrote: If you rename the *.swc file to a *.zip file you can open it with Windows Vista (and XP?) or with 7-zip (etc.) without renaming it, so it must be a derivation of the pkzip format. There are some zip functions in the nochump branch of papervision3D so that might help. John aaron smith wrote: Does anyone have any idea what format a swc is compressed with? I'm trying to figure out how to take the ouput of a swc (with the -directory switch from compc), run the optimize command line tool on the library.swf, and then zip it back up as a swc. any ideas? thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- j:pn \\no comment
[flexcoders] SWF file format question - SymbolClass Tag
Has anyone read through the SWF file format, and been able to decipher how exactly AS3 classes are compiled into the SWF? From reading through all of the control tags it seems it would be the SymbolClass tag. So, it would seem, I could rip out SymbolClass tags from the bytecode (for a specific class) - while keeping track of the new file length, then write the swf again and have a swf that doesn't include the definition for a particular class. Anyone else think that makes sense? Thanks
[flexcoders] charting components license expired causing problems. fb3 b2
Hey all, quick question. I'm getting a beta expired error, but when I open up the manage flex licenses. It's the charting that is expired. How can I just get rid of charting so that I'm not hosed. I have a license for FB, just not the charting. Thanks -A
[flexcoders] handling unload of swfs in flash 9 / as 3. Crashing safari, firefox
I'm running into an issue with my application, that causes safari and firefox to crash. The application will load and run fine, but on refresh it crashes. It seems it's some sort of unload thing going on, because you can't even see the application try to load again, it's like it's closing out that swf and it crashes.. If i bring up a new window, or restart, it loads fine. but anytime your on the current application, and refresh the page, it crashes. Thanks all.. Any ideas?
[flexcoders] Flash Player crashing safari.
Hey All, I'm seeing safari crash with my flash application.. I'm running mac tiger, safari 2.0.4, and player 9.0.115. I've tested with 9.0.28,45,45D,47,47D,60 and they all work fine.. Would there be some piece of AS that when running in 115 causes the crash? Initially I can load the application just fine. But as soon as I refresh the page it crashes. Here is a snippet of the crash log from Safari... I can post the whole thing if needed. -- Host Name: aaron-smith-mac Date/Time: 2008-01-09 03:01:02.772 -0800 OS Version: 10.4.10 (Build 8R4061a) Report Version: 4 Command: Safari Path:/Applications/Safari.app/Contents/MacOS/Safari Parent: WindowServer [65] Version:2.0.4 (419.3) Build Version: 33 Project Name: WebBrowser Source Version: 4190300 PID:511 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0004 Thread 0 Crashed: 0 ...romedia.Flash Player.plugin 0x16799362 Flash_EnforceLocalSecurity + 92558 1 com.apple.HIToolbox0x92e2abaa TimerVector + 31 2 com.apple.CoreFoundation 0x9082d7e2 CFRunLoopRunSpecific + 3341 3 com.apple.CoreFoundation 0x9082cace CFRunLoopRunInMode + 61 4 com.apple.HIToolbox0x92df29b8 RunCurrentEventLoopInMode + 285 5 com.apple.HIToolbox0x92df20c2 ReceiveNextEventCommon + 385 6 com.apple.HIToolbox0x92df1f19 BlockUntilNextEventMatchingListInMode + 81 7 com.apple.AppKit 0x93299465 _DPSNextEvent + 572 8 com.apple.AppKit 0x93299056 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 137 9 com.apple.Safari 0x6cea 0x1000 + 23786 10 com.apple.AppKit 0x93292ddb -[NSApplication run] + 512 11 com.apple.AppKit 0x93286d2f NSApplicationMain + 573 12 com.apple.Safari 0x0005f54a 0x1000 + 386378 13 com.apple.Safari 0x0005f471 0x1000 + 386161
[flexcoders] mute swf in AS3?
Hey all, I can't find any documentation anywhere that shows how to globally mute a swf. Any ideas? Thanks G.
[flexcoders] Progressive FLV's and browser cache
Hey All, I'm running into a slight issue. I'm working with FLV's, and preloading. Initially about 5 FLV's are preloaded, then eventually played. I can see in Charles that the FLV's preload, but when they are played, they are downloaded completely again. I'm using a URLLoading as binary format to load the FLV's. Whey would the browser not be caching the FLV's? Would preloading with a netConnection/netStream cause the cache to be used correctly?? Thanks -A
[flexcoders] Re: Progressive FLV's and browser cache
nevermind. seems it is my browser acting funny. On Dec 27, 2007 1:36 AM, aaron smith [EMAIL PROTECTED] wrote: Hey All, I'm running into a slight issue. I'm working with FLV's, and preloading. Initially about 5 FLV's are preloaded, then eventually played. I can see in Charles that the FLV's preload, but when they are played, they are downloaded completely again. I'm using a URLLoading as binary format to load the FLV's. Whey would the browser not be caching the FLV's? Would preloading with a netConnection/netStream cause the cache to be used correctly?? Thanks -A
[flexcoders] FLV caching hicup..
Hey Dudes, I've been working with FLV's lately and and using a URLLoader binary format to preload progressive FLV's. I haven't been able to figure out why they wouldn't be caching on the client side. I can preload say 5 videos, but then when I go to play them they download completely again. Is there a trick, do I need to change to have a net stream do the loading so it's cached properly? Thanks -Aaron
Re: [flexcoders] Non-debug mode movie cannot be used for profiling?
Hey Matt, So does FB3 B2 build release versions automatically? Like when I just hit save on a file and it builds, is that a release build? How would I go about making sure it's a debug build from flex? Thanks man, A On Dec 18, 2007 2:26 PM, Matt Chotin [EMAIL PROTECTED] wrote: Sounds like you're profiling against a release SWF (one that came via either mxmlc or maybe the export release wizard in FB). You need to compile either via FB by default (beta 2 or later) or compile using the –debug=true option in mxmlc. Matt *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *aaron smith *Sent:* Monday, December 17, 2007 8:48 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Non-debug mode movie cannot be used for profiling? Hey All, I hit this small issue with Flex builder and the profiler. I have 9.0.115 of the debug player installed. And the profiler WAS working fine, but now for some reason I get that error message.. Non-debug mode movie cannot be used for profiling. I've tried going directly to the profile view and clicking profile Profile External Application, and pointing to my swf. But no go. I've also tried uninstalling and re-installing the player.. hm? Any ideas? I'm on mac intel.. Thanks all -A
[flexcoders] Non-debug mode movie cannot be used for profiling?
Hey All, I hit this small issue with Flex builder and the profiler. I have 9.0.115 of the debug player installed. And the profiler WAS working fine, but now for some reason I get that error message.. Non-debug mode movie cannot be used for profiling. I've tried going directly to the profile view and clicking profile Profile External Application, and pointing to my swf. But no go. I've also tried uninstalling and re-installing the player.. hm? Any ideas? I'm on mac intel.. Thanks all -A
[flexcoders] flex stress testing framework, livecycle required?
Hey all, quick question about the stress testing framework. Is livecycle required. I'm looking to get it running for some testing, but can't find if it specifically requires livecycle or FDS. I see some classes in the TestAdmin.mxml that reference qa.perf.BrowserServerTestRunner etc. But don't see any AS files for those.. Also the WB-INF would lead me to believe it's required... Any ideas? Thanks.
Re: [flexcoders] Re: flex builder 3 profiler. which player?
Thanks! That was it. It works now. On Dec 6, 2007 1:22 PM, Mike Morearty [EMAIL PROTECTED] wrote: The one to use is the one in the Player subdirectory of Flex Builder -- e.g. /Application/Adobe Flex Builder 3/Player/mac/Install Flash Player 9 UB.dmg If that doesn't work, try one from http://www.adobe.com/support/flashplayer/downloads.html -- those should work too (now that Flash Player 9,0,115,0 was released the other day). - Mike Morearty, Adobe Flex Builder team --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: I can't figure out which player to use for the flex 3 profiler. I've downloaded the latest flex3sdk and installed runtimes/players/mac/install...dmg. Do I need a special version of the debug player? dah. I've also tried it with 9.0.47 debug, but i always the get the connect to debugger popup which won't ever connect to localhost. Any ideas?
[flexcoders] flex builder 3 profiler. which player?
I can't figure out which player to use for the flex 3 profiler. I've downloaded the latest flex3sdk and installed runtimes/players/mac/install...dmg. Do I need a special version of the debug player? dah. I've also tried it with 9.0.47 debug, but i always the get the connect to debugger popup which won't ever connect to localhost. Any ideas?
Re: [flexcoders] customizing flex download progress bar.
thanks man. I found a decent example in the programming flex 2 book. On Dec 4, 2007 12:19 PM, Jason Szeto [EMAIL PROTECTED] wrote: Aaron, Take a look at the Flex 2 Developer Guide. In chapter 14 (Using the Application Container), there is a subchapter called Showing the download progress of an application. That should give you a good starting point. Jason -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *aaron smith *Sent:* Monday, December 03, 2007 12:39 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] customizing flex download progress bar. Anyone have any good resources / examples of how you can completely overhaul what the download progress bar looks like / functions. I'm able to hook into some of the progress events but haven't found a good example of how to change what it actually looks like.. ?? Thanks ..
[flexcoders] Re: compc swc generation, no flash cs3?
How was the UIMovieClip.swc created so that it would work for the flash CS3 (show up in the components panel)? On Dec 4, 2007 6:11 PM, aaron smith [EMAIL PROTECTED] wrote: Hey all, i'm doing some experimenting with swc files.. Does generating a swc with compc not work in in Flash CS3? How can I generate a SWC to that will Work in Flash CS3 without going through the library option? Or is that the only way?
[flexcoders] compc swc generation, no flash cs3?
Hey all, i'm doing some experimenting with swc files.. Does generating a swc with compc not work in in Flash CS3? How can I generate a SWC to that will Work in Flash CS3 without going through the library option? Or is that the only way?
[flexcoders] asdoc problem.
Hey all, quick question with asdoc. I'm having an error that I can't figure out where it's stemming from::: - An unexpected error occurred. Error #1085: The element type description must be terminated by the matching end-tag /description. file:///Users/aaron.smith/dev/mccann/jobs/microsoft/rvb/flex/flexsdk/bin/../../docs/toplevel_classes.xml; Line #700; Column #92; XSLT Error (javax.xml.transform.TransformerException): The element type description must be terminated by the matching end-tag /description. - hmmm? I've looked through the source for @description and @description: and it's no where to be found. It seems like asdoc is generating broken XML in toplevel_classes.xml? Any help would be greatly appreciated.. Thanks -Aaron
[flexcoders] Re: asdoc problem.
nevermind. Got it figured out.. I had some XML examples in some documentation that was causing errors. On Dec 3, 2007 11:27 PM, aaron smith [EMAIL PROTECTED] wrote: Hey all, quick question with asdoc. I'm having an error that I can't figure out where it's stemming from::: - An unexpected error occurred. Error #1085: The element type description must be terminated by the matching end-tag /description. file:///Users/aaron.smith/dev/mccann/jobs/microsoft/rvb/flex/flexsdk/bin/../../docs/toplevel_classes.xml; Line #700; Column #92; XSLT Error ( javax.xml.transform.TransformerException): The element type description must be terminated by the matching end-tag /description. - hmmm? I've looked through the source for @description and @description: and it's no where to be found. It seems like asdoc is generating broken XML in toplevel_classes.xml? Any help would be greatly appreciated.. Thanks -Aaron
[flexcoders] customizing flex download progress bar.
Anyone have any good resources / examples of how you can completely overhaul what the download progress bar looks like / functions. I'm able to hook into some of the progress events but haven't found a good example of how to change what it actually looks like.. ?? Thanks ..
[flexcoders] excetion bubbling to application level?
Is there a way to get all exceptions to bubble to the Application level so I can catch all for logging? thanks yo.
Re: [flexcoders] Re: excetion bubbling to application level?
sweet sweet. that's what I was looking for. On Nov 13, 2007 1:16 PM, Daniel Freiman [EMAIL PROTECTED] wrote: Application dispatches and ErrorEvent every time an error is thrown anywhere in the Application. This will not allow you to have a global error handler, but it will allow you to do logging. - Dan Freiman On Nov 13, 2007 3:27 PM, ben.clinkinbeard [EMAIL PROTECTED] wrote: Nope. --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: Is there a way to get all exceptions to bubble to the Application level so I can catch all for logging? thanks yo.
[flexcoders] Re: flex 3 deeplinking. BrowserManager not picking up fragments on very first page load
got it figured out. I had commented out the init() on browserManager. dah. On 10/25/07, aaron smith [EMAIL PROTECTED] wrote: I've got a slight problem that I don't know if this is something with my application, or with FL3. If I reset my browser / clear cache, and go to my page with a fragment in the link. The BrowserManager doesn't pick it up. Now as soon as I refresh the page it works. It's like something is being set by javascript or the iframe that on the initial load isn't available? I've put some code in a bunch of difference application events: trace(BrowserManager.getInstance().fragement) I put that in all these event handlers: creationComplete, render, initialize, addedToStage, add, applicationComplete This is replicable every single time. If the browser is completely clear of anything from this site, the fragements aren't picked up. as soon as I refresh it works great.. Any ideas?
[flexcoders] flex 3 deeplinking. BrowserManager not picking up fragments on very first page load
I've got a slight problem that I don't know if this is something with my application, or with FL3. If I reset my browser / clear cache, and go to my page with a fragment in the link. The BrowserManager doesn't pick it up. Now as soon as I refresh the page it works. It's like something is being set by javascript or the iframe that on the initial load isn't available? I've put some code in a bunch of difference application events: trace(BrowserManager.getInstance().fragement) I put that in all these event handlers: creationComplete, render, initialize, addedToStage, add, applicationComplete This is replicable every single time. If the browser is completely clear of anything from this site, the fragements aren't picked up. as soon as I refresh it works great.. Any ideas?
[flexcoders] scale 9, quick question
I've got an image I used scale9 on.. i used pretty much this example: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0976.html When I set the height the width is changing as well. Can it resize just the height?. Possible?
[flexcoders] Moxie caching flash player mac os x?
I'm having some strange behavior with the flash player and browsers. I wrote this tool plugout. http://www.adakasoft.com/?page_id=3 to switch flash player versions.. The tool works on every mac I run it on. But for some reason the one machine I have moxie on, the browsers don't pickup a new player. Try these steps (these should all work fine if you don't have moxie): --first get plugout - http://www.adakasoft.com/?page_id=3 --install it (./install.sh) --run this: plugout -v 8.0.35 -b firefox (this will install player 8.0.35and start firefox in rosetta) --now go to a flash site (i always hit vw.com). Right click on the flash content. You should see Player 8. --now go to ( http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507) you should see you have 8.0.35 installed. If you did all that successfully that means it's fine.. Now on my one machine that I have moxie on. I have one difference in this process. I do all of the above, but when I right click on flash content it says player 9. And when I go to the adobe version checker, it says I have 8.0.35. What's going on? Where is it picking up 9? Thanks for any help Aaron
[flexcoders] FB3 B2, docs for deeplinking?
Are there any docs around for new deep linking functionality and how to customize it? Thanks yo!
Re: [flexcoders] Re: flex builder 3 beta 2 always launching my app with debug player.
Thanks for the clarification. On 10/4/07, Mike Morearty [EMAIL PROTECTED] wrote: Aaron, you can fix this by installing the new beta of the Flash player that came with the beta of Flex Builder. Here is a very long explanation, copied (and edited) from a post I just made on the Adobe forums: I wanted to clarify a couple of things about how this new model (creating a single debug swf, then exporting a release one later) works. 1. If you install the (beta) Flash player that came with this Flex Builder beta, then you will NOT see the Where is the debugger dialog. The Flash Player and Flex Builder changes go hand-in-hand. Certainly I agree that with the Flash player's old behavior, having Flex Builder create only a debug swf would cause lots of problems; that's why we changed both. This means there will be a transition period during which some developers will have the old debugger-player installed, so they will see this message; that's unfortunate, but it won't last too long. But customers will never see it, because... 2. Your customers will NOT need to upgrade their Flash player, because the release version of the Flash player -- the one that all your customers have -- never asks Where is the debugger. The old version didn't, and neither will the next one. To summarize: The only scenario where this is a problem is if you run (not debug) a debug swf in an older version of the debug player. It is not a problem for people who have the release player (almost all customers); it is not a problem for machines on which Flex Builder was installed with the default options, which includes installing the new debug Flash player. Some of the reasons we made this change: - Performance: It always helps to only have to link one swf instead of two during the edit/compile/debug cycle. - Filenames: There are several cases where the filename of the swf is important; with the new way, the filename of the swf is always the same. For example, if you are using modules, then you have to write this: mx:ModuleLoader url=MyModule.swf / But with the old model, you would have to write this during development: mx:ModuleLoader url=MyModule-debug.swf / ... and then change it before deployment. Yuck. So then people started using binding to work around this: mx:ModuleLoader url={mungeFilename('MyModule-debug.swf')} / where mungeFilename() tries to figure out the correct filename. A little less horrible than having the modify the filename before deployment, but still not pretty. I'm interested to hear what you think, and whether you think changes are still required even despite the above explanation. Thanks for trying the beta, we appreciate the feedback! - Mike Morearty, Adobe Flex Builder team --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: Sorry I'm not following you. Explain it to me again? Thanks. On 10/4/07, Sheriff [EMAIL PROTECTED] wrote: cause to speed up the compiling it only does debug untill you want to export then click project then export release version. So use debug to run - Original Message From: aaron smith [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Thursday, October 4, 2007 3:36:24 PM Subject: [flexcoders] flex builder 3 beta 2 always launching my app with debug player. Why is flex buildfe 3 beta 2 always launching my app with the debug player. I press the Run button, and I'm constantly prompted with the connect to debugger popup. Any ideas? -- Need a vacation? Get great deals to amazing places http://us.rd.yahoo.com/evt=48256/*http://travel.yahoo.com/;_ylc=X3oDMTFhN2hucjlpBF9TAzk3NDA3NTg5BHBvcwM1BHNlYwNncm91cHMEc2xrA2VtYWlsLW5jbQ-- on Yahoo! Travel.
Re: [flexcoders] FB3 B2, docs for deeplinking?
Thanks! On 10/5/07, Matt Horn [EMAIL PROTECTED] wrote: Yes, in the Flex 3 docs on labs: http://livedocs.adobe.com/labs/flex3/html/ Here's how to find the deep linking doc: Click on Flex 3 Developer's Guide. Click on Flex Programming Topics. Click on Deep Linking. Please feel free to post questions or comments about this doc. -matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of aaron smith Sent: Friday, October 05, 2007 1:50 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] FB3 B2, docs for deeplinking? Are there any docs around for new deep linking functionality and how to customize it? Thanks yo!
[flexcoders] Application loader info?
I'm trying to access LoadInfo for an application, I've tried it in numerous spots, and am now just trying a simple example:: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.core.Application; private function init():void { trace(Application.application.loaderInfo); } ]] /mx:Script /mx:Application it's tracing as null. Is this how it's intended to be used? I also run the swf on localhost. Overall I'm trying to get the URL the swf is running on. Thanks
Re: [flexcoders] flex builder 3 beta 2 always launching my app with debug player.
Sorry I'm not following you. Explain it to me again? Thanks. On 10/4/07, Sheriff [EMAIL PROTECTED] wrote: cause to speed up the compiling it only does debug untill you want to export then click project then export release version. So use debug to run - Original Message From: aaron smith [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, October 4, 2007 3:36:24 PM Subject: [flexcoders] flex builder 3 beta 2 always launching my app with debug player. Why is flex buildfe 3 beta 2 always launching my app with the debug player. I press the Run button, and I'm constantly prompted with the connect to debugger popup. Any ideas? -- Need a vacation? Get great deals to amazing places http://us.rd.yahoo.com/evt=48256/*http://travel.yahoo.com/;_ylc=X3oDMTFhN2hucjlpBF9TAzk3NDA3NTg5BHBvcwM1BHNlYwNncm91cHMEc2xrA2VtYWlsLW5jbQ--on Yahoo! Travel.
[flexcoders] Extending Canvas, inheriting transitions / states in MXML?
I'm extending Canvas MXML (Creating a BaseView), and in the BaseView when I try to do transitions or states, they aren't available. Is there a correct way to extend containers and inherit these? Thanks
Re: [flexcoders] Extending Canvas, inheriting transitions / states in MXML?
Here's what I'm doing. BASEVIEW: - ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import com.mccann.cpc.model.CPCModel; private var _xmlid:String; protected var viewXML:XML; protected function init():void { viewXML = CPCModel.getInstance().xmls[_xmlid]; } public function set xmlid(id:String):void { _xmlid = id; } public function get xmlid():String { return _xmlid; } private function initView():void { throw new Error(You must extend initView()); } ]] /mx:Script /mx:Canvas Now I create a BaseView like so: ?xml version=1.0 encoding=utf-8? view:BaseView xmlns:view=* xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:transitions mx:Transition /mx:Transition /mx:transitions mx:states mx:State /mx:State /mx:states /view:BaseView FlexBuilder gives me errors saying that transitions / states don't belong to this class or something,. Sorry i'm not at the dev machine I was on.. does that make sense? -Thanks Aaron On 9/28/07, Alex Harui [EMAIL PROTECTED] wrote: can you post your example? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *aaron smith *Sent:* Thursday, September 27, 2007 5:57 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Extending Canvas, inheriting transitions / states in MXML? I'm extending Canvas MXML (Creating a BaseView), and in the BaseView when I try to do transitions or states, they aren't available. Is there a correct way to extend containers and inherit these? Thanks
Re: [flexcoders] flex 3 requirements?
Thanks Matt! Is that documented anywhere, I probably missed it? On 9/24/07, Matt Chotin [EMAIL PROTECTED] wrote: All versions of Player 9 should work with Flex 3. Matt *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *aaron smith *Sent:* Monday, September 24, 2007 11:05 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] flex 3 requirements? Is there a specific version of the flash player that is required for flex 3? Didn't see it on Labs, I was curious as flex 3 has a lot I want to use in an upcoming project, but the site needs to run in 9.0. Not a minor version.
[flexcoders] Labs Wiki Down?
What's up with the wiki? How long is it down for? j/c I've been trying to get on it. dah.
[flexcoders] Flex 3 Mac, mouse over text editor, flicker.
Has anyone on Flex 3 mac noticed what happens with the cursor when over the text window? It flickers like mad and is very distracting. any ideas how to clear this up?
[flexcoders] localization options in flex 2
Quick question. I'm looking into localization for an app, and one of my concerns is that every piece of text has to be in the correct language for a region. en, fr, etc. But there is quite a bit of text. So instead of having a .properties files for all these different languages for every piece of text. Can I just localize the flex components and just load the corresponding text from a language XML file. So an english xml, french xml, etc. That way instead of having to access a resource bundle with a key/val pair for a specific piece of text, I can just assign the corresponding text from xml to the .text property or .label, etc? I guess I don't see why I would absolutely have to use ResourceBundle's except for localizing the flex components. Any thought?
Re: [flexcoders] localization options in flex 2
Hey Brian, Thanks for sharing this. This looks really promising. This looks even better than the support Flex 3 will have for localization. What is left on the project? Are there any existing bugs? I'd really love to get a look at this and see if it's something usable for an upcoming project. I can help work out the kinks as I develop this site. Aaron On 9/24/07, Brian Holmes [EMAIL PROTECTED] wrote: Hi Aaron, As Ben pointed out I'm working on a different way to do localization, well, actually I just want to do language translation. A blog entry I wrote about this can be found here http://brianjoseph31.typepad.com/smashedapples/2007/09/sweet-flex-tr-1.html And i'm getting a bit further on it every day. My ultimate goal is to store translations in a database and not have to deal with any xml files or properties files. I haven't released the source code of what I got done because its' not ready, but if you'd like to see it and contribute to it ( I'm gonna release it open source) I'd be more than willing to send you the code. just contact me offlist. brian.. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *aaron smith *Sent:* Sunday, September 23, 2007 8:22 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] localization options in flex 2 Quick question. I'm looking into localization for an app, and one of my concerns is that every piece of text has to be in the correct language for a region. en, fr, etc. But there is quite a bit of text. So instead of having a .properties files for all these different languages for every piece of text. Can I just localize the flex components and just load the corresponding text from a language XML file. So an english xml, french xml, etc. That way instead of having to access a resource bundle with a key/val pair for a specific piece of text, I can just assign the corresponding text from xml to the .text property or .label, etc? I guess I don't see why I would absolutely have to use ResourceBundle's except for localizing the flex components. Any thought? -- *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] flash 9 not importing fl.data.DataProvider
UH, not sure why this is happening. But when I create an empty fla, and put this one line of code in it: import fl.data.DataProvider. I get errors: 1172: Definition fl.data:DataProvider could not be found. Any ideas?
[flexcoders] Rubyamf 0.8.7 Alpha, Community Involvement
Hey Everyone , I'm going to keep this short. I've had it Rubyamf in my pocket for few months. Being able to develop it here and there. I've made a big push the last week to get it to this stage. If you're not aware of it, which i'm sure you're not. It's a Flash remoting alternative. :Features: Written in Ruby of coarse. A complete application gateway for flash remoting Servers are commandline configurable at startup Webrick standalone servlet, run rubyamf anywhere LightTPD support on Mac. Windows support will be in beta fcgi and cgi gateway Flash 8 Flash 9 Remote Object for Flex 2 RemoteClass meta tag for Object mappings in AS3 Rails Integration What's the deal with community involvement? Testing, tutorials and questions. I'm doing my best with testing and doumentation. But I'm only one person. It would killer if the flash community would punish it. Break it all you want. Where are it's weak points? And, where are it's strong points of course. Also, because I've been working on getting it to this point, I haven't had time to make some tutorials. There is quite a bit of documentation over here http://www.rubyamf.org . That has basics of starting the server, services location plus much more. I have more work to do to get it into beta, and completely supporting windows with LightTPD and mongrel as well. So if anyone has any time to check this out, and help out, write some stuff. Ask questions, find bugs.. etc.. Would be greatly appreciated. Let's make Rubyamf a stable and reliable choice for Flash remoting in production environments. Thanks. -Aaron Smith homepage: http://www.rubyamf.org forums: http://rubyforge.org/forum/?group_id=2801 lists: http://rubyforge.org/mailman/listinfo/rubyamf-discussion
Re: [flexcoders] AMFPHP Sessions
Are you trying to use sessions in your service methods? You can use $_SESSION['whatever'] ='something' AMFPHP automatically handles sessions for you and sends back a header to Flash with a redirect to the gateway with the PHPSESSID appended to the query, meaning cookieless sessions are supported. What is appended to the gateway url is the SESSION_ID. with that ID it restores session data per request, for you to use in $_SESSION['asdf']. So if in some method you set $_SESSION['auth'] = 1. Then in another method you can say if($_SESSION['auth']==1) blah blah blah.. As far as i'm aware this still works. I have not tested in amfphp 1.9.. Maybe i'll eat my words, I'm hungry anyway though. -Aaron On 3/4/07, Anthony Lee [EMAIL PROTECTED] wrote: Can someone provide and example of how to use AMFPHP with sessions. I can't seem to get it to work. Ditto. Sessions are referenced all over the place but I couldn't find a working example. tonio
Re: [flexcoders] Re: flex2 on a mac - compile
http://www.mook.co.uk/~alisdair.mills/mxmlc_compiler_osx.html http://www.gskinner.com/blog/archives/2005/12/easily_compile.html http://weblogs.macromedia.com/mesh/archives/2005/12/compiling_actio.html http://robbevan.com/blog/2005/10/23/working-with-flex-2-on-mac-os-x/http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=229FD42E-E081-51EF-A70C5936648548EB A little time on google and your problems are solved.smithOn 10/10/06, Tom Chiverton [EMAIL PROTECTED] wrote:On Tuesday 10 October 2006 04:20, michaelrohner wrote: [laptop-Rohner:~] mrohner% mxmlc.exe -jarThe .exe means this is probably a Windows executable.You want just 'mxmlc'. Does the flex folder have to be in the site folder because it is running from the server? By 'flex folder' do you mean the SDK (the thing that contains mxmlc) ?In which case, no - you do all the compile locally to make a .swf file, andthen just upload this one file to a web site like an normal file (unless you are using FDS or remoteing).--Tom ChivertonHelping to carefully disseminate performance-oriented nichesThis email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF.A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITYThis email is intended only for the use of the addressee named above and may be confidential or legally privileged.If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents.If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional * To change settings online go to:http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email: mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED] * 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/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Coverage testing for AS3 implementation?
awesome.On 10/1/06, Matt Chotin [EMAIL PROTECTED] wrote: Not right now, player enhancements needed, but when we have something to work with there may be stuff the community can do. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of aaron smith Sent: Saturday, September 30, 2006 7:53 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Coverage testing for AS3 implementation? that would be hot!. anything I can do to help? On 9/30/06, Matt Chotin [EMAIL PROTECTED] wrote: Not at the moment. We had one internally for 1.5 but we haven't ported up to 2.0 yet. Some day… From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of aaron smith Sent: Friday, September 22, 2006 4:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Coverage testing for AS3 implementation? Is there any AS3 implementation for Coverage testing, something similar to Clover in Java? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] centering popups to the application, not a container object?
is there a way that you can center a popup to the entire application. I don't see anything in the docs. I don't neccessarily want to center it to whatever is opening the pop-up. I guess what i mean is moving it to dead center, not center to the opening object. thanks allsmith __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: centering popups to the application, not a container object?
Thats what I was looking for. perfect thanks.On 9/30/06, Derrick Grigg [EMAIL PROTECTED] wrote: Use 'DisplayObject(Application.application)' as the parent argumentwhen you use the PopupManager.createPopUp(), or PopupManager.addPopUp()Derrick---www.dgrigg.com --- In flexcoders@yahoogroups.com, aaron smith[EMAIL PROTECTED] wrote: is there a way that you can center a popup to the entire application. I don't see anything in the docs. I don't neccessarily want tocenter it to whatever is opening the pop-up.I guess what i mean is moving itto dead center, not center to the opening object. thanks all smith--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]* 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/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Coverage testing for AS3 implementation?
that would be hot!. anything I can do to help?On 9/30/06, Matt Chotin [EMAIL PROTECTED] wrote: Not at the moment. We had one internally for 1.5 but we haven't ported up to 2.0 yet. Some day… From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of aaron smith Sent: Friday, September 22, 2006 4:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Coverage testing for AS3 implementation? Is there any AS3 implementation for Coverage testing, something similar to Clover in Java? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: parsing xml recursively help.
well, I actually need reference to the xml from where the selection occurs.. say this is the XML:node label='flash platform' id='1' type='folder' node label='www.somelink.net' id='2' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' / node label='bmx biking' id='4' type='folder' node label='www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com' / /node/nodeif you select flashplatform in the tree.. it should return the entire xml structure... VS if you select bmx biking, it would spit this out:node label='bmx biking' id='4' type='folder' node label='www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com' //nodenow if you select an actual item( id=5) it would spit this out: node label='www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' /The next step after getting the XML where the selection has occured, is getting all the individual items in the xml.. so if you select bmx biking, the items i'm looking for are::: node label='www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' /node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com' /Or if you selected flash platform the items would look liek this; node label='www.somelink.net' id='2' type='item' feedLocation=' http://www.somelink.net' /node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' /node label=' www.somelink.net' id='5' type='item' feedLocation='http://www.somelink.net' /node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com' /i'm using this so that when you select a folder in the Tree, I can recursively get all the actual Items in the XML (type=item)... see what I mean? so like, from the folder you've seleted and down it's tree of nodes, it should get the items in its xml.. i hope that explains it better... or am I complicating this too much? does tree.selectedItem return the xml nodes?thankssmithOn 9/24/06, Tim Hoff [EMAIL PROTECTED] wrote: Sure Aaron, Instead of loopin, have you tried something like this? var myNode:XML = XML(myTree.selectedItem); -TH --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: I am just trying a simple example with trying to parse some xml. I want to be able to find what node is selected according to what is selected in a Tree component. here is my AS: private function getSelectedNodeFromSelectedItem( searchXML:* , selectedItem:Object ):XMLList { var foundNode:*; for each( var prop:* in searchXML ) { if( [EMAIL PROTECTED] == [EMAIL PROTECTED] ) { foundNode = XMLList( prop ); break; } else if( [EMAIL PROTECTED] == folder ) { getSelectedNodeFromSelectedItem( prop.node ); } } return foundNode; } this is what the XML Looks like: (dataProvider to a Tree ) node label='flash platform' id='1' type='folder' node label='www.somelink.net' id='2' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' / /node Say for instance you selected the 2nd child of the flash platform node. it would spit back: node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' / Say for instance you selected the root node which is a folder. it would spit back: node label='flash platform' id='1' type='folder' node label='www.smithaaronlee.net' id='2' type='item' feedLocation=' http://www.smithaaronlee.net' / node label='teguh mualim' id='3' type='item' feedLocation=' http://www.capcai.com' / /node It seems to be working correctly to the point where it knows that the right node is selected, but then the return value is of type [object]. I can't figure out how to get it back as a string.. From the results that are spit back from that method I will pass that value to another parsing method to just grab all the individual items (type=item) in the selected node. See what I'm going for? Maybe I need to cast the xml into an ArrayCollection? thanks __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software
Re: [flexcoders] Re: Programmatically edit the css
http://www.onflex.org/code/ - check out the code on 8/25/06 - change background color on the fly.. this isn't editing the css file, rather setting the style of the background smithOn 9/26/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi Pramod, You can't change the CSS file, but you can change style prgrammatically using setStyle in AS. myPanel.setStyle(color,red); -TH --- In flexcoders@yahoogroups.com, Pramod [EMAIL PROTECTED] wrote: Hey All, Is there a way I can edit the css file used in my application? Basically i want to change the background of the application based on the user input? Any pointers are appreciated. Thanks a lot in advance, Pramod __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] DownloadProgressBar changing the bar color
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html check out the style explorer adobe released.. you can find the progress bar in there, and what styles you can change. On 9/26/06, EECOLOR [EMAIL PROTECTED] wrote: The application has not been loaded, neither has the css manager thingy, the progressbar is loading it. So css contents are not available i think, i might be wrong though, just a guess. Greetz Erik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: parsing xml recursively help.
that is a perfect example. I actually did end up using that exact same method. But your sample is much appreciated.thanks,aaronOn 9/26/06, Tim Hoff [EMAIL PROTECTED] wrote: Hey Aaron, I figured it would be easier to show you a sample to illustrate what I'm talking about. Select a folder from the first tree. You could easily cast to a collection or array if desired. One caveat is that nothing will happen if the user selects an item instead of a folder. View Sample -TH--- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: well, I actually need reference to the xml from where the selection occurs.. say this is the XML: node label='flash platform' id='1' type='folder' node label='www.somelink.net' id='2' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' / node label='bmx biking' id='4' type='folder' node label=' www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com ' / /node /nodeif you select flashplatform in the tree.. it should return the entire xml structure... VS if you select bmx biking, it would spit this out: node label='bmx biking' id='4' type='folder' node label='www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com' / /node now if you select an actual item( id=5) it would spit this out: node label='www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' / The next step after getting the XML where the selection has occured, is getting all the individual items in the xml.. so if you select bmx biking, the items i'm looking for are::: node label='www.somelink.net ' id='5' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com' / Or if you selected flash platform the items would look liek this; node label='www.somelink.net' id='2' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com ' / node label='www.somelink.net' id='5' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='6' type='item' feedLocation=' http://www.somelink.com ' /i'm using this so that when you select a folder in the Tree, I can recursively get all the actual Items in the XML (type=item)... see what I mean? so like, from the folder you've seleted and down it's tree of nodes, it should get the items in its xml.. i hope that explains it better... or am I complicating this too much? does tree.selectedItem return the xml nodes? thanks smith On 9/24/06, Tim Hoff [EMAIL PROTECTED] wrote: Sure Aaron, Instead of loopin, have you tried something like this? var myNode:XML = XML(myTree.selectedItem); -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, aaron smith beingthexemplarylists@ wrote: I am just trying a simple example with trying to parse some xml. I want to be able to find what node is selected according to what is selected in a Tree component. here is my AS: private function getSelectedNodeFromSelectedItem( searchXML:* , selectedItem:Object ):XMLList { var foundNode:*; for each( var prop:* in searchXML ) { if( [EMAIL PROTECTED] == [EMAIL PROTECTED] ) { foundNode = XMLList( prop ); break; } else if( [EMAIL PROTECTED] == folder ) { getSelectedNodeFromSelectedItem( prop.node ); } } return foundNode; } this is what the XML Looks like: (dataProvider to a Tree ) node label='flash platform' id='1' type='folder' node label='www.somelink.net' id='2' type='item' feedLocation=' http://www.somelink.net' / node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' / /node Say for instance you selected the 2nd child of the flash platform node. it would spit back: node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com ' / Say for instance you selected the root node which is a folder. it would spit back: node label='flash platform' id='1' type='folder' node label='www.smithaaronlee.net' id='2' type='item' feedLocation=' http://www.smithaaronlee.net' / node label='teguh mualim' id='3' type='item' feedLocation=' http://www.capcai.com' / /node It seems to be working correctly to the point where it knows that the right node is selected, but then the return value is of type [object]. I can't figure out how to get it back as a string.. From the results that are spit back from that method I will pass that value to another parsing method to just grab all the individual items (type=item) in the selected node. See what I'm going for? Maybe I need to cast the xml
Re: [flexcoders] Re: parsing xml recursively help.
where can I find something about that.? didn't see it in the docs..thanksOn 9/25/06, EECOLOR [EMAIL PROTECTED] wrote: Dont forget to check out the double dot operator in XML, it might prove usefull for your case. Greetz Erik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] BindingUtils, initial bindings that produce errors
I have a situation where I need to use the binding utils. I set up the binding on a creation complete call of one of the views. but the problem is that my model doesn't have any data in it. How do you set up bindings on vars that initially don't have values, using BindingUtils.. thanks. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] styling questions
how can I change just the font color of a panel's title, and not let the children inherit that?Also, when I put a Panel{} style in my external style sheet, it tells me that it is an unused type, but I have 3 Panels in my app, why would it do that? thanks. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: styling questions
yeah man, i read the docs, didn't see it in there..On 9/25/06, Tim Hoff [EMAIL PROTECTED] wrote: That would be titleStyleName my man. docs, docs, docs. -TH --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: how can I change just the font color of a panel's title, and not let the children inherit that? Also, when I put a Panel{} style in my external style sheet, it tells me that it is an unused type, but I have 3 Panels in my app, why would it do that? thanks. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: styling questions
sweet!, can't wait to see something.On 9/25/06, Peter Baird [EMAIL PROTECTED] wrote: By the way, I'm currently working on a significant update to the style explorer, and one of the features that I'm adding is support for style names. So, the Panel view, when changing "color" will spit out better formatted CSS that places that in a custom titleStyleName declaration. (Thanks for the suggestion Tim ... I think it was yours). Many more cool additions in the works, so it might be a little while before you all see the updated version as I have to work on it "after hours", just wanted to let you know it's coming. -Peter On 9/25/06 9:34 PM, aaron smith [EMAIL PROTECTED] wrote: yeah man, i read the docs, didn't see it in there.. On 9/25/06, Tim Hoff [EMAIL PROTECTED] wrote: That would be titleStyleName my man. docs, docs, docs. -TH --- In [EMAIL PROTECTED]ups.com mailto:flexcoders%40yahoogroups.com , aaron smith [EMAIL PROTECTED] wrote: how can I change just the font color of a panel's title, and not let the children inherit that? Also, when I put a Panel{} style in my external style sheet, it tells me that it is an unused type, but I have 3 Panels in my app, why would it do that? thanks. / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ \8\ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Coverage testing for AS3 implementation?
Ha, you rock Teguh!On 9/23/06, Teguh Mualim [EMAIL PROTECTED] wrote: Not yet. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] binding ViewStack selectedChild to a model property in cairngorm
This is a 2 part question... PART 1:What is the easiest way to bind the a property in the modellocator of cairngorm to a viewStacks selectedChild, this is what i'm trying::: mx:Script ![CDATA[ private function handleCreationComplete():void {model = ModelLocator.getInstance(); } ]] /mx:Script mx:ViewStack id=subscriptionsViewStack width=100% height=100% selectedChild={ model.someProperty } someview:SomeView id=somePropertyValue /mx:ViewStackSo what I am thinking should happen is when the model.someProperty is changed, it will change the selected child, say if model.someProperty is changed to somePropertyValue, wouldn't it then selected the someView child as the selected Child? I am getting errors about type coersion, not being able to bind string to the selectedChild property.. I understand what that means, but now I just need to know what the correct way of binding for this situation would be.. PART 2:in the example above, if I change the viewStacks selectedChild to directly reference a child, IE:( selectedChild={somePropertyValue}), I get this error::ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. doeas anyone know what that what that mean??thanks.Smith __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: binding ViewStack selectedChild to a model property in cairngorm
ok, yeah I agree that it is more canonical because it isn't numbers, i'll check out you're example. thanks man.smithOn 9/24/06, Tim Hoff [EMAIL PROTECTED] wrote: All of the examples that I've seen use selectdIndex for viewStacks. I use viewStates instead because you can use the name of the state. It's more canonical and also easier to apply transitions. -TH --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: thanks, is the preferred way in cairngorm usually index numbers for view stacks? That seems like the only way if you're binding to the model. otherwise you'd have to hack some way to store references to the viewstack children in the model.. i'll check out the example, thanks.. smith On 9/24/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi Aaron, You've got the right idea. The selectedChild property type = Container. You could use selectedIndex instead. Anyway, here's an example for Cairngorm viewStates. But, it would work for viewStacks as well. Part 2 won't be necessary, but it's saying that the value of the variable doesn't match any of the known children of the viewStack. HTH. http://www.cflex.net/showFileDetails.cfm? ObjectID=422Object=FileChannelID=1 -TH --- In flexcoders@yahoogroups.com, aaron smith beingthexemplarylists@ wrote: This is a 2 part question... PART 1: What is the easiest way to bind the a property in the modellocator of cairngorm to a viewStacks selectedChild, this is what i'm trying::: mx:Script ![CDATA[ private function handleCreationComplete():void { model = ModelLocator.getInstance(); } ]] /mx:Script mx:ViewStack id=subscriptionsViewStack width=100% height=100% selectedChild={ model.someProperty } someview:SomeView id=somePropertyValue /mx:ViewStack So what I am thinking should happen is when the model.someProperty is changed, it will change the selected child, say if model.someProperty is changed to somePropertyValue, wouldn't it then selected the someView child as the selected Child? I am getting errors about type coersion, not being able to bind string to the selectedChild property.. I understand what that means, but now I just need to know what the correct way of binding for this situation would be.. PART 2: in the example above, if I change the viewStacks selectedChild to directly reference a child, IE:( selectedChild={somePropertyValue}), I get this error:: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. doeas anyone know what that what that mean?? thanks. Smith __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: binding ViewStack selectedChild to a model property in cairngorm
Hey Tim, can I ask for your help with some XML parsing?? Shouldn't be to difficult. I'm just stuck on it.. smithOn 9/24/06, aaron smith [EMAIL PROTECTED] wrote: ok, yeah I agree that it is more canonical because it isn't numbers, i'll check out you're example. thanks man.smith On 9/24/06, Tim Hoff [EMAIL PROTECTED] wrote: All of the examples that I've seen use selectdIndex for viewStacks. I use viewStates instead because you can use the name of the state. It's more canonical and also easier to apply transitions. -TH --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: thanks, is the preferred way in cairngorm usually index numbers for view stacks? That seems like the only way if you're binding to the model. otherwise you'd have to hack some way to store references to the viewstack children in the model.. i'll check out the example, thanks.. smith On 9/24/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi Aaron, You've got the right idea. The selectedChild property type = Container. You could use selectedIndex instead. Anyway, here's an example for Cairngorm viewStates. But, it would work for viewStacks as well. Part 2 won't be necessary, but it's saying that the value of the variable doesn't match any of the known children of the viewStack. HTH. http://www.cflex.net/showFileDetails.cfm? ObjectID=422Object=FileChannelID=1 -TH --- In flexcoders@yahoogroups.com, aaron smith beingthexemplarylists@ wrote: This is a 2 part question... PART 1: What is the easiest way to bind the a property in the modellocator of cairngorm to a viewStacks selectedChild, this is what i'm trying::: mx:Script ![CDATA[ private function handleCreationComplete():void { model = ModelLocator.getInstance(); } ]] /mx:Script mx:ViewStack id=subscriptionsViewStack width=100% height=100% selectedChild={ model.someProperty } someview:SomeView id=somePropertyValue /mx:ViewStack So what I am thinking should happen is when the model.someProperty is changed, it will change the selected child, say if model.someProperty is changed to somePropertyValue, wouldn't it then selected the someView child as the selected Child? I am getting errors about type coersion, not being able to bind string to the selectedChild property.. I understand what that means, but now I just need to know what the correct way of binding for this situation would be.. PART 2: in the example above, if I change the viewStacks selectedChild to directly reference a child, IE:( selectedChild={somePropertyValue}), I get this error:: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. doeas anyone know what that what that mean?? thanks. Smith __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: parsing xml recursively help.
it needs to be recursive or global selector though.. the XML can change, nesting many levels or nesting few levels.. is there a global selector for nodes the the type==item?like... myNodes = XML(tree.selectedItem).(@type == 'item');but on the whole document, not just the root node??On 9/24/06, EECOLOR [EMAIL PROTECTED] wrote: Or something like this: var nodesFound:XMLList = searchXML..node.(@id == [EMAIL PROTECTED]); Greetz Erik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: parsing xml recursively help.
ok I got it.. I was just being retarded...it was as easy as getting the selectedItem as xml (XML(mytree.selectedItem))then looping through that and just adding nodes that mach my search to an array.. private function parseSelection( searchXML:* ):void { for each( var prop:* in searchXML ) {if( [EMAIL PROTECTED] == item ){ itemNodes.addItem( new SubscriptionsNodeItemVO( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) );}else{ parseSelection( prop.node );} } }smithOn 9/24/06, aaron smith [EMAIL PROTECTED] wrote:it needs to be recursive or global selector though.. the XML can change, nesting many levels or nesting few levels.. is there a global selector for nodes the the type==item?like... myNodes = XML(tree.selectedItem).(@type == 'item');but on the whole document, not just the root node??On 9/24/06, EECOLOR [EMAIL PROTECTED] wrote: Or something like this: var nodesFound:XMLList = searchXML..node.(@id == [EMAIL PROTECTED]); Greetz Erik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] defining item renderers, different way?
I am defining an ItemRederer for a List component. i'm curious about how you specify the name of the MXML componet without using the fully qualified class path.. EX, this is what I have:::mx:List id=subscriptionItemList width=100% height=100% itemRenderer=net.smithaaronlee.something.view.components.SubscriptionListItemRenderer/mx:Listis there a way to get it so that it is::: mx:List id=subscriptionItemList width=100% height=100% itemRenderer=SubscriptionListItemRenderer/mx:List thanks, smith __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: parsing xml recursively help.
perfect. thanks man.On 9/24/06, Tim Hoff [EMAIL PROTECTED] wrote: Glad that you were able to work it out. As a side note; using a QName to get the descedants might reduce some of the code. Don't forget to add the parent element (selectedItem) to your list or array. var decendantList:XMLList = searchXML.descendants().(@type==item); -TH --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: ok I got it.. I was just being retarded... it was as easy as getting the selectedItem as xml (XML (mytree.selectedItem)) then looping through that and just adding nodes that mach my search to an array.. private function parseSelection( searchXML:* ):void { for each( var prop:* in searchXML ) { if( [EMAIL PROTECTED] == item ) { itemNodes.addItem( new SubscriptionsNodeItemVO( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) ); } else { parseSelection( prop.node ); } } } smith On 9/24/06, aaron smith [EMAIL PROTECTED] wrote: it needs to be recursive or global selector though.. the XML can change, nesting many levels or nesting few levels.. is there a global selector for nodes the the type==item? like... myNodes = XML(tree.selectedItem).(@type == 'item'); but on the whole document, not just the root node?? On 9/24/06, EECOLOR [EMAIL PROTECTED] wrote: Or something like this: var nodesFound:XMLList = searchXML..node.(@id == [EMAIL PROTECTED]); Greetz Erik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] flex 2 on mac resources?
Hey All,My work is going to be switching us developers to macs, I would like to find out about using Flex 2 SDK on Mac. Not neccessarily Flex Builder, I realize it's not out yet, but what about just using the compiler? Any good resources or places that document using the compiler on a mac? Any good resources for using this all with Textmate? thankssmith __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] suppressing Status Error?
ok i guess that makes sence, but the error says it is an unhandled Status Event, wouldn't that be different than an Error. and I don't see anything about status events for the HTTPService.or would it just be handling the send call on the httpservice? try{ htservice.send( rops );}catch( e:Error ){ whatever}thanks john..On 9/21/06, John Grden [EMAIL PROTECTED] wrote: look at using try...catch...finaly in the docs, that's what you'll want to do to handle your errors jpg On 9/20/06, aaron smith [EMAIL PROTECTED] wrote: hey all, I am wondering how exaclty I suppress this error.. Error #2044: Unhandled StatusEvent:. level=error, code=It is happening when i'm using the HTTPService class and -use-network = false; When the security popup comes up, i press settings, then I immediately get this unhandled status error.. I looked at HTTPService, not seeing any handlers for Status.. Any ideas???thanks, -- [JPG] __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] suppressing Status Error?
yeah I have the fault handler. it still gives me the status error.. On 9/22/06, aaron smith [EMAIL PROTECTED] wrote:ok i guess that makes sence, but the error says it is an unhandled Status Event, wouldn't that be different than an Error. and I don't see anything about status events for the HTTPService. or would it just be handling the send call on the httpservice? try{ htservice.send( rops );}catch( e:Error ){ whatever}thanks john..On 9/21/06, John Grden [EMAIL PROTECTED] wrote: look at using try...catch...finaly in the docs, that's what you'll want to do to handle your errors jpg On 9/20/06, aaron smith [EMAIL PROTECTED] wrote: hey all, I am wondering how exaclty I suppress this error.. Error #2044: Unhandled StatusEvent:. level=error, code=It is happening when i'm using the HTTPService class and -use-network = false; When the security popup comes up, i press settings, then I immediately get this unhandled status error.. I looked at HTTPService, not seeing any handlers for Status.. Any ideas???thanks, -- [JPG] __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Coverage testing for AS3 implementation?
Is there any AS3 implementation for Coverage testing, something similar to Clover in Java? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: mx:Form examples.
nice thanks.On 9/21/06, Nehal Gandhi [EMAIL PROTECTED] wrote: hey Renaun http://renaun.com/flex2/AdvancedForm/ this doesnt seems to be working for me . i m using win XP -IE 7 -Neh On 9/21/06, Renaun Erickson [EMAIL PROTECTED] wrote: I create a AdvancedForm component to help with some of the typicaluses of Forms. http://renaun.com/blog/flex-components/comp-advancedformRenaun--- In flexcoders@yahoogroups.com , aaron smith[EMAIL PROTECTED] wrote: Does anyone know of any place that has some Form usage examples, with validators and what not word! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] cairngorm examples
where is a link to all of the cairngorm examples that exist?.. thanks __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Actionscript Binding - bind a property through a function
Give this a try:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.binding.utils.BindingUtils; [Bindable] public var foo:String = hi; public function init():void { BindingUtils.bindSetter( handleChange, this, foo ); }public function handleChange( str:String ):void { trace( handleChange( + str + ) ); } ]]/mx:Scriptmx:Button label=go click=foo='value of foo changed'//mx:Application On 9/20/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: Hi.. I was asking about how to do it through ActionScript... I have done it and know it works in mxml. I'm talking about adding a property binding using just actionscript, and some incantation of a mx.binding.utils.ChangeWatcher or mx.binding.utils.BindingUtils Thunder --- In flexcoders@yahoogroups.com, gsamsa [EMAIL PROTECTED] wrote: This should work pretty much just the way your example works, so maybe one of your parameters isn't bindable? The following example works, and also illustrates another less elegant way of accomplishing the same thing ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:Button label={formatLabel(prodName1.text,prodPart1.text)} x=10 y=40/ mx:TextInput id=prodName1 y=10 x=10/ mx:TextInput id=prodPart1 x=193 y=10/ mx:Button label={formatLabel2} x=10 y=128/ mx:TextInput id=prodName2 change=dispatchEvent(new Event('labelChanged')) x=10 y=98/ mx:TextInput id=prodPart2 change=dispatchEvent(new Event('labelChanged')) x=193 y=98/ mx:Script ![CDATA[ private function formatLabel(x:String, y:String) : String { return (x + : + y); } [Bindable(labelChanged)] private function get formatLabel2() : String { return (prodName2.text + : + prodPart2.text); } ]] /mx:Script /mx:Application --- In flexcoders@yahoogroups.com, thunderstumpgesatwork thunder.stumpges@ wrote: Hi guys, I know in mxml you can do data binding like this: mx:Button label={formatLabel(someBindableTextField)} / where any time the bindable property someBindableTextField changes, the binding fires, and the label is replaced with the result of the function. This is even more powerful if the function parameters has two bindable properties. When either one changes, the function executes, and the label is updated. How can this be achieved in ActionScript? I have used the ChangeWatcher, and the BindingUtils classes but don't see a simple solution. thanks for any ideas =) Thunder __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] suppressing Status Error?
hey all, I am wondering how exaclty I suppress this error.. Error #2044: Unhandled StatusEvent:. level=error, code=It is happening when i'm using the HTTPService class and -use-network = false; When the security popup comes up, i press settings, then I immediately get this unhandled status error.. I looked at HTTPService, not seeing any handlers for Status.. Any ideas???thanks, __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] David George Presentation re Improving Performance of Flex Apps
does anyone eles have problems with sounds, it cuts out after a couple minutesl... On 9/20/06, greg h [EMAIL PROTECTED] wrote: Adobe just put up a great Adobe Connect recording of a 1 hour presentation by David George, Flex Principal Engineer TOPIC: Tips and Techniques for Improving Performance of Flex Apps. http://adobedev.adobe.acrobat.com/p71169528/ fyi ... this is a nice sampling of the good things that will be available in abundance at MAX! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] mx:Form examples.
Does anyone know of any place that has some Form usage examples, with validators and what not word! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] parsing xml, simple question
look at this example::?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:Model id=txml employees employeefirstnameAaron/firstname /employee employeefirstnameD/firstname /employee /employees /mx:Model mx:Script private function init():void { XPLogger.info( txml.employees.employee[0].firstname ); } /mx:Script /mx:Application ::This generates a runtine error: Cannot access a property or method of a null object reference.Why exactly is this generating a runtime error? I can't figure it out.. even when you try this:: XPLogger.info( txml.employees.employee[0] )now the other thing is this. when i do an XPLogger.info( txml.employees ) it traces as [object]any ideas? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: parsing xml, simple question
ok, so i figured out my first question but I have another question about parsing xml...look at this xmlrss version=2.0 xmlns:dc= http://purl.org/dc/elements/1.1/ xmlns:sy=http://purl.org/rss/1.0/modules/syndication/ xmlns:content= http://purl.org/rss/1.0/modules/content/ employees employee id=1266 employee_id1266/employee_id picturesomepicture location/picture firstnameAaron/firstname lastnameSmith/lastname displaynameAaron Smith/displayname titledev/title departmentInteractive/department deskphone5812456545/deskphone mobile786547852562/mobile email[EMAIL PROTECTED]/email screennameaaronsmithcpb/screenname /employee /employees/rsswhen I try an trace out the first name of the employee node, i have ot use the toString() method in order to actually see the name (Aaron), when i use employees.employee[0].firstname.toString() = Aaronnow if i do: employees.employee[0].firstname = firstname xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:sy= http://purl.org/rss/1.0/modules/syndication/ xmlns:content=http://purl.org/rss/1.0/modules/content/ Aaron/firstnamewhat is the deal with that??? that node doesn't even have any xmlns declarations in the defined XML, why would accessing just the firstname property tag all that on there? Should'nt the second one be giving me just Aaron as well?? thanks..On 9/19/06, aaron smith [EMAIL PROTECTED] wrote:look at this example::?xml version= 1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:Model id=txml employees employeefirstnameAaron/firstname /employee employeefirstnameD/firstname /employee /employees /mx:Model mx:Script private function init():void { XPLogger.info( txml.employees.employee[0].firstname ); } /mx:Script /mx:Application ::This generates a runtine error: Cannot access a property or method of a null object reference.Why exactly is this generating a runtime error? I can't figure it out.. even when you try this:: XPLogger.info( txml.employees.employee[0] )now the other thing is this. when i do an XPLogger.info( txml.employees ) it traces as [object]any ideas? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: PopUpManager quick help
its cool, i actually got it figured out for what i need. What i was looking for actually was to center the popup to the stage. so I just created this class that I extend from instead.. It makes sense now that if you want to center inside of the parent object, you use PopUpManager.centerPopUp. or you can jsut specify the x and y, in this classes case, the stage width and height.package{ import mx.core.Application; import mx.containers.TitleWindow; import mx.events.FlexEvent; import mx.events.ResizeEvent; /** * a class that handles centering itself in the entire application window, * does a center when the swf is resized, or when you call codeselfCenter/code * from one of it's subclassed implementations */ public class SelfCenteringTitleWindowPopUp extends TitleWindow {/** * constructor */ public function SelfCenteringTitleWindowPopUp() { super(); addEventListener( FlexEvent.CREATION_COMPLETE, handleCreationComplete ); }/** * when the creation of the TitleWindow is complete, add listener for resize events * @param fe */ protected function handleCreationComplete( fe:FlexEvent ):void { Application.application.addEventListener( ResizeEvent.RESIZE, selfCenterFromResize ); }/** * the resize event handler method, uses codeselfCenter/code * @param re */ protected function selfCenterFromResize( re:ResizeEvent ):void { selfCenter(); }/** * the method that does the centering of this popup */ protected function selfCenter():void { x = ( Application.application.width - width ) / 2; y = ( Application.application.height - height ) / 2; } }}MXML:::?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=horizontal creationComplete=initApp() mx:Script import Startup;private function initApp():void { var st:Startup = new Startup(); } /mx:Script/mx:ApplicationStartup.as::: package{ import mx.managers.PopUpManager; import mx.containers.Canvas; import AddSubscriptionModal; public class Startup { public function Startup() { var cn:Canvas = new Canvas(); Application.application.addChild( cn ); var asm:AddSubscriptionModal = PopUpManager.createPopUp( cn, AddSubscriptionModal, true ) as AddSubscriptionModal; } }}AddSubscriptionModal.as:::package{ import mx.managers.PopUpManager; import mx.events.CloseEvent; import SelfCenteringTitleWindowPopUp; public class AddSubscriptionModal extends SelfCenteringTitleWindowPopUp { public function AddSubscriptionModal() { doInit(); addEventListener( CloseEvent.CLOSE , handleCloseModal ); }private function doInit():void { title = test; showCloseButton = true; width = 400; height = 200; selfCenter(); }private function handleCloseModal( ce:CloseEvent ):void { PopUpManager.removePopUp( this ); } }} I appreciate your help though..smithOn 9/18/06, Tim Hoff [EMAIL PROTECTED] wrote: Perhaps it's because you are using AS to create the canvas. Possibly a race condition (asynchronous) is occurring as the canvas is resized and the popup is centered. You could always just use mx:Canvas in your main application class instead. It all gets turned into AS anyway. Sorry that I couldn't be of more help -TH --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: doesnt seem to work correctly. It actually puts the popup in the negative window space. (see attachment) I wonder why it would do that. is it something to do with canvas / percentWidth / percentHeight. i've event tried commenting that out and it still only puts it at 0,0. On 9/18/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi Aaron, This code will center the popup relative to the popups's parent. In your case cn. PopUpManager.centerPopUp(asm); -TH --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, aaron smith beingthexemplarylists@ wrote: I'm trying to understand the popup manager better, i created a quick test just to get it working and test it out.. most works fine but having problems understanding how to center the popup.. here is my code: MXML::: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=horizontal creationComplete=initApp() mx:Script import Startup; private function initApp():void { var st:Startup = new Startup(); } /mx:Script /mx:Application Startup.as::: package { import mx.managers.PopUpManager; import mx.containers.Canvas; import mx.core.Application; import mx.containers.TitleWindow; import AddSubscriptionModal; public class Startup { public function Startup() { var cn:Canvas = new Canvas(); cn.percentWidth = 100; cn.percentHeight = 100; Application.application.addChild( cn ); var asm:AddSubscriptionModal = PopUpManager.createPopUp ( cn, AddSubscriptionModal, true
[flexcoders] remove white content area in TitleWindow?
is there a way to remove the white content area in a titleWindow? i'm experimenting with drawing the UI myself, and when I draw it then add children to it, it adds that white content area, which I don't want. I tried extending canvas and drawing it that way, but then you can't drag the window around.. here is my example code:::mxml::?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=horizontal creationComplete=initApp() mx:Script import Startup;private function initApp():void { var st:Startup = new Startup(); } /mx:Script/mx:ApplicationStartup.as:::package{ import mx.managers.PopUpManager; import mx.containers.Canvas; import mx.core.Application ; import AddSubscriptionModal; public class Startup { public function Startup() { var cn:Canvas = new Canvas(); Application.application.addChild ( cn ); var asm:AddSubscriptionModal = PopUpManager.createPopUp( cn, AddSubscriptionModal, true ) as AddSubscriptionModal; } }}AddSubscriptionModal.as:::package { import mx.managers.PopUpManager; import mx.events.CloseEvent; import mx.events.FlexEvent; import SelfCenteringTitleWindowPopUp; import mx.graphics.RectangularDropShadow; import flash.display.*; import flash.geom.*; import mx.controls.Button; public class AddSubscriptionModal extends SelfCenteringTitleWindowPopUp {private var dropShadow:RectangularDropShadow; public function AddSubscriptionModal() { doInit(); addEventListener( CloseEvent.CLOSE, handleCloseModal ); addEventListener( FlexEvent.CREATION_COMPLETE , haCreationComplete ); }private function doInit():void { title = test; showCloseButton = true; width = 350; height = 100; selfCenter(); }override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void { super.updateDisplayList( unscaledWidth, unscaledHeight ); graphics.clear(); //background var fillType:String = GradientType.LINEAR; var colors:Array = [0xFFFBC9, 0xFF]; var alphas:Array = [100, 100]; var ratios:Array = [0x00, 0xFF]; var matr:Matrix = new Matrix(); matr.createGradientBox(width, 20, -60, -50, 50); var spreadMethod:String = SpreadMethod.PAD; this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);this.graphics.drawRect(0,0,width,height); //shadow if (!dropShadow) dropShadow = new RectangularDropShadow(); dropShadow.distance = 3; dropShadow.angle = 70; dropShadow.color = 0; dropShadow.alpha = 0.4; dropShadow.drawShadow(graphics, 0, 0, unscaledWidth, unscaledHeight); selfCenter(); }private function haCreationComplete( fe:FlexEvent ):void { var btn:Button = new Button(); btn.label = TEST; addChild( btn ); }private function handleCloseModal( ce:CloseEvent ):void { PopUpManager.removePopUp( this ); } }}SelfCenteringTitleWindowPopUp.as::: package { import mx.core.Application; import mx.containers.TitleWindow; import mx.events.FlexEvent; import mx.events.ResizeEvent; /** * a class that handles centering itself in the entire application window, * does a center when the swf is resized, or when you call codeselfCenter/code * from one of it's subclassed implementations */ public class SelfCenteringTitleWindowPopUp extends TitleWindow { /** * constructor */ public function SelfCenteringTitleWindowPopUp() { super(); addEventListener( FlexEvent.CREATION_COMPLETE, handleCreationComplete ); } /** * when the creation of the TitleWindow is complete, add listener for resize events * @param fe */ protected function handleCreationComplete( fe:FlexEvent ):void { Application.application.addEventListener( ResizeEvent.RESIZE, selfCenterFromResize ); } /** * the resize event handler method, uses codeselfCenter/code * @param re */ protected function selfCenterFromResize( re:ResizeEvent ):void { selfCenter(); } /** * the method that does the centering of this popup */ protected function selfCenter():void { x = ( Application.application.width - width ) / 2; y = ( Application.application.height - height ) / 2; } } }thanks in advance... __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch
Re: [flexcoders] Re: adding control bar to panel programitically
beautiful, it must update the display?On 9/18/06, Harish Sivaramakrishnan [EMAIL PROTECTED] wrote: You can add the children in any order as long as you call this function at the end of adding all children createComponentsFromDescriptors ();ThanksHarishPS: This works when you extend from Panel. On 9/15/06, aaron smith [EMAIL PROTECTED] wrote: hey thanks man. works as expected now. That does make sense that the order of adding children matters.. thanksAaronSmith On 9/14/06, gustavo.saume [EMAIL PROTECTED] wrote: Hello aaron, i had the same problem recently... you just have to change the order of you components when you add them to the panel, as far as i know the controlBar has to be the last one to be add in order to be under the white content area of the panel, try the following... p.addChild( tb ); cb.addChild( tb2 ); p.addChild( cb ); addChild( p ); and ill work fine. --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: I've been just messing around with how to do things through code. It seems adding a ControlBar to a panel in code doesn't do the same thing as it does in mxml. here is my mostly code example: MXML: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=initApp() mx:Script import ControlBarInPanel; private function initApp():void { var cbip:ControlBarInPanel = new ControlBarInPanel(); addChild( cbip ); } /mx:Script /mx:Application AS3: package { import mx.containers.Canvas; import mx.containers.Panel; import mx.containers.ControlBar; import mx.controls.Button; import mx.events.FlexEvent; public class ControlBarInPanel extends Canvas { public function ControlBarInPanel() { super(); addEventListener( FlexEvent.CREATION_COMPLETE, handleCreationComplete ); } private function handleCreationComplete( event:FlexEvent ):void { percentWidth = 100; percentHeight = 100; var tb:Button = new Button(); tb.label = Test Button in Panel; var p:Panel = new Panel(); p.title = Test Control Bar in Panel; var cb:ControlBar = new ControlBar(); var tb2:Button = new Button(); tb2.label = Test Button in Control Bar; addChild( p ); p.addChild( tb ); p.addChild( cb ); cb.addChild( tb2 ); } } } this all works fine, but when the control bar gets added to the panel it is inside of the White content Area in the panel. Now when I do the same thing but with MXML:: ?xml version=1.0 encoding=utf-8 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical mx:Canvas percentWidth=100 percentHeight=100 mx:Panel title=Test Control Bar in Panel mx:Button label=Test Button in Panel / mx:ControlBar horizontalAlign=right mx:Button label=Test Button in ControlBar / /mx:ControlBar /mx:Panel /mx:Canvas /mx:Application it puts the control bar under the white content area in a panel. what is going on behind the scenes in mxml that is causing the difference?? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: adding control bar to panel programitically
so I could potentially set up a whole application in iterations, adding child components here and there, then use Application.application.createComponentsFromDescriptors(). and it would re create the components, only fixing how it messes up the ordering of the display list.. i'll have to mess areound with this more.. thanks man...On 9/18/06, aaron smith [EMAIL PROTECTED] wrote:beautiful, it must update the display? On 9/18/06, Harish Sivaramakrishnan [EMAIL PROTECTED] wrote: You can add the children in any order as long as you call this function at the end of adding all children createComponentsFromDescriptors ();ThanksHarishPS: This works when you extend from Panel. On 9/15/06, aaron smith [EMAIL PROTECTED] wrote: hey thanks man. works as expected now. That does make sense that the order of adding children matters.. thanksAaronSmith On 9/14/06, gustavo.saume [EMAIL PROTECTED] wrote: Hello aaron, i had the same problem recently... you just have to change the order of you components when you add them to the panel, as far as i know the controlBar has to be the last one to be add in order to be under the white content area of the panel, try the following... p.addChild( tb ); cb.addChild( tb2 ); p.addChild( cb ); addChild( p ); and ill work fine. --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: I've been just messing around with how to do things through code. It seems adding a ControlBar to a panel in code doesn't do the same thing as it does in mxml. here is my mostly code example: MXML: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=initApp() mx:Script import ControlBarInPanel; private function initApp():void { var cbip:ControlBarInPanel = new ControlBarInPanel(); addChild( cbip ); } /mx:Script /mx:Application AS3: package { import mx.containers.Canvas; import mx.containers.Panel; import mx.containers.ControlBar; import mx.controls.Button; import mx.events.FlexEvent; public class ControlBarInPanel extends Canvas { public function ControlBarInPanel() { super(); addEventListener( FlexEvent.CREATION_COMPLETE, handleCreationComplete ); } private function handleCreationComplete( event:FlexEvent ):void { percentWidth = 100; percentHeight = 100; var tb:Button = new Button(); tb.label = Test Button in Panel; var p:Panel = new Panel(); p.title = Test Control Bar in Panel; var cb:ControlBar = new ControlBar(); var tb2:Button = new Button(); tb2.label = Test Button in Control Bar; addChild( p ); p.addChild( tb ); p.addChild( cb ); cb.addChild( tb2 ); } } } this all works fine, but when the control bar gets added to the panel it is inside of the White content Area in the panel. Now when I do the same thing but with MXML:: ?xml version=1.0 encoding=utf-8 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical mx:Canvas percentWidth=100 percentHeight=100 mx:Panel title=Test Control Bar in Panel mx:Button label=Test Button in Panel / mx:ControlBar horizontalAlign=right mx:Button label=Test Button in ControlBar / /mx:ControlBar /mx:Panel /mx:Canvas /mx:Application it puts the control bar under the white content area in a panel. what is going on behind the scenes in mxml that is causing the difference?? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Loading XML question again.
when I run this i get a runtime error about not being able to access local files. If I comment out the local xml file reference and uncomment the reference to sephirot's xml file. it works fine. How can this be used to load local XML? And i think using the compiler switch to allow local access is not a good solution. in a previous post i mentioned not being able to use http when allow loca lis on, well then if you have vendors with services you rely on, you can't test dev builds with that compiler switch. Here is my code to load some xml.Startup.as:::package{ import flash.net.URLLoader import flash.net.URLRequest import flash.events.* import XPLogger; public class Startup { private var mainXML:XML; private var loader:URLLoader;public function Startup() { loader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onComplete); //loader.load(new URLRequest( http://www.sephiroth.it/tutorials/flashPHP/E4X/files/test.xml)); loader.load(new URLRequest(xml/test.xml)); }private function onComplete( e:Event ):void { mainXML = new XML(loader.data); XPLogger.debug( loader.data ); XPLogger.debug( xml loaded, start parsing using E4X syntax ); } } } Now the other thing im wondering about is if FlexBuilder somehow manages this internally when you're compiling the swfs. I am using FlashDevelop for this. I know someone mentioned all you have to do is use URLLoader and URLRequest. but it sure doesn't work for me. can someone test this code and see if it works for FlexBuilder? or if somone can create an example that works, help me out. Thanks all!PS: here is the XPLogger class:::XPLogger.as::: (use Xpanel logger)package { import flash.net.LocalConnection; import flash.utils.getTimer; public class XPLogger extends Object { private static var s_lc:LocalConnection = null; public static var enabled : Boolean = true; public static var level : Number = LEVEL_ALL; public static var LEVEL_DEBUG:int = 0x01; public static var LEVEL_INFORMATION:int = 0x02; public static var LEVEL_WARNING:int = 0x04; public static var LEVEL_ERROR:int = 0x08; public static var LEVEL_NONE:int = 0xFF; public static var LEVEL_ALL:int = 0x00;public static function debug( o : Object ):void { _send( LEVEL_DEBUG, o ); } public static function info( o : Object ):void { _send(LEVEL_INFORMATION, o ); } public static function error( o : Object ):void { _send( LEVEL_ERROR, o ); } public static function message( o : Object ):void { _send( LEVEL_INFORMATION, o ); } public static function warn( o : Object ):void { _send( LEVEL_WARNING, o ); } public static function warning( o : Object ):void { _send( LEVEL_WARNING, o ); } public static function trace( o : Object ):void { _send( LEVEL_DEBUG, o ); } private static function _send( _level_:Number, o:Object ):void { if( _level_ level )return; if( s_lc == null )s_lc = new LocalConnection(); s_lc.send( _xpanel1, dispatchMessage, flash.utils.getTimer(), ( typeof o ==xml ? o.toXMLString() : + o ), _level_ ); } }} __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] flash player 9 security?
Hey question about the flash player and loading xml / security.I saw this comment by Mike Chambers on Kuwomot's blog, this is what the comment said: After installing the new Beta 3 I'm having trouble with loading local XML filesIn the project setting for your project, select the Flex Compiler section and add the following to Additional compiler args:–usenetwork=false This is due to security changes in beta 3 where SWFs can talk to the local machine or the network, but not both.Is this something that is still in place? if it is that would explain why I can't load local XML. I've known about the usenetwork switch but people told me you still can load local and over http with URLLoader and URLRequest, I haven't been able to do it though. So is this something that is still in place, and I need to use -usenetwork=false if loading local XML?thanks,smith __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] log console
check out XPanel.http://www.ajaxmaker.com/xpanel/xpanel.htmsmithOn 9/18/06, Diego Guebel [EMAIL PROTECTED] wrote: Hi there,just wondering what log console you guys prefer.is log4f still live? I was about to download the latest version fromsourceforge and it was from late 2004...cheers, Diego--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * Your email settings:Individual Email | Traditional* To change settings online go to:http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required)* To change settings via email:mailto:[EMAIL PROTECTED]mailto: [EMAIL PROTECTED]* 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/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] log console
XPanel. there is an AS2 and AS3 version.On 9/18/06, Diego Guebel [EMAIL PROTECTED] wrote:I want an external console for people that dont have flex installed... On Tue, 19 Sep 2006 15:17:34 +1200, Bjorn Schultheiss[EMAIL PROTECTED] wrote: The FB2 Console is not bad... It allows you to debug at runtime, obviously. What features are you looking for? Regards, Bjorn Schultheiss -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Diego Guebel Sent: Tuesday, 19 September 2006 12:58 PM To: Flex coders Subject: [flexcoders] log console Hi there, just wondering what log console you guys prefer. is log4f still live? I was about to download the latest version from sourceforge and it was from late 2004... cheers, Diego -- 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 -- 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 --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* 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/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] log console
you could also check XTrace if your on a mac.. http://www.osflash.org/xtrace/. you'd just have to alter whatever AS2 logger class he built, port it to AS3... On 9/18/06, aaron smith [EMAIL PROTECTED] wrote: XPanel. there is an AS2 and AS3 version.On 9/18/06, Diego Guebel [EMAIL PROTECTED] wrote:I want an external console for people that dont have flex installed... On Tue, 19 Sep 2006 15:17:34 +1200, Bjorn Schultheiss[EMAIL PROTECTED] wrote: The FB2 Console is not bad... It allows you to debug at runtime, obviously. What features are you looking for? Regards, Bjorn Schultheiss -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Diego Guebel Sent: Tuesday, 19 September 2006 12:58 PM To: Flex coders Subject: [flexcoders] log console Hi there, just wondering what log console you guys prefer. is log4f still live? I was about to download the latest version from sourceforge and it was from late 2004... cheers, Diego -- 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 -- 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 --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* 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/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___