Re: [Flashcoders] Entering hex number (a color) as component parameter
As Johanness already mentioned, __hasInitialized is used to check if the instance has initialized. This is to avoid unnecessary method calls from the setter, as the setter is called before the constructor. Without the check, set bgColor would call SetBgColor before anything else. regards, Muzak - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 21, 2007 6:04 PM Subject: Re: [Flashcoders] Entering hex number (a color) as component parameter Thank you and sorry - I've missed the Color type in Flash help. But what is the role of __hasInitialized in your example? Why can't I just: [Inspectable(defaultValue=#66,type=Color)] public function get bgcolor():Number { return __bgcolor; } public function set bgcolor(val:Number):Void { __bgcolor = val; invalidate(); } (full source code in Bubble.* files @ http://preferans.de/flash/ )? On 3/20/07, Muzak [EMAIL PROTECTED] wrote: [Inspectable(defaultValue=#66,type=Color)] public var bgcolor:Number = 0x66; You might be better off using a getter/setter since you will have to redraw the rect_mc each time the color changes. private var rect_mc:MovieClip; private var __bgColor:Number = 0x66; private var __hasInitialized:Boolean = false; private function draw() { setBgColor(); __hasInitialized = true; } private function setBgColor():Void { // draw stuff, using __bgColor rect_mc.clear(); rect_mc.beginFill(__bgColor); // etc.. rect_mc.endFill(); } [Inspectable(defaultValue=#66,type=Color)] public function get bgColor():Number { return __bgColor; } public function set bgColor(val:Number):Void { __bgColor = val; if(__hasInitialized) setBgColor(); } Regards Alex ___ 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] Flash video, works locally not online
I've no idea what i did but it works now, think it was something to do with the attachMovie. Very frustrating for a while tho. Thanks for the suggestions guys. On 22/03/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: it could also be that your server doesn't have the right mime settings for flvees cheers On 3/21/07, DannyT [EMAIL PROTECTED] wrote: I am trying to get some video loaded at runtime using the following: var my_nc:NetConnection; var my_ns:NetStream; my_nc = new NetConnection(); my_nc.connect(null); my_ns = new NetStream(my_nc); curMedia = createEmptyMovieClip(videoPlayer, getNextHighestDepth()); curMedia.attachMovie(FlvManager,video, curMedia.getNextHighestDepth ()); //FLVManager is a movieclip in the library which contains an instance of FlvPlayer called FlvPlayer curMedia[video].FlvPlayer.attachVideo(my_ns); my_ns.onStatus = function(infoObject) { for (var prop in infoObject) { debugRef.text += \t+prop+:\t+infoObject[prop] + \n; // output to textfield } } my_ns.play(this.curClient.videos[0]); // reference to video object debugRef.text += this.curClient.videos[0]+\n; // which is outputted here and is correct When i try to run this locally it works fine, when i try to run it online I get no status response from my_ns. However the flv file will run when I use a video component wizard (FLVPlayback) Can someone suggest what is wrong or how i can debug this? Cheers, -- http://danny-t.co.uk ___ 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 -- http://danny-t.co.uk ___ 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] Flash crashing dilemna - when adding an input text field
I have a really weird bug going on in a game I am making. Game is developed in Flash 8 PC. (Published Flash 8 Actionscript 2) My game was crashing the second time I played it so I have spent the last day and a half tracking down the cause. I have narrowed it down to a text input field. This is where the user enters their name if they get a high score. If a user goes to this screen before playing the game a second time, then a few seconds into playing the game the second time, the game hangs with an error saying a script in this movie is causing the flash player to run slow or something to that effect which requires me to choose to stop this script. The game often hangs at this stage and I have to force quit Flash. If they do not get a high score they do not go to this frame of the flash movie with the text input field and playing the game a second time does not cause it to crash. I have tried recreating this text input field, changing the font, changing the instance name but still seems to cause the game to hang on playing it a second time. If anyone has any idea why this is happening or how I can determine what script is causing the error, I would be extremely grateful. Thanks Paul ___ 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] Compiling with self-reference
Slightly complicated and not terribly important but annoying: It's possible for a class to compile while self-referring: class Clarss { var pParent:Clarss; function Clarss(tParent:Clarss) { if (tParent != undefined) { pParent = tParent; } } } This compiles fine. But with inheritance this no longer works: class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } Now the compiler gets confused by the circular reference and tells me **Error** C:\...Clarss.as: Line 1: The name of this class, 'Clarss', conflicts with the name of another class that was loaded, 'Clarss'. It's a shame: My object structure has a bunch of objects in a tree structure, all of which inherit the same base class. I'd like them all to have a reference to the top-level node object, but I have to refer to it as an Object instead of its actual class name because otherwise it can't compile. Danny ___ 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] Dealing with size of a multi languages site
Hi Robert, You should look into shared librairies for your fonts as it will spread the weight of the fonts over multiple files. For possible solution I'd recommend going over http://www.muzakdeezign.com/flashcoders/ and search for font shared library Lots of discussion on the subject ! Good luck ! Alain Gosselin, Robert wrote: HI, I am building a site where we must include 6 different languages in it. I am doing this by using the i18n method and everything work perfectly. What would be the best way of dealing with the embedded fonts in my project? What is the best method for saving size of my swf? Right now I am doing some test and the swf is [EMAIL PROTECTED] heavy. Thanks ROBERT GOSSELIN SENIOR FLASH DEVELOPER SID LEE514.282.2200 # 619 COMMERCIAL CREATIVITY�SIDLEE.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] TextFormat Help:
Hi Plz tell me how to change the format of last character of a word. LikeWorld I want Worl in Arial Font and d in Digital Readout Thick Upright Font. Thanks in Advance... HMD __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.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] Flash JavaScript Integration Kit Issues
Check more on the JavaScript Side, It might be a problem accessing the DOM objects in IE6. Check out document.documentElement in javascript, sometimes this is where the solution lies in such problems. put some alerts() at the key places and try to find the value of the Flash object for IE6 ... Hope this helps Steve Mathews wrote: Hi, I have an issue with some e-learning content that I can't figure out. The content is setup to communicate with the LMS using AICC and is currently working fine in IE7 and FireFox. In IE6 it fails to finish initializing and I believe I have tracked it down to a point where Javascript is calling a Flash method, but Flash doesn't seem to receive the call. Is there any known issues with the kit and IE6 that I might look at, or any reasons for a call to just not get sent? Thanks, Steve ___ 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] Localization issue with XML
Steven, I had a similar problem when loading external xml files. The java servlet I was using to create and save the files on the server was saving them with UTF-8 encoding but when I imported them into Flash, some of the special characters did not show properly. I removed the encoding attribute from the XML header leaving it like this ?xml version=1.0 ? and lo and behold! the characters came out correctly. Birgit ___ 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] Problem extending inherited function
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Winterhalder Sent: 21 March 2007 23:41 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Problem extending inherited function Importance: High snip big explanation Mark, thank you so much for this, it's *exactly* the kind of thing I was looking for. By far the clearest explanation of how inheritcance works in Flash that I've seen. Now I can go back to doing what I was doing, but with a *much* clearer idea of why things do or don't work. Best Danny ___ 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] Entering hex number (a color) as component parameter
Looks wrong to me because the drawing code (the setBgColor()) is called outside of the draw() method. Flash Help says to call invalidate() from the set methods instead... On 3/21/07, Johannes Nel [EMAIL PROTECTED] wrote: he checks if the component is init'd On 3/21/07, Alexander Farber [EMAIL PROTECTED] wrote: But what is the role of __hasInitialized in your example? Why can't I [Inspectable(defaultValue=#66,type=Color)] public function get bgcolor():Number { return __bgcolor; } public function set bgcolor(val:Number):Void { __bgcolor = val; invalidate(); } (full source code in Bubble.* files @ http://preferans.de/flash/ )? On 3/20/07, Muzak [EMAIL PROTECTED] wrote: [Inspectable(defaultValue=#66,type=Color)] public var bgcolor:Number = 0x66; You might be better off using a getter/setter since you will have to redraw the rect_mc each time the color changes. private var rect_mc:MovieClip; private var __bgColor:Number = 0x66; private var __hasInitialized:Boolean = false; private function draw() { setBgColor(); __hasInitialized = true; } private function setBgColor():Void { // draw stuff, using __bgColor rect_mc.clear(); rect_mc.beginFill(__bgColor); // etc.. rect_mc.endFill(); } [Inspectable(defaultValue=#66,type=Color)] public function get bgColor():Number { return __bgColor; } public function set bgColor(val:Number):Void { __bgColor = val; if(__hasInitialized) setBgColor(); } Regards Alex ___ 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] html vars and flash vars
someone said that flash newbies was not longer available...is that true? regards Gustavo Duenas On Mar 21, 2007, at 4:29 PM, Merrill, Jason wrote: to read the xml. just loadVars() the code in xml : link a href=1.swf?id=nada//link actionscript: ??? and how could I have this processed in the flash? Don't use LoadVars to load the XML - there is a whole class in Actionscript to handle XML. Look in the help docs for XML. There's also a great list called Flashnewbies also hosted by figleaf which would be a great resource for you. Jason Merrill Bank of America GTO 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 Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 w. Beaver St. suite 119 Jacksonville, FL 32204 904 . 2650330 www.leftandrightsolutions.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] Got milk? (the game)
http://www.gettheglass.com How much time for this game project? How much developer? C'est magnifique! -- Laurent Untereiner skype : laurentuntereiner aim : luntereiner icq : 294429730 msn : [EMAIL PROTECTED] http://www.untereiner.com mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116 ___ 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] How to run an external exe file
En/na Steve Abaffy ha escrit: I tried loading the swf file as well and loads ok, except that the second swf file needs to look at a folder and load a bunch of jpg, and other data. I have looked at the data being loaded and it is all there, however the pictures do not load that data does not put into the dynamic text fields. But when I run the second swf file as a stand alone file it works perfect. When you load one swf into another the path to any external files needs to be calculated from the parent swf. If swf2 is in a different folder than swf1, and you load swf2 into swf1, then the path to any files you want to load into the embedded swf2 needs to be calculated from the folder which contains swf1. Could this be the problem? Birgit ___ 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] Help: test EventDispatcher speed please
interestingly, NO single FLASHCODER can say what it is about... meaning, we all lack of understanding of our environnement :P have a nice day all of you who doesn't understand what is going on with the EventDispatcher class ... a true study case this one ... a true! Cedric ___ 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] Compiling with self-reference
Hi, this class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } looks like a design error to me. One of the reasons you would use inheritance is polymorphism, and reducing complexity. A super class having to know the type of its subclasses is not good practice. Why not keep the reference pRoot:Clarss? You can stick any subclass in there. (ps you might want to read about the en.wikipedia.org/wiki/*Liskov*_* substitution*_*principle )* ** *greetz* *JC* ** On 3/22/07, Danny Kodicek [EMAIL PROTECTED] wrote: Slightly complicated and not terribly important but annoying: It's possible for a class to compile while self-referring: class Clarss { var pParent:Clarss; function Clarss(tParent:Clarss) { if (tParent != undefined) { pParent = tParent; } } } This compiles fine. But with inheritance this no longer works: class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } Now the compiler gets confused by the circular reference and tells me **Error** C:\...Clarss.as: Line 1: The name of this class, 'Clarss', conflicts with the name of another class that was loaded, 'Clarss'. It's a shame: My object structure has a bunch of objects in a tree structure, all of which inherit the same base class. I'd like them all to have a reference to the top-level node object, but I have to refer to it as an Object instead of its actual class name because otherwise it can't compile. Danny ___ 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] Compiling with self-reference
ps if you still need to do what you are trying, compiling twice or thrice might help:) On 3/22/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, this class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } looks like a design error to me. One of the reasons you would use inheritance is polymorphism, and reducing complexity. A super class having to know the type of its subclasses is not good practice. Why not keep the reference pRoot:Clarss? You can stick any subclass in there. (ps you might want to read about the en.wikipedia.org/wiki/*Liskov*_* substitution*_*principle )* ** *greetz* *JC* ** On 3/22/07, Danny Kodicek [EMAIL PROTECTED] wrote: Slightly complicated and not terribly important but annoying: It's possible for a class to compile while self-referring: class Clarss { var pParent:Clarss; function Clarss(tParent:Clarss) { if (tParent != undefined) { pParent = tParent; } } } This compiles fine. But with inheritance this no longer works: class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } Now the compiler gets confused by the circular reference and tells me **Error** C:\...Clarss.as: Line 1: The name of this class, 'Clarss', conflicts with the name of another class that was loaded, 'Clarss'. It's a shame: My object structure has a bunch of objects in a tree structure, all of which inherit the same base class. I'd like them all to have a reference to the top-level node object, but I have to refer to it as an Object instead of its actual class name because otherwise it can't compile. Danny ___ 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] Localization issue with XML
Hi, i just finished an app with the same characters in it. It contains no header and is a unicode file. The file was generated from a database to ascii (which is stupid but whatever) so I used a commandline vbscript for the conversion from my buildfile. If you like I can send you the xml file and script, for testing etc. greetz JC On 3/22/07, Birgit Ferran [EMAIL PROTECTED] wrote: Steven, I had a similar problem when loading external xml files. The java servlet I was using to create and save the files on the server was saving them with UTF-8 encoding but when I imported them into Flash, some of the special characters did not show properly. I removed the encoding attribute from the XML header leaving it like this ?xml version=1.0 ? and lo and behold! the characters came out correctly. Birgit ___ 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] Actionscript 3.0 help w/ simple HelloWorld
Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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] Flash JavaScript Integration Kit Issues
If your flash object is inside a form element, that´s the problem. Check http://www.extremefx.com.ar/blog/fixing-flash-external-interface-inside-form-on-internet-explorer for more information. On Thu, 22 Mar 2007 09:08:49 -0300, Alain Rousseau [EMAIL PROTECTED] wrote: Check more on the JavaScript Side, It might be a problem accessing the DOM objects in IE6. Check out document.documentElement in javascript, sometimes this is where the solution lies in such problems. put some alerts() at the key places and try to find the value of the Flash object for IE6 ... Hope this helps Steve Mathews wrote: Hi, I have an issue with some e-learning content that I can't figure out. The content is setup to communicate with the LMS using AICC and is currently working fine in IE7 and FireFox. In IE6 it fails to finish initializing and I believe I have tracked it down to a point where Javascript is calling a Flash method, but Flash doesn't seem to receive the call. Is there any known issues with the kit and IE6 that I might look at, or any reasons for a call to just not get sent? Thanks, Steve ___ 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 -- _ Marcelo Volmaro ___ 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] Xerte
Fellow Flash Coders, You might be interested in this free project: http:///www.nottingham.ac.uk I'd be interested in what you think, Regards, Julian This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. ___ 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] Re: Xerte
Oops - I forgot to post the whole link: http://www.nottingham.ac.uk/xerte/ This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. ___ 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] Dealing with size of a multi languages site
Thanks Alain. Le 22/03/07 07:50, « Alain Rousseau » [EMAIL PROTECTED] a écrit : Hi Robert, You should look into shared librairies for your fonts as it will spread the weight of the fonts over multiple files. For possible solution I'd recommend going over http://www.muzakdeezign.com/flashcoders/ and search for font shared library Lots of discussion on the subject ! Good luck ! Alain Gosselin, Robert wrote: HI, I am building a site where we must include 6 different languages in it. I am doing this by using the i18n method and everything work perfectly. What would be the best way of dealing with the embedded fonts in my project? What is the best method for saving size of my swf? Right now I am doing some test and the swf is [EMAIL PROTECTED] heavy. Thanks ROBERT GOSSELIN SENIOR FLASH DEVELOPER SID LEE514.282.2200 # 619 COMMERCIAL CREATIVITYSIDLEE.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 ROBERT GOSSELIN DÉVELOPPEUR FLASH SENIOR SID LEE514.282.2200 # 619 CRÉATIVITÉ COMMERCIALE™ SIDLEE.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] Help: test EventDispatcher speed please
hi francis, here my result on a DELL dimension AMD64 X2 Dual Core 3800+ 2 GHz, 1 GB RAM: EventBroadcaster: 3563 EventDispatcher: 2210 WIN 9,0,28,0 best, til Francis Bourre schrieb: Hello list ! I noticed something weird about EventDispatcher execution speed in my mac player. EventDispatcher.dispatchEvent execution is slow compared to a custom dispatcher implementation (named EventBroadcaster). On Mac, EventDispatcher is slow: EventBroadcaster: 2925 EventDispatcher: 12438 On Pc, EventDispatcher is faster. EventBroadcaster: 3908 EventDispatcher: 3407 Can you please report the values you got (displayed on screen) when you open the url below and the browser you used for testing. It takes few seconds to initialize (bench with iterations) http://www.tweenpix.net/TestEventBroadcaster.swf Any clue is welcome. ;) Thanks in advance guys ! francis Content of the test: var tf1 : TextField = new TextField(); var tf2 : TextField = new TextField(); var tf3 : TextField = new TextField(); tf2.y += 30; tf3.y += 60; tf1.width = tf2.width = tf3.width = 150; this.addChild( tf1 ); this.addChild( tf2 ); this.addChild( tf3 ); var holder : Array = new Array(); var l1 : Number = 1; var l2 : Number = 1; var lNum : Number = 500; var eb : EventBroadcaster = new EventBroadcaster ( this ); var ed : EventDispatcher = new EventDispatcher (); while( --lNum -(-1) ) { var tg : Object = {foo:function( e : Event ):void{ this.e = e.type; }}; ed.addEventListener( foo, tg.foo ); eb.addEventListener( foo, tg ); holder.push( tg ); } var t : Number = 0; var e : Event = new Event( foo ); // t = getTimer(); while( --l2 -(-1)) eb.broadcastEvent( e ); t = getTimer() - t; trace( EventBroadcaster: , t ); tf1.text = EventBroadcaster: + t; // t = getTimer(); while( --l1 -(-1)) ed.dispatchEvent( e ); t = getTimer() - t; trace( EventDispatcher: , t ); tf2.text = EventDispatcher: + t; tf3.text = flash.system.Capabilities.version; ___ 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] Using JSFL with AS files
Is there any way to do it? (And yes, I know I'd be better off with an external editor, but sometimes it's easiest just to work in the IDE). Danny ___ 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] html vars and flash vars
No, it's working... I just posted a response to a question last night. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Thursday, March 22, 2007 8:30 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] html vars and flash vars someone said that flash newbies was not longer available...is that true? regards Gustavo Duenas On Mar 21, 2007, at 4:29 PM, Merrill, Jason wrote: to read the xml. just loadVars() the code in xml : link a href=1.swf?id=nada//link actionscript: ??? and how could I have this processed in the flash? Don't use LoadVars to load the XML - there is a whole class in Actionscript to handle XML. Look in the help docs for XML. There's also a great list called Flashnewbies also hosted by figleaf which would be a great resource for you. Jason Merrill Bank of America GTO 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 Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 w. Beaver St. suite 119 Jacksonville, FL 32204 904 . 2650330 www.leftandrightsolutions.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] Compiling with self-reference
Danny Kodicek wrote: Slightly complicated and not terribly important but annoying: It's possible for a class to compile while self-referring: class Clarss { var pParent:Clarss; function Clarss(tParent:Clarss) { if (tParent != undefined) { pParent = tParent; } } } This compiles fine. But with inheritance this no longer works: class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } Now the compiler gets confused by the circular reference and tells me **Error** C:\...Clarss.as: Line 1: The name of this class, 'Clarss', conflicts with the name of another class that was loaded, 'Clarss'. It's a shame: My object structure has a bunch of objects in a tree structure, all of which inherit the same base class. I'd like them all to have a reference to the top-level node object, but I have to refer to it as an Object instead of its actual class name because otherwise it can't compile. You are mixing Classes and Instances. Classes inherit properties and methods from other classes. How the instances are linked together at execution time is another matter. Read some Actionscript books and if you want to do something this sophisticated read the design pattern book. What you want to do is pretty easy if you design it right. This is a very simple ActionScript application once you get your head around the tools. Actionscript and Java are pretty similar so you can read some books on designing with Java if you can not get one of the ActionScript books. Which books have you read. Perhaps other in the forum can comment on those books and suggest books that they found helpful. Are you defining each class in its own .as file? Danny ___ 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] File works in Flash 9 player but not in 8
Here's a really weird one: I created a Flash 8 swf -- using Actionscript 2.0 -- compiled it as a Flash 8 swf, but it doesn't work in the Flash 8 player. It does, however, work in the Flash 9 player. The file loads data in from multiple xml files. It actually works fine, even in Flash 8, if I only try to load from nine xml files, but as-soon-as I ad a tenth file, it stops working. By stops working, I mean that when the swf runs, I only see the Stage background. This same swf (without being changed in any way or recompiled) works fine in the Flash 9 player. The 8 player doesn't seem to be balking at the amount of xml, because if I cut the code from the tenth xml file and paste it into the 9th file, everything works fine. It just seems to choke on ten files. //works in Flash player 8 and 9 var strXmlPath:String = file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml,file8.xml,file9.xml; //works only in Flash player 9 //var strXmlPath:String = file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml,file8.xml,file9.xml,file10.xml; var xml:XML = new XML(); var arrXmlPaths:Array = new Array(); var arrXmlLoaders:Array = new Array(); var numXmlFilesLoaded:Number = 0; function parseXML(str:String):Void { var xml:XML = new XML(); var strXml:String; xml.ignoreWhite = true; arrXmlPaths = str.split(,); //get list of xml files for (var i:Number = 0; i arrXmlPaths.length; i++) { strXml = arrXmlPaths[i]; arrXmlLoaders[i] = new XML(); arrXmlLoaders[i].ignoreWhite = true; arrXmlLoaders[i].onLoad = xmlFileDoneLoading; arrXmlLoaders[i].load(strXml); } } function xmlFileDoneLoading():Void { numXmlFilesLoaded++; divideXmlIntoArrays(this); //have all the xml files loaded? if (numXmlFilesLoaded == arrXmlPaths.length) { parseMediaArray(); parseMediaHolderArrayAndMakeMediaHolders(); parseAndSetUpImmediateRelationships(); } } ___ 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] Got milk? (the game)
it is great On Mar 22, 2007, at 3:44 AM, laurent untereiner wrote: http://www.gettheglass.com How much time for this game project? How much developer? C'est magnifique! -- Laurent Untereiner skype : laurentuntereiner aim : luntereiner icq : 294429730 msn : [EMAIL PROTECTED] http://www.untereiner.com mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116 ___ 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 Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 w. Beaver St. suite 119 Jacksonville, FL 32204 904 . 2650330 www.leftandrightsolutions.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] Compiling with self-reference
Hi Danny, Maybe make it a public var pParent:Clarss; or if you don't want your var to be accessed directly outside the class (best practice) class Clarss { private var _pParent:Clarss; function Clarss(tParent:Clarss) { pParent = (tParent != undefined) ? tParent : this; } public function get pParent():Clarss { return _pParent; } public function set pParent(value:Clarss):Void { _pParent = value; } } HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 22 mars 2007 07:16 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Compiling with self-reference Slightly complicated and not terribly important but annoying: It's possible for a class to compile while self-referring: class Clarss { var pParent:Clarss; function Clarss(tParent:Clarss) { if (tParent != undefined) { pParent = tParent; } } } This compiles fine. But with inheritance this no longer works: class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } Now the compiler gets confused by the circular reference and tells me **Error** C:\...Clarss.as: Line 1: The name of this class, 'Clarss', conflicts with the name of another class that was loaded, 'Clarss'. It's a shame: My object structure has a bunch of objects in a tree structure, all of which inherit the same base class. I'd like them all to have a reference to the top-level node object, but I have to refer to it as an Object instead of its actual class name because otherwise it can't compile. Danny ___ 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.17/730 - Release Date: 2007-03-22 07:44 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 2007-03-22 07:44 ___ 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] Anyone had this problem?
first set the TextField to scrollable. Select the TextField and on the menu click text and scrollable. If this wont work than try loading a picture and not an swf.. See if it works, if not than you'll have to create a costum scroller that, in this case scrolls a movieClip and not text, as in, I think, scroll, is used only for text inside fields...but i am not sure.. try and let me know.. Good luck On 3/20/07, Andy Andersson [EMAIL PROTECTED] wrote: Hi List, I have a problem, might be a silly thing but I can't get my head around this. Problem: I have a master.swf that has a dynamic textfield ( containerObject_txt) on stage, and it loads the sub.swf into that specific dynamic textfield and html is set to true. It loads fine but the scroll won't work, I've tried bunch of different ideas and none seems to work in this case. Ideas??? Andy //Master swf/// //Create the string var myString_str:String = img src='sub.swf' width='277' height='98' align='left'; //Put the text containerObject_txt.htmlText = myString_str; //Control The scroll up_btn.onPress = function() { if(containerObject_txt.scroll != 0) { containerObject_txt.scroll--; } } down_btn.onPress = function() { if(containerObject_txt.scroll containerObject_txt.maxscroll) { containerObject_txt.scroll ++; } } ___ 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 -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ 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] Got milk? (the game)
WOW! http://www.gettheglass.com How much time for this game project? How much developer? C'est magnifique! -- Laurent Untereiner skype : laurentuntereiner aim : luntereiner icq : 294429730 msn : [EMAIL PROTECTED] http://www.untereiner.com mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116 ___ 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] TextFormat Help:
Hi, You can use setTextFormat(startIndex,endIndex,textFormat): // start var TF1:TextFormat = new TextFormat() TF1.font=Arial; // var TF2:TextFormat = new TextFormat() TF2.font=Courier New; // this.createTextField(txt,1,0,0,200,30); // this.txt.text = Ein, Zwei, Drei; // var end1Idx = this.txt.text.length-1; var end2Idx = this.txt.text.length; // this.txt.setTextFormat(0,end1Idx,TF1); this.txt.setTextFormat(end1Idx,end2Idx,TF2); // end hmdakr Hi hmdakr Plz tell me how to change the format of last character of a word. hmdakr LikeWorld hmdakr I want Worl in Arial Font and d in Digital Readout Thick Upright Font. hmdakr Thanks in Advance... hmdakr HMD hmdakr hmdakr __ hmdakr Yahoo! India Answers: Share what you know. Learn something new hmdakr http://in.answers.yahoo.com/ hmdakr ___ hmdakr Flashcoders@chattyfig.figleaf.com hmdakr To change your subscription options or search the archive: hmdakr http://chattyfig.figleaf.com/mailman/listinfo/flashcoders hmdakr Brought to you by Fig Leaf Software hmdakr Premier Authorized Adobe Consulting and Training hmdakr http://www.figleaf.com hmdakr http://training.figleaf.com -- Pozdrowienia, BlackMail -- Jestes kierowca? To poczytaj! http://link.interia.pl/f199e ___ 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] Annoying, (should be simple) bitwise problem
Hi buddy, isnt the format ARGB ? HEX = 0x AA RR GG BB ? Just a suggestion :) But I think what you think are your blues ar ein reality your Greens :) Also dependant on the version of flash you are working with... Best of Luck and successfull clicking Amir Am 07:21 PM 3/21/2007 schrieben Sie: Hi guys, This is annoying me - I'm just trying to get the seperate RGB component values out of a hex number, then manipulate and reconstruct them. var col = 0xFF; r = col 16; g = col 8 % 255; b = col % 255; trace(r=+r.toString(16)); trace(g=+g.toString(16)); trace(b=+b.toString(16)); col2 = r 16 + g 8 + b; trace(col2=+col2.toString(16)); Anyone got any idea why this isn't working right? My blue values are doing all sorts of wierd stuff - getting smaller, flipping out etc - is it a modulo problem maybe? Should be simple but this always gets me... Any help much appreciated, Alias ___ 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] Help: test EventDispatcher speed please
Someone already mentioned what it is - the for in loop vs the straight for loop. for (var i in array) ends up pushing all the keys of the array on the stack, and then popping those off. for (var i =0; i array.length; i++) doesn't. The test attaches 500 listeners to each dispatcher, so when you use the for (var i in array), you're pushing quite a few items on the stack, and it's possible that the mac flash player has slower stack access, or that that particular opcode is significantly slower. Note - the eventdispatcher code uses the for (var i in array) explicitly so that if a listener is removed from the array while dispatching an event that it still dispatches to all listeners. Be careful if you try to just change the loop. Also, why would you have 500 listeners to one broadcaster? The vast majority of the UI code that I've dealt with has 0-2 listeners. The difference between the two might be a lot smaller in that case. --Brian On 3/22/07, Cedric Muller [EMAIL PROTECTED] wrote: interestingly, NO single FLASHCODER can say what it is about... meaning, we all lack of understanding of our environnement :P have a nice day all of you who doesn't understand what is going on with the EventDispatcher class ... a true study case this one ... a true! Cedric ___ 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] Thanks!
I just wanted to extend my gratitude towards the people that helped me understand the scope issue when extending a function inside a class that is triggered by a text field, and tipping me off about the Delegate class. Thanks! -- Johan Nyberg Web Guide Partner Sergels Torg 12, 8 tr 111 57 Stockholm 070 - 407 83 00 ___ 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] High CPU usage problems
Hi, There a presentation related to garbage collection (effective deleting/removing) and some performance related stuff. All in relation to AS3, but applicable in many situations: http://www.gskinner.com/talks/resource-management/ Carl Welch Hi Coders, Carl Welch I've been having problem with some the apps I've been building. The CPU gets Carl Welch really bogged down like with usage often at 100%.I tend to use alot of tween Carl Welch classes, load external images and XML. I've never really had a good grasp of Carl Welch what to do with things regarding memory Carl Welch usage(programatically). I like to Carl Welch keep all my scripting on one frame and have function do what I need do. Carl Welch Currently, I am having the problem with this project: Carl Welch http://www.artandsignfx.com/temp.html Carl Welch I programmed the Portfolio Section. Bring up the task manager and watch Carl Welch the performance graph. You can watch it start to bogg down after a while of Carl Welch clicking around the portfolio section. Its loading xmls (one for the Side Carl Welch Menu) and the other for the thumbnails and theire respective data. There are Carl Welch quite a few createMovieClips and AttachMovieClips and some setIntervals - Carl Welch which I do clear when I'm done. When I create a tween object I try to kill Carl Welch it when I'm done using it with delete myObject; - not sure if that even Carl Welch works. Carl Welch Can anyone offer any advice or point me in the direction of a really good Carl Welch article regarding this subject?. -- Pozdrowienia, BlackMail -- Jestes kierowca? To poczytaj! http://link.interia.pl/f199e ___ 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] Entering hex number (a color) as component parameter
That is if you're extending UIComponent, which 99.9% of the time I don't ;) regards, Muzak - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, March 22, 2007 9:04 AM Subject: Re: [Flashcoders] Entering hex number (a color) as component parameter Looks wrong to me because the drawing code (the setBgColor()) is called outside of the draw() method. Flash Help says to call invalidate() from the set methods instead... ___ 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] Compiling with self-reference
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: 22 March 2007 12:39 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Compiling with self-reference Importance: High Hi, this class Clarss { var pRoot:Clarss2 function Clarss() { } } class Clarss2 extends Clarss { function Clarss2() { } } looks like a design error to me. One of the reasons you would use inheritance is polymorphism, and reducing complexity. A super class having to know the type of its subclasses is not good practice. Why not keep the reference pRoot:Clarss? You can stick any subclass in there. It depends on the circumstances. My main reason for using inheritance is code reuse: putting common code into ancestors. In my case, I'm not writing objects for reuse elsewhere. So it seems pretty reasonable to me that all my objects know about all the other objects. Here's a simplified example of the structure I'm trying to create: RootElement extends Element SimpleBlock extends BlockElement extends Element TextItem extends ItemElement extends Element the Element object has a pChildren:Array (empty for items) and pParent:Element (undefined for Root) property, creating a tree structure. Each element also has a direct reference pRoot:RootElement to the tree root (this is the bit that doesn't work). I think this makes good sense. I could shore it up by adding an additional layer: RootElement extends Element SimpleBlock extends BlockElement extends ChildElement extends Element TextItem extends ItemElement extends ChildElement extends Element Here, ChildElement is the one that has the pRoot property, eliminating the circular reference. But it seems a bit silly to have to add an empty class just for the sake of a single property. Danny ___ 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] createClassObject(OwnComponent) displays nothing on stage
Hello, I have written my own component (please see Bubble.* in http://preferans.de/flash/ ) which works ok - but only if I pull its instance onto the stage manually. If I try to instantiate it during runtime with - bubble_mc = createClassObject(Bubble, 'bubble_mc', 10, { _width: 80, _x: 20, _y: 20 } ); trace(bubble_mc + ': ' + bubble_mc.bgcolor); then nothing is visible on the stage and trace() prints: null: undefined I've searched numerous web pages, can't find what is wrong here. Any hints please? And my actual problem is that I have 2 own components: I want to display that comics-like Bubble chat component inside (on top of) another own component representing a player ( please see User.* in http://preferans.de/flash/ and click the cards list on the right to update the text in bubble_mc ) private function createChildren():Void { ... createClassObject(Loader, 'avatar_ldr', depth++, {contentPath: 'Unknown'}); createClassObject(Bubble, 'bubble_mc', depth++, {bgcolor: 0xFF}); } The problem is that while bubble_mc is displayed, it isn't drawn correctly. I see the text, but the background color isn't solid. I can't find why is this happening. Adding an explicit bubble_mc.draw() inside the player component: private function draw():Void { super.draw(); bubble_mc.draw(); } doesn't help. Any suggestions are very welcome Regards Alex ___ 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] Flash crashing dilemna - when adding an input text field
Hi, there's no code to work with here, but i would guess it's a recursive/infinite loop problem. Are there any handlers hooked up to that particular text field? On 3/22/07, Paul Steven [EMAIL PROTECTED] wrote: I have a really weird bug going on in a game I am making. Game is developed in Flash 8 PC. (Published Flash 8 Actionscript 2) My game was crashing the second time I played it so I have spent the last day and a half tracking down the cause. I have narrowed it down to a text input field. This is where the user enters their name if they get a high score. If a user goes to this screen before playing the game a second time, then a few seconds into playing the game the second time, the game hangs with an error saying a script in this movie is causing the flash player to run slow or something to that effect which requires me to choose to stop this script. The game often hangs at this stage and I have to force quit Flash. If they do not get a high score they do not go to this frame of the flash movie with the text input field and playing the game a second time does not cause it to crash. I have tried recreating this text input field, changing the font, changing the instance name but still seems to cause the game to hang on playing it a second time. If anyone has any idea why this is happening or how I can determine what script is causing the error, I would be extremely grateful. Thanks Paul ___ 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 -- Cheers, Ray Chuan ___ 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] Actionscript 3.0 help w/ simple HelloWorld
Hey off the top of my head, I think I see the problem. So, you add the text field child to the HelloWorld Sprite. Adding the child in the hello world sprite, does not add it to the stage. When you use add child alone, you have to pretend it's this.addChild. If you chose to import flash.display.Stage and do Stage.addChild(message_txt) you'd see it. What you did is add the field to just the sprite. But where's the sprite? It's nowhere still. In the fla, I'd bet if you put import MyPackage.* var hw:HelloWorld = new HelloWorld(); addChild(hw); it might just work! Merrill, Jason wrote: Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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] High CPU usage problems
Hi Carl, I understand the problem. Can be a real pain in the *ss to figure it out. Especially because so many things can cause the problem. You should double check you actually do clear your intervals + enterframes, but in my experience, the thing that kills the cpu the most is the effort flash has to put in redrawing your screen. So double (triple) check you are actually removing all non-visible elemelents. If e.g. you keep attaching/creating a couple of animating clips with some content and forget to remove them, it will definitely kill the cpu sooner or later. (especialy images which are almost always dynamically created/loaded seem to be a good place to look in general). Good luck, Ben Smeets -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carl Welch Sent: donderdag 22 maart 2007 5:51 To: Flashcoders mailing list Subject: [Flashcoders] High CPU usage problems Hi Coders, I've been having problem with some the apps I've been building. The CPU gets really bogged down like with usage often at 100%.I tend to use alot of tween classes, load external images and XML. I've never really had a good grasp of what to do with things regarding memory usage(programatically). I like to keep all my scripting on one frame and have function do what I need do. Currently, I am having the problem with this project: http://www.artandsignfx.com/temp.html I programmed the Portfolio Section. Bring up the task manager and watch the performance graph. You can watch it start to bogg down after a while of clicking around the portfolio section. Its loading xmls (one for the Side Menu) and the other for the thumbnails and theire respective data. There are quite a few createMovieClips and AttachMovieClips and some setIntervals - which I do clear when I'm done. When I create a tween object I try to kill it when I'm done using it with delete myObject; - not sure if that even works. Can anyone offer any advice or point me in the direction of a really good article regarding this subject?. -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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 any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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] Actionscript 3.0 help w/ simple HelloWorld
Hi Jason, I'm just guessing here but how about: addChild(hw); Anthony On 3/22/07, Merrill, Jason [EMAIL PROTECTED] wrote: Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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] Actionscript 3.0 help w/ simple HelloWorld
Hi, In your fla add: import MyPackage.* var hw:HelloWorld = new HelloWorld(); //You need to add the Child to the Stage addChild(hw); Other way to do it is set as 'Main Class 'of the fla file Helloworld.as, you can do it in Publish settings in ActionScript option (the same where you set the source paths). Saludos Andrés González Aragón Desarrollador Multimedia 2007/3/22, Merrill, Jason [EMAIL PROTECTED]: Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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
[Flashcoders] [OT] PHP book recommendations
Hi all, I need (want) to get myself up to speed with PHP 4.x/5.x and MySQL. I'm experienced with ActionScript (1 and 2), JavaScript, and Lingo (Director), and have dabbled with Java. I don't need a text that goes into basic programming techniques, rather I am looking for something that is a good desktop source for the specifics of PHP (versus ECMA/JavaScript) and the additional functions/methods/properties/classes that PHP brings. Recommendations? Thanks, Rob ___ 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] Flash 8 textfields in a Flash 7 SWF
Actually, Flash Player 7 can play Flash 8 swfs. Textfields with Flash 8 featuers (like advanced anti-aliasing) will just not render. Make sure you have no Flash 8 features applied to your textfield, or the movieclip containing it, and it will render as it should. I'm not sure why it was mentioned that System.capabilities.version would be unreliable, but in case that it really is, you can use swfObject to determine the player type. The javascript: var a = deconcept.SWFObjectUtil.getPlayerVersion(); var pVer = escape(String([a.major, a.minor, a.rev])); You can then pass pVer to your swf via FlashVars or SetVariable(). Personally though, I would publish 2 versions of the website, one Flash 7 SWF and one Flash 8 SWF. www.pierinc.com On 3/21/07, Mick G [EMAIL PROTECTED] wrote: You can use: trace(System.capabilities.version); to find the player version, then if it's 7, do a loadMovie to load your v8 SWF. On 3/21/07, Jake Prime [EMAIL PROTECTED] wrote: Hi I have a SWF which is published as Flash 8 purely to take advantage of the filter effects that can be applied to dynamic text fields. The problem is that I am now forced to deploy the project to Flash 7. I was hoping that I could do a detect within the SWF and serve up the nice Flash 8 text fields for the majority who can see it, and just have the plain old 7 ones for those who can't. Is there a way to do this within a single SWF? Thanks Jake ___ 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] Actionscript 3.0 help w/ simple HelloWorld
Hi, Do additional addChild(hw) in your .fla file. Also, the DisplayObjectContainer isn't needed. Cheers, Petro -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, March 22, 2007 3:09 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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] Actionscript 3.0 help w/ simple HelloWorld
The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) I think that the flash 9 ide serves up the flash 8 stand-alone player - I believe that you need to replace that manually with the flash 9 standalone player or view your projects in a browser window with flash 9 installed in it. jimbo ___ 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] Actionscript 3.0 help w/ simple HelloWorld
Hi Jason, Try setting the width and the height of the Textfield. www.pierinc.com On 3/22/07, Merrill, Jason [EMAIL PROTECTED] wrote: Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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
[Flashcoders] Re: File works in Flash 9 player but not in 8
In case it matters, the problems occur after 11 xml files, not 10. On 3/22/07, me myself [EMAIL PROTECTED] wrote: Here's a really weird one: I created a Flash 8 swf -- using Actionscript 2.0 -- compiled it as a Flash 8 swf, but it doesn't work in the Flash 8 player. It does, however, work in the Flash 9 player. The file loads data in from multiple xml files. It actually works fine, even in Flash 8, if I only try to load from nine xml files, but as-soon-as I ad a tenth file, it stops working. By stops working, I mean that when the swf runs, I only see the Stage background. This same swf (without being changed in any way or recompiled) works fine in the Flash 9 player. The 8 player doesn't seem to be balking at the amount of xml, because if I cut the code from the tenth xml file and paste it into the 9th file, everything works fine. It just seems to choke on ten files. //works in Flash player 8 and 9 var strXmlPath:String = file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml,file8.xml,file9.xml; //works only in Flash player 9 //var strXmlPath:String = file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml,file8.xml,file9.xml,file10.xml; var xml:XML = new XML(); var arrXmlPaths:Array = new Array(); var arrXmlLoaders:Array = new Array(); var numXmlFilesLoaded:Number = 0; function parseXML(str:String):Void { var xml:XML = new XML(); var strXml:String; xml.ignoreWhite = true; arrXmlPaths = str.split(,); //get list of xml files for (var i:Number = 0; i arrXmlPaths.length; i++) { strXml = arrXmlPaths[i]; arrXmlLoaders[i] = new XML(); arrXmlLoaders[i].ignoreWhite = true; arrXmlLoaders[i].onLoad = xmlFileDoneLoading; arrXmlLoaders[i].load(strXml); } } function xmlFileDoneLoading():Void { numXmlFilesLoaded++; divideXmlIntoArrays(this); //have all the xml files loaded? if (numXmlFilesLoaded == arrXmlPaths.length) { parseMediaArray(); parseMediaHolderArrayAndMakeMediaHolders(); parseAndSetUpImmediateRelationships(); } } ___ 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] Actionscript 3.0 help w/ simple HelloWorld
Hey Jason, If I remember correctly, I believe you also have to attach your HelloWorld class to the stage (or was it display list?) via addChild. Instantiating it via the constructor will only create it in memory and not automatically attach to the display. I don't have the exact syntax, but I'm sure you can search around on LiveDocs and get the answer you need. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, March 22, 2007 6:09 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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] Actionscript 3.0 help w/ simple HelloWorld
I see, You need to add HelloWorld to the main DisplayList. import MyPackage.* var hw:HelloWorld = new HelloWorld(); addChild(hw); On 3/22/07, elibol [EMAIL PROTECTED] wrote: Hi Jason, Try setting the width and the height of the Textfield. http://www.pierinc.com On 3/22/07, Merrill, Jason [EMAIL PROTECTED] wrote: Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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
[Flashcoders] OT - Installing PHP, MySQL?
Anyone have any experience in this area? We're developing a Flash site for a new client, who keeps all their own web servers in-house. They are MS house using .net and such. They are setting up a new server just for their new site, and since they are not familiar with PHP or MySQL (which is what we develop with) they are asking us to install them. They will give us remote access to the server... How hard / not-hard is it to install PHP and MySQL on a remote server? Anything to be weary of? Is it something I should just skip attempting and hire an IT guy to do it? Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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] Actionscript 3.0 help w/ simple HelloWorld
I should mention why I thought it was a width/height issue. UITextField and extending components (and some other components) in the Flex framework initialize to a width/height of 0... It really took me by surprise . On 3/22/07, elibol [EMAIL PROTECTED] wrote: I see, You need to add HelloWorld to the main DisplayList. import MyPackage.* var hw:HelloWorld = new HelloWorld(); addChild(hw); On 3/22/07, elibol [EMAIL PROTECTED] wrote: Hi Jason, Try setting the width and the height of the Textfield. http://www.pierinc.com On 3/22/07, Merrill, Jason [EMAIL PROTECTED] wrote: Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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] High CPU usage problems
If you are doing a lot of createEmptyMovieClip() and attachMovie(), then make sure that those movieclips are getting removed when you are done with them. If you are fading those clips away, but never removing them from the stage with removeMovieClip() (*not* delete), CPU performance will surely suffer as the number of invisible movieclips increases. Also double-check to see if your intervals are actually getting cleared. If you are using intervals to do multiple tweens, make sure that they ALL get cleared. Also beware of intervals declared in loops because if you are not careful, you can overwrite an interval with a new one. This leaves the previous one uncleared and unaccessible as well. -- andy makely On 3/22/07, Carl Welch [EMAIL PROTECTED] wrote: I programmed the Portfolio Section. Bring up the task manager and watch the performance graph. You can watch it start to bogg down after a while of clicking around the portfolio section. Its loading xmls (one for the Side Menu) and the other for the thumbnails and theire respective data. There are quite a few createMovieClips and AttachMovieClips and some setIntervals - which I do clear when I'm done. When I create a tween object I try to kill it when I'm done using it with delete myObject; - not sure if that even works. ___ 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] Annoying, (should be simple) bitwise problem
Give this a shot function getRGB(c:Number):Array { return [c16, c8~0xFF00, c~0xF00]; } On 3/21/07, Alias™ [EMAIL PROTECTED] wrote: Hi guys, This is annoying me - I'm just trying to get the seperate RGB component values out of a hex number, then manipulate and reconstruct them. var col = 0xFF; r = col 16; g = col 8 % 255; b = col % 255; trace(r=+r.toString(16)); trace(g=+g.toString(16)); trace(b=+b.toString(16)); col2 = r 16 + g 8 + b; trace(col2=+col2.toString(16)); Anyone got any idea why this isn't working right? My blue values are doing all sorts of wierd stuff - getting smaller, flipping out etc - is it a modulo problem maybe? Should be simple but this always gets me... Any help much appreciated, Alias ___ 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] QT in IE returning null value to flash
Hm. I haven't used ExternalInterface at al (I'm stuck with Flash 7), so I'm not really sure what the problem could be. Though you might be able to do it as a callback (have the javascript function call some function in your Flash movie to give it the value). The control flow for that would be a bit odd, but it might work if you can't get it to return correctly. -Andy On 3/20/07, Bob Wohl [EMAIL PROTECTED] wrote: yeah, I can alert the value (real fun with a set interval =P). Just getting it from JS seems to be the issue. yep, QuickTime, their documentation rocks for javascript ;) Bob On 3/20/07, Andy Herrman [EMAIL PROTECTED] wrote: Have you tried getting the value out using just Javascript (no Flash involved)? See if that works. It might make it easier to debug (removing a layer of complexity). Maybe IE has some security in place that's preventing the access of the values from QT (you mean quicktime? I always think of QT as the C++ toolset made by trolltech.) -Andy On 3/20/07, Bob Wohl [EMAIL PROTECTED] wrote: Hello all, I've researched quite a bit over the past week to no avail on how in IE i get a return of null when pulling the time from a QT file but in FireFox i get the proper time... flash call - myTime = ExternalInterface.call(DisTime, document.movie1); js - function DisTime(anObj){ var obj = eval(anObj); return obj.GetTime(); } seems simple enough but I cannot for the life of me find out why IE sees it as null. Any ideas, pointers? Thanks! Bob ___ 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] Compiling with self-reference
Danny Kodicek wrote: It's a shame: My object structure has a bunch of objects in a tree structure, all of which inherit the same base class. I'd like them all to have a reference to the top-level node object, but I have to refer to it as an Object instead of its actual class name because otherwise it can't compile. You are mixing Classes and Instances. Classes inherit properties and methods from other classes. How the instances are linked together at execution time is another matter. Well, not really. I may use the words 'class' and 'object' interchangeably on occasion, but I'm quite aware of the distinction. Classes have properties, instances give those properties values, classes define the kinds of data those values can take. I don't think my example is that odd, really. It seems unnecessarily restrictive not to be able to refer to a superclass within a subclass - that's enforcing an arbitrary design principle. Danny ___ 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] Re: Help: test EventDispatcher speed please
Here are my results : EventBroadcaster: 19899 EventDispatcher: 18322 WIN 9,0,28,0 Mozilla Firefox 2.01 EventBroadcaster: 18031 EventDispatcher: 18697 WIN 9,0,28,0 Internet Explorer 6 And here is my poor computer : - ) Pentium III 600 MHZ / 384 MB ram / Windows XP Sp2 trying to run Flex with this configuration :-| ___ 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] OnMouseWheel Issue....
Hi List.. I am writing a class and inside this class, i got a this method private function wheel() { mList.onMouseWheel = function (delta) { trace(Using wheel); } Mouse.addListener(mList); //mList is declared as an object outside the Method } I dont know why but it iseems that it is not listening to the wheel as in it doesnt trace me back using wheel what is the problem?? Am i doing something wrong? Thanks so much -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ 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] Help: test EventDispatcher speed please
EventBroadcaster: 5036 EventDispatcher: 16257 mac 9,0,28,0 On 3/22/07, Tilmann Grüll [EMAIL PROTECTED] wrote: hi francis, here my result on a DELL dimension AMD64 X2 Dual Core 3800+ 2 GHz, 1 GB RAM: EventBroadcaster: 3563 EventDispatcher: 2210 WIN 9,0,28,0 best, til Francis Bourre schrieb: Hello list ! I noticed something weird about EventDispatcher execution speed in my mac player. EventDispatcher.dispatchEvent execution is slow compared to a custom dispatcher implementation (named EventBroadcaster). On Mac, EventDispatcher is slow: EventBroadcaster: 2925 EventDispatcher: 12438 On Pc, EventDispatcher is faster. EventBroadcaster: 3908 EventDispatcher: 3407 Can you please report the values you got (displayed on screen) when you open the url below and the browser you used for testing. It takes few seconds to initialize (bench with iterations) http://www.tweenpix.net/TestEventBroadcaster.swf Any clue is welcome. ;) Thanks in advance guys ! francis Content of the test: var tf1 : TextField = new TextField(); var tf2 : TextField = new TextField(); var tf3 : TextField = new TextField(); tf2.y += 30; tf3.y += 60; tf1.width = tf2.width = tf3.width = 150; this.addChild( tf1 ); this.addChild( tf2 ); this.addChild( tf3 ); var holder : Array = new Array(); var l1 : Number = 1; var l2 : Number = 1; var lNum : Number = 500; var eb : EventBroadcaster = new EventBroadcaster ( this ); var ed : EventDispatcher = new EventDispatcher (); while( --lNum -(-1) ) { var tg : Object = {foo:function( e : Event ):void{ this.e = e.type; }}; ed.addEventListener( foo, tg.foo ); eb.addEventListener( foo, tg ); holder.push( tg ); } var t : Number = 0; var e : Event = new Event( foo ); // t = getTimer(); while( --l2 -(-1)) eb.broadcastEvent( e ); t = getTimer() - t; trace( EventBroadcaster: , t ); tf1.text = EventBroadcaster: + t; // t = getTimer(); while( --l1 -(-1)) ed.dispatchEvent( e ); t = getTimer() - t; trace( EventDispatcher: , t ); tf2.text = EventDispatcher: + t; tf3.text = flash.system.Capabilities.version; ___ 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] Using JSFL with AS files
What do you mean specifically? BLITZ | Steven Sacks - 310-551-0200 x209 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: Thursday, March 22, 2007 6:30 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Using JSFL with AS files Is there any way to do it? (And yes, I know I'd be better off with an external editor, but sometimes it's easiest just to work in the IDE). Danny ___ 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] Using JSFL with AS files
//Script In the Flash IDE: MMExecute('alert(Hello World);'); -- Keith H -- Danny Kodicek wrote: Is there any way to do it? (And yes, I know I'd be better off with an external editor, but sometimes it's easiest just to work in the IDE). Danny ___ 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] ActionScript3, Socket, readObject
I'm using ActionScript3 in Flash 9 alpha... I've got a great Socket setup working, but when the network traffic gets high, TCP's nature is to combine and/or break up packets... The problem with this is that the incoming data event gets fired before a complete object has transmitted... I see no way to know if the entire object has arrived yet; so to find out, I just try. If the object isn't all there yet, it throws an error and I bail until more data comes in. The problem is, even when readObject fails, it trashes the data. (evidenced by the trace). Any ideas on how to fix this? Here's the code: function newSocketData() { var result; while(1) { var bufsize:Number = sock.bytesAvailable; try { result = sock.readObject(); } catch (e:EOFError) { trace(Data before: + bufsize + -- Now: + sock.bytesAvailable); return; } handleObject(result); } } - 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] Entering hex number (a color) as component parameter
listen to that! the v2 components are sheet in flash unfortunately when compared to flex 1.5. if however you are hell bent on using the v2 framework, invalidate will be the thing to use, i would (residual memory kicking in) still have your own init flag. On 3/22/07, Muzak [EMAIL PROTECTED] wrote: That is if you're extending UIComponent, which 99.9% of the time I don't ;) regards, Muzak - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, March 22, 2007 9:04 AM Subject: Re: [Flashcoders] Entering hex number (a color) as component parameter Looks wrong to me because the drawing code (the setBgColor()) is called outside of the draw() method. Flash Help says to call invalidate() from the set methods instead... ___ 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 -- j:pn http://www.lennel.org ___ 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 - Installing PHP MySQL on a remote server
Sorry if this ends up coming through twice, but I sent it 2.5 hours ago and it hasn't reached the list yet. Anyone have any experience in this area? We're developing a Flash site for a new client, who keeps all their own web servers in-house. They are MS house using .net and such. They are setting up a new server just for their new site, and since they are not familiar with PHP or MySQL (which is what we develop with) they are asking us to install them. They will give us remote access to the server... How hard / not-hard is it to install PHP and MySQL on a remote server? Anything to be weary of? Is it something I should just skip attempting and hire an IT guy to do it? Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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] createClassObject(OwnComponent) displays nothing on stage
Have you tried manually placing your component on the stage in the first frame and then deleting it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Farber Sent: Thursday, March 22, 2007 6:53 AM To: Flashcoders mailing list Subject: [Flashcoders] createClassObject(OwnComponent) displays nothing on stage Hello, I have written my own component (please see Bubble.* in http://preferans.de/flash/ ) which works ok - but only if I pull its instance onto the stage manually. If I try to instantiate it during runtime with - bubble_mc = createClassObject(Bubble, 'bubble_mc', 10, { _width: 80, _x: 20, _y: 20 } ); trace(bubble_mc + ': ' + bubble_mc.bgcolor); then nothing is visible on the stage and trace() prints: null: undefined I've searched numerous web pages, can't find what is wrong here. Any hints please? And my actual problem is that I have 2 own components: I want to display that comics-like Bubble chat component inside (on top of) another own component representing a player ( please see User.* in http://preferans.de/flash/ and click the cards list on the right to update the text in bubble_mc ) private function createChildren():Void { ... createClassObject(Loader, 'avatar_ldr', depth++, {contentPath: 'Unknown'}); createClassObject(Bubble, 'bubble_mc', depth++, {bgcolor: 0xFF}); } The problem is that while bubble_mc is displayed, it isn't drawn correctly. I see the text, but the background color isn't solid. I can't find why is this happening. Adding an explicit bubble_mc.draw() inside the player component: private function draw():Void { super.draw(); bubble_mc.draw(); } doesn't help. Any suggestions are very welcome Regards Alex ___ 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] Flash crashing dilemna - when adding an input textfield
I am really struggling to get to the bottom of this bug and I have now spent over 2 days desparately trying everything including recreating the entire game in a new flash file in case anything was corrupt. Basically the game crashes if I type into a text input field. If I do not then it doesn't. I cannot fathom what would be carried forward to the actual game from this simple action. The text input field isn't even on screen anymore when the game is in play. Does the act of typing into a text input field change anything that could affect my game? Really frustrating as I need to be able to allow the user to enter their name. Anyone Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: 22 March 2007 11:41 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash crashing dilemna - when adding an input textfield I have a really weird bug going on in a game I am making. Game is developed in Flash 8 PC. (Published Flash 8 Actionscript 2) My game was crashing the second time I played it so I have spent the last day and a half tracking down the cause. I have narrowed it down to a text input field. This is where the user enters their name if they get a high score. If a user goes to this screen before playing the game a second time, then a few seconds into playing the game the second time, the game hangs with an error saying a script in this movie is causing the flash player to run slow or something to that effect which requires me to choose to stop this script. The game often hangs at this stage and I have to force quit Flash. If they do not get a high score they do not go to this frame of the flash movie with the text input field and playing the game a second time does not cause it to crash. I have tried recreating this text input field, changing the font, changing the instance name but still seems to cause the game to hang on playing it a second time. If anyone has any idea why this is happening or how I can determine what script is causing the error, I would be extremely grateful. Thanks Paul ___ 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] Got milk? (the game)
Really amazing game but i dont think there is hard programming behind it. Maximum 2 developer can handle the coding. I think graphics and 3d's are so cool. It takes a lot of time to get these kind of qualified and optimized renders. Its beautiful. Respect!! :) Kerem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, March 22, 2007 4:16 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Got milk? (the game) WOW! http://www.gettheglass.com How much time for this game project? How much developer? C'est magnifique! -- Laurent Untereiner skype : laurentuntereiner aim : luntereiner icq : 294429730 msn : [EMAIL PROTECTED] http://www.untereiner.com mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116 ___ 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 __ NOD32 1.1391 (20060201) Information __ This message was checked by NOD32 antivirus system. http://www.eset.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] Actionscript 3.0 help w/ simple HelloWorld
Try adding this to your fla addChild(hw); In your HelloWorld class you've added your textField inside but since you have added you HelloWorld() object to the display list of the movie it will never get drawn. I have a question back at you along this example. I'm running on windows and if I set up my project that I have my.fla [MyPackage] MyPackage.as (with the HelloWorld class) using the code in the fla I never get HelloWorld to properly initiate. Instead I get an error **Error** Scene 1, Layer 'Layer 1', Frame 1 : Line 2, Column 8 : [Compiler] Error #1046: Type was not found or was not a compile-time constant: HelloWorld. var hw:HelloWorld = new HelloWorld(); if I change the name of the .as file to HelloWorld.as then all works fine any insights why yours can run as MyPackage.as? Rob On Thu, 22 Mar 2007 09:08:45 -0400, Merrill, Jason [EMAIL PROTECTED] wrote: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) ___ 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] installing flash sandy in a mac
anyone of you guys have a mac with sandy library running. how is the path? becuase at this time I've tried many variations and nothing so far, I can't have this installed...any ideas. my path is. macintosh HD: applications:macromedia flash 8:sandy but so far when I try to run the simple cube codeit tells me that can load any class. Regards Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 w. Beaver St. suite 119 Jacksonville, FL 32204 904 . 2650330 www.leftandrightsolutions.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] Enhancing the Flash Cursor
I am building a photo slideshow and I want to add a next/back button to the mouse cursor. If the mouse is on the right half of the screen, it displays a right arrow (indicating that onclick, it will load the next photo). When on the left half, it displays a left arrow (onclick loads the previous photo). My question is this: is there a better way to do this than using onMouseMove and onMouseDown event handlers? My code is below. Adding these event handlers is making my SWF eat up 20% more of the CPU resources. Is there a less processor intensive method of achieving this? A Group94 site seems to do a good job of this without hogging CPU cycles: http://www.schierke.com/home.php?p= // w=screenWidth onMouseMove=function() { arrowL._x=_xmouse-14; arrowL._y=_ymouse+4; arrowR._x=_xmouse+14; arrowR._y=_ymouse+4; if (_xmousew/2) {arrowL._visible=true; arrowR._visible=false;} else {arrowR._visible=true; arrowL._visible=false;} } onMouseDown=function() { if (_xmousew/2) {loadImage(current-1);} else { loadImage(current+1);} } ___ 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] PHP book recommendations
On 3/22/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: Hi all, I need (want) to get myself up to speed with PHP 4.x/5.x and MySQL. I'm experienced with ActionScript (1 and 2), JavaScript, and Lingo (Director), and have dabbled with Java. I don't need a text that goes into basic programming techniques, rather I am looking for something that is a good desktop source for the specifics of PHP (versus ECMA/JavaScript) and the additional functions/methods/properties/classes that PHP brings. Recommendations? Save your money and point your browser at: www.php.net -- Mike Keesey ___ 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] Actionscript 3.0 help w/ simple HelloWorld
That's weird that you also have to addChild() the class instance to the stage, but makes sense I guess - I thought addChild(textField) in the class would be enough, but I can see it now. Works. Thanks. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrés González Aragón Sent: Thursday, March 22, 2007 11:34 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld Hi, In your fla add: import MyPackage.* var hw:HelloWorld = new HelloWorld(); //You need to add the Child to the Stage addChild(hw); Other way to do it is set as 'Main Class 'of the fla file Helloworld.as, you can do it in Publish settings in ActionScript option (the same where you set the source paths). Saludos Andrés González Aragón Desarrollador Multimedia 2007/3/22, Merrill, Jason [EMAIL PROTECTED]: Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO 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 ___ 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 - Installing PHP, MySQL?
http://www.apachefriends.org/en/xampp.html Dave Mennenoh wrote: Anyone have any experience in this area? We're developing a Flash site for a new client, who keeps all their own web servers in-house. They are MS house using .net and such. They are setting up a new server just for their new site, and since they are not familiar with PHP or MySQL (which is what we develop with) they are asking us to install them. They will give us remote access to the server... How hard / not-hard is it to install PHP and MySQL on a remote server? Anything to be weary of? Is it something I should just skip attempting and hire an IT guy to do it? Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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] Flash VIDEO
Hi there - I use Sony Vegas, have a 16:9 HDD camcorder that imports mpeg2 video, and want the same results to run really smooth on a website. I realise there are a few stages that need to be done right from origin. I have edited a 2 minute sequence that will be my first step to getting it right. The thing that really confuss me is the fact that it starts at (PAL) 720x576 - project properties are 16:9 which is just how I want the true pixel output to be once it is run through the mill. I need a little advice on rendering the original, then what to do with Sorenson - so that I can show it at, say, 450x253 nicely within a website. There are a few issues like ratio that are confusing me, and I would really appreciate a little assistance. It may be best if you contact me off-list because I will need a little step-by-step guidance I think. I have got the main principles, its just a matter of figuring how exactly to do it. This has taken me all week thus far...! Thanks so much, Daniel Hart (email on website) www.djh-graphics.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 - Installing PHP, MySQL?
u can install an emulator on windows that acts as a server,,, something like IIS but for PHP There is a wonderful tool i am using to test php and mysql offline here http://www.uniformserver.com/ Good Luck!!! On 3/22/07, Dave Mennenoh [EMAIL PROTECTED] wrote: Anyone have any experience in this area? We're developing a Flash site for a new client, who keeps all their own web servers in-house. They are MS house using .net and such. They are setting up a new server just for their new site, and since they are not familiar with PHP or MySQL (which is what we develop with) they are asking us to install them. They will give us remote access to the server... How hard / not-hard is it to install PHP and MySQL on a remote server? Anything to be weary of? Is it something I should just skip attempting and hire an IT guy to do it? Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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 -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ 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 - Installing PHP, MySQL?
I've installed them on a few of my own machines at home, and it's not difficult at all. Installing in on IIS was actually a bit easier than installing it on Apache. --- Dave Mennenoh [EMAIL PROTECTED] wrote: Anyone have any experience in this area? We're developing a Flash site for a new client, who keeps all their own web servers in-house. They are MS house using .net and such. They are setting up a new server just for their new site, and since they are not familiar with PHP or MySQL (which is what we develop with) they are asking us to install them. They will give us remote access to the server... How hard / not-hard is it to install PHP and MySQL on a remote server? Anything to be weary of? Is it something I should just skip attempting and hire an IT guy to do it? Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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 Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html ___ 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] Flash JavaScript Integration Kit Issues
Thanks for the ideas. Unfortunately after further investigation it appears that communication from JavaScript - Flash is working fine, but making calls from Flash to JavaScript are getting lost. So the Flash code runs, then attempts to do a callback into JavaScript and nothing happens (no JavaScript error either). On 3/22/07, Marcelo Volmaro [EMAIL PROTECTED] wrote: If your flash object is inside a form element, that´s the problem. Check http://www.extremefx.com.ar/blog/fixing-flash-external-interface-inside-form-on-internet-explorer for more information. On Thu, 22 Mar 2007 09:08:49 -0300, Alain Rousseau [EMAIL PROTECTED] wrote: Check more on the JavaScript Side, It might be a problem accessing the DOM objects in IE6. Check out document.documentElement in javascript, sometimes this is where the solution lies in such problems. put some alerts() at the key places and try to find the value of the Flash object for IE6 ... Hope this helps Steve Mathews wrote: Hi, I have an issue with some e-learning content that I can't figure out. The content is setup to communicate with the LMS using AICC and is currently working fine in IE7 and FireFox. In IE6 it fails to finish initializing and I believe I have tracked it down to a point where Javascript is calling a Flash method, but Flash doesn't seem to receive the call. Is there any known issues with the kit and IE6 that I might look at, or any reasons for a call to just not get sent? Thanks, Steve ___ 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 -- _ Marcelo Volmaro ___ 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] Using JSFL with AS files
jsfl files can be externalised as .jsfl and executed via commandsrun command if that is what you are asking Arse www.snepo.com www.arseiam.com On 23/03/2007, at 12:30 AM, Danny Kodicek wrote: Is there any way to do it? (And yes, I know I'd be better off with an external editor, but sometimes it's easiest just to work in the IDE). Danny ___ 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