[Flashcoders] AS3: Static functions and events ...
Is there anyway for a static function within a class to fire off an event? assuming the static function exists within a class that has no constructor (ie: is never instantiated). As I understand it, for another object to be listening for the event, said object must have a local refence to the class doing the dispatching? Anyway around this. SF. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 : Flash IDE Base Class question ...
Example: I've drawn a 50x50 red square in the Flash IDE, and converted it to a new "MovieClip", giving it a name of "Box". I've then selected "Export for Actionscript", at which point said clip is given the default "Base Class" of: flash.display.MovieClip So I then create a Class file, Box.as. Within this Class definition, I use the following: public class Box extends Sprite So my question: Is the compiler now using Sprite as the Base Class for my Box class (as per the Class definition) or is it still using MovieClip (as per the IDE)? So the short version: What is the correlation between a clip's Base Class within the IDE and the Class which it extends (if any) within it's Class definition (if defined/created). Cheers, Stephen.___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Giving all objects new methods ...
AS3 Question: Is there a way to give all classes in every package a couple of new methods? I want to create a couple of new custom trace methods and have them available for every class within the type heirachy. Currently, I've extended the Sprite type to include these trace methods and most of my classes then extend this new Sprite type (which I've called SpriteX). Therefore the new functions are accessed as such: tracer("trace my string biatch", 0); However, I've also extended the Event class with a new Event type, but can only access these new trace methods via a direct reference to the public static functions within the new Sprite type. i.e: SpriteX.tracer("trace my string biatch", 0); I want all types to be able to call the method directly as an internal function. So I could possibly hack the native flash Object type, is this the best way to do this? Cheers, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] German subtext ...
Did anyone else receive a german email after posting to flashcoders today? Here is my question again anyway: Is it me or doesn't the transform gradient tool in Flash 9 work ??___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Transform Gradient tool in Flash 9 ...
Is it me or doesn't the transform gradient tool in Flash 9 not work ???___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: wedging in a preloader -- lazy developer alert!
As I see it you have two options: (1) Create a wrapper SWF or (2) Export all classes after the first frame and create an AS1 preloader in the first frame of the main timeline. Cheers.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 and the Xbox 360 ...
Just got my hands on an Xbox 360.Can anyone tell if there is any type of development sites resources for the 360.Does it have even have the Flash Player, can you view flash files via the Xbox 360 OS.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Microsoft Silverlight ...
What do you make of Microsoft's Silverlight:http://www.microsoft.com/silverlight/default_01.aspxTheir site sucks for starters, but anyone have any thoughts on what impact this will have on Flash ?___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] WebServices in Flash IDE ...
Yes thanks all - the question has been answered. Both gave some great insight. Cheers.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: xml socket server ...
Thanks Muzak,I found that link, it doesn't say how to implement or create the socket server from that java code though (I'm a server novice - it's probably quite simple).But I found this one: http://multiuser.web-cd.net/en/default.aspxI got it working enough to understand how xmlSocket works. But I'm onto remoting now - it seems AMFPHP is the full blown way to go for data apps in Flash.Thanks again.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] xml socket server ...
Does anyone know how I can set up a local xml socket server on my pc to test with the xmlSocket object in flash.Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: WebServices in Flash IDE ...
Thanks Muzak. I found the problem. Changed a setting in IE7 and now it works (prompted when viewing in the browser).I'll look into ARP.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: xmlSocket ...
Thanks Mark. I'll take a look at the moock server.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] xmlSocket ...
I am playing around with xmlSocket.Does anyone have a host and port I can connect to just for test purposes?.I use WAMP server locally, is it possible to configure WAMP as a host for xmlSocket.Any pointers also welcome.Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] WebServices in Flash IDE ...
I can't define web services in the flash IDE.For any URL (and I've tried 5 different ones) I get the following message:"WSDL download failed for the following URLs:"Anyone know a fix for this or why this might be happening?.One possibly fix I stumbled upon was to delete everything in the 'Local Settings > Temp' folder, but this didn't work for me.Does anyone user the Web Services panel in Flash IDE - is it worth learning about ?, or do you keep everything in code when connecting to services.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] MovieClipLoader ...
Thanks Muzak,How to best initialize EventDispatcher outside the constructor via a static property ?How would you do this?___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] MovieClipLoader ...
Can anyone see why the callback events on the oLoadListener object in the following class aren't firing:import mx.data.binding.ObjectDumper;import mx.events.EventDispatcher;import mx.utils.Delegate;class TowerVideoPlayer extends MovieClip {// // PROPERTIES// // String values of class name and class versionpublic var sClassName:String; public var sVersion:String;// Class variables for EventDispatcher private var dispatchEvent:Functionpublic var addEventListener:Function; public var removeEventListener:Function;// Sound object for the video private var sndVideo:Sound;// Value of the video's sound object private var bSound:Boolean;// Data for loading of SWFsprivate var xmlVideo:XML;// Holder clip for the loaded SWFprivate var mcHolder:MovieClip;// MovieClipLoader for the SWFprivate var mclLoader:MovieClipLoader;// Load listener for SWFsprivate var oLoadListener:Object;// // CONSTRUCTOR// public function TowerVideoPlayer(){setup();}// // FUNCTIONS// private function setup():Void{trace("TowerVideoPlayer.setup()"); sClassName = "TowerVideoPlayer";sVersion = "0.0.1"; bSound = true;oLoadListener = new Object();mcHolder = createEmptyMovieClip("mcHolder", this.getNextHighestDepth());mclLoader = new MovieClipLoader();// Initialise event dispatcher EventDispatcher.initialize(this); oLoadListener.onLoadComplete = function(mcTarget:MovieClip, httpStatus:Number):Void{trace(">> loadListener.onLoadComplete()");} oLoadListener.onLoadInit = function(mcTarget:MovieClip):Void{ trace(">> loadListener.onLoadInit()");} mclLoader.addListener(oLoadListener); mclLoader.loadClip("http://www.w3.org/Icons/w3c_main.png";, mcHolder); trace(ObjectDumper.toString(this));} }___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Video delivery process ...
Hi,How do I preload video when the target player is 7?.The delivery technique I'm using is progressive download.Should I be using a proxy SWF to load an external FLV (because the Video class in Flash doesn't have anyway of polling the size of an external FLV, or how much of that FLV is loaded - unless I'm missing something).Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash and video optimisation ....
Is there any point using a third-party application to optimize video for Flash.Or is it best just to use the video import feature of the Flash IDE.The delivery technique I'm using is external progressive download.Do I need (do you recommend) any apps other than Flash itself to prepare/optimise video.Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Accessing all properties in an object ...
Anyone have a small script they use when they want to trace out both the name and values of all properties in an object. I'm sure I've done this before, but can't recall at the moment (I'm half asleep this morning). Something building on:var oObject:Object = {};for (var props in oObject) { trace(oObject[props]); }Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] RE: setting a timer in flash 8
var nInt:Number = setInterval(this, "myFunction", 2); function myFunction():Void { clearInterval(nInt); etc . etc . }___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: Object.registerClass ...
Excellent, thanks all. Makes perfect sense now.It's the dynamic version of symbol linkage in the IDE (main advantage, for my style of build, is to assign more than one symbol to a class).___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Object.registerClass ...
Is Object.registerClass no longer relevant when using AS2 and OOP structure.I understand AS2 class structure, inheritance, etc but am trying to understand how it was done in AS1 and if I need to know any of the techniques used before AS2.Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] What is deprecated from AS2 in AS3 ...
Anyone have a list of what is deprecated from AS2 when migrating to AS3 (or even whats deprecated from AS1 to AS2).I'm currently skimming every single class available in Flash AS2 and want to know what I can skip (i.e: what is no longer relevant).There must be a list of something like this online ?Thanks,Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] BROKEN ...
Flashcoders is BROKEN? ...___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: What do you think are the best Flash projects and RIA's
Go to www.thefwa.com and look around. You'll find plenty.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] What are your thoughts on creating a hook back vs Delegate ?
Which do you prefer:oThis:Object = this;mcClear.onRelease = function():Void{ oThis.clearForm();}ormcClear.onRelease = Delegate.create(this, clearForm);Also, anyone please let me know if my code formatting doesn't work (i.e: shouldn't be using hotmail to post)Thank.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Preloaders and Classes/Audio ...
As I understand it, the best way (or one of) to have a preloader start at 0% when using classes is to uncheck 'export in first frame' for all clips associated with a class in your movie, and set the export classes frame (in publish settings) to a frame other than frame 1. Then dump all clips that use a class onto a frame somewhere that the timeline never reaches. Finally, create an AS1 preloader (i.e: a preloader that isn't a class). And your set.So my question is - whats the best way to do the same (i.e: preloader starting at 0%) when using Audio ?. Is it just a case of unchecking 'export in first frame' on all audio in your library, then create an audio clip with a bunch of keyframes, each audio file from your library assigned to a keyframe ?Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] RE: Flashcoders Digest, Vol 24, Issue 66
Yes I'm already using setInterval to poll for a hitTest, but if the mouse has left the stage, flash doesn't seem to return a false for the hitTest ?___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Test if mouse is outside flash movie (within browser) ...
I have a bunch of tooltips in my flash movie.One of the hit areas of a movie clip that triggers a tooltip sits flush with the edge of the flash movie.When testing in the browser, if I mouse over this clip and continue outside the flash movie onto the HTML page, I can no longer poll the position of the mouse and then fade the tooltip if the mouse is no longer over the movie clip.Anyone advise on how I can resolve this ??Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] ASBroadcaster deprecated in AS3 ?
Is it true that ASBroadcaster is deprecated in AS3 ?I ask because I have been meaning to study a little more on EventBroadcaster and ASBroadcaster, but there is no point looking into ASBroadcaster if its deprecated in AS3.Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] RE: Re: XML and line breaks (Karina Steffens)
Thanks Karina, that was the other issue, setting htmlText to true instead of just 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
[Flashcoders] Re: XML and line breaks
Yes the solution was to use nodeValue instead of accessing just the node itself.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: XML and line breaks
Still having issues with creating line breaks in my text field. Here is the new XML: \n\n \n\nIn my flash code, I set the text field as txtField.htmlText = true; and assign the text with txtField.htmlText = xmlNode; but it's still not appearing correctly - the tags are appearing in the text fields (both the and the ).Any thoughts.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Datatypes that are complex/composite ...
Do you refer to the following datatypes (arrays, objects, movieclips, etc) as complex or composite.I'm finding references that use both terms.Not a biggie, but would like to hear opinions.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] XML and line breaks ...
I am populating a text field in my flash movie with the content of an external XML file.What is the best way to force a line break in my text field ?For example, if the following was the XML node:Text text text text. /n Text text textUnfortunately, the '/n' line break doesn't work, so do I need a function in my flash class that looks for any index of '/n' and then inserts a line break ?. Is there anyway to do this perhaps using an escape sequence in the XML file ?Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Microsoft Expression ...
Anyone tried any of the Expression apps yet, specifically Blend and Web ?Any thoughts ? I guess the Expression suite will be competing with the Apollo platform once it's released.Yes / No.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Why does this work in Flash 6 Actionscript 2 but not Flash 7 Actionscript 2 ...
Why does the following work when published as Flash 6 Actionscript 2, but not Flash 7 actionscript 2 (or Flash 8 Actionscript 2).var nInt:Number;var oMain:Object = {};var nCounter:Number;var sClipName:String;var nClipDepth:Number;function spawnClip():Void{var mcTemp:MovieClip = this.attachMovie("mcCircle", "mcCircle"+nCounter, nCounter, oMain); mcTemp._x = Math.random()*600;mcTemp._y = Math.random()*400; nCounter++;}nInt = setInterval(this, "spawnClip", 500);Thanks,Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Which technique do you use ...
Which of the following two techniques do you use when coding a similar (and common) process in actionscript:var mcTemp:MovieClip = this.attachMovie("mcCircle", "mcCircle"+nCounter, nCounter, oMain);mcTemp._x = Math.random()*600;mcTemp._y = Math.random()*400;nCounter++;or this.attachMovie("mcCircle", "mcCircle"+nCounter, nCounter, oMain);this["mcCircle"+nCounter]._x = Math.random()*600;this["mcCircle"+nCounter]._y = Math.random()*400; nCounter++;i.e: do you prefer to create a proxy clip when coding something like this (first example).Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] RE: setInterval and IE
Thanks Mick G.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: setInterval and IE
Using setInterval in a flashmovie that is loaded into an eyeblaster content management system. The movie is an over the page advertisement and apparently causes issues with IE (if using setInterval) because eyeblaster puts the ad onto the web page with a transparent window mode. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] setInterval and IE ...
Has anyone ever experienced any problems with using setIntervals in IE, both with window mode of transparent and without any window mode (normal) ? Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] How variables when using setInterval ...
Hello, Lets say you have 10 different setIntervals running within your class. Do you also declare 10 different variables for these intervals ? like so: private var nInt:Number; private var nInt2:Number; private var nInt3:Number; etc etc Or can you just declare one variable and use it multiple times (I'm guessing not because then when you clear the interval, all of them would stop). Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Text Field Manipulation/Effect ...
Hello, I'm working on a small interactive with a text manipulation/effect. There is a clip on stage that the user drags from right to left, and as they drag, a text field appears on screen (by scaling from a width of 0 to 100% - effectively stretching out to full width) following the dragging clip. Here is a link http://www.yourfilehost.com/media.php?cat=swf&file=728x90.swf So what I now need to do is have all the letters at full scale and piled on top of each other to begin with, then just drag them out into a full sentence (not just having the whole sentence as one clip that scales according to the position of the drag clip - as it currently does). Anyone seen any source that does a similar thing to this. Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Print Function and Callbacks ?
Does anyone know if Flash's built in Print command has anyway of providing a callback once a print job has been executed ?? I need to set a clips visibility to false while the printing takes place, then set it back to visible once the print executes ?? Is this possible ?? Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 AS2.0 classes/packages online ...
Is it possible to use actionscript classes that exist only online ? i.e: instead of: import com.website.utils.*; something like: import http://www.website.com/packages/com.website.utils*; ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Combobox ...
Thanks [EMAIL PROTECTED], but I should have added that I am entering the labels and data in the Parameters panel inside the Flash IDE. If anyone knows a way around this it would be great, but I might have to populate the Comboboxes dynamically with code. Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Combobox ...
I am trying to use "01" as a label for one of the items in my combobox, however flash won't display "01" - it cuts off the zero and just displays "1". Anyone know a way around this. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Classes and Preloading ...
Thanks Alain, I have used that technique before, but surely there must be another way without using multiple SWFs ? I am trying to keep everything together in one FLA file. Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Classes and Preloading ...
I'm using AS2 classes in my flash movie. I have created a class called Preloader. How can I load this class without loading all other classes. The problem is that when testing my movie, nothing appears onscreen until about 30% of the total movie has loaded (because by default flash loads all classes before anything else). You can select what frame of a movie to load your classes on, but what if you want to load all classes (except one class - in this case the Preloaded class) later than the first frame ??? so that your preloader is working straight away ??? Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Global sound control ...
I have an interactive demo that consists of one main SWF file that loads in other SWF files depending on what the user clicks on in the main SWFs navigation. Within this main SWF and within all the seperate SWFs are numerous movies each with their own timeline doing it's own thing. In numerous place on timelines throughout this set of SWFs, sound effects have been hardcoded onto their respective timeline (i.e: not loaded dynamically using the sound object). So is there any way to turn off sound globally regardless of where it's located on whatever timeline within whatever SWF. So I can just create an on/off button for the main SWF that will control sound globally ??? Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Player Active X and Plugin ...
Can someone explain (or point to a URL) the difference between Flash Player Installer Active X and Flash Player Installer Plugin ??? Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash webcam sites ...
I have recently purchased a webcam for my pc. Does anyone know of any sites (flash or other) that currently incorpotate webcams into their site. Community sites / online chat / etc, I want to see how webcams are currently being used on the net. I saw one site a while back that used flash with webcams, but can't recall the URL. Cheers.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Google Adsense in Flash ...
Hi, Has anyone successfully incorporated Google Adsense ads into their flash site ?? Is this currently possible ?? Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Tabbing and Components (again) ...
Hi, I have a flash application that has a couple of combo box components and a couple of text fields. Trying to tab between my text fields doesn't work, even though they are all tab enabled and have tab indexes. The reason for this, I have recently found out, is due to the combo box component - it breaks the tabbing. The workaround for this is to include the following line (after the first frame in my movie): _level0.focusManager.enabled = false; This works, HOWEVER, as soon as you choose something from the combo box, the tabbing is broken again ??? Any anyone assist with what is going on here and if there is a fix. Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Passing values to a backend
I have a created a little form in flash. I need to get the values into a backend. What I have is a variable called sQuery, like so: sQuery = questionnaire.asp?firstname=James%20J.&lastname=Delaney&jobtitle=Web%20Dev&[EMAIL PROTECTED]&company=The%20Factory&phone=34563456&customer=true&q1=7&q2=39 Now originally, I was simply using the following getURL: getURL(sQuery) Which would send them to the .asp page (which did it's backend thing) and they would be shown a thankyou page. BUT now, I need to send the values to the backend, but show the user a thankyou page in the flash app. Therefore I don't think I can use getURL. Can anyone advise on what I should be using now, do I need to use a LoadVars object or such ??? I need to 'fork' off the values to the database but stay on the page with the flash movie. Thanks in advance.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Tab, tab, tab ...
I have a number of movieclips in my flash application. Within these movieclips is one textfield. The movieclips all have an AS2.0 class definition. The problem I am having is tabbing between the textfields within these movieclips and I don't know what the problem is. If I copy a few of the movieclips and paste them into a blank flash movie, save it in the same place as my application (so it can access all the class files), then tabbing between the fields works fine ??? So does anyone have any idea why I can't tab between these text fields in my main application. Also, if I strip absolutely everything out of my application, and leave just the two or three textfield clips (that I copied over to the blank flash movie), they still dont' work. Can anyone please advise on this - I'm pulling my hair out. It's been hours and I'm getting nowhere. Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Classes, Components and a Greyed out box ...
I have a preloader class for my app that doesn't appear until more than half way through the loading of my entire application. This is because I have a flash v2 combo box further along in my application. I should know this, but how do I get my preloader (which is a class of it's own) up and running (it's about 2kb) so that it can actually show the loading of the entire application. If I go Edit > Preferences > (Category) Actionscript > Actionscript 2.0 settings, the 'Export frame for classes' box is greyed out and not editable (don't know if that would help anyway). Can anyone assist please. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS2 and watch ...
How often do you use 'watch' in your applications?. It seems pretty powerful to me, and I've only just discovered it. Any thoughts on this. Cheers, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Security Sandbox issue ...
Hello, I received this error while remotely debugging a swf: (15917) Connections: true | true*** Security Sandbox Violation ***Connection to http://my.abcnews.go.com/rsspublic/fp_rss20.xml halted - not permitted from http://localhost/test.swf I have added the file in question (http://localhost/test.swf) to the trusted locations list in the Global Security Settings of my Flash player, but still get the violation message. Can anyone advise on this. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS2 and Singleton woes ...
Sorry if you've read the same message from me three times. I keep getting a reply from flashcoders@chattyfig.figleaf.com saying my email has been bounced, but checking the archives shows that all three messages got through. Can anyone read this (or my last 3, very similar posts) post? Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS2 and Singleton woes ...
Hi, My singleton is throwing +256 levels of error. Below I will show the code from my .as file and from the .fla file: - DateShaper.as -class Sampler{private static var dsInstance:Sampler; // The master instance of this class public function Sampler(){getInstance();} public function getInstance():Sampler{trace("dsInstance: "+dsInstance); if(dsInstance == null) {dsInstance = new Sampler(); } return dsInstance; } } - myFile.fla - var mySampler:Sampler = new Sampler(); If you can see what I am doing wrong, please let me know. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS2 and Singleton causing dreaded loop error ...
Hi, My singleton is throwing +256 levels of error. Below I will show the code from my .as file and from the .fla file: < DateShaper.as > /class Sampler{// :: Private Properties ::private static var dsInstance:Sampler; // The master instance of this class // :: Constructor ::public function Sampler(){getInstance();} // :: Public Methods ::public function getInstance():Sampler{trace("dsInstance: "+dsInstance); // Implementing Singleton Patternif(dsInstance == null) // if an instance of the Sampler does not exist{dsInstance = new Sampler(); // create an instance of Sampler and store in class var} return dsInstance; // return class var reference} } / // < myFile.fla > /// var mySampler:Sampler = new Sampler(); // /// Can anyone see what I'm doing wrong. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Singleton issues with AS2 class ...
Hi, My singleton is throwing +256 levels of error. Below I will show the code from my class and code from the .fla: < DateShaper.as > /class Sampler{// :: Private Properties ::private static var dsInstance:Sampler; // The master instance of this class // :: Constructor ::public function Sampler(){ getInstance();} // :: Public Methods ::public function getInstance():Sampler{ trace("dsInstance: "+dsInstance); // Implementing Singleton Pattern if(dsInstance == null) // if an instance of the Sampler does not exist { dsInstance = new Sampler(); // create an instance of Sampler and store in class var } return dsInstance; // return class var reference} } / // < myFile.fla > /// var mySampler:Sampler = new Sampler(); // /// Can anyone see what I'm doing wrong ? Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Abstract Classes and Interfaces ...
Are Abstract Classes and Interfaces the same thing ? Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Sort within an object ....
I thought all objects were associative arrays ? Is this incorrect ? Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] The Delegate class ...
Hello All, Can anyone confirm that the Delegate class is only helpful when using components ? Or should it also be used for events outside the component framework ? No doubt it depends on what your trying to achieve, but just generally speaking, what do you think. Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] UML to AS2.0 classes ...
Hello all, I have searched the flashcoders archive for around 20 mins and couldn't find exactly what I need, so here is my question. Can anyone recommend, or does anyone know of, a tool for creating UML diagrams that will export a set of AS2.0 classes from said UML diagram. >From what I have found by googling, it would appear that the options are as >follows: (1) gmodeler.com (2) ArgoUML (or such UML tool) and osflash.org/xmi2as (3) Enterprise Arhcitect (or such UML tool) and osflash.org/xmi2actionscript Can anyone add to this or recommend one of the mentioned options ? Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] UML Modelling for AS2.0 applications ...
Can anyone recommend a good application or website for UML modelling of an AS2.0 application. I have taken a look at gmodeler and downloaded an application called Enterprise Architect, but can anyone recommend anything else I should look at. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] What does this code mean and What are Inspectables ...
Thanks all, Much appreciated. I now understand Inspectables and how they relate to classes/components/the flash IDE property panel. However, I shouldn't have compressed two questions into one. So the first part of my question remains. What does code appearing inside brackets mean, for example: [Event("click")] Does this have anything to do with the property panel inside the flash IDE ? or is this something else. Please advise if you can. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] What does this code mean and What are Inspectables ...
Hi all, FIRSTLY (1) I have found, in numerous AS2.0 code examples, code that looks like the following ... [Event("click")] ... i.e: code inside square brackets but nothing to do with arrays. Can someone advise what this is ?. I have also seen it like: [Inspectable(type=Boolean,name="Vertical",defaultValue=true)] SECONDLY (2) What are Inspectables in relation to AS2.0 classes ??? Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS 2.0 and Casting to datatypes
Thanks Ian and Mike - much appreciated help on the concept of casting. Casting makes sense now. Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS 2.0 and Casting to datatypes ...
Myello, Can anyone explain what Casting is. For example, in Moock's Essential AS 2.0, chapter 18 MVC clock example, page 407: // Cast the generic infoObj to the ClockUpdate datatype.var info:ClockUpdate = ClockUpdate(infoObj); The infoObj at this point is already a ClockUpdate datatype, so why is it being Cast ? and what is Casting in general. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Casting a string to a number ...
A couple of times I have tried to cast a string to a number like so (this is just an example): var string:String = "9";trace(string);var number:Number = Number(string);trace(number);trace(typeof(number)); It seems to work, but is this the correct way to cast. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] A different kind of FOR loop ???
Please advise, What is this piece of code doing: for (posArray = [], i = 0; i < this.length; posArray[i] = i++) {} I though it might have been another way of coding: for (i=0; i= 0; last--) { selected = this[last];rand = random(posArray.length - 1); lastPos = posArray.getPos(last);if (lastPos == null) { result[posArray[rand]] = selected; posArray.splice(rand, 1); } else { posArray.splice(lastPos, 1); result[posArray[rand]] = selected; posArray.splice(rand, 1); posArray.push(last); } } return result;} Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] New wrinkle in IE activation issue...
Well said Lee. Microsoft has taken their own initiative to include Active X, Object, Embed activation in their latest IE patch. Has nothing to do with a court ruling. Can only be an attempt to make life more difficult for Adobe.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: Sorting objects within an Array
Thanks all. I found this function online and it works perfectly: - Array.prototype.sortOn = function(p){Array.$sortprop = p;var sortfunc = function (a, b){var p = Array.$sortprop;return b[p] < a[p]; }this.sort(sortfunc);delete Array.$sortprop;} -___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Sorting objects within an Array ...
Hello All. Here is what I have and what I'm trying to do: I have an array that contains 3 objects (which are all movie clips), like so: var myArray:Array = ["mcClip1", "mcClip2", "mcClip3"]; I want to sort this array according to the _xscale of these clips. Does anyone know how I can do this. This is my line of thought, which I know is wrong, but might give more insight: myArray._xscale.sort(Array.DESCENDING); Please advise if you can. Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] RANT: Collect Fonts Button
I agree 100% on this issue. I have lost count as to how many times the missing font issue has come up in projects. It always stalls a project, sometimes for days (especially when one group of developers are in a different time zone on the other side of the world). Adobe/Macromedia need to include this capability in the next Flash IDE. Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: Active X and Microsoft IE
Thanks to Steven Sacks and Paul BH. After reading your thoughts (about javascript being enabled by default and stats of 3 out of 75000 users have it switched off) I am now going to go forward and use the FlashObject solution from here on in for everything I build. Anyone who thinks I am missing something and should consider other solutions, please let me know. Cheers, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Active X and Microsoft IE ...
Can anyone answer this: What happens if a user doesn't have javascript enabled in their browser for the recommended Macromedia solution (see link: http://www.macromedia.com/devnet/activecontent/articles/devletter.html) to this whole Active X debacle ? ??? Please answer this if you can. It has me stressed. Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 in HTML and the Object Embed tags ...
It's a flash movie that replaces the "broken icon", not an image. There's nothing else on the HTML page other than one flash movie. Thanks if anyone can help. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 in HTML and the Object Embed tags ...
Can anyone tell my why the following icon/image appears momentarilyin the top left of my browser screen when visiting my website: (click link to see image)http://i56.photobucket.com/albums/g194/CarlosBrems/image.gif Is this something to do with the OBJECT tag or EMBED tag that Ihave accidentally broken within my HTML page?? It only appears for a second before the page loads normally. Thanks,Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 and the OBJECT tag or EMBED tag in HTML ...
Can anyone tell my why the following icon/image appears momentarily in the top left of my browser screen when visiting my website: (click link to see image) http://i56.photobucket.com/albums/g194/CarlosBrems/image.gif Is this something to do with the OBJECT tag or EMBED tag that I have accidentally broken within my HTML page?? It only appears for a second before the page loads normally. Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 and various date formats ...
I have a little flash app. that pulls in various dates that are formatted in numerous ways. Before I look at creating a class that will return me a standard way to display the date, has anyone done anything like this before or know where I can download something similar to use or build on ?. To clarify, the following list shows the date formats (there's a few) I am dealing with: Thu, 30 Mar 2006 10:25:40 GMT Wed, 29 Mar 2006 21:00:00 PST Wed, 29 Mar 2006 09:00:00 EST Mar 24, 2006 Mon, 13 Mar 2006 09:00:03 + 2006-03-30T03:33:00+00:00 Thu, 30 Mar 2006 05:24:46 -0500 Tue, 28 Mar 2006 18:19:40 EDT Thu, 30 Mar 2006 17:32:00 +1000 Thu, 30 Mar 2006 00:00:00 -0800 Actually, now that I think of it, maybe I should compare these dates and the exact time on the users PC so that I can display the time difference between the two, like how digg shows how long ago a story was submitted (e.g: 15 hours, 43 minutes ago). Anyone advise, maybe I'm being lazy and should just dive in. Thanks, Stevros.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: Classes and setInterval ... (Stephen Ford)
Thanks Stacey, Yes it seems you need to pass in the parameter of 'this' before the function name and time, although I couldn't find reference to this in any of the manuals I looked in. Maybe they all just speak of AS1 and not class use of setInterval. _nInt = setInterval(this, "myFunction", 100) --- works in the class nInt = setInterval(myFunction, 100) --- is how the manual describes the use of setInterval Also, note the use of inverted commas around the function name in the first example above, they aren't required in a straight up .fla (non-class) like the second example above. Thanks again, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Classes and setInterval ...
Hi All - I am new to AS2 and OOP at large, but getting there (sort-of). Can anyone please advise as to why, in the following code, the trace statement in the function tweenColors in returning 'undefined' ? Why can't the tweenColors function (which is called with setInterval from another function) see the _oTransform object ? Also, feel free to comment if you can see anything I am doing wrong generally speaking from an AS2 point of view (as I said, I'm new to this and my head is still swimming). -- class MenuPainter extends MovieClip { // Variables private var _mcTarget:MovieClip; private var _cColor:Color; private var _oTransform:Object = {}; private var _nReds:Number = 255; private var _nGreens:Number = 153; private var _nBlues:Number = 0; private var _nInterval:Number; // Constructor public function MenuPainter(mcTarget:MovieClip) { _mcTarget = mcTarget; initColor(); } // Initialise first color of menu private function initColor():Void { _cColor = new Color(_mcTarget); _oTransform.rb = _nReds; _oTransform.gb = _nGreens; _oTransform.bb = _nBlues;_cColor.setTransform(_oTransform); } // Color menu function called from buttons within menu movie itself public function colorMenu(nReds:Number, nGreens:Number, nBlues:Number):Void { trace("MenuPainter.colorMenu public function called, with arguments: "+nReds+" : "+nGreens+" : "+nBlues); _nReds = nReds; _nGreens = nGreens; _nBlues = nBlues;_nInterval = setInterval(tweenColors, 50); } public function tweenColors():Void { trace(_oTransform); }} ------ Thanks, Stephen Ford. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Why is my setInterval only firing once ...
I have a setInterval call that is only firing once. Here is the part of my class where it's occuring: --- public function repositionClip():Void{ nWidth = Math.round(Stage.width); nHeight = Math.round(Stage.height); nMidX = nStageWidth/2; nMidY = nStageHeight/2; mcMain._x = nMidX; mcMain._y = nMidY; nInterval = setInterval(tweenClip, 50); } public static function tweenClip():Void{ trace("function called: tweenClip()");} --- Can anyone advise as to what is happening here ? Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] SEO for Flash .....
Does anyone have any good links or advice for optimising Flash for search engines. Please let me know if anyone can advise on this or if some research has been done in this area. Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Error only when viewing in browser ...
Hi All, I have a flash application that is causing an error only when it’s viewed within the browser. I can replicate the error whenever I like, as it always occurs the same way. If I could replicate the error within the Flash IDE, I could use the debugger to find what is causing the problem (which is the typical 'A script in this movie is causing Macromedia Flash Player to run slowly, etc, etc, etc'). I know this is often caused by an infinite loop, but I have many places this could be happening. Can anyone advise as to how I can track down what is causing this error in my application. How can I debug in the browser, or trace out what line of code is causing the error ? (there are about 2000 lines of code in this little app). Any advice GREATLY appreciated. Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Naming conventions for AS2.0 ...
Does anyone have an opinion, or a preferred method, in regards to naming conventions for AS2.0 objects ? For example, Macromedia recommends: clip_mc (movie clip) comm_lc (local connection) names_array (array) beep_sound (sound) field_txt (text field) etc, etc, etc but what if I wanted to use an generic object or a boolean datatype: listener_???:Object = new Object(); answer_???:Boolean = false; These are just two datatypes Macromedia doesn't list in terms of suffixes (search for 'About using suffixes to trigger code hints' in the official Flash help documentation built into Flash). So another technique I have seen is prefixing variables, like: mcClip (movie clip) lcComm (local connection) aNames (array) etc, etc, etc Someone must have a foolproof way to do this, there must be a technique that covers all possibilities for naming variables ??? Thanks, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flashcoders Digest, Vol 12, Issue 42
Thanks [EMAIL PROTECTED] - I will start looking into 'eventDispatcher' and see what I can learn. Much appreciated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Components and addEventListener ...
True or false (not a trick question, just a straight answer needed): The addEventListener method can only ever be called on a component ? e.g: myButton.addEventListener("click", myFunction); ... and if "click" is one thing you can 'listen' for, what is the complete list ?? (this might help me understand it a little better - hope this makes sense - OOP newb here). Thanks, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Error only when live - pulling my hair out !!! (JesterXL)
I have found out what the problem was and corrected the issue. Thanks for the assistance, works fine now. Stephen. From: [EMAIL PROTECTED] Reply-To: flashcoders@chattyfig.figleaf.com To: flashcoders@chattyfig.figleaf.com Subject: Flashcoders Digest, Vol 12, Issue 41 Date: Sat, 14 Jan 2006 12:00:09 -0500 (EST) Send Flashcoders mailing list submissions to flashcoders@chattyfig.figleaf.com To subscribe or unsubscribe via the World Wide Web, visit http://chattyfig.figleaf.com/mailman/listinfo/flashcoders or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Flashcoders digest..." Today's Topics: 1. Re: Error only when live - pulling my hair out !!! (JesterXL) 2. Flash Player on iMac Intel Core Duo (Jed Wood) 3. flash.geom.* and drawing API (Benjamin Dobler) 4. Flash + VB ActiveX Document DLL (rishi) 5. Obfuscation (will g) 6. RE: Obfuscation (Adrian Lynch) 7. Re: Obfuscation (urami_) 8. Re: Obfuscation (will g) 9. Re: Obfuscation (will g) 10. Re: Obfuscation (bryan.rice) -- Message: 1 Date: Fri, 13 Jan 2006 20:34:46 -0500 From: "JesterXL" <[EMAIL PROTECTED]> Subject: Re: [Flashcoders] Error only when live - pulling my hair out !!! To: "Flashcoders mailing list" Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" If you: - turn on Remote Debugging in the Flash 8 debugger - install the debug player for whatever browser you are using - upload the SWD file You'll then be able to debug your SWF remotely. Slow as nuts, but it works. - Original Message - From: "jim" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Friday, January 13, 2006 8:31 PM Subject: RE: [Flashcoders] Error only when live - pulling my hair out !!! Where is the swf, I will take a look & see if it does the same for me. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Ford Sent: 14 January 2006 01:23 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Error only when live - pulling my hair out !!! Hello, I have a flash based app. that works fine when run in the IDE or locally on my machine, however, when I upload the app. to my server, it doesn't work. The app. just freezes my machine and I get the damned "A script in this movie is causing Macromedia Flash Player 8 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script" message. How can I see where the error in my script lies if it only occurs online ?. I could use the debugger if it were happening within the IDE but how can I debug a remote SWF ? Is this possible, PLEEEASE help if you can I AM PULLING MY HAIR OUT over this. If it were Coldfusion or PHP I would get an exact location of the error and could go and fix it, surely I can do this somehow ? Any advice GREATLY appreciated. Thanks, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Message: 2 Date: Sat, 14 Jan 2006 02:31:09 -0600 From: Jed Wood <[EMAIL PROTECTED]> Subject: [Flashcoders] Flash Player on iMac Intel Core Duo To: Flashcoders Mailing List Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hey all- I've searched a bit and haven't seen any postings on this, so thought I'd pass along at least one initial bug I've found in the Flash Player on Intel iMac: dynamic non-embedded font text is showing up blue when it should be black. Scroll down to the "Flash" heading in this entry for details and some other quick points: http://www.silentrant.com/blog/?p=157 -Jed -- Message: 3 Date: Sat, 14 Jan 2006 10:50:02 +0100 From: "Benjamin Dobler" <[EMAIL PROTECTED]> Subject: [Flashcoders] flash.geom.* and drawing API To: "'Flashcoders mailing list'" Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hi all, i`m just thinking about rewriting the drawing api classes to work with the flash.geom package. I want something like: var p=new point(20,30); moveTo(p); . So my question is anything like that out there already? What would bet he best way to do it (e.g. moveTo2
[Flashcoders] Listener objects vs event handler functions ...
If this is an example of the listener object approach: myObj = new Object(); myObj.onMouseDown = myFunction; function myFunction() { trace("tracing something"); } Mouse.addListener(myObj); ... and the listener object approach is favored over the event handler function approach, what would the above code look like if it were written with the event handler function approach. Where you can use one approach, can you always use the other ? (trying to understand the difference and where to use one instead of the other). Apparently, the main reason the listener object approach is favored is because multiple listener objects can receive events from the same component/movieclip/etc. Does anyone have an example of this so I can see the advantage in action. Thanks in advance for any assist, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Error only when live - pulling my hair out !!!
Hello, I have a flash based app. that works fine when run in the IDE or locally on my machine, however, when I upload the app. to my server, it doesn't work. The app. just freezes my machine and I get the damned "A script in this movie is causing Macromedia Flash Player 8 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script" message. How can I see where the error in my script lies if it only occurs online ?. I could use the debugger if it were happening within the IDE but how can I debug a remote SWF ? Is this possible, PLEEEASE help if you can I AM PULLING MY HAIR OUT over this. If it were Coldfusion or PHP I would get an exact location of the error and could go and fix it, surely I can do this somehow ? Any advice GREATLY appreciated. Thanks, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Bonafide AS2.0 class template ...
I am fairly new to AS2.0 and OOP in general and I was wondering if anyone has a template file for AS2.0 classes that they wouldn't mind sharing. I am looking for a blank AS2.0 template that contains dummy content and layout that can be used (and should be used) every time I want to start creating a new AS2.0 class. I have seen something like this somewhere but can't see to locate it. It had everthing in place and even indicated what goes where, when creating a new class. Anyone have something like this that could be used as a template for ANY possibility that might come up when creating an AS2.0 class file ? Thanks for reading, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders