Re: [Flashcoders] AS3 replacement for: XMLNode_Instance.removeNode();
Nice, simpler than I thought. Thanks! --Keith H-- delete? var xml:XML = body pHello/p pWorld/p /body; trace(xml.toXMLString()); delete xml.p[0]; trace(xml.toXMLString()); regards, Muzak - Original Message - 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] Window component scrolling...am I insane?
Do you happen to have a trick you can share for sizing a window properly when the scrollPane's scroll policies are set to auto? I can only seem to get things working properly if the vScrollPolicy is auto and the hScrollPolicy is off. (I want the window so it should just fit around the loaded content of the scrollPane if the width and height are below a given maximum size, only scrolling if necessary.) -Mark Hawley Merrill, Jason wrote: 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 GTO 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 ___ 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:SOLVED
Thanks to all, this is the final cide, that really works for me. stop(); var models = new Array(); models = [ model1, model2, model3, model4]; trace(models.length); for (i=0; imodels.length; i++){ movieName=models[i]; var newMC= this.container1.createEmptyMovieClip (movieName,this.container1.getNextHighestDepth()); var img_mc = newMC.createEmptyMovieClip(img_mc+i, 1); // load your image img_mc.loadMovie(models/+movieName+.jpg); newMC._x=100*-i; newMC._y=100*i; trace (img_mc); newMC.onEnterFrame = function() { var bl = img_mc.getBytesLoaded(); var bt = img_mc.getBytesTotal(); if(bl == bt bt 0) { delete this.onEnterFrame; this.onPress= function(){ trace(bene); this.startDrag(true); } this.onRollOver=function(){ this.stopDrag(); } } } } Regards Gustavo Duenas On Apr 6, 2007, at 6:14 PM, Gustavo Duenas wrote: 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: flashcoders@chattyfig.figleaf.com 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 ___ 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
It is a bit of a price to pay but I think that if everyone contributes to the links to resources it will be useful. The poll may help people understand which IDEs have a following. For the experienced people, I hope that, over time, we will develop a good list of useful components so that people will have a place to go to quickly find things that they need. I hope that it will save some time when people come looking for books and tutorials. You only have to get an account once. I hope that you will get involved in adding content. Ron Merrill, Jason wrote: 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 GTO 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 ___ 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();
Hi, try: delete myXml.myNode; or delete [EMAIL PROTECTED]; regards, Chrisophe [EMAIL PROTECTED] schreef: 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 ___ 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] compiler error from System class
Someone on my team keeps getting compiler errors like this. **Error** C:\Documents and Settings\Smyer\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\System\security.as: Line 7: The name of this class, 'System.security', conflicts with the name of another class that was loaded, 'System'. The error only occurs when the ASO cache is deleted. On subsequent compilation without deleting the ASO cache the file compiles fine. Anyone have any insight into why this would be happening? ___ 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] The great CS3 Swindle
Yes it is totally f*ckd up - production bundle upgrade: us: $1199 / €897 eu/spain: $2630 / €1967 So guess which side of the atlantic i am buying my upgrade ;-) Cheers, B) Søren On Mar 28, 2007, at 4:27 PM, Joe Wheeler wrote: Has anyone checked out the international prices on CS3? I can hardly believe how badly the UK is getting fleeced. I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design Premium. In the US that's $599.00 dollars, but in the UK pounds it works out to £703.82. Take the exchange rate into account and UK customers are paying... 1,384.51 USD!!! Sales tax in the UK is 17.5% but the Adobe price hike is a whopping 231% - W T F? ___ 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] OT: Happy Easter
Dear friends, my deep and truthful and sincere wishes of a Happy Easter, with Peace, Health and Renovation in your lifes. Ricardo ___ 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] Constructors in AS2 SWFs not being called when loaded by AS3
I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a property on that class... Something like this: foo = new Thingy(); trace(foo.test); All the class does is initialize that property; something like this: class Thingy { public var test:String; public function Thingy() { test = hello; } } This is pretty basic stuff -- and it works as expected. When run, it simply traces hello. I then create an AS3 / Flash 9 app that loads the aforementioned SWF... Something like this: As2thing = new Loader(); addChild(As2thing); As2thing.load(new URLRequest(as2thing.swf)); Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's constructor doesn't get called -- it traces undefined instead. Any idea why? - Kipp ___ 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] Constructors in AS2 SWFs not being called when loaded by AS3
Hello :) In the FP9 you can find 2 virtual machines, one for the AS3 and one for the AS1/2 .. you can use AS1/2 or AS3 code but not the AS3 and the AS1/2 in the same time :) If you want communicate between your SWFs running in AVM1 and AVM2.. you must use the LocalConnection class :) a french article about this : http://www.envrac.org/index.php/2006/07/07/98-as3-avm1-et-avm2 You can too read the article about the ApplicationDomain : http://livedocs.adobe.com/flex/2/langref/flash/system/ApplicationDomain.html EKA+ :) 2007/4/7, Michael Mudge [EMAIL PROTECTED]: I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a property on that class... Something like this: foo = new Thingy(); trace(foo.test); All the class does is initialize that property; something like this: class Thingy { public var test:String; public function Thingy() { test = hello; } } This is pretty basic stuff -- and it works as expected. When run, it simply traces hello. I then create an AS3 / Flash 9 app that loads the aforementioned SWF... Something like this: As2thing = new Loader(); addChild(As2thing); As2thing.load(new URLRequest(as2thing.swf)); Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's constructor doesn't get called -- it traces undefined instead. Any idea why? - Kipp ___ 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] Constructors in AS2 SWFs not being called whenloaded by AS3
Well yes, in the larger scale of things I am using a LocalConnection... But in this specific example, I am not trying to communicate at all -- I'm just trying to load and run the AS2 app. Why does it run correctly when standalone, but not within the AS3 app? I read about the ApplicationDomain, but it looks like it's AS3-specifc. I'm not trying to provide any AS3 classes or anything to the AS2 app -- I just want it to run, as-is. - Kipp In the FP9 you can find 2 virtual machines, one for the AS3 and one for the AS1/2 .. you can use AS1/2 or AS3 code but not the AS3 and the AS1/2 in the same time :) If you want communicate between your SWFs running in AVM1 and AVM2.. you must use the LocalConnection class :) 2007/4/7, Michael Mudge [EMAIL PROTECTED]: I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a property on that class... Something like this: foo = new Thingy(); trace(foo.test); All the class does is initialize that property; something like this: class Thingy { public var test:String; public function Thingy() { test = hello; } } This is pretty basic stuff -- and it works as expected. When run, it simply traces hello. I then create an AS3 / Flash 9 app that loads the aforementioned SWF... Something like this: As2thing = new Loader(); addChild(As2thing); As2thing.load(new URLRequest(as2thing.swf)); Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's constructor doesn't get called -- it traces undefined instead. Any idea why? - Kipp ___ 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] OT: Happy Easter
Happy Easter to you and your family Ricardo. - eric On 4/6/07, Ricardo M. Portilho [EMAIL PROTECTED] wrote: Dear friends, my deep and truthful and sincere wishes of a Happy Easter, with Peace, Health and Renovation in your lifes. Ricardo ___ 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 -- eric e. dolecki senior interactive engineer http://www.ericd.net ___ 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] Constructors in AS2 SWFs not being calledwhenloaded by AS3
http://livedocs.adobe.com/flex/201/langref/flash/display/AVM1Movie.html regards, Muzak - Original Message - From: Michael Mudge [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, April 07, 2007 4:46 PM Subject: RE: [Flashcoders] Constructors in AS2 SWFs not being calledwhenloaded by AS3 Well yes, in the larger scale of things I am using a LocalConnection... But in this specific example, I am not trying to communicate at all -- I'm just trying to load and run the AS2 app. Why does it run correctly when standalone, but not within the AS3 app? I read about the ApplicationDomain, but it looks like it's AS3-specifc. I'm not trying to provide any AS3 classes or anything to the AS2 app -- I just want it to run, as-is. - Kipp ___ 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] Constructors in AS2 SWFs not being called when loaded by AS3
Is there any reason why you aren't porting over the Thingy class from AS2 to AS3? It might be easier to rewrite the class using AS3. Nick On 4/6/07, Michael Mudge [EMAIL PROTECTED] wrote: I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a property on that class... Something like this: foo = new Thingy(); trace(foo.test); All the class does is initialize that property; something like this: class Thingy { public var test:String; public function Thingy() { test = hello; } } This is pretty basic stuff -- and it works as expected. When run, it simply traces hello. I then create an AS3 / Flash 9 app that loads the aforementioned SWF... Something like this: As2thing = new Loader(); addChild(As2thing); As2thing.load(new URLRequest(as2thing.swf)); Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's constructor doesn't get called -- it traces undefined instead. Any idea why? - Kipp ___ 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
On Apr 6, 2007, at 10:06 AM, leolea wrote: 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. I always thought adding a textfield to the stage was absurd so I've created a movieclip with a textfield and then added a linkage id to that. The textfield needn't be wide or tall. then instead of createTextField just do attachMovie: var tb1:MovieClip = this.attachMovie('mytextbox_mc', tb1, this.getNextHighestDepth()); tb1.text_tf._width = 200; tb1.text_tf.multiline = true; tb1.text_tf.wordWrap = true; tb1.text_tf.autoSize = true; tb1.text_tf.text = 'Maecenas pellentesque cursus est. ...'; tb1._x = 300; tb1._y = 100; I never had to apply TextFormat but I suspect it shouldn't be a problem. ___ 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] Accordion Component text colour
Hi, I have sussed out how to skin the background for the header of the Accordion component, but is there a way of changing the colour of the header text for different states. I want the colour to change on rollover and when active, etc. Thanks Glen ___ 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] addchild()
Hello Dear Flashcoders, I am trying to create a particle system in AS3 in flex builder 2. so my structure is like this: I do have a main class of the program, I do have Circle class and I do have CircleManager class which handles all initialization and declarations about circle objects. What I am having difficulty is the rendering process. Before adding this CircleManager class, the way I created Circle class was to extend Shape class and use it according to my needs and then in the main class I could able to add it like; // main class var c:Circle = new Circle(); c.draw(); addchild(c); but since I added my CircleManager class and even I did the changes I was supposed to do, I think I am still missing something since I don't see anything on the screen. What I did was I create a CircleManager class and move all declarations of circle to here. for my main I changed it like below: // main class var c:CircleManager = new CircleManager(); c.draw(); addchild(c); This first gave me error and it made sense. I forgot to extend my CircleManager class with sprite or shape in order to be able to use it with addChild. So I went ahead and added extend Shape to my CircleManager class. It corrected the error but when I ran this I don't see anything on the screen. When I debug the code I can trace the x,y values for Circles. So my questions: Should I still be adding all the circle objects with addchild() method in order to render them on the screen? Isn't there a way to just add my CircleManager and let it do the job? Should I make Circle subclass of CircleManager in order to do it? I am looking forward to your advices. best, ilteris ___ 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] Constructors in AS2 SWFs not being called whenloaded by AS3
Is there any reason why you aren't porting over the Thingy class from AS2 to AS3? It might be easier to rewrite the class using AS3. The system I'm making is for featuring other artist's work... Some may not have Flash 9, and really don't want to require them to use a program that isn't even out yet... Also, there are some older AS2 apps that will be adapted to this system. The reason the base is in AS3 is because I want to be able to at least support AS3, since I assume it will eventually dominate, and AS3's got some other functionality that I would like to incorporate. That link to AVM1Movie was really interesting -- It definitely has some very relevant stuff, but I still don't see why AS2 doesn't call the constructor. From what I can tell, the instance is created and all other calls work, but the constructor itself just gets skipped. Has anyone else tried this? Would anyone else be willing to try and see what other information can be gleaned from it? Would it be proper to say that this is a bug (rather than a shortcoming) in Flash Player 9? - Kipp On 4/6/07, Michael Mudge [EMAIL PROTECTED] wrote: I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a property on that class... Something like this: foo = new Thingy(); trace(foo.test); All the class does is initialize that property; something like this: class Thingy { public var test:String; public function Thingy() { test = hello; } } This is pretty basic stuff -- and it works as expected. When run, it simply traces hello. I then create an AS3 / Flash 9 app that loads the aforementioned SWF... Something like this: As2thing = new Loader(); addChild(As2thing); As2thing.load(new URLRequest(as2thing.swf)); Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's constructor doesn't get called -- it traces undefined instead. Any idea why? - Kipp ___ 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] Constructors in AS2 SWFs not being calledwhenloaded by AS3
AS2 code will not work directly with AS3. You'll have to use LocalConnection to get the two pieces of code to communicate with each other (very ugly). At this point, you might want to go with one or the other and not both. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Mudge Sent: Saturday, April 07, 2007 6:53 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Constructors in AS2 SWFs not being calledwhenloaded by AS3 Is there any reason why you aren't porting over the Thingy class from AS2 to AS3? It might be easier to rewrite the class using AS3. The system I'm making is for featuring other artist's work... Some may not have Flash 9, and really don't want to require them to use a program that isn't even out yet... Also, there are some older AS2 apps that will be adapted to this system. The reason the base is in AS3 is because I want to be able to at least support AS3, since I assume it will eventually dominate, and AS3's got some other functionality that I would like to incorporate. That link to AVM1Movie was really interesting -- It definitely has some very relevant stuff, but I still don't see why AS2 doesn't call the constructor. From what I can tell, the instance is created and all other calls work, but the constructor itself just gets skipped. Has anyone else tried this? Would anyone else be willing to try and see what other information can be gleaned from it? Would it be proper to say that this is a bug (rather than a shortcoming) in Flash Player 9? - Kipp On 4/6/07, Michael Mudge [EMAIL PROTECTED] wrote: I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a property on that class... Something like this: foo = new Thingy(); trace(foo.test); All the class does is initialize that property; something like this: class Thingy { public var test:String; public function Thingy() { test = hello; } } This is pretty basic stuff -- and it works as expected. When run, it simply traces hello. I then create an AS3 / Flash 9 app that loads the aforementioned SWF... Something like this: As2thing = new Loader(); addChild(As2thing); As2thing.load(new URLRequest(as2thing.swf)); Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's constructor doesn't get called -- it traces undefined instead. Any idea why? - Kipp ___ 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] WebServices in Flash IDE ...
I can't define web services in the flash IDE.For any URL (and I've tried 5 different ones) I get the following message:WSDL download failed for the following URLs:Anyone know a fix for this or why this might be happening?.One possibly fix I stumbled upon was to delete everything in the 'Local Settings Temp' folder, but this didn't work for me.Does anyone user the Web Services panel in Flash IDE - is it worth learning about ?, or do you keep everything in code when connecting to services.___ 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