Re: [Flashcoders] attaching an event to a movie clip
thanks for all guys I'm gonna run the codes to see which one fits me better. Regards Gustavo Duenas Ps: I'm using AS2 On Apr 6, 2007, at 5:45 PM, Muzak wrote: I don't know what's going on with the list (and the kind of replies) lately. Quick hacks are just what they are, quick hacks.. avoid them.. As David pointed out, dump and forget about loadMovie (there's no loadMovie in AS3 anyways). Use the MovieClipLoader class to load external assets (replaced with flash.display.Loader in AS3) It's much more elegant and has methods and events to handle loading of external assets. As for the reason why your events attached to the movieclip don't work, that's because when loading something in a MovieClip, everything associated with that MovieClip is cleared/removed. So you'll have to wait for the external asset to be fully loaded before assigning events to the MovieClip and that's what the MovieClipLoader is for. The onLoadInit event will tell you when the MovieClip is ready to work with and is when you can assign events to it. regards, Muzak. - Original Message - From: "David Ngo" <[EMAIL PROTECTED]> To: Sent: Friday, April 06, 2007 9:30 PM Subject: RE: [Flashcoders] attaching an event to a movie clip Personally, I find onEnterFrames bad practice to use unless you absolutely have to (if your logic is frame-based, etc). I would suggest the nested clip and/or use MovieClipLoader to handle your image loading. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 replacement for: "XMLNode_Instance.removeNode(); "
delete? var xml:XML = Hello World ; trace(xml.toXMLString()); delete xml.p[0]; trace(xml.toXMLString()); regards, Muzak - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Friday, April 06, 2007 11:16 PM Subject: [Flashcoders] AS3 replacement for: "XMLNode_Instance.removeNode();" > > What is the "E4X" in AS3 for removing a child in an AS3 XML object? > > I don't want to use XMLNode_Instance.removeNode() or anything from > XMLNode class ever again. ;) > > --Keith H-- > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attaching an event to a movie clip
I don't know what's going on with the list (and the kind of replies) lately. Quick hacks are just what they are, quick hacks.. avoid them.. As David pointed out, dump and forget about loadMovie (there's no loadMovie in AS3 anyways). Use the MovieClipLoader class to load external assets (replaced with flash.display.Loader in AS3) It's much more elegant and has methods and events to handle loading of external assets. As for the reason why your events attached to the movieclip don't work, that's because when loading something in a MovieClip, everything associated with that MovieClip is cleared/removed. So you'll have to wait for the external asset to be fully loaded before assigning events to the MovieClip and that's what the MovieClipLoader is for. The onLoadInit event will tell you when the MovieClip is ready to work with and is when you can assign events to it. regards, Muzak. - Original Message - From: "David Ngo" <[EMAIL PROTECTED]> To: Sent: Friday, April 06, 2007 9:30 PM Subject: RE: [Flashcoders] attaching an event to a movie clip > Personally, I find onEnterFrames bad practice to use unless you absolutely > have to (if your logic is frame-based, etc). I would suggest the nested clip > and/or use MovieClipLoader to handle your image loading. > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS3 replacement for: "XMLNode_Instance.removeNode(); "
What is the "E4X" in AS3 for removing a child in an AS3 XML object? I don't want to use XMLNode_Instance.removeNode() or anything from XMLNode class ever again. ;) --Keith H-- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] poll on editors/IDe
On 4/6/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>Eclipse with Flex SDK >>SEPY Actionscript editor >>Flash 9 IDE Isn't that exactly what he already listed? LOL. Well, he wasn't as specific about Eclipse. :) Eclipse could be with...: Flexbuilder 2, FDT, ASDT, HXDT, or, what I use: EHX. Mark ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] poll on editors/IDe
The Flex SDK for Eclipse. Just started with FDT for Eclipse...it's great! On Apr 6, 2007, at 4:41 PM, Merrill, Jason wrote: Eclipse with Flex SDK SEPY Actionscript editor Flash 9 IDE Isn't that exactly what he already listed? LOL. Starting list from what I have seen - Flash IDE - Eclipse - Sepy Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
Or you can use the MovieClipLoader()... // // DATA // imageData = { dir: "models/", ext: ".jpg", images: [ {title:'myfirst', path:"image1"}, {title:'mysecond', path:"image2"} ], clips: [] }; // // CREATE // var xspace = 100; var yspace = 100; var holder = this.createEmptyMovieClip ( 'holder', this.getNextHighestDepth(); var len = imageData.images.length; for (i = 0; i < len; i++) { var mc = holder.createEmptyMovieClip ( 'mc_'+ i, holder.getNextHighestDepth() ) mc.image = mc.createEmptyMovieClip ( 'image', mc.getNextHighestDepth() ) mc.loader = new MovieClipLoader(); mc.loader.addListener( mc ); mc.onLoadInit = proxyBEFORE ( this, image_onLoadInit, i ); mc.onLoadError = proxyBEFORE ( this, image_onLoadError, i ); mc.loader.loadClip( imageData.dir + imageData.images[i].path + imageData.ext, mc.image ); mc.id = i; mc._x= xspace * -i; mc._y = yspace * i; imageData.clips.push ( mc ); } // // LOADING // function image_onLoadError ( id, image ) { var mc = imageData.clips [ id ]; trace( 'image not loaded for: ' + mc ); } function image_onLoadInit ( id, image ) { var mc = imageData.clips [ id ]; delete mc.loader; delete mc.onLoadInit; mc.onRollOver = function() { var title = imageData.images [ id ].title; var path = imageData.images [ id ].path; trace( 'title: ' + title + ' path: ' + path ) } } // // PROXY // function proxyBEFORE (s:Object, func:Function):Function { // from jgDelegate var a:Array = arguments.slice(2, arguments.length); return function ():Void { func.apply(s, a.concat(arguments));}; } _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Friday, April 06, 2007 12:30 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] attaching an event to a movie clip Personally, I find onEnterFrames bad practice to use unless you absolutely have to (if your logic is frame-based, etc). I would suggest the nested clip and/or use MovieClipLoader to handle your image loading. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john robinson Sent: Friday, April 06, 2007 11:48 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] attaching an event to a movie clip You have 2 choices so far... you can set up a poll (using onEnterFrame) to figure out when the images have finished loading and then attach the events or you can do as David suggested and nest your images inside another clip. I don't really know if either solution is better than the other, but with the code you already have and what David suggested you can make a few changes and probably get by. Some code: var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; i 0) { delete this.onEnterFrame; // your image is now loaded... do whatever you want here. } } John On Apr 6, 2007, at 2:25 PM, Gustavo Duenas wrote: > I did, but it is the same...nothing so far...I guess that one of you > maybe have been in this problem before...so I'd like to know how can I > finish it. > > > Regards > > > Gustavo > On Apr 6, 2007, at 2:04 PM, Rost, Andrew wrote: > >> newMC.rollOver >> >> Should be: >> >> newMC.onRollOver >> >> HTH >> >> -Original Message- >> From: Gustavo Duenas [mailto:[EMAIL PROTECTED] >> Sent: Friday, April 06, 2007 12:43 PM >> To: Flashcoders@chattyfig.figleaf.com >> Subject: [Flashcoders] attaching an event to a movie clip >> >> Hi , Ok it doesn't sound as simple, >> >> I've created a series of empty movieclips which loads pics from an >> array, so far it loads perfectly but I can attach to the newly >> created movie clip any kind of >> events. >> >> I'm using this. >> >> stop(); >> >> var models = new Array(); >> >> models = [ "model1", "model2", "model3", "model4"]; >> >> trace(models.length); >> for (i=0; i> movieName=models[i]; >> var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); >> newMC.loadMovie("models/"+movieName+".jpg"); >> newMC._x=100*-i; >> newMC._y=100*i; >> trace (newMC);// so far works until here, creating the movieclips >> and loading the pics inside then and assigning them a respective >> value for x and y >> >> ///from now on, I got the problem, it appear
RE: [Flashcoders] poll on editors/IDe
>>Eclipse with Flex SDK >>SEPY Actionscript editor >>Flash 9 IDE Isn't that exactly what he already listed? LOL. Starting list from what I have seen - Flash IDE - Eclipse - Sepy Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] poll on editors/IDe
If you're going for both IDEs and straight editors I'd add: Vim Notepad++ On 4/6/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: FlashDevelop Flexbuilder SciTe Flash Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Ron Wheeler >>Sent: Friday, April 06, 2007 3:31 PM >>To: Flashcoders Mailing List >>Subject: [Flashcoders] poll on editors/IDe >> >>I would like to put up a poll on >> http://tech.groups.yahoo.com/group/Script_in_Action/ >> >>to find out what editors and IDEs are being used by >>flashcoder members to code actionScript applications. >> >>Can you tell me what programs should be included in the >>available choices? >> >>Starting list from what I have seen >> >>- Flash IDE >>- Eclipse >>- Sepy >> >>Please add your favourite or suggest ones that you know >>others are using. >> >>Ron >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] poll on editors/IDe
Eclipse with Flex SDK SEPY Actionscript editor Flash 9 IDE Edward J Apostol, consultant, instructor New Toronto Group Certified Adobe Instructor - Flash, Flex, Connect, ColdFusion, Dreamweaver -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: April 6, 2007 3:48 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] poll on editors/IDe FlashDevelop Flexbuilder SciTe Flash Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Ron Wheeler >>Sent: Friday, April 06, 2007 3:31 PM >>To: Flashcoders Mailing List >>Subject: [Flashcoders] poll on editors/IDe >> >>I would like to put up a poll on >> http://tech.groups.yahoo.com/group/Script_in_Action/ >> >>to find out what editors and IDEs are being used by >>flashcoder members to code actionScript applications. >> >>Can you tell me what programs should be included in the >>available choices? >> >>Starting list from what I have seen >> >>- Flash IDE >>- Eclipse >>- Sepy >> >>Please add your favourite or suggest ones that you know >>others are using. >> >>Ron >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 05/04/2007 3:33 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 05/04/2007 3:33 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attaching an event to a movie clip
What do you have against onEnterFrame? I think when you're loading into mc's it makes sense to use it simply because with setInterval, there's a chance that the image will be fully loaded (bl==bt), but it fires one frame before the mc's onLoad has fired, meaning your onRollOver or whatever still won't stick. Maybe I'm wrong and just being paranoid? john On Apr 6, 2007, at 3:30 PM, David Ngo wrote: Personally, I find onEnterFrames bad practice to use unless you absolutely have to (if your logic is frame-based, etc). I would suggest the nested clip and/or use MovieClipLoader to handle your image loading. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webservices question
what are you expecting to get - is it an object of some kind? it's an array... thanks for the suggestion i'm going to try this now... On 4/6/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: use code instead: import mx.services.*; import mx.util.Delegate; myWS = new WebService("myWebservice.asmx?WSDL"); myWS.onLoad = Delegate.create(this, getResult); function getResult() { wsResult = myWS.getMyObject() wsResult.onResult = Delegate.create(this, showResult); } function showResult(result) { trace(result); trace(result.myProperty); //do stuff, show stuff etc. } what are you expecting to get - is it an object of some kind? Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of [p e r c e p t i c o n] >>Sent: Friday, April 06, 2007 3:00 PM >>To: flashcoders >>Subject: [Flashcoders] webservices question >> >>Hi Experts, >>I've connected to a web service and can see the result fields >>in the component inspector, but can't seem to get any values >>into the text area the results are bound to. >> >>all i get is undefined... >> >>the storage type is complex and the data type is array. is >>this correct? >> >>can anyone tell me how to access the elements in the results array? >> >>thanks >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] poll on editors/IDe
FlashDevelop Flexbuilder SciTe Flash Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Ron Wheeler >>Sent: Friday, April 06, 2007 3:31 PM >>To: Flashcoders Mailing List >>Subject: [Flashcoders] poll on editors/IDe >> >>I would like to put up a poll on >> http://tech.groups.yahoo.com/group/Script_in_Action/ >> >>to find out what editors and IDEs are being used by >>flashcoder members to code actionScript applications. >> >>Can you tell me what programs should be included in the >>available choices? >> >>Starting list from what I have seen >> >>- Flash IDE >>- Eclipse >>- Sepy >> >>Please add your favourite or suggest ones that you know >>others are using. >> >>Ron >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Poll on operating system
So we need to create a yahoo account first if we don't have one, then join the group in order to answer the poll? no thanks. :) Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Ron Wheeler >>Sent: Friday, April 06, 2007 3:29 PM >>To: Flashcoders Mailing List >>Subject: [Flashcoders] Poll on operating system >> >>I have just created a poll on >>http://tech.groups.yahoo.com/group/Script_in_Action/ to find >>out what operating system flashcoder members use to develop >>their ActionScript applications. >> >>Please go and vote for your choice. >> >> >>Ron >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] webservices question
use code instead: import mx.services.*; import mx.util.Delegate; myWS = new WebService("myWebservice.asmx?WSDL"); myWS.onLoad = Delegate.create(this, getResult); function getResult() { wsResult = myWS.getMyObject() wsResult.onResult = Delegate.create(this, showResult); } function showResult(result) { trace(result); trace(result.myProperty); //do stuff, show stuff etc. } what are you expecting to get - is it an object of some kind? Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of [p e r c e p t i c o n] >>Sent: Friday, April 06, 2007 3:00 PM >>To: flashcoders >>Subject: [Flashcoders] webservices question >> >>Hi Experts, >>I've connected to a web service and can see the result fields >>in the component inspector, but can't seem to get any values >>into the text area the results are bound to. >> >>all i get is undefined... >> >>the storage type is complex and the data type is array. is >>this correct? >> >>can anyone tell me how to access the elements in the results array? >> >>thanks >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] poll on editors/IDe
I would like to put up a poll on http://tech.groups.yahoo.com/group/Script_in_Action/ to find out what editors and IDEs are being used by flashcoder members to code actionScript applications. Can you tell me what programs should be included in the available choices? Starting list from what I have seen - Flash IDE - Eclipse - Sepy Please add your favourite or suggest ones that you know others are using. Ron ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
Personally, I find onEnterFrames bad practice to use unless you absolutely have to (if your logic is frame-based, etc). I would suggest the nested clip and/or use MovieClipLoader to handle your image loading. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john robinson Sent: Friday, April 06, 2007 11:48 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] attaching an event to a movie clip You have 2 choices so far... you can set up a poll (using onEnterFrame) to figure out when the images have finished loading and then attach the events or you can do as David suggested and nest your images inside another clip. I don't really know if either solution is better than the other, but with the code you already have and what David suggested you can make a few changes and probably get by. Some code: var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; i 0) { delete this.onEnterFrame; // your image is now loaded... do whatever you want here. } } John On Apr 6, 2007, at 2:25 PM, Gustavo Duenas wrote: > I did, but it is the same...nothing so far...I guess that one of you > maybe have been in this problem before...so I'd like to know how can I > finish it. > > > Regards > > > Gustavo > On Apr 6, 2007, at 2:04 PM, Rost, Andrew wrote: > >> newMC.rollOver >> >> Should be: >> >> newMC.onRollOver >> >> HTH >> >> -Original Message- >> From: Gustavo Duenas [mailto:[EMAIL PROTECTED] >> Sent: Friday, April 06, 2007 12:43 PM >> To: Flashcoders@chattyfig.figleaf.com >> Subject: [Flashcoders] attaching an event to a movie clip >> >> Hi , Ok it doesn't sound as simple, >> >> I've created a series of empty movieclips which loads pics from an >> array, so far it loads perfectly but I can attach to the newly >> created movie clip any kind of >> events. >> >> I'm using this. >> >> stop(); >> >> var models = new Array(); >> >> models = [ "model1", "model2", "model3", "model4"]; >> >> trace(models.length); >> for (i=0; i> movieName=models[i]; >> var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); >> newMC.loadMovie("models/"+movieName+".jpg"); >> newMC._x=100*-i; >> newMC._y=100*i; >> trace (newMC);// so far works until here, creating the movieclips >> and loading the pics inside then and assigning them a respective >> value for x and y >> >> ///from now on, I got the problem, it appear that can't accept any >> event in the movie clips >> newMC.rollOver= function(){ >> trace("hello"); >> } >> >> } >> >> I hope you got it...because I'm still dont get it. >> >> Regards >> >> >> Gustavo Duenas >> >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com >> > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Poll on operating system
I have just created a poll on http://tech.groups.yahoo.com/group/Script_in_Action/ to find out what operating system flashcoder members use to develop their ActionScript applications. Please go and vote for your choice. Ron ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] webservices question
Hi Experts, I've connected to a web service and can see the result fields in the component inspector, but can't seem to get any values into the text area the results are bound to. all i get is undefined... the storage type is complex and the data type is array. is this correct? can anyone tell me how to access the elements in the results array? thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
Here's a quick and dirty example: this.createEmptyMovieClip("img", 10); img.loadMovie("some.jpg"); this.onEnterFrame = function() { if (img._width > 2) { this.assignActions(); delete this.onEnterFrame; } }; function assignActions() { img.onRollOver = function() { // do something }; img.onRollOut = function() { // do something }; img.onRelease = function() { // DO SOMETHING! }; } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attaching an event to a movie clip
You have 2 choices so far... you can set up a poll (using onEnterFrame) to figure out when the images have finished loading and then attach the events or you can do as David suggested and nest your images inside another clip. I don't really know if either solution is better than the other, but with the code you already have and what David suggested you can make a few changes and probably get by. Some code: var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; i trace (newMC);// so far works until here, creating the movieclips and loading the pics inside then and assigning them a respective value for x and y ///from now on, I got the problem, it appear that can't accept any event in the movie clips newMC.onRollOver= function(){ trace("hello"); } } Hope it helps. Keep in mind that this doesn't let you adjust the size of the image. For that you'll have to go the other route and wait until the image has fully loaded. You could do that using the code above, but attach an onEnterFrame to your "newMC"... like so: newMC.onEnterFrame = function() { var bl = img_mc.getBytesLoaded(); var bt = img_mc.getBytesTotal(); if(bl == bt && bt > 0) { delete this.onEnterFrame; // your image is now loaded... do whatever you want here. } } John On Apr 6, 2007, at 2:25 PM, Gustavo Duenas wrote: I did, but it is the same...nothing so far...I guess that one of you maybe have been in this problem before...so I'd like to know how can I finish it. Regards Gustavo On Apr 6, 2007, at 2:04 PM, Rost, Andrew wrote: newMC.rollOver Should be: newMC.onRollOver HTH -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 12:43 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] attaching an event to a movie clip Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attaching an event to a movie clip
You could try creating a container movieclip inside your clip and load the image inside that clip. for (i=0; i wrote: > Hi , Ok it doesn't sound as simple, > > I've created a series of empty movieclips which loads pics from an > array, so far it loads perfectly but I can attach to the newly > created movie clip any kind of > events. > > I'm using this. > > stop(); > > var models = new Array(); > > models = [ "model1", "model2", "model3", "model4"]; > > trace(models.length); > for (i=0; i movieName=models[i]; > var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); > newMC.loadMovie("models/"+movieName+".jpg"); > newMC._x=100*-i; > newMC._y=100*i; > trace (newMC);// so far works until here, creating the movieclips > and loading the pics inside then and assigning them a respective > value for x and y > > ///from now on, I got the problem, it appear that can't accept any > event in the movie clips > newMC.rollOver= function(){ > trace("hello"); > } > > } > > I hope you got it...because I'm still dont get it. > > Regards > > > Gustavo Duenas > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
I would go with David' suggestion of a container clip to assign the behavior to, and a separate clip to load the image into so you don't worry about the images being loaded, or, a function that checks to see all the clips are loaded, and if so, then calls a separate function that has a loop to assign the onRollOver actions. Both approaches would have their advantages and disadvantages. And also mind Andrew's post where he indicated you used RollOver instead of onRollOver. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Gustavo Duenas >>Sent: Friday, April 06, 2007 2:13 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: Re: [Flashcoders] attaching an event to a movie clip >> >>k, once the image has been loaded, I'll try to attach the >>behaviors outside or inside of the loop? >> >>Regards >> >>Gustavo >>should I write something like newMC.complete? >> >>Regards >> >>Gustavo Duenas >> >> >>On Apr 6, 2007, at 2:01 PM, Merrill, Jason wrote: >> >>> You have to wait for the clips to fully load before assigning any >>> behaviors - otherwise the behaviors, like onRollover get >>overwritten >>> when the image finally loads. >>> >>> Jason Merrill >>> Bank of America >>> GT&O Learning & Leadership Development eTools & Multimedia Team >>> >>> >>> >>> > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Gustavo Duenas > Sent: Friday, April 06, 2007 1:43 PM > To: Flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] attaching an event to a movie clip > > Hi , Ok it doesn't sound as simple, > > I've created a series of empty movieclips which loads pics > from an array, so far it loads perfectly but I can attach to > the newly created movie clip any kind of events. > > I'm using this. > > stop(); > > var models = new Array(); > > models = [ "model1", "model2", "model3", "model4"]; > > trace(models.length); > for (i=0; i movieName=models[i]; > var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); > newMC.loadMovie("models/"+movieName+".jpg"); > newMC._x=100*-i; > newMC._y=100*i; > trace (newMC);// so far works until here, creating the > movieclips and loading the pics inside then and assigning > them a respective value for x and y > > ///from now on, I got the problem, it appear that can't > accept any event in the movie clips > newMC.rollOver= function(){ > trace("hello"); > } > > } > > I hope you got it...because I'm still dont get it. > > Regards > > > Gustavo Duenas > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > >>> ___ >>> Flashcoders@chattyfig.figleaf.com >>> To change your subscription options or search the archive: >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> Brought to you by Fig Leaf Software >>> Premier Authorized Adobe Consulting and Training >>> http://www.figleaf.com >>> http://training.figleaf.com >>> >> >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attaching an event to a movie clip
I did, but it is the same...nothing so far...I guess that one of you maybe have been in this problem before...so I'd like to know how can I finish it. Regards Gustavo On Apr 6, 2007, at 2:04 PM, Rost, Andrew wrote: newMC.rollOver Should be: newMC.onRollOver HTH -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 12:43 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] attaching an event to a movie clip Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
What you can also do is create a nested MovieClip and load your image on that. That way, you set your handlers on the parent clip and don't have to worry about when it loads. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, April 06, 2007 11:01 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] attaching an event to a movie clip You have to wait for the clips to fully load before assigning any behaviors - otherwise the behaviors, like onRollover get overwritten when the image finally loads. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Gustavo Duenas >>Sent: Friday, April 06, 2007 1:43 PM >>To: Flashcoders@chattyfig.figleaf.com >>Subject: [Flashcoders] attaching an event to a movie clip >> >>Hi , Ok it doesn't sound as simple, >> >>I've created a series of empty movieclips which loads pics >>from an array, so far it loads perfectly but I can attach to >>the newly created movie clip any kind of events. >> >>I'm using this. >> >>stop(); >> >>var models = new Array(); >> >>models = [ "model1", "model2", "model3", "model4"]; >> >>trace(models.length); >>for (i=0; i> movieName=models[i]; >> var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); >> newMC.loadMovie("models/"+movieName+".jpg"); >> newMC._x=100*-i; >> newMC._y=100*i; >> trace (newMC);// so far works until here, creating the >>movieclips and loading the pics inside then and assigning >>them a respective value for x and y >> >>///from now on, I got the problem, it appear that can't >>accept any event in the movie clips >> newMC.rollOver= function(){ >> trace("hello"); >> } >> >>} >> >>I hope you got it...because I'm still dont get it. >> >>Regards >> >> >>Gustavo Duenas >> >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attaching an event to a movie clip
k, once the image has been loaded, I'll try to attach the behaviors outside or inside of the loop? Regards Gustavo should I write something like newMC.complete? Regards Gustavo Duenas On Apr 6, 2007, at 2:01 PM, Merrill, Jason wrote: You have to wait for the clips to fully load before assigning any behaviors - otherwise the behaviors, like onRollover get overwritten when the image finally loads. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Friday, April 06, 2007 1:43 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] attaching an event to a movie clip Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
newMC.rollOver Should be: newMC.onRollOver HTH -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 12:43 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] attaching an event to a movie clip Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Window component scrolling...am I insane?
Another thing I forgot to mention was I use the Window component to display forms in my RIA app - it's a nice container for the form, and since I make it modal, the user cannot interact with any other buttons on the screen until they fill out or close the form. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Merrill, Jason >>Sent: Friday, April 06, 2007 1:56 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: RE: [Flashcoders] Window component scrolling...am I insane? >> >>I'm with you on the scrollpane, I use it, but it's quite >>buggy and cumbersone. But the Window component is quite nice >>when you want to create modal functionality, use the popup >>manager to display a message, etc. Saves a lot of time at least. >> >>Jason Merrill >>Bank of America >>GT&O Learning & Leadership Development >>eTools & Multimedia Team >> >> >> >> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >>Behalf Of Steven Sacks | BLITZ Sent: Friday, April 06, 2007 1:34 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Window component scrolling...am I insane? I've never used the Window component. I don't even know >>what it does. I don't use MM components unless I'm mocking something up really quick. The combo box, check box and radio buttons are the only ones I ever use. IMO, the rest are garbage, especially the scrollpane. Everything else I'm better off writing my own or reusing my own or using a 3rd party one like mCom or Ghostwire. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
You have to wait for the clips to fully load before assigning any behaviors - otherwise the behaviors, like onRollover get overwritten when the image finally loads. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Gustavo Duenas >>Sent: Friday, April 06, 2007 1:43 PM >>To: Flashcoders@chattyfig.figleaf.com >>Subject: [Flashcoders] attaching an event to a movie clip >> >>Hi , Ok it doesn't sound as simple, >> >>I've created a series of empty movieclips which loads pics >>from an array, so far it loads perfectly but I can attach to >>the newly created movie clip any kind of events. >> >>I'm using this. >> >>stop(); >> >>var models = new Array(); >> >>models = [ "model1", "model2", "model3", "model4"]; >> >>trace(models.length); >>for (i=0; i> movieName=models[i]; >> var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); >> newMC.loadMovie("models/"+movieName+".jpg"); >> newMC._x=100*-i; >> newMC._y=100*i; >> trace (newMC);// so far works until here, creating the >>movieclips and loading the pics inside then and assigning >>them a respective value for x and y >> >>///from now on, I got the problem, it appear that can't >>accept any event in the movie clips >> newMC.rollOver= function(){ >> trace("hello"); >> } >> >>} >> >>I hope you got it...because I'm still dont get it. >> >>Regards >> >> >>Gustavo Duenas >> >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Window component scrolling...am I insane?
I'm with you on the scrollpane, I use it, but it's quite buggy and cumbersone. But the Window component is quite nice when you want to create modal functionality, use the popup manager to display a message, etc. Saves a lot of time at least. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Steven Sacks | BLITZ >>Sent: Friday, April 06, 2007 1:34 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: RE: [Flashcoders] Window component scrolling...am I insane? >> >>I've never used the Window component. I don't even know what it does. >>I don't use MM components unless I'm mocking something up >>really quick. >>The combo box, check box and radio buttons are the only ones >>I ever use. >>IMO, the rest are garbage, especially the scrollpane. >>Everything else I'm better off writing my own or reusing my >>own or using a 3rd party one like mCom or Ghostwire. >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] attaching an event to a movie clip
Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; i trace (newMC);// so far works until here, creating the movieclips and loading the pics inside then and assigning them a respective value for x and y ///from now on, I got the problem, it appear that can't accept any event in the movie clips newMC.rollOver= function(){ trace("hello"); } } I hope you got it...because I'm still dont get it. Regards Gustavo Duenas ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Window component scrolling...am I insane?
I've never used the Window component. I don't even know what it does. I don't use MM components unless I'm mocking something up really quick. The combo box, check box and radio buttons are the only ones I ever use. IMO, the rest are garbage, especially the scrollpane. Everything else I'm better off writing my own or reusing my own or using a 3rd party one like mCom or Ghostwire. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Anti-aliased text in components
...just use global styles to set the font on the components to an embedded font in your swf. The components aren't anti-aliased because they use device fonts. -josh On Apr 5, 2007, at 9:36 AM, Randy Tinfow wrote: I'm trying to make the text inside all macromedia components to be Anti-aliased. This has proven to be quite difficult. I would rather have a class that takes care of all of it, so here's what I have so far: class net.imageplant.AntiAliaser { private static var _arrChecked:Array; public static function antiAlias(mc:MovieClip, bContinue:Boolean):Void { if (!bContinue) { _arrChecked = new Array(); } for (var i:String in mc) { if (mc[i] instanceof TextField && !checkChecked(mc[i])) { _arrChecked.push(mc [i]); mc[i].antiAliasType = "advanced"; } else if (mc[i] instanceof Object && !checkChecked(mc[i])) { _arrChecked.push(mc [i]); antiAlias(mc[i], true); } } } private static function checkChecked(mc:MovieClip):Boolean { var nMcs:Number = _arrChecked.length; var bChecked:Boolean = false; for (var i:Number = 0; i < nMcs; i++) { if (_arrChecked[i] == mc) { bChecked = true; } } return bChecked; } } I have only tested it on a List component so far, and it does not work. I can't even figure out where the actual TextFields are in a List component. How could MM overlook this? The components are useless when you can't match the text to the rest of your app...any ideas/help? TIA, Randy Tinfow and Mike Randolph ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] re: createTextField
Try adding: mytext.embedFonts = true; Also, put an empty dynamic textfield (offstage), select the font "mysilkscreen" and embed the characters you need. Should do it. On 4/5/07 3:52 PM, "edward" <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > well, I have simplified everything. My only two little issues now > are: > > 1. my mouseover does not work to change the text's color. > > 2. i imported silkscreen bitmap font size 8 linkage for first > frame, and linked for actionscript. i named it mysilkscreen. > however, when i execute the movie, no errors but the font is just a > generic serif font now, any ideas? its tough when flash gives me no > errors. > > > here is the code: > > > _root.myRed = 0xFF; > _root.myLightGray = 0x99; > _root.myDarkGray = 0x353535; > > _root.createTextField("mytext",1,100,100,300,100); > mytext.multiline = true; > mytext.wordWrap = true; > mytext.border = false; > > menuFonts_Fmt = new TextFormat(); > with(menuFonts_Fmt) { > color = myLightGray; > bullet = false; > underline = false; > font="mysilkscreen"; > size = 8; > } > > mytext.text = "Writing"; > mytext.setTextFormat(menuFonts_Fmt); > > // > > _root.mytext.onRollOver = function() { > _root.mytext.textColor = myDarkGray; > } > -BEGIN PGP SIGNATURE- > Note: This signature can be verified at https://www.hushtools.com/verify > Version: Hush 2.5 > > wpwEAQECAAYFAkYVUz8ACgkQnK42HzOJXBc6SgP/WvdRkiCt743MiFk0LaHo5WZtYaaS > FUU7Kw6PDtMghjL2gHkfN1wjU4tLYKS3af8G0fuzj+IwoEzjWs7RN0T9yT52f7+aDaWZ > eztH6YtosIKbijf0yNUT1SP10OcLoHfw2CbLcTq0ZAo7kLI8Lbltve6M0pAGDZ4fRW5N > Oole38w= > =w8ob > -END PGP SIGNATURE- > > -- > Click for free info on online doctorate degrees and make $250k/ year > http://tagline.hushmail.com/fc/CAaCXv1ZYZ9Qs1mam0nqgyWB4wpiriIq/ > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] games dev books
I have added the link to Macromedia Flash MX Game Design Demystified' at : http://tech.groups.yahoo.com/group/Script_in_Action/join Could use a bit of a description. Ron geng wang wrote: I used 'Macromedia Flash MX Game Design Demystified' by Jobe Markar. I love it! I think it has an updated version for Flash 8. On 4/5/07, nik crosina <[EMAIL PROTECTED]> wrote: Hi Ron, Could you post a link to that forum as I don't know it. Thanks! Nik On 4/5/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > I have added it to the list of books on Flash Game development at the > Yahoo Script_in_Action forum. > If there are any other suggestions please add them there. > > Anggie Bratadinata wrote: > > 'Flash 8 Professional Game Development' by Glenn Rhodes, Charles River > > Media. > > > > -- > > Anggie Bratadinata > > www.masputih.com > > I N D O N E S I A > > > > nik crosina wrote: > >> Hi, > >> > >> All of a sudden I get a lot of games requests from clients, and since > >> I haven't really done much games development I am looking for good > >> resources. > >> > >> I know there's a lot on-line, but are also good books you could > >> recommend (possibly with either on-line or CD resources)? > >> > >> Thanks guys, > >> > >> Nik Crosina > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Captivate to flash
Hi, When I export captivate 2 file to flash 8 the fade in effects and the audio I had integrated in the file gets lost. The Audio is in the library but the fade in effect is lost. Is there any setting by which I can over come this. I had published it to swf in that it shows all the effects. But once I export it to flash 8 the effects are all lost. Please suggest why this happens. Regards, Yuvaraj Mohite Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] re: createTextField
TextFields don't have onRollOver events, but MovieClips do. So you'll need to first create a MovieClip (like in your first question) and then create the textField in it. Heres some example code: var myMovieClip:MovieClip = this.createEmptyMovieClip("myMovieClip_mc", this.getNextHighestDepth()); trace("myMovieClip: " + myMovieClip); var myTextField:TextField = myMovieClip.createTextField("myTextField_txt", myMovieClip.getNextHighestDepth(), 100, 100, 300, 100); trace("myTextField: " +myTextField); myTextField.text ="test"; myMovieClip.onRollOver = function(){ myTextField.text = "NEW TEXT"; } In the code above 'this' would be your _root layer. Coding to _root is generally considered a bad practice. Hope that helps! -Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of edward Sent: Thursday, April 05, 2007 2:53 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] re: createTextField -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 well, I have simplified everything. My only two little issues now are: 1. my mouseover does not work to change the text's color. 2. i imported silkscreen bitmap font size 8 linkage for first frame, and linked for actionscript. i named it mysilkscreen. however, when i execute the movie, no errors but the font is just a generic serif font now, any ideas? its tough when flash gives me no errors. here is the code: _root.myRed = 0xFF; _root.myLightGray = 0x99; _root.myDarkGray = 0x353535; _root.createTextField("mytext",1,100,100,300,100); mytext.multiline = true; mytext.wordWrap = true; mytext.border = false; menuFonts_Fmt = new TextFormat(); with(menuFonts_Fmt) { color = myLightGray; bullet = false; underline = false; font="mysilkscreen"; size = 8; } mytext.text = "Writing"; mytext.setTextFormat(menuFonts_Fmt); // _root.mytext.onRollOver = function() { _root.mytext.textColor = myDarkGray; } -BEGIN PGP SIGNATURE- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.5 wpwEAQECAAYFAkYVUz8ACgkQnK42HzOJXBc6SgP/WvdRkiCt743MiFk0LaHo5WZtYaaS FUU7Kw6PDtMghjL2gHkfN1wjU4tLYKS3af8G0fuzj+IwoEzjWs7RN0T9yT52f7+aDaWZ eztH6YtosIKbijf0yNUT1SP10OcLoHfw2CbLcTq0ZAo7kLI8Lbltve6M0pAGDZ4fRW5N Oole38w= =w8ob -END PGP SIGNATURE- -- Click for free info on online doctorate degrees and make $250k/ year http://tagline.hushmail.com/fc/CAaCXv1ZYZ9Qs1mam0nqgyWB4wpiriIq/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and its attachments are intended only for the use of the addressee(s) and may contain privileged, confidential or proprietary information. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, displaying, copying, or use of this information is strictly prohibited. If you have received this communication in error, please inform the sender immediately and delete and destroy any record of this message. Thank you. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Window component scrolling...am I insane?
I've never heard of Window having scroll features. I've always placed a list, datagrid or scrollpane on it. I know that doesn't help you much though as it sounds. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of John Mark Hawley >>Sent: Thursday, April 05, 2007 5:58 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: [Flashcoders] Window component scrolling...am I insane? >> >>Have I gone completely mad, or does the v2 Window component >>really not support scrolling the contents? It extends >>ScrollView, and the guts of it make several references to the >>scrollbars, yet there seem to be no actual scrollbars present. >> >>I've wasted a good deal of time today trying to throw a >>ScrollPane in there and getting it to work properly, but the >>automatic resizing ScrollPane does is causing me angina. >> >>So...am I missing something? Does anyone have a free/oss >>scrolling Window component floating around? >> >>-- >>John Mark Hawley >>The Nilbog Group >>773.968.4980 (cell) >> >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com