Re: [Flashcoders] E4X filtering strange behaviour
Why not use "toXMLString()": trace("result: "+xmlListSearch.toXMLString()); When I add more than one node with "Dark" in the title attribute it finds it with "toString()". I've always used "toXMLString()" so I was unaware of this. -- Keith H -- http://keith-hair.com Merrill, Jason wrote: So in the following code, why doesn't it find the node containing "The Dark Knight"? Yet, if I switch out "Dark" in the RegExp argument for "The", it indeed finds all the nodes that have "The" in it. If I again, switch out the word, "Violet", then nothing gets returned. If I put "Of", then it returns the two nodes that contain "Of". The only logic I have been able to find is that this only works if MORE THAN ONE node contains the search term. Something to do with XMLList or the regex.test method. Ideas? var testXML:XML = ; var re:RegExp = new RegExp("Dark", "i"); var xmlListSearch:XMLList = testXML.topics.topic.( re["test"](attribute("title"))); trace("result: "+xmlListSearch.toString()); Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
So in the following code, why doesn't it find the node containing "The Dark Knight"? Yet, if I switch out "Dark" in the RegExp argument for "The", it indeed finds all the nodes that have "The" in it. If I again, switch out the word, "Violet", then nothing gets returned. If I put "Of", then it returns the two nodes that contain "Of". The only logic I have been able to find is that this only works if MORE THAN ONE node contains the search term. Something to do with XMLList or the regex.test method. Ideas? var testXML:XML = ; var re:RegExp = new RegExp("Dark", "i"); var xmlListSearch:XMLList = testXML.topics.topic.( re["test"](attribute("title"))); trace("result: "+xmlListSearch.toString()); Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
I was told on Flexcoders that using @string instead of attribute("string") can be problematic because an error will result if the attribute is missing in the node of the XML. Using attribute() won't throw any errors if the attribute is missing in the XML node, and in most cases (depending on what you're doing) is prefereable to @. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf Of Keith >>Sent: Monday, July 21, 2008 8:19 PM >>To: Flash Coders List >>Subject: Re: [Flashcoders] E4X filtering strange behaviour >> >>Thanks for showing these results. >>I'm not missing the "attribute" method that much...and after >>this I don't feel any guilt for it. :) >> >>-- Keith H -- >>http://keith-hair.com >> >> >> >> >> >>Kenneth Kawamoto wrote: >>> I just run a quick and dirty test, and I think I can confirm that. >>> >>> The following test for 10,000 times each: >>> >>> testXML..*.( re["test"](attribute("title"))); testXML..topic.( >>> re["test"](attribute("title"))); testXML.topics.topic.( >>> re["test"](attribute("title"))); testXML.topics.topic.( >>> re["test"](@title)); testXML.topics.topic.((re as >>> RegExp).test(@title)); >>> >>> The result: >>> >>> 1114ms >>> 1047ms >>> 993ms >>> 868ms >>> 1087ms >>> >>> So the wildcard "*" is indeed slower, which is logical. But also >>> "attribute()" is slower than "@", moreover "(re as >>RegExp).test()" is >>> slower than "re["test"]()" - well they are all logical too, you may >>> say :) >>> >>> Kenneth Kawamoto >>> http://www.materiaprima.co.uk/ >> >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: [AS3] Font Sharing between SWFs
I figured out that I needed to register the font ... Font.registerFont(Class) and it all works as expected... interesting. On Mon, Jul 21, 2008 at 6:08 PM, Helmut Granda <[EMAIL PROTECTED]> wrote: > I am running into a small issue, everything is working correctly in my > application except for the Font sharing between SWFs. If I embed the font in > all the SWFs everything works as expected but of course this is not what I > need since it will add weight to other SWFs and defeat the purpose of using > a SWF as a "library". > > This seems to be similar to the AS2 issue where you had to embed the > components in all the child SWFs that needed the components when using it > accross files. > > Here is some code: > > var fontItem = Utils.getFontFromLibrary ( DATA.library, > "FontFace" ); > trace(fontItem); // output : [class FontFace] > > iFont = new fontItem() as Font ; > trace(iFont); // output : [object FontFace] > > later in the application: > >font.fontName // output : Frutiger 55 Roman > > Any suggestions? > > TIA.. > > > -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] E4X filtering strange behaviour
Thanks for showing these results. I'm not missing the "attribute" method that much...and after this I don't feel any guilt for it. :) -- Keith H -- http://keith-hair.com Kenneth Kawamoto wrote: I just run a quick and dirty test, and I think I can confirm that. The following test for 10,000 times each: testXML..*.( re["test"](attribute("title"))); testXML..topic.( re["test"](attribute("title"))); testXML.topics.topic.( re["test"](attribute("title"))); testXML.topics.topic.( re["test"](@title)); testXML.topics.topic.((re as RegExp).test(@title)); The result: 1114ms 1047ms 993ms 868ms 1087ms So the wildcard "*" is indeed slower, which is logical. But also "attribute()" is slower than "@", moreover "(re as RegExp).test()" is slower than "re["test"]()" - well they are all logical too, you may say :) Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] E4X filtering strange behaviour
I just run a quick and dirty test, and I think I can confirm that. The following test for 10,000 times each: testXML..*.( re["test"](attribute("title"))); testXML..topic.( re["test"](attribute("title"))); testXML.topics.topic.( re["test"](attribute("title"))); testXML.topics.topic.( re["test"](@title)); testXML.topics.topic.((re as RegExp).test(@title)); The result: 1114ms 1047ms 993ms 868ms 1087ms So the wildcard "*" is indeed slower, which is logical. But also "attribute()" is slower than "@", moreover "(re as RegExp).test()" is slower than "re["test"]()" - well they are all logical too, you may say :) Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: OK good to know, thanks! Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Monday, July 21, 2008 12:52 PM To: Flash Coders List Subject: Re: [Flashcoders] E4X filtering strange behaviour Yes that's that :) Anyway in your case you know the incoming XML schema so you shouldn't use wildcard "*" - I think wildcards have serious performance hits. i.e. "theXML.topics.topic." should be used rather than "theXML..*." Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: Ah, I know where the confusion came from, you said the code was based on my example, but that was actually Wagner's example, where he put var test:XML = ...etc. (it was based on my example, but he used "test" as an instance of the XML when requoting my original question) The use of "test" as the XML name threw me, because it was mixed in with the regex method, "re.test" - I never realized you meant "test" as the XML not test as some regex method I wasn't aware of. So when you wrote var xmlListSearch:XMLList = test..*.(re["test"](attribute("*")) || re["test"](child("*"))); You meant var xmlListSearch:XMLList = theXML..*.(re["test"](attribute("*")) || re["test"](child("*"))); Got it, I'll give it a shot, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] [AS3] Font Sharing between SWFs
I am running into a small issue, everything is working correctly in my application except for the Font sharing between SWFs. If I embed the font in all the SWFs everything works as expected but of course this is not what I need since it will add weight to other SWFs and defeat the purpose of using a SWF as a "library". This seems to be similar to the AS2 issue where you had to embed the components in all the child SWFs that needed the components when using it accross files. Here is some code: var fontItem = Utils.getFontFromLibrary ( DATA.library, "FontFace" ); trace(fontItem); // output : [class FontFace] iFont = new fontItem() as Font ; trace(iFont); // output : [object FontFace] later in the application: font.fontName // output : Frutiger 55 Roman Any suggestions? TIA.. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] E4X filtering strange behaviour
If I may repeat myself "I don't think you need "g" (Global flag) for this." :) The reason is, I quote from the doc, "If the g (global) flag is set for the regular expression, then the search starts at the index position specified by the lastIndex property of the regular expression. If the search matches a substring, the lastIndex property changes to match the position of the end of the match. " To prove this point, if I do something like: // var re:RegExp; re = new RegExp("The", "gi"); // with global flag for each(var prop1:XML in testXML.topics.topic){ trace(re.lastIndex, " - ", [EMAIL PROTECTED], " - ", re["test"]([EMAIL PROTECTED])); } trace("***"); re = new RegExp("The", "i"); // without global flag for each(var prop2:XML in testXML.topics.topic){ trace(re.lastIndex, " - ", [EMAIL PROTECTED], " - ", re["test"]([EMAIL PROTECTED])); } // I'd get: 0 - Coldplay's New Album, Viva La Vida Or Death And All His Friends - false 0 - The Dark Knight - true 3 - Arrested Development, The Movie - true 25 - Band Of Horses: Everything All The Time - true 34 - Master And Commander: The Far Side Of The World - true 41 - The Quick Brown Fox Jumped Over The Lazy Dog - false 0 - Violet Hill - false *** 0 - Coldplay's New Album, Viva La Vida Or Death And All His Friends - false 0 - The Dark Knight - true 0 - Arrested Development, The Movie - true 0 - Band Of Horses: Everything All The Time - true 0 - Master And Commander: The Far Side Of The World - true 0 - The Quick Brown Fox Jumped Over The Lazy Dog - true 0 - Violet Hill - false With global flag RegExp will not find "the" in "The Quick Brown Fox Jumped Over The Lazy Dog" because it looks for "the" from the character 41 onwards, namely "Dog", which has no "the". Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: OK, I'm like 95% there, but there is still some kind of bug - here is how to reproduce: var testXML:XML = ; var re:RegExp = new RegExp("The", "g,i"); var xmlListSearch:XMLList = testXML..*.topic.( re["test"]( attribute("title"))); trace("result: "+xmlListSearch.toString()); If you search for the word, "the", as I do when I construct the regular expression, you should get 5 nodes returned into the XMLList, but I only get these four: I don't get this node: ? Any idea why? Does it fail if there is more than one "the" in the string? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removing all listeners from a dpo
On Sun, Jul 20, 2008 at 7:40 PM, Juan Pablo Califano < [EMAIL PROTECTED]> wrote: > PD2: > > this line should be removed from the unregisterEventListener() > > _dispatcher.removeEventListener(type, listener, useCapture); > > since it will cause an infinite loop and the eventListener has already been > removed in the caller anyway. > > So, to sum up: > > public function unregisterEventListener(type:String, listener:Function, > useCapture:Boolean):void { > >var i:int = _eventsList.length - 1; > > var cur:EventListenerData; > > while (i >= 0) { > cur = _eventsList[i] as EventListenerData; >if (cur.type == type && cur.listener == listener && cur.useCapture == > useCapture) { >// _dispatcher.removeEventListener(type, listener, useCapture); > _eventsList.splice(i, 1); >} >i--; >} > } > > > Cheers > Juan Pablo Califano > > > 2008/7/20, Juan Pablo Califano <[EMAIL PROTECTED]>: > > > > PD: > > > > I forgot to actually remove the eventListenerData from the list in the > > unregisterEventListener method of the Bookkeeper class. Looping backwards > > and adding _eventsList.splice(i, 1); should do it. > > > > > > Cheers > > Juan Pablo Califano > > > > > > > > 2008/7/20, Juan Pablo Califano <[EMAIL PROTECTED]>: > >> > >> Hi, > >> > >> You could try to do your own bookkeeping, so you know what listeners are > >> registered to an EventDispatcher object. You can have one class to hold > that > >> info in a list and write a method that loops through that list and > remove > >> all registered listeners. You'd still have to override the > addEventListener > >> and removeEventListener methods in the dispatcher object, to intercept > those > >> calls from external code and keep your bookkeeper in sync. > >> > >> Some code to illustrate it (keep mind that even though it compiles, this > >> is untested and may be not the best idea). > >> > >> package > >> { > >> import flash.display.Sprite; > >> > >> public class Main extends Sprite > >> { > >> private var _evtBookKeeper:EventBookkeeper; > >> > >> public function Main():void > >> { > >>_evtBookKeeper = new EventBookkeeper(this); > >> } > >> > >> override public function addEventListener(type:String, > >> listener:Function, useCapture:Boolean = false, priority:int = 0, > >> useWeakReference:Boolean = false):void > >> { > >>super.addEventListener(type, listener, useCapture, priority, > >> useWeakReference); > >>_evtBookKeeper.registerEventListener(type, listener, useCapture); > >> } > >> > >> override public function removeEventListener(type:String, > >> listener:Function, useCapture:Boolean = false):void > >> { > >>super.removeEventListener(type, listener, useCapture); > >>_evtBookKeeper.unregisterEventListener(type, listener, useCapture); > >> } > >> > >> public function removeAllListeners():void { > >>_evtBookKeeper.unregisterAndRemoveAll(); > >> } > >> > >> } > >> } > >> > >> // > >> // > >> // > >> > >> package > >> { > >> import flash.events.IEventDispatcher; > >> import flash.utils.Dictionary; > >> > >> public class EventBookkeeper > >> { > >> > >> private var _eventsList:Array; > >> private var _dispatcher:IEventDispatcher; > >> > >> public function EventBookkeeper(dispatcher:IEventDispatcher) { > >>_eventsList = []; > >> } > >> > >> public function registerEventListener(type:String, listener:Function, > >> useCapture:Boolean):void { > >>_eventsList.push(new EventListenerData(type,listener,useCapture)); > >> } > >> > >> public function unregisterEventListener(type:String, > listener:Function, > >> useCapture:Boolean):void { > >>var len:int = _eventsList.length; > >>var i:int = 0; > >> > >>var cur:EventListenerData; > >> > >>while (i < len) { > >> cur = _eventsList[i] as EventListenerData; > >> if (cur.type == type && cur.listener == listener && cur.useCapture > == > >> useCapture) { > >> _dispatcher.removeEventListener(type, listener, useCapture); > >> } > >> i++; > >>} > >> } > >> > >> public function unregisterAndRemoveAll():void { > >>var len:int = _eventsList.length; > >>var i:int = 0; > >> > >>var cur:EventListenerData; > >> > >>while (i < len) { > >> cur = _eventsList[i] as EventListenerData; > >> _dispatcher.removeEventListener(cur.type, cur.listener, > >> cur.useCapture); > >> i++; > >>} > >> > >>_eventsList = []; > >> > >> } > >> } > >> > >> } > >> > >> // > >> // > >> // > >> > >> package > >> { > >> > >> public class EventListenerData > >> { > >> > >> public var type:String; > >> public var listener:Function; > >> public var useCapture:Boolean; > >> > >> public function > >> EventListenerData(type:String,listener:Function,useCapture:Boolean) { > >>this.type = type; > >>this.listener = listener; > >>this.useCapture = useCapture; > >> } > >> > >> } > >> > >> } > >> > >> > >> 2008/7/18, Fabio Pinatti <[EMAIL PROTECTED]>: > >>> > >>> Hi list,
Re: [Flashcoders] E4X filtering strange behaviour
Indeed, the "g" seems to make it not work. Not a big problem, since it's useless in this case - the "g" flag in a test() call makes the search start at a specified index (lastIndex property) What may have confused you, Jason, is the example Robert posted fixed your problem (by removing the "^" character from the regexp - the "^" when the first character on a regexp means "match at the start of the line"), and also added the "g" flag, which is not quite what you wanted. So just drop it and it will work ;) Side note: I really hate the re["test"](...) kind of syntax, so here goes my suggestion: (re as RegExp).test(...) On Mon, Jul 21, 2008 at 5:40 PM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote: > I don't think you need "g" (Global flag) for this. > > Kenneth Kawamoto > http://www.materiaprima.co.uk/ > > Merrill, Jason wrote: > >> Wait, think I got it: >> >> var re:RegExp = new RegExp(searchInput.text, "g,i"); >> >> var xmlListSearch:XMLList = testXML..*.( re["test"]( >> attribute("title"))); >> >> trace("result: "+xmlListSearch.toString()); >> >> seems to work for me. Thanks eveyrone! >> >> Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD >> Instructional Technology & Media >> >> Join the Bank of America Flash Platform Developer Community >> Are you a Bank of America associate interested in innovative learning >> ideas and technologies? >> Check out our internal GT&O Innovative Learning Blog & subscribe. >> >> >>> -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Robert Leisle Sent: Monday, July 21, 2008 3:54 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] E4X filtering strange behaviour Hi Jason, This works for me: var testXML:XML = ; var re:RegExp = new RegExp(searchInput.text, "g"); var xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); trace("result: "+xmlListSearch.toXMLString()); Hth, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, July 21, 2008 12:27 PM To: Flash Coders List Subject: RE: [Flashcoders] E4X filtering strange behaviour OK, so this is almost there, but not quite. If I do as Kenneth suggested (and this should be able to be reproduced), var testXML:XML = ; var re:RegExp = new RegExp("^"+searchInput.text); var xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); trace("result: "+xmlListSearch.toXMLString()); (Assuming there is a TextInput text field on the stage and a function run when a button is clicked to run the regex search), if I enter the search term, "The", it only returns the second node containing "The Dark Knight", not the third topic node, which has a "The" in it's title attribute as well. If I put "Dark", it doesn't return anything. So it seems it's only searching nodes where the search term is the first item. How can I modify the regular expression above to find all nodes containing an element of the search term? >>> ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] E4X filtering strange behaviour
I don't think you need "g" (Global flag) for this. Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: Wait, think I got it: var re:RegExp = new RegExp(searchInput.text, "g,i"); var xmlListSearch:XMLList = testXML..*.( re["test"]( attribute("title"))); trace("result: "+xmlListSearch.toString()); seems to work for me. Thanks eveyrone! Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Leisle Sent: Monday, July 21, 2008 3:54 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] E4X filtering strange behaviour Hi Jason, This works for me: var testXML:XML = ; var re:RegExp = new RegExp(searchInput.text, "g"); var xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); trace("result: "+xmlListSearch.toXMLString()); Hth, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, July 21, 2008 12:27 PM To: Flash Coders List Subject: RE: [Flashcoders] E4X filtering strange behaviour OK, so this is almost there, but not quite. If I do as Kenneth suggested (and this should be able to be reproduced), var testXML:XML = ; var re:RegExp = new RegExp("^"+searchInput.text); var xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); trace("result: "+xmlListSearch.toXMLString()); (Assuming there is a TextInput text field on the stage and a function run when a button is clicked to run the regex search), if I enter the search term, "The", it only returns the second node containing "The Dark Knight", not the third topic node, which has a "The" in it's title attribute as well. If I put "Dark", it doesn't return anything. So it seems it's only searching nodes where the search term is the first item. How can I modify the regular expression above to find all nodes containing an element of the search term? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
OK, I'm like 95% there, but there is still some kind of bug - here is how to reproduce: var testXML:XML = ; var re:RegExp = new RegExp("The", "g,i"); var xmlListSearch:XMLList = testXML..*.topic.( re["test"]( attribute("title"))); trace("result: "+xmlListSearch.toString()); If you search for the word, "the", as I do when I construct the regular expression, you should get 5 nodes returned into the XMLList, but I only get these four: I don't get this node: ? Any idea why? Does it fail if there is more than one "the" in the string? Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
Wait, think I got it: var re:RegExp = new RegExp(searchInput.text, "g,i"); var xmlListSearch:XMLList = testXML..*.( re["test"]( attribute("title"))); trace("result: "+xmlListSearch.toString()); seems to work for me. Thanks eveyrone! Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Robert Leisle >>Sent: Monday, July 21, 2008 3:54 PM >>To: 'Flash Coders List' >>Subject: RE: [Flashcoders] E4X filtering strange behaviour >> >>Hi Jason, >> >>This works for me: >>var testXML:XML = >> >> >> >> >> >> ; >> >>var re:RegExp = new RegExp(searchInput.text, "g"); var >>xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); >>trace("result: "+xmlListSearch.toXMLString()); >> >>Hth, >>Bob >> >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Merrill, Jason >>Sent: Monday, July 21, 2008 12:27 PM >>To: Flash Coders List >>Subject: RE: [Flashcoders] E4X filtering strange behaviour >> >>OK, so this is almost there, but not quite. If I do as >>Kenneth suggested (and this should be able to be reproduced), >> >>var testXML:XML = >> >> >> >> >> >> ; >> >>var re:RegExp = new RegExp("^"+searchInput.text); var >>xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); >>trace("result: "+xmlListSearch.toXMLString()); >> >>(Assuming there is a TextInput text field on the stage and a >>function run when a button is clicked to run the regex >>search), if I enter the search term, "The", it only returns >>the second node containing "The Dark Knight", not the third >>topic node, which has a "The" in it's title attribute as >>well. If I put "Dark", it doesn't return anything. So it >>seems it's only searching nodes where the search term is the >>first item. >>How can I modify the regular expression above to find all >>nodes containing an element of the search term? >> >>Thanks, >> >>Jason Merrill >>Bank of America >>Enterprise Technology & Global Risk L&LD Instructional >>Technology & Media >> >>Join the Bank of America Flash Platform Developer Community >> >>Are you a Bank of America associate interested in innovative >>learning ideas and technologies? >>Check out our internal GT&O Innovative Learning Blog & subscribe. >> >> >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
>>var re:RegExp = new RegExp(searchInput.text, "g") Thanks - so it looks like I need the global flag, but how do I also pass the i (ignore case) flag if the RegExp constructor only takes the two arguments? Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
Hi Jason, This works for me: var testXML:XML = ; var re:RegExp = new RegExp(searchInput.text, "g"); var xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); trace("result: "+xmlListSearch.toXMLString()); Hth, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, July 21, 2008 12:27 PM To: Flash Coders List Subject: RE: [Flashcoders] E4X filtering strange behaviour OK, so this is almost there, but not quite. If I do as Kenneth suggested (and this should be able to be reproduced), var testXML:XML = ; var re:RegExp = new RegExp("^"+searchInput.text); var xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); trace("result: "+xmlListSearch.toXMLString()); (Assuming there is a TextInput text field on the stage and a function run when a button is clicked to run the regex search), if I enter the search term, "The", it only returns the second node containing "The Dark Knight", not the third topic node, which has a "The" in it's title attribute as well. If I put "Dark", it doesn't return anything. So it seems it's only searching nodes where the search term is the first item. How can I modify the regular expression above to find all nodes containing an element of the search term? Thanks, Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
OK, so this is almost there, but not quite. If I do as Kenneth suggested (and this should be able to be reproduced), var testXML:XML = ; var re:RegExp = new RegExp("^"+searchInput.text); var xmlListSearch:XMLList = testXML.topics.topic.(re["test"](@title)); trace("result: "+xmlListSearch.toXMLString()); (Assuming there is a TextInput text field on the stage and a function run when a button is clicked to run the regex search), if I enter the search term, "The", it only returns the second node containing "The Dark Knight", not the third topic node, which has a "The" in it's title attribute as well. If I put "Dark", it doesn't return anything. So it seems it's only searching nodes where the search term is the first item. How can I modify the regular expression above to find all nodes containing an element of the search term? Thanks, Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Loop creator
I'm looking into building a loop manipulator application. I basically want to take 10 preset loops and place them on a time track. Each, loop can be placed before or after another loop. I then want to combine the entire track and export as an mp3, is this possible via ActionScript, or do I need another language to encode MP3's? Anthony ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
OK good to know, thanks! Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Kenneth Kawamoto >>Sent: Monday, July 21, 2008 12:52 PM >>To: Flash Coders List >>Subject: Re: [Flashcoders] E4X filtering strange behaviour >> >>Yes that's that :) >> >>Anyway in your case you know the incoming XML schema so you >>shouldn't use wildcard "*" - I think wildcards have serious >>performance hits. >> >>i.e. "theXML.topics.topic." should be used rather than "theXML..*." >> >>Kenneth Kawamoto >>http://www.materiaprima.co.uk/ >> >>Merrill, Jason wrote: >>> Ah, I know where the confusion came from, you said the code >>was based >>> on my example, but that was actually Wagner's example, where he put >>> >>> var test:XML = ...etc. >>> >>> (it was based on my example, but he used "test" as an >>instance of the >>> XML when requoting my original question) The use of "test" >>as the XML >>> name threw me, because it was mixed in with the regex >>method, "re.test" >>> - I never realized you meant "test" as the XML not test as >>some regex >>> method I wasn't aware of. So when you wrote >>> > var xmlListSearch:XMLList = > test..*.(re["test"](attribute("*")) || re["test"](child("*"))); >>> >>> You meant >>> >>> var xmlListSearch:XMLList = >>theXML..*.(re["test"](attribute("*")) || >>> re["test"](child("*"))); >>> >>> Got it, I'll give it a shot, thanks. >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] E4X filtering strange behaviour
Yes that's that :) Anyway in your case you know the incoming XML schema so you shouldn't use wildcard "*" - I think wildcards have serious performance hits. i.e. "theXML.topics.topic." should be used rather than "theXML..*." Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: Ah, I know where the confusion came from, you said the code was based on my example, but that was actually Wagner's example, where he put var test:XML = ...etc. (it was based on my example, but he used "test" as an instance of the XML when requoting my original question) The use of "test" as the XML name threw me, because it was mixed in with the regex method, "re.test" - I never realized you meant "test" as the XML not test as some regex method I wasn't aware of. So when you wrote var xmlListSearch:XMLList = test..*.(re["test"](attribute("*")) || re["test"](child("*"))); You meant var xmlListSearch:XMLList = theXML..*.(re["test"](attribute("*")) || re["test"](child("*"))); Got it, I'll give it a shot, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
>>Kenneth - no, what I mean is, your examples aren't pointing >>to any XML instance at all Disregard that last post - see my follow up on it instead. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Merrill, Jason >>Sent: Monday, July 21, 2008 10:08 AM >>To: Flash Coders List >>Subject: RE: [Flashcoders] E4X filtering strange behaviour >> >>> Also this is shorter: >>> var xmlListSearch:XMLList = test..topic.(re.test(@title)); >> If we don't know anything about the XML we could do something like: var xmlListSearch:XMLList = test..*.(re["test"](attribute("*")) || re["test"](child("*"))); >> >>Kenneth - no, what I mean is, your examples aren't pointing >>to any XML instance at all (that I could see anyway, maybe >>you could point it out), so how in the world can the AVM know >>what you're referring to in order to search though and make >>an XMLList from? >> >>Jason Merrill >>Bank of America >>Enterprise Technology & Global Risk L&LD Instructional >>Technology & Media >> >>Join the Bank of America Flash Platform Developer Community >> >>Are you a Bank of America associate interested in innovative >>learning ideas and technologies? >>Check out our internal GT&O Innovative Learning Blog & subscribe. >> >> >> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Saturday, July 19, 2008 6:19 AM To: Flash Coders List Subject: Re: [Flashcoders] E4X filtering strange behaviour The code was based on your example and therefore we know the XML schema, i.e. we know the node name and they all have the attribute "title". If we don't know anything about the XML we could do something like: var xmlListSearch:XMLList = test..*.(re["test"](attribute("*")) || re["test"](child("*"))); Kenneth Kawamoto http://www.materiaprima.co.uk/ Merrill, Jason wrote: > Thanks. However, I have been told using @title is not >>good in most > situations because it will return an error if a node doesn't have the > attribute, wheras attribute("title") will not. > >>> Also this is shorter: >>> var xmlListSearch:XMLList = test..topic.(re.test(@title)); > > But you still need to specify what XML to search through, >>no? How > would the above know what XML object topic is within using the code above? > > Jason Merrill > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
> Also this is shorter: > var xmlListSearch:XMLList = test..topic.(re.test(@title)); >>If we don't know anything about the XML we could do something like: >> >>var xmlListSearch:XMLList = >>test..*.(re["test"](attribute("*")) || re["test"](child("*"))); Kenneth - no, what I mean is, your examples aren't pointing to any XML instance at all (that I could see anyway, maybe you could point it out), so how in the world can the AVM know what you're referring to in order to search though and make an XMLList from? Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Kenneth Kawamoto >>Sent: Saturday, July 19, 2008 6:19 AM >>To: Flash Coders List >>Subject: Re: [Flashcoders] E4X filtering strange behaviour >> >>The code was based on your example and therefore we know the >>XML schema, i.e. we know the node name and they all have the >>attribute "title". >> >>If we don't know anything about the XML we could do something like: >> >>var xmlListSearch:XMLList = >>test..*.(re["test"](attribute("*")) || re["test"](child("*"))); >> >>Kenneth Kawamoto >>http://www.materiaprima.co.uk/ >> >>Merrill, Jason wrote: >>> Thanks. However, I have been told using @title is not good in most >>> situations because it will return an error if a node >>doesn't have the >>> attribute, wheras attribute("title") will not. >>> > Also this is shorter: > var xmlListSearch:XMLList = test..topic.(re.test(@title)); >>> >>> But you still need to specify what XML to search through, no? How >>> would the above know what XML object topic is within using >>the code above? >>> >>> Jason Merrill >>> >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtering strange behaviour
Ah, I know where the confusion came from, you said the code was based on my example, but that was actually Wagner's example, where he put var test:XML = ...etc. (it was based on my example, but he used "test" as an instance of the XML when requoting my original question) The use of "test" as the XML name threw me, because it was mixed in with the regex method, "re.test" - I never realized you meant "test" as the XML not test as some regex method I wasn't aware of. So when you wrote >>var xmlListSearch:XMLList = >>test..*.(re["test"](attribute("*")) || re["test"](child("*"))); You meant var xmlListSearch:XMLList = theXML..*.(re["test"](attribute("*")) || re["test"](child("*"))); Got it, I'll give it a shot, thanks. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Loop Creator ( Dynamic Sound )
Hi Anthony, Didn't I already reply to this? In any case - this version of the question is slightly expanded. :-) Yes, it's possible with ByteArrays, however there is no native MP3 encoding built into Flash Player, so writing code to join and then export a bunch of MP3s together is tricky (and even if you port the LAME encoder or something, I doubt the AS3 performance will be what you want). I'd suggest doing the stitching together of the MP3 serverside - there are plenty of serverside technologies that can handle it - and simply use the Flash client to lay out a 'preview' version using loops. Ian On Mon, Jul 21, 2008 at 3:30 AM, Anthony Cintron <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm working on a concept but not sure if it is possible in AS3 Flash Player > 9. I have a client requesting - some feedback would be greatly appreciated. > I'm looking into building a "loop creator" application. > > I basically want to take preset loops and place them on a time track. The > loops will be able to layer above each other. I then want to combine the > entire track and export as an mp3, is this possible via byteArrays? If so, > could I encode the byteArray to MP3 or do I need to use php or something > similar. > > I'm in the dark on this one. Could definitely use the help. > > Anthony > website: sweetiesandgangsters.net > blog: codegasm.blogspot.com > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Loop Creator ( Dynamic Sound )
Hi everyone, I'm working on a concept but not sure if it is possible in AS3 Flash Player 9. I have a client requesting - some feedback would be greatly appreciated. I'm looking into building a "loop creator" application. I basically want to take preset loops and place them on a time track. The loops will be able to layer above each other. I then want to combine the entire track and export as an mp3, is this possible via byteArrays? If so, could I encode the byteArray to MP3 or do I need to use php or something similar. I'm in the dark on this one. Could definitely use the help. Anthony website: sweetiesandgangsters.net blog: codegasm.blogspot.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3/Papervision - rotating 3d object with 'hot'areas
Already have, seams to be a little slow in replying! SJM - Original Message - From: Ian Thomas To: Flash Coders List Sent: Monday, July 21, 2008 2:00 PM Subject: Re: [Flashcoders] AS3/Papervision - rotating 3d object with 'hot'areas Hi SJM, I'd suggest you ask on the Papervision list: http://osflash.org/mailman/listinfo/papervision3d_osflash.org HTH, Ian On Mon, Jul 21, 2008 at 1:55 AM, SJM - Flash <[EMAIL PROTECTED]> wrote: > Hi Guys im fishing for information on the best way to create a rotating 3d object with 'hot' areas what you can roll over to revel a description. Here is an example... http://www.danzer.ltd.uk/linkpakSpec.htm > > Instead of frame by frame (like the example) i want to create a fully dynamic 3d version using swift3d & papervision, any examples of similar projects, links to tutorials general advice would me much appreciated! > > Thanks > SJM > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RE: Loop creator
Hi Anthony, It's definitely possible - the easiest way to do it is if the actual combination of loops/export to MP3 is done server-side (by non-Flash code) and then the user downloads it. HTH, Ian On Sat, Jul 19, 2008 at 5:12 AM, Anthony Cintron <[EMAIL PROTECTED]> wrote: > I'm looking into building a loop manipulator application. I basically want > to take 10 preset loops and place them on a time track. Each, loop can be > placed before or after another loop. I then want to combine the entire track > and export as an mp3, is this possible? > > > Anthony Cintron > Flash/Flex Developer > E-mail: [EMAIL PROTECTED] > Web site: sweetiesandgangsters.net > Blog: codegasm.blogspot.com > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] The Charges Against ActionScript 3.0
This has been the pendulum usually swings. Good to hear it. Brian Mays On 7/21/08 6:02 AM, "allandt bik-elliott (thefieldcomic.com)" <[EMAIL PROTECTED]> wrote: > adobe has been saying that the next version of flash will be designer-driven > so it's maybe something that is being looked at at the moment ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3/Papervision - rotating 3d object with 'hot' areas
Hi SJM, I'd suggest you ask on the Papervision list: http://osflash.org/mailman/listinfo/papervision3d_osflash.org HTH, Ian On Mon, Jul 21, 2008 at 1:55 AM, SJM - Flash <[EMAIL PROTECTED]> wrote: > Hi Guys im fishing for information on the best way to create a rotating 3d > object with 'hot' areas what you can roll over to revel a description. Here > is an example... http://www.danzer.ltd.uk/linkpakSpec.htm > > Instead of frame by frame (like the example) i want to create a fully dynamic > 3d version using swift3d & papervision, any examples of similar projects, > links to tutorials general advice would me much appreciated! > > Thanks > SJM > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3/Papervision - rotating 3d object with 'hot' areas
Hi Guys im fishing for information on the best way to create a rotating 3d object with 'hot' areas what you can roll over to revel a description. Here is an example... http://www.danzer.ltd.uk/linkpakSpec.htm Instead of frame by frame (like the example) i want to create a fully dynamic 3d version using swift3d & papervision, any examples of similar projects, links to tutorials general advice would me much appreciated! Thanks SJM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Loop creator
I'm looking into building a loop manipulator application. I basically want to take 10 preset loops and place them on a time track. Each, loop can be placed before or after another loop. I then want to combine the entire track and export as an mp3, is this possible? Anthony Cintron Flash/Flex Developer E-mail: [EMAIL PROTECTED] Web site: sweetiesandgangsters.net Blog: codegasm.blogspot.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] The Charges Against ActionScript 3.0
adobe has been saying that the next version of flash will be designer-driven so it's maybe something that is being looked at at the moment On Fri, Jul 18, 2008 at 6:22 PM, daniele tassone <[EMAIL PROTECTED]> wrote: > Double click on the component/botton and auto-creation of AS3 code is other > solution > in order to keep good code and good humor for people that don't want to > write code; > > 3 weeks ago i have explain at creative team that will work with me, how we > can work > togheter with as3; not happy to see that we can't use event on Button. > > Next week other lesson at different creative team in order to explain same > things. > I'll hear the same word: loadMovie ? event ? > > I don't want to speak bad about AS3, I think that is a good language/ide, > with a little bit of problem because it's young. > > But i hope that Adobe can give the right way in order to do more and better > with low work. > Adobe have great experience in designer-tool-market, I'll hope for the > future. > > Daniele Tassone > > > > 2008/7/18 allandt bik-elliott (thefieldcomic.com) <[EMAIL PROTECTED]>: > > > i think someone has touched on it before, but if there is to be code > > applicable to movieclips / buttons on stage then they should work > similarly > > to the way motion tweens can be copied as actionscript - allow the bad > > behaviour for numpties and quick jobs, but then compensate to move the > code > > to where it should be. > > > > a > > > > On Fri, Jul 18, 2008 at 4:36 PM, Juan Pablo Califano < > > [EMAIL PROTECTED]> wrote: > > > > > You're probably right. Nevertheless, I think the spirit of the article > > has > > > been misunderstood. As I read it, it pointed out the need to have a > > > higher-level visual-style user interface to make simple things easier > for > > > non programmers. Visual tools that can intuitively generate the AS 3 > code > > > for adding simple behaviours and interactivity. I'm a programmer > myself > > > and > > > I don't think I'd use these features, but I now many people I work with > > who > > > would love to have them available. It'd make their lives easier, > without > > > compromising efficency or mantainability (we're talking about simple > > stuff > > > anyway). I believe the "charges" about button events, getURL and > > > loadMovie are a good example of this point. > > > > > > Cheers > > > Juan Pablo Califano > > > > > > > > > 2008/7/18, Abe Pazos <[EMAIL PROTECTED]>: > > > > > > > > I think most of the people who would agree > > > > with these charges are not in this mailing list. > > > > > > > > Are there more AS3 coders out there? > > > > Or more designers who sometimes use > > > > a line or two of ActionScript with gotoAndPlays, > > > > loadMovies, on release/rollover/rollout? > > > > > > > > I wonder how would this discussion look > > > > like if this was a designers mailing list? > > > > > > > > Abe > > > > ___ > > > > Flashcoders mailing list > > > > Flashcoders@chattyfig.figleaf.com > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders