[Flashcoders] NumericStepper.checkValidValue() method
The NumericStepper component in Flash 8 seems to have a problem. Where minimum = 1, maximum = 10, stepSize = 2, value = 1, the second value on clicking the up arrow is 2. Then it is changing to 4 6 8 10. What I expect is 1 3 5 7 9 10. Therefore, I modified NumericStepper.checkValidValue() method as follows. To test the script just place the NumericStepper component into the [Library] without anything on the stage. Any comments and suggestions for this modification would be very appreciated. // dynamically placing a NumericStepper instance import mx.managers.DepthManager; import mx.controls.NumericStepper; var myNumericStepper:NumericStepper = this.createClassChildAtDepth(NumericStepper, DepthManager.kTop); // initializing myNumericStepper.move(10, 10); myNumericStepper.minimum = 1; myNumericStepper.maximum = 10; myNumericStepper.stepSize = 2; myNumericStepper.value = myNumericStepper.minimum; // modifying NumericStepper.checkValidValue() method NumericStepper.prototype.checkValidValue = function(val:Number):Number { // var initDiv:Number = val/this.stepSize; // var roundD:Number = Math.floor(initDiv); var stepS:Number = this.stepSize; var minVal:Number = this.minimum; var maxVal:Number = this.maximum; var initDiv:Number = (val-minVal)/this.stepSize+minVal; var roundD:Number = Math.floor(initDiv-minVal)+minVal; // if (valminVal and valmaxVal) { if (valminVal valmaxVal) { if (initDiv-roundD == 0) { return val; } else { // var tmpV:Number = Math.floor(val/stepS); var tmpV:Number = Math.floor((val-minVal)/stepS); var stepDownV:Number = tmpV*stepS+minVal; if ((val-stepDownV=stepS/2 maxVal=stepDownV+stepS minVal=stepDownV-stepS) || (val+stepS == maxVal maxVal-stepDownV-stepS0.01)) { stepDownV += stepS; } return stepDownV; } } else { if (val=maxVal) { return maxVal; } else { return minVal; } } }; -- Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.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
Re: [Flashcoders] Actionscript 3.0 compiler Qs
Here are some things I've been wondering about Actionscript 3.0s compiler and runtime engines: I'm assuming AS 3.0 compiles to a bytecode. What kind of bytecode does it compile to? Is it more like Java/.NET CLR, or more like Mozilla's Spidermonkey compiler? I don't know about SpiderMonkey, but AS3 bytecode is similar to Java one. It's actually more complicated since there is several way to access the properties (using prototype, traits or slots). Does the compiled code get recompiled during runtime to machine code (like a JIT compiler) or does it get interpreted? Some Adobe presentation on the subjet was saying that all the code get JIT'ed, except the $iinit and $cinit functions which are the one defining the classes and initializing their static variables. Also, how does the compiler deal with typing? Statically typed, compiled languages usually have the type set in stone at compile time whereas dynamically typed, interpreted languages like javascript and php can do type coercion at runtime on the fly. Which one does the Actionscript 3.0 runtime do? Does it do both depending on whether the type is static or dynamic? The complete class structure with type is stored into the Flash9 SWF. Then local (per-function) type-inference is performed to check the types coherency. There is some bytecode options that perform type-casting. For instance everytime a value is stored into an untyped variable, the opcode 0x82 is forgetting about the original value type. This makes things actually pretty difficult for other languages with different type system to be compiled to Flash9 bytecode, but I could succeed in doing it for haXe (http://haxe.org). I started documenting the Flash9 file format on http://osflash.org/flash9, you can start reading there, but only the haXe swf library sources are containing the complete specification : http://cvs.motion-twin.com/horde/chora/browse.php?rt=ocamlf=swflib Nicolas ___ 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] Strange flashing bug
Hi I have come up against a very strange bug that I can't work out the cause... I've built a game that used to work just fine. Recently some of the graphics in the game were updated and resent to me from the designer. I copied them in. Now the bug occurs: In certain parts of the game a few of my mcs start flashing - like the visibility is repeatedly turning on and off. I trace the visibility on a frame interval on the mcs and it always returns true. To solve this all I have to do is to go into one of the affected mcs and simply make a change like locking and unlocking all of it's layers, no graphics or code changes required. I republish and the flashing stops. I then go into one of the other affected mcs and do the same weird fix. This fixes the second mc flashing bug but the first one appears again! Any ideas? I'm completely stumped. ___ 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] Strange flashing bug
Further to this post I managed to resolve the bug. The bug is on Flash 8 pro Mac version. By publishing the same files on PC the bug was resolved. Annoying for me as I prefer to work on Mac. From: Nick Kuh [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Sun, 20 Aug 2006 11:25:22 +0200 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Strange flashing bug Hi I have come up against a very strange bug that I can't work out the cause... I've built a game that used to work just fine. Recently some of the graphics in the game were updated and resent to me from the designer. I copied them in. Now the bug occurs: In certain parts of the game a few of my mcs start flashing - like the visibility is repeatedly turning on and off. I trace the visibility on a frame interval on the mcs and it always returns true. To solve this all I have to do is to go into one of the affected mcs and simply make a change like locking and unlocking all of it's layers, no graphics or code changes required. I republish and the flashing stops. I then go into one of the other affected mcs and do the same weird fix. This fixes the second mc flashing bug but the first one appears again! Any ideas? I'm completely stumped. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Best way to learn OO Analysis and Design with ActionScript
http://www.amazon.com/gp/product/0735713804/104-7942318-0256721?v=glancen=283155 Sorry authors... but I found this book to be a waste of space. Too much sucking up, too little content. Maybe, if you already know about OOP it doesn't really help bring anything new to the table, It is clearly a book about Object Orientated Programming, which uses AS2 as it's example language, rather than a book about Flash/AS2 if that;s what you mean - I think that's why it's titled 'Object Orientated Programming with ActionScript 2.0' and on the cover the 'with ActionScript 2.0' part is almost a subtitle, I found the bits I read on OO principles to be accurate and well explained. also, I came to Flash recently (as in about 6 weeks ago) and I found it very useful to get all the information in one place, i.e. does AS2 have abstract interfaces?, is there try...catch construct for unit testing with assertions?, are classnames treated as types, can you override the constructor of a superclass in the subclass? This book collects this information together in the context of OO principles, rather than in some alphabetical AS2 dictionary. I'm not recommending it over any other book, because I don't know all the books (being a newbie) but I found it less 'sucking up' then most computer books I have read, and I must have read at least 5 this week. Ultimately the bible of OO analysis and Design is Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process by Craig Larman but I guarantee you will be asleep before you finish chapter 1. :-) http://www.amazon.com/gp/product/0130925691/104-7942318-0256721?v=glancen=283155 James ___ 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] Strange flashing bug
Ack! I've had almost the same problem before, but I was never publishing on a Mac, always from a PC :/ Although my clips weren't flashing, they were just not appearing... Still haven't figured out why it's happening :( On 8/20/06, Nick Kuh [EMAIL PROTECTED] wrote: Further to this post I managed to resolve the bug. The bug is on Flash 8 pro Mac version. By publishing the same files on PC the bug was resolved. Annoying for me as I prefer to work on Mac. From: Nick Kuh [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Sun, 20 Aug 2006 11:25:22 +0200 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Strange flashing bug Hi I have come up against a very strange bug that I can't work out the cause... I've built a game that used to work just fine. Recently some of the graphics in the game were updated and resent to me from the designer. I copied them in. Now the bug occurs: In certain parts of the game a few of my mcs start flashing - like the visibility is repeatedly turning on and off. I trace the visibility on a frame interval on the mcs and it always returns true. To solve this all I have to do is to go into one of the affected mcs and simply make a change like locking and unlocking all of it's layers, no graphics or code changes required. I republish and the flashing stops. I then go into one of the other affected mcs and do the same weird fix. This fixes the second mc flashing bug but the first one appears again! Any ideas? I'm completely stumped. ___ 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] Flash 8 generate xml file for input
Thanks Tom and Julien - very useful links and advice. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of julien castelain Sent: 19 August 2006 13:00 To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash 8 generate xml file for input hi paul, maybe these links could be usefull : xml from flash : http://www.kirupa.com/web/xml/XMLsending1.htm php mail function: http://fr.php.net/manual/en/ref.mail.php cheers On 8/19/06, Paul Steven [EMAIL PROTECTED] wrote: I am creating an online app in Flash 8 that allows users to design t-shirts by adding various elements from drop down boxes, and entering some text to appear on the t-shirt. They can set the formatting of the text using drop down boxes. In order for the client to recreate the orders at their end I need to send the custom design data to the client which they can then import into a copy of the t-shirt designer app and the design will be recreated. Anyway I am thinking the best bet is to generate an xml file of the data and email this to the client. The version of the app the client has will then have the ability to import the xml file. So basically I am looking for any resources or tips on generating an xml file from flash and emailing this xml file to a specified email address. My server supports PHP so ideally a solution using PHP is required assuming Flash cannot do all this on its own. Many 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 ___ 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] Strange flashing bug
I had a similar problem with graphics not appearing, mine being jpgs from the library that I had placed on the stage. Originally I just placed the jpg (bitmap) directly on the stage and when published they were not appearing. However when I made the jpg a group (CTRL - G), this seemed to solve the problem. No idea why though Btw this was on a PC. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shane Korin Sent: 20 August 2006 11:44 To: Flashcoders mailing list Subject: Re: [Flashcoders] Strange flashing bug Ack! I've had almost the same problem before, but I was never publishing on a Mac, always from a PC :/ Although my clips weren't flashing, they were just not appearing... Still haven't figured out why it's happening :( On 8/20/06, Nick Kuh [EMAIL PROTECTED] wrote: Further to this post I managed to resolve the bug. The bug is on Flash 8 pro Mac version. By publishing the same files on PC the bug was resolved. Annoying for me as I prefer to work on Mac. From: Nick Kuh [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Sun, 20 Aug 2006 11:25:22 +0200 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Strange flashing bug Hi I have come up against a very strange bug that I can't work out the cause... I've built a game that used to work just fine. Recently some of the graphics in the game were updated and resent to me from the designer. I copied them in. Now the bug occurs: In certain parts of the game a few of my mcs start flashing - like the visibility is repeatedly turning on and off. I trace the visibility on a frame interval on the mcs and it always returns true. To solve this all I have to do is to go into one of the affected mcs and simply make a change like locking and unlocking all of it's layers, no graphics or code changes required. I republish and the flashing stops. I then go into one of the other affected mcs and do the same weird fix. This fixes the second mc flashing bug but the first one appears again! Any ideas? I'm completely stumped. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Import fonts at runtime
My application allows users to type text using a font chosen from a drop down list of fonts. I was wondering if it is possible to import the actual font at runtime rather than embedding all the fonts (there may be about 100 fonts). Hence I would have a folder containing a ttf file or swf for each font. When the user selects a font, it will load this font. Basically just don't want the user to have to download all 100 fonts when they may only use 1 of them. 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
Re: [Flashcoders] ClassFactory and Reflection in Actionscript 3.0
I'm coding an introspection framework for as3, but i have a problem by creating instance at runtime without using new operator. I have no problem to create instances of classes with no operators at its construction function. The code is this one: public class ClassFactory{ public static function createInstance(className:String):Object var clazz:Class = getDefinitionByName(className) as Class; return new clazz() } } I need a factory to create instance with an array of arguments, of this kind: public static function createInstance(name:String, args:Array):Object any idea?? Unfortunately this can't be done in AS3. I asked this before and the workaround suggested by an Adobe engineer was to use a well known initialization method in your classes and call them after invoking the constructor. But this is obviously not feasible if you need to work with existing classes and/or want to create a generic framework with such capabilities. This is one of the areas where you have more limitations in AS3 than you used to have in AS2. I really hope AS4 will introduce something like: Class.newInstance(args:Array) Jens www.oregano-server.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] Workflow question: attaching scripts to external movieClips
I was searching for a solution to an issue that I am having and I came across a post in the Flashcoders archive from 2005. The post describes exactly the same issues I am having right now, but it was unfortunately never answered. If anyone can address the issues described in the post below, it would be GREATLY appreciated as it is making me absolutely insane at the moment. http://chattyfig.figleaf.com/pipermail/flashcoders/2005-September/150253.html Joseph ___ 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] strange scope behaviour
Hello, just take a while and try this: function area55() { if (_root) { trace(_root true) function f() { var g; var h; } } //g=0 trace(f +f) function h() { } function jj() { for (var i in this) { trace(i+ : +this[i]); } } jj(); } area55(); and this: function area55() { function f() { var g; var h; } //g=0 trace(f +f) function h() { } function jj() { for (var i in this) { trace(i+ : +this[i]); } } jj(); } area55(); why the function f is not even seen, after for sure the if statement is true MW ___ 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] Cant access sound.id3 tags despite seemingly correct crossdomain.xml file
I cant access my sound file's ID3 tags. My crossdomain.xml file is at the root of storage.elroynetworks.com and all of my sound files are there. But the the flash security system wont let me access the ID3. I can of course access the sound. Here is my crossdomain.xml ?xml version=1.0 ? - cross-domain-policy allow-access-from domain=* / /cross-domain-policy Any clues? Hank ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Best way to learn OO Analysis and Design with ActionScript
I am very interested in this topic since I really need to adopt OOP and UML to get a better overview of the tasks I am trying to code for.The books look very useful.This article is really good on UML... http://bdn.borland.com/article/0,1410,31863,00.html I am trying to create a math's Fraction object that can relate to various realities in which in can apply itself. Does anyone know of any detailed examples of state diagrams and activity diagrams? Under images on google I have searched for State Diagram etc but I need deep, practical examples if I am going to understand how to create my classes. John - Original Message - From: james [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, August 20, 2006 11:42 AM Subject: Re: [Flashcoders] RE: Best way to learn OO Analysis and Design with ActionScript http://www.amazon.com/gp/product/0735713804/104-7942318-0256721?v=glancen=283155 Sorry authors... but I found this book to be a waste of space. Too much sucking up, too little content. Maybe, if you already know about OOP it doesn't really help bring anything new to the table, It is clearly a book about Object Orientated Programming, which uses AS2 as it's example language, rather than a book about Flash/AS2 if that;s what you mean - I think that's why it's titled 'Object Orientated Programming with ActionScript 2.0' and on the cover the 'with ActionScript 2.0' part is almost a subtitle, I found the bits I read on OO principles to be accurate and well explained. also, I came to Flash recently (as in about 6 weeks ago) and I found it very useful to get all the information in one place, i.e. does AS2 have abstract interfaces?, is there try...catch construct for unit testing with assertions?, are classnames treated as types, can you override the constructor of a superclass in the subclass? This book collects this information together in the context of OO principles, rather than in some alphabetical AS2 dictionary. I'm not recommending it over any other book, because I don't know all the books (being a newbie) but I found it less 'sucking up' then most computer books I have read, and I must have read at least 5 this week. Ultimately the bible of OO analysis and Design is Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process by Craig Larman but I guarantee you will be asleep before you finish chapter 1. :-) http://www.amazon.com/gp/product/0130925691/104-7942318-0256721?v=glancen=283155 James ___ 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] ClassFactory and Reflection in Actionscript
Oh, it's very sad. I developed a script language that can be loaded and run at runtime in a flash movie. At this moment I can create instances with no arguments, it's very impressive, but if I can not pass arguments I can't continue the project. I'm coding an introspection framework for as3, but i have a problem by creating instance at runtime without using new operator. I have no problem to create instances of classes with no operators at its construction function. The code is this one: public class ClassFactory{ public static function createInstance(className:String):Object var clazz:Class = getDefinitionByName(className) as Class; return new clazz() } } I need a factory to create instance with an array of arguments, of this kind: public static function createInstance(name:String, args:Array):Object any idea?? Unfortunately this can't be done in AS3. I asked this before and the workaround suggested by an Adobe engineer was to use a well known initialization method in your classes and call them after invoking the constructor. But this is obviously not feasible if you need to work with existing classes and/or want to create a generic framework with such capabilities. This is one of the areas where you have more limitations in AS3 than you used to have in AS2. I really hope AS4 will introduce something like: Class.newInstance(args:Array) Jens www.oregano-server.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
Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES
Hey guys thanks for the code and input. The route I think I'm taking because it's html text and formatted, is to keep trimming at br's and checking if page is not too high. The page to print symbol I'm using has an aspect ratio for an A4 page (1: 1.414) and one big html text field (with 20px blank padding around it) Here's the code (which works) so far: private function processPagesToPrint():Void { _pagesToPrint=[]; _excessText=entireHtmlFormattedTextContent;// can be a few lines or pages constructPage(); } private function constructPage():Void { var pageToPrint=this.attachMovie ('pageToPrint_justText','p'+(_pagesToPrint.length+1),getNextHighestDepth(),{_x:720}); _pagesToPrint.push(pageToPrint); var tf:TextField=pageToPrint.tf; tf.styleSheet=STYLESHEET; tf.htmlText=_excessText; // if the page is not too high without having to trim we're good to go if(tf.textHeight=tf._height){ trace('pages processed, and number to print ='+_pagesToPrint.length); // display this info to user so they know before they hit print } // otherwise we'll trim and then construct another page else{ _excessText=; trimPage(tf); } } private function trimPage(tf:TextField):Void { // cut the text after the last 'br' var str:String=tf.htmlText; var lastBr=str.lastIndexOf('br'); tf.htmlText=str.substring(0,lastBr); _excessText=str.substring(lastBr,str.length)+_excessText; // if page is trimmed enough if(tf.textHeight=tf._height){ constructPage(); } // otherwise keep trimmin else{ trimPage(tf); } } private function printPages():Void { _printJob=new PrintJob(); if(_printJob.start()){ var len=_pagesToPrint.length; for(var i=0;ilen;i++){ _printJob.addPage(_pagesToPrint[i]); } _printJob.send(); } } On 8/18/06, Danny Kodicek [EMAIL PROTECTED] wrote: How can you efficiently fill a textfield to the point in which you know it is completely full? Here's a revised version using a word array. But as I said, including formatting would be more difficult and significantly slower. I tend to agree with Meinte that in this case you're better off using scrolling (although the function below may be of interest in any case) function fillField(fld:TextField, txt:Array, curr:String) { if (curr == undefined) { curr = ; } var len:Number = txt.length; if (len == 0) { } else if (len == 1) { fld.text = curr + txt[0]; if (fld.textHeight fld._height) { fld.text = curr; } } else { var half:Array = txt.slice(0, len / 2); fld.text = curr + half.join( ); if (fld.textHeight fld._height) { fillField(fld, half, curr); } else { fillField(fld, txt.slice(len / 2), fld.text + ); } } } I tested it with fillField(test, src.text.split( )); 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] ClassFactory and Reflection in Actionscript
Could you send the parameters/arguments into a text file and retrieve them from there using loadVars? John - Original Message - From: Miguel Serrano [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Sunday, August 20, 2006 6:45 PM Subject: Re: [Flashcoders] ClassFactory and Reflection in Actionscript Oh, it's very sad. I developed a script language that can be loaded and run at runtime in a flash movie. At this moment I can create instances with no arguments, it's very impressive, but if I can not pass arguments I can't continue the project. I'm coding an introspection framework for as3, but i have a problem by creating instance at runtime without using new operator. I have no problem to create instances of classes with no operators at its construction function. The code is this one: public class ClassFactory{ public static function createInstance(className:String):Object var clazz:Class = getDefinitionByName(className) as Class; return new clazz() } } I need a factory to create instance with an array of arguments, of this kind: public static function createInstance(name:String, args:Array):Object any idea?? Unfortunately this can't be done in AS3. I asked this before and the workaround suggested by an Adobe engineer was to use a well known initialization method in your classes and call them after invoking the constructor. But this is obviously not feasible if you need to work with existing classes and/or want to create a generic framework with such capabilities. This is one of the areas where you have more limitations in AS3 than you used to have in AS2. I really hope AS4 will introduce something like: Class.newInstance(args:Array) Jens www.oregano-server.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@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] strange scope behaviour
AS 1 and 2 actually do have a strange (buggy?) way to handle function definitions in block statements like for, catch, try, finally and if. As there is no block-level scope in ActionScript we'd expect that function definitions are scoped to the parent timeline / surrounding scope - however they are not: { function test(){} trace(test); } Output in AS 1 2 : undefined In AS3 however function definitions inside these block statements do behave as expected and are scoped to the surrounding scope (local scope of the function that holds the block or to the timeline the code is on). The output of above sample in AS3 is therefore: function Function() {} Some more info: http://livedocs.macromedia.com/labs/as3preview/docs/0032.html hth -- Andreas Weber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Weiser Sent: Sonntag, 20. August 2006 18:11 To: Flashcoders mailing list Subject: [Flashcoders] strange scope behaviour Hello, just take a while and try this: function area55() { if (_root) { trace(_root true) function f() { var g; var h; } } //g=0 trace(f +f) function h() { } function jj() { for (var i in this) { trace(i+ : +this[i]); } } jj(); } area55(); and this: function area55() { function f() { var g; var h; } //g=0 trace(f +f) function h() { } function jj() { for (var i in this) { trace(i+ : +this[i]); } } jj(); } area55(); why the function f is not even seen, after for sure the if statement is true MW ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Best way to learn OO Analysis and Design with ActionScript
I am trying to create a math's Fraction object that can relate to various realities in which in can apply itself. Does anyone know of any detailed examples of state diagrams and activity diagrams? Under images on google I have searched for State Diagram etc but I need deep, practical examples if I am going to understand how to create my classes. John I know state diagrams have been used longer that many other UML diagrams since they are applicable to non OOP - I have a old C book which I found in the basement which has a state chart for 'writing ascii to a magnetic drive' program. the UML book I have 'Appying UML and Patterns' (link in previous email) calls them 'statechart diagrams' and has 10 page chapter which goes through a couple of examples, an EPOS system and a telephone exchange. there are some links at the bottom of this page http://en.wikipedia.org/wiki/State_diagram Are you saying your object would have a sort of intellegence as to when it is needed? Happy to talk more, but maybe this is not actionscript related enough for the list, does anyone know of a UML and Flash list?, I can set one up at Yahoo groups, that way we could use the images section on the web page to upload UML diagrams... James ___ 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] FLV, attachMovie, and missing controls
I have a 4 megabyte flv file that loads via attachMovie into my swf file. When I run from my computer everything works fine. Once I post the swf on the net, the controls (play, pause, volume) disappear when I load the movie. Any tips? Thanks, Jeff ___ 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] [Ann-FlashDev-Syd] Flash's 10th Birthday Celebrations
The next meeting on the 28th August is a special 10th birthday celebration fro Flash. There'll be a special presentation by Kevin Lynch, Mike Downey, Mike Chambers and Eric Wittman, all of Adobe. There'll give-a-ways and prizes including software to those who rsvp. The meeting is on at 6:30pm for 7pm start and finishes around 8:30pm. Details about the group, venue and program are available from http://www.flashdev.org.au. Please also note, the meetings and the use of the club are free and Adobe will be providing beverages and/or snacks. Please RSVP at http://www.flashdev.org.au/rsvp. (Put yourself on the http://www.frappr.com/flashdevelopers map) Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Best way to learn OO Analysis and Design with ActionScript
also, I came to Flash recently (as in about 6 weeks ago) and I found it very useful to get all the information in one place, i.e. does AS2 have abstract interfaces?, is there try...catch construct for unit testing with assertions?, are classnames treated as types, can you override the constructor of a superclass in the subclass? This book collects this information together in the context of OO principles, rather than in some alphabetical AS2 dictionary. Hi James, I was not trying to hose your review, but if you're not a hobbyist then there are better books out there. I've read a lot of flash books over the years, the only ones that really stuck with me where green and white with an animal on the front. ie. O'Reilly. The only exception was Robert Penner's first book: http://www.amazon.com/gp/product/0072223561/sr=8-1/qid=1156120988/ref=pd_bbs_1/103-4690969-4407040?ie=UTF8 I battled furiously to get my head around Object-Oriented Programming with Actionscript http://www.amazon.com/gp/product/0735711836/sr=8-2/qid=1156121055/ref=sr_1_2/103-4690969-4407040?ie=UTF8 only to find that looking back a lot of the explanations largely added to my confusion. IMHO your recommendation wasn't hard to follow but it did lack depth. The Head First books are excellent. The Java book is not a waste of time either. If you're trying to get your head around OOP it helps enormously to get the information first hand and the best references will always give Java and/or C++ examples. Tony ___ 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] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES
My approach to printing oodles of multiline text is to let the browser do it: * When the print button is pressed, save the contents of the text field to a Local Shared Object * Open up an empty HTML page, which has as invisible flash movie which can then: o Read that shared object. o Pass the data that needs to be printed to a JS function which... o ...uses DOM to inject that data onto the page. Simple, and quite elegant, if I say so my self. I've done this before for arrays of objects, and it has worked a treat. The Flash/Javascript bridge comes in handy here as well. Peter O'Brien wrote: I have the same problem as the original poster. I don't suppose anyone can provide more info as a solution than Hans, or Hans if you're there I would love to see some code. What are flash mc dimensions to match an A4 page? Doesn't it vary according to screen resolution? How can you efficiently fill a textfield to the point in which you know it is completely full? Cheers, Pete -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove ___ 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] htacess and loaded SWFs
Hi folks, I've spent all evening trying to find an answer to this question, and I've just recently subscribed to this list, so I apologize in advance if this has already been covered. I have set up a directory to serve up SWFs from with an htaccess file that prevents direct access to the SWFs or from domains other than my own. This is working fine... when an HTML or PHP file on my domain is the file that is loading the SWF. However, when the same HTML or PHP file loads a SWF that then tries to load another SWF from the same directory, htaccess prevents it. I am using a MovieClipLoader to load the external SWF. How is loading a SWF from within a SWF different to Apache than loading the same SWF from an HTML or PHP file? I'm pulling my hair out here. Thanks in advance. Jay ___ 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] htacess and loaded SWFs
This would be why: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712 Currently the SWF format does not include HTTP referrer information when sending http requests. Macromedia is aware of this issue and is considering possible future solutions. Jay Bibby wrote: Hi folks, I've spent all evening trying to find an answer to this question, and I've just recently subscribed to this list, so I apologize in advance if this has already been covered. I have set up a directory to serve up SWFs from with an htaccess file that prevents direct access to the SWFs or from domains other than my own. This is working fine... when an HTML or PHP file on my domain is the file that is loading the SWF. However, when the same HTML or PHP file loads a SWF that then tries to load another SWF from the same directory, htaccess prevents it. I am using a MovieClipLoader to load the external SWF. How is loading a SWF from within a SWF different to Apache than loading the same SWF from an HTML or PHP file? I'm pulling my hair out here. Thanks in advance. Jay ___ 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 -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove ___ 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] Component bug after converting to compiled clip
Hello everyone, I have been working with flash since version 4, though I only started my first steps on to component development 5 months ago. I have successfully developed a few components, like a tooltip manager, a movieclip scrollbar and a combo box. The reson I write you is because on the latest project I am developing, I created a special kind of combo box which works fine on the site, if I don't compile it. If I create a compiled clip, a red square apears inside it, from no where and I haven't got a clue what causes this. Has anyone had similar problems or something related ? Thanks a lot for all support. Telmo Dias www.void.pt ___ 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] htacess and loaded SWFs
Hi there, Does anybody know if there is free weather forecast web-service? I went to the yahoo website but all I could find is an RSS feed, which seems to be a bit buggy. Plus it only gives you the forecast the next day. Thanks Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Haikal Saadh Sent: Monday, 21 August 2006 1:51 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] htacess and loaded SWFs This would be why: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712 Currently the SWF format does not include HTTP referrer information when sending http requests. Macromedia is aware of this issue and is considering possible future solutions. Jay Bibby wrote: Hi folks, I've spent all evening trying to find an answer to this question, and I've just recently subscribed to this list, so I apologize in advance if this has already been covered. I have set up a directory to serve up SWFs from with an htaccess file that prevents direct access to the SWFs or from domains other than my own. This is working fine... when an HTML or PHP file on my domain is the file that is loading the SWF. However, when the same HTML or PHP file loads a SWF that then tries to load another SWF from the same directory, htaccess prevents it. I am using a MovieClipLoader to load the external SWF. How is loading a SWF from within a SWF different to Apache than loading the same SWF from an HTML or PHP file? I'm pulling my hair out here. Thanks in advance. Jay ___ 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 -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove ___ 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] htacess and loaded SWFs
Hey Robin, Try http://www.webservicex.net/WS/WSDetails.aspx?CATID=12WSID=56 I used ServiceCapture on Eric Dolecki's blog www.ericd.net and found it in the traffic logs Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer Sent: Monday, 21 August 2006 2:37 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] htacess and loaded SWFs Hi there, Does anybody know if there is free weather forecast web-service? I went to the yahoo website but all I could find is an RSS feed, which seems to be a bit buggy. Plus it only gives you the forecast the next day. Thanks Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Haikal Saadh Sent: Monday, 21 August 2006 1:51 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] htacess and loaded SWFs This would be why: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712 Currently the SWF format does not include HTTP referrer information when sending http requests. Macromedia is aware of this issue and is considering possible future solutions. Jay Bibby wrote: Hi folks, I've spent all evening trying to find an answer to this question, and I've just recently subscribed to this list, so I apologize in advance if this has already been covered. I have set up a directory to serve up SWFs from with an htaccess file that prevents direct access to the SWFs or from domains other than my own. This is working fine... when an HTML or PHP file on my domain is the file that is loading the SWF. However, when the same HTML or PHP file loads a SWF that then tries to load another SWF from the same directory, htaccess prevents it. I am using a MovieClipLoader to load the external SWF. How is loading a SWF from within a SWF different to Apache than loading the same SWF from an HTML or PHP file? I'm pulling my hair out here. Thanks in advance. Jay ___ 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 -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove ___ 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] RE: weather web service
Thanks Bjorn, This one seems to be a bit better than the Yahoo feed. What I like about the yahoo feed though is that it returns you a weather code for each weather condition (e.g. 29 for cloudy). This is really handy if you want visualize the current weather condition. Well I guess you can't have it all... Cheers Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Monday, 21 August 2006 2:53 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] htacess and loaded SWFs Hey Robin, Try http://www.webservicex.net/WS/WSDetails.aspx?CATID=12WSID=56 I used ServiceCapture on Eric Dolecki's blog www.ericd.net and found it in the traffic logs Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer Sent: Monday, 21 August 2006 2:37 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] htacess and loaded SWFs Hi there, Does anybody know if there is free weather forecast web-service? I went to the yahoo website but all I could find is an RSS feed, which seems to be a bit buggy. Plus it only gives you the forecast the next day. Thanks Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Haikal Saadh Sent: Monday, 21 August 2006 1:51 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] htacess and loaded SWFs This would be why: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712 Currently the SWF format does not include HTTP referrer information when sending http requests. Macromedia is aware of this issue and is considering possible future solutions. Jay Bibby wrote: Hi folks, I've spent all evening trying to find an answer to this question, and I've just recently subscribed to this list, so I apologize in advance if this has already been covered. I have set up a directory to serve up SWFs from with an htaccess file that prevents direct access to the SWFs or from domains other than my own. This is working fine... when an HTML or PHP file on my domain is the file that is loading the SWF. However, when the same HTML or PHP file loads a SWF that then tries to load another SWF from the same directory, htaccess prevents it. I am using a MovieClipLoader to load the external SWF. How is loading a SWF from within a SWF different to Apache than loading the same SWF from an HTML or PHP file? I'm pulling my hair out here. Thanks in advance. Jay ___ 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 -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Live Preview and Laying out Components
Doing a little looking about Flash Components, and I've made some skinnable components. Now, in the default instance, they're quite boring, the idea being that you associate them with various movie clip instances in the Library to customise the look of these components. (I.e, each instance on the stage will look different) This is all well and good, but I've hit a bit of a problem when it comes to actually laying these out on the stage; Now, according to http://www.flashsim.com/newsletter/v2n3.html, compiling these clips will give me a live preview, however, the live preview will not actually reflect the state of these components. This makes it pretty useless to me, as far as being an aid to laying them out on the stage goes. Any suggestions on what to do? Just guess based on the bounding box? -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove ___ 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