Re: [Flashcoders] Animated gif

2008-01-29 Thread tommek
Thanks ekameleon, That's just what i was after. ekameleon wrote: Hello :) You can see too the AS3 Gif Player class : http://www.bytearray.org/?p=95 EKA+ :) 2008/1/29, tommek [EMAIL PROTECTED]: Dynamically loading animated gif in flash and get them to play is that possible. I found

[Flashcoders] Catching an error from a component

2008-01-29 Thread Helmut Granda
I have a scroll component that sometimes is deleted from the display list while the user is holding the scroll bar and I get this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at

[Flashcoders] onMetaData

2008-01-29 Thread strk
Can one rely on the assumption that onMetaData will be called only once for a given video loaded by NetStream ? And is the call sequence of it and other statuses predictable at all ? TIA --strk; () ASCII Ribbon Campaign /\ Keep it simple!

Re: [Flashcoders] MultiLanguage

2008-01-29 Thread Jake Prime
Hi Dave I've done quite a few muiltilanguage sites, including Chinese and Korean. The way I've tackled this in the past is to load the fonts from an external SWF at run-time, using shared runtime libraries. It's a bit of a roundabout method, and if a single part of the process is not done

[Flashcoders] Flash 8, AS 2.0. I want to use symbols from child movie in parent movie. Possible?

2008-01-29 Thread Donald Trump
Hey! Suppose I load an SWF that contains symbols inside the main movie. Let it be smiles for chat application - smiles.swf. Then I want to instantiate some of these symbols putting them on the main movie _root. That is essential, I want to add the instances to the main movie _root or _root's

Re: [Flashcoders] dynaically generated mc reference to class that created it..SOLVED

2008-01-29 Thread BOYD SPEER
This works: (parent.root as Cardgenerator).makeglow(); Thanks, guys! - Original Message - From: Piers Cowburn [EMAIL PROTECTED] Date: Tuesday, January 29, 2008 9:22 am Subject: Re: [Flashcoders] dynaically generated mc reference to class that created it To: Flash Coders List

Re: [Flashcoders] dynaically generated mc reference to class that created it

2008-01-29 Thread Piers Cowburn
Is the movieclip on the display list? If so you should be able to do root.makeglow() Piers On 29 Jan 2008, at 14:54, BOYD SPEER wrote: Using AS3 I have a movieclip made (dynamically made) of a class called Dragon. Inside its main timeline in a frame script I want to tell the object (the

[Flashcoders] dynaically generated mc reference to class that created it

2008-01-29 Thread BOYD SPEER
Using AS3 I have a movieclip made (dynamically made) of a class called Dragon. Inside its main timeline in a frame script I want to tell the object (the main class called Cardgenerator) that created it to run a function called makeglow. But I can't seem to call a function there..any suggestions

Re: [Flashcoders] (no subject)

2008-01-29 Thread sense co moh
thankss Cedric this[txt+image1] works fine thank you - Original Message From: Cedric Muller [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 29, 2008 5:26:40 PM Subject: Re: [Flashcoders] (no subject) Hello change

Re: [Flashcoders] (no subject)

2008-01-29 Thread Piers Cowburn
You can try this: this.infoclip.info_txt.text = this[txt+ image1] But the best way of doing this would be to use an array: var txts:Array = new Array(); txts[1] = this is text 1; txts[2] = this is text 2; txts[3] = this is text 3; txts[4] = this is text 4; txts[5] = this is text 5;

Re: [Flashcoders] (no subject)

2008-01-29 Thread Cedric Muller
Hello change this.infoclip.info_txt.text = txt+ image1 to this.infoclip.info_txt.text = [txt+image1]; or this.infoclip.info_txt.text = this[txt+image1]; Basically, this[variableStringReference] evaluates the string, txt+image1, as a variable name, which points to 'txt1', 'txt2', ...

[Flashcoders] (no subject)

2008-01-29 Thread sense co moh
Hi all I have this problem, I'm making photo gallery and for each photo there are description text so first I made many var string for text like this var txt1:String = this is text 1; var txt2:String = this is text 2; var txt3:String = this is text 3; var txt4:String = this is text 4; var

Re: [Flashcoders] (no subject)

2008-01-29 Thread sense co moh
yes it's working and you are right the best way is to use Array but I don't understand the Array it's really confuse me thanks alot - Original Message From: Piers Cowburn [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 29, 2008 5:44:00

Re: [Flashcoders] mc code still runs after being removed...Huh?!?

2008-01-29 Thread Corban Baxter
was it possibly running a global function or method that needed to be killed before it was removed? On Jan 29, 2008 2:02 PM, Delmar Patton [EMAIL PROTECTED] wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] How to shorten the compile time?

2008-01-29 Thread strk
On Tue, Jan 29, 2008 at 10:53:29PM +0300, Donald Trump wrote: I'm at the final stages of my project. The thing that I am bothered most now is compile time. ... My project is Action Script 2.0 based. Maybe the right step is to move to AS 3.0? Do you know whether this compile caching problem

RE: [Flashcoders] How to shorten the compile time?

2008-01-29 Thread development
Speed wise and AS 2.0 you should go 'intrinsic'. Create a DLL (shared lib) where your main code resides in, then compile your views against that. I've done that on a big project and even the Flash IDE outperforms MTASC with this solution. Check out asigen: http://osflash.org/asigen to generate

Re: [Flashcoders] input text formatting

2008-01-29 Thread Glen Pike
In AS3 I have to keep applying the TextFormat object to the TextField when it's content changes: function createText():void { _nameText.setSelection(0, _nameText.text.length); //_nameText.caretIndex = 0; _nameText.setTextFormat(_nameFormat);

RE: [Flashcoders] How to shorten the compile time?

2008-01-29 Thread Merrill, Jason
Short of re-writing everything in Haxe (which may or may not help), switching to AS3 (which might help), switching to Flexbuilder 3, and chopping code down to smaller pieces (which would help some), you might be doing all you can really do. And by the way, which IDE/compiler do you use?

RE: [Flashcoders] how to return in this function

2008-01-29 Thread Claudio M. E. Bastos Iorio
Thanks for your answer. But how? Where?. I think that ProgressEvent.bytesLoaded, and ProgressEvent.bytesTotal could help. But where should I check the status? Claudio M. E. Bastos Iorio http://www.blumer.com.ar -Original Message-

[Flashcoders] how to return in this function

2008-01-29 Thread Claudio M. E. Bastos Iorio
Hi guys, hope you can help me on this one. I have a class to load an XML file. I'm trying this: package { import flash.net.URLRequest; import flash.net.URLLoader; import flash.events.*; public class retornaXML{ private var _xml:XML; public function retornaXML() {

Re: [Flashcoders] Flash 8, AS 2.0. I want to use symbols from child movie in parent movie. Possible?

2008-01-29 Thread Hans Wichman
Hi, you've answered your own question I'm afraid. There is one other option, paint bitmaps to a symbol :). So all the assets for an interactive smiley are stored as bitmaps and you create a movieclip from that. greetz JC On Tue, Jan 29, 2008 at 5:33 PM, Donald Trump [EMAIL PROTECTED] wrote:

Re: [Flashcoders] how to return in this function

2008-01-29 Thread eric e. dolecki
you could use an event to listen to, to pass the XML out of the class. On Jan 29, 2008 1:42 PM, Claudio M. E. Bastos Iorio [EMAIL PROTECTED] wrote: Hi guys, hope you can help me on this one. I have a class to load an XML file. I'm trying this: package { import flash.net.URLRequest;

[Flashcoders] Animating sprite.graphics.lineTo

2008-01-29 Thread Merrill, Jason
Tried on another Flash list without any luck, so I'll try here. I'm trying to see if there is a way to combine TweenLite and the draw functions (i.e. sprite.graphics.lineto) to slowly draw a line from point A to point B. Maybe there isn't, but I thought I would ask. Is it possible or would

[Flashcoders] How to shorten the compile time?

2008-01-29 Thread Donald Trump
I'm at the final stages of my project. The thing that I am bothered most now is compile time. The project has evolved for the past couple of years into a large code base of Action Script classes. There are about 300 classes which is 1 MB of source code. It takes about 20 seconds to compile the

Re: [Flashcoders] mc code still runs after being removed...Huh?!?

2008-01-29 Thread Delmar Patton
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] how to return in this function

2008-01-29 Thread Hans Wichman
seems like an item for the newbie list tbh:) On Tue, Jan 29, 2008 at 8:27 PM, Claudio M. E. Bastos Iorio [EMAIL PROTECTED] wrote: Thanks for your answer. But how? Where?. I think that ProgressEvent.bytesLoaded, and ProgressEvent.bytesTotal could help. But where should I check the status?

Re: [Flashcoders] how to return in this function

2008-01-29 Thread Juan Pablo Califano
var mivariable:retornaXML = new retornaXML(); trace(mivariable.elXML); but this trace returns null, since the xml file (I think) is not loaded yet. Yes, that's the problem. In Flash, xml loading is always asynchronous so the trace line is executed immediately after the previous one, in

[Flashcoders] loadMovie from subdirectory - change base path

2008-01-29 Thread confusticate and bebother these dwarves!
Hello Flashcoders, I'm trying to make a main movie (controller.swf) that loads other movies (screen1.swf, screen2.swf, etc), which are stored in a subdirectory called screens. In controller.swf I'm using loadMovie(screens/screenx.swf) to load the movies from the screens subdirectory, and this

Re: [Flashcoders] Flash 8, AS 2.0. I want to use symbols from child movie in parent movie. Possible?

2008-01-29 Thread Deepanjan Das
Hi, You can use runtime shared libraries for this case I guess. You have the symbols in smiles.swf. go to the library and for each symbol define the linkage and set it to Export for runtime sharing. Then open the main movie and do ImportOpen External Library and drag the icon on stage and delete