Re: [Flashcoders] #SharedObject not so shared

2007-09-08 Thread EECOLOR
I remember asking the same question years ago. The answer was something like this: SharedObject.getRemote(my_so, rtmp:/./.., /); I am not completely sure and do not have time to test it. As I forgot my mailing list password I couldnt search the archives... And next to that, I'm not sure if it

Re: [Flashcoders] Copy and paste a movieClip?

2007-09-08 Thread EECOLOR
Yes in AS3 you can move DisplayObjects to other parents without problems. One thing to note is that you need to remove it from the current display list before you add it to the other. Something like this: parent1.removeChild(theClip); parent2.addChild(theClip); Greetz Erik On 9/6/07, T.

Re: [Flashcoders] Animate dynamic text

2007-09-08 Thread EECOLOR
There are two possible ways to achieve this: 1. Make sure the text is embedded. In order for text to have an alpha value or rotation is needs to be embedded. 2. Make a 'screenshot' of the text using BitmapData.draw() and animate that. Greetz Erik Hello I want to know that there is any way

[Flashcoders] AS3 TextField.defaultTextFormat only works when focus is set to the TextField

2007-09-10 Thread EECOLOR
Hello, this message is just for the archive. I have been fiddling with defaultTextFormat for a few hours now and couldnt get it to work after clicking on a button. Eventually I found out that in order for the defaultTextFormat to be active, the TextField needs to have focus. Greetz Erik

Re: [Flashcoders] XML confusion

2007-09-12 Thread EECOLOR
The trace functions arguments are implemented as follows trace(... arguments). Which means that all types of variables are accepted. Every type of variable extends Object and with that every instance will have a toString method. This is the method the trace function will call to display the value.

Re: [FlashCoders] AS3 TextFields with filters - game performance?

2007-09-13 Thread EECOLOR
I do not know what the performance inpact is of TextFields with filters. If the performance it too great you could take a snapshot of the text using a BitmapData instance. Then draw that BitmapData to a Shape or Bitmap and apply the filters there. As I said, I dont know about the difference in

Re: [Flashcoders] Google Maps or Yahoo maps

2007-09-13 Thread EECOLOR
A few weeks ago I had to create some map application in Flex 2 aswell. I went out and started looking for a solution and came across a Flash Player 9 application that could connect with all types of map services including google. But the source for that application was not available anymore

Re: [Flashcoders] AS3 Sound = wtf

2007-09-13 Thread EECOLOR
Maybe this is a project you would like to check out? http://code.google.com/p/popforge/ Greetz Erik On 9/13/07, Andreas Rønning [EMAIL PROTECTED] wrote: I didn't mean hacking was wrong by any stretch, but i am not a hacker. I simply don't have the time / budget to get in-depth on that

Re: [Flashcoders] Delegate question...

2008-02-02 Thread EECOLOR
class fly.Delegate extends Object { static function create(obj:Object, func:Function):Function { var returnFunction = function() { var self:Function = arguments.callee; var target_obj:Object = self.target_obj; var func:Function = self.func; var

Re: [Flashcoders] Event Handling in ActionScript 3

2008-02-02 Thread EECOLOR
just can't think of one now. The most common case where you do not extend the EventDispatcher is when you need to extend the Proxy class in order to catch dynamic method and property calls. In that case you need to extend a class that does not extend EventDispatcher itself you can do something

Re: [Flashcoders] Bundle swf's on server for transport to client

2008-02-02 Thread EECOLOR
With AS2 this indeed seems tricky. With AS3 you could just zip the stuff, unzip within your Flash application and load the bytes. Your best guess is a tool like swfmill that has the ability to create swf's on the server. I only know of a library in java that has the ability to generate swf's

Re: [Flashcoders] Catching an error from a component

2008-02-02 Thread EECOLOR
I am not sure how it is possible that the item has been removed from the display list. I however take your word for it :) Since you can not put a try / catch block (or check) around error area the solutions are limited. My first thought was to extend the component and override the

Re: [Flashcoders] Video has no mouseEnabled, help (AS3)

2008-02-02 Thread EECOLOR
In case this doesnt help you could also check out the property: mouseChildren and do something like parent.mouseChildren = false; Greetz Erik On 1/25/08, Matthias Dittgen [EMAIL PROTECTED] wrote: Hi! oh, I found a solution. I have to do a parent.mouseEnabled = false, too, because parent is

Re: [Flashcoders] How to call custom method on loaded AS3 swf?

2008-02-02 Thread EECOLOR
This is the perfect example as to where you would use an interface: Interface definition: public interface MyFrameworkInferface { function startup():void }; Class in the swf that is loaded in: public class MyLoadedClass { public function startup():void { /stuff }; };

Re: [Flashcoders] Question about Arrays

2008-02-02 Thread EECOLOR
I believe it's type * so you should cast it. This has nothing to do with that, hehe. There is a tiny difference beween ClassToCastTo(value) and (value as ClassToCastTo). In the first case a compiler error will be thrown. In the second case the cast will be tried. If it fails the resulting value

Re: [Flashcoders] AS3 type coercion error

2008-02-02 Thread EECOLOR
The only thing I can think of is that it is most likely a problem concerning the ApplicationDomain. You probably load the swf into its own application domain, which means it will use the AbstractPreloader class of the swf instead of the one in your main application. The solution here would be to

Re: [Flashcoders] Dynamic upload of bunch of images with automaticsmooth.

2008-02-04 Thread EECOLOR
Another problem here may be the quality property on the object/embed tag. If it is auto high it might for some cases switch to non-smoothing to benefit the performance. This will change if you set the property to high. Greetz Erik On 2/3/08, Muzak [EMAIL PROTECTED] wrote: Check the example in

Re: [Flashcoders] Dynamically animating writing effect

2008-02-10 Thread EECOLOR
Whow, tough task... If I were given that assignment I would check out this application: http://www.sephiroth.it/file_detail.php?id=159# It allows you to read font information. This font information allows you to draw the font using information available in the font file itself. If I am correct

Re: [Flashcoders] Exporting AS2 classes across multiple frames?

2008-02-12 Thread EECOLOR
I might be wrong here, but if I recall correctly you can in fact load all your classes in frame 2. Make sure none of your MovieClips have the 'export in first frame' option enabled and place those MovieClips in frame 2. As for your other non-visual classes, just make sure they are not called

Re: [Flashcoders] Multiple moviecliploaders

2008-02-12 Thread EECOLOR
If I remember well the MovieClip loader can only load 2 images simultaniously. This also might be a browser restriction. Greetz Erik On 2/12/08, Muzak [EMAIL PROTECTED] wrote: Get rid of the nested function, avoid it at all times (IMO). var img_mcl:MovieClipLoader; function

Re: [Flashcoders] Question on garbage collection

2008-02-17 Thread EECOLOR
Could you post the code that actualy calls these methods? Greetz Erik On 2/15/08, Jiri Heitlager [EMAIL PROTECTED] wrote: Thanks for your reply Bob, it is for AS2. I read a lot of articles about it and understand the general concept. That is why I post the question. If I understood

Re: [Flashcoders] Question on garbage collection

2008-02-18 Thread EECOLOR
??? } EECOLOR wrote: Could you post the code that actualy calls these methods? Greetz Erik On 2/15/08, Jiri Heitlager [EMAIL PROTECTED] wrote: Thanks for your reply Bob, it is for AS2. I read a lot of articles about it and understand the general concept. That is why I post

Re: [Flashcoders] saving image locally

2008-02-23 Thread EECOLOR
If you are developing for flash player 9 you can do the following: 1. Convert your image to a png or jpg using: http://weblogs.macromedia.com/cantrell/archives/2006/08/actionscript_pn.cfm 2. Send the image to your server which will write it to a temporary directory on the server 3. Use

Re: [Flashcoders] (AS3) use input textfield in a loaded swf

2008-02-23 Thread EECOLOR
Most likely you just need to do this: textField.type = TextFieldType.INPUT; Greetz Erik On 2/23/08, Radley Marx [EMAIL PROTECTED] wrote: I know this is a basic one, but I've been stuck for over an hour on this... I'm loading a swf which contains an input textField. For some reason, I

Re: [Flashcoders] Re: RangeError: Error #2006: The supplied index is out of bounds.

2008-02-27 Thread EECOLOR
You can use numChildren to check how many children a DisplayObjectContainer has. Greetz Erik On 2/26/08, anuj sharma [EMAIL PROTECTED] wrote: I will loop it and see what will happen Thanks a lot for all your help Anuj ___ Flashcoders mailing

Re: [Flashcoders] Flex only generates errors for my Document Class, but not in any other AS file

2008-02-27 Thread EECOLOR
Make sure your classes are referenced from your document class. Greetz Erik On 2/26/08, Johan Nyberg [EMAIL PROTECTED] wrote: Hi, I was wondering if anyone has encountered this problem: I use Flex as an IDE when developing flash. When I code, Flex only displays errors in my document class,

Re: [Flashcoders] Flex Disables Browser Scrollbars?

2008-02-27 Thread EECOLOR
I think a better answer will be given on the flexcoders mailing list. Greetz Erik On 2/27/08, Elia Morling [EMAIL PROTECTED] wrote: How do I make it so that the html that flex generates doesn't disable the browser scrollbards? I have located the lines of html code that does this, but it's

Re: [Flashcoders] BitmapData.paletteMap ()

2008-02-27 Thread EECOLOR
So if I understand you correctly, your question actually is: how do I find out which colors are used in my bitmap data?. I am sorry to disappoint you, but I do not have an answer for you. The only solution I could come up with is looping through the pixels (see the code at the end of the email).

Re: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread EECOLOR
You could use the paletMap function or the threshold function of the bitmapData object. Check the documentation for details. Greetz Erik On 2/28/08, Karim Beyrouti [EMAIL PROTECTED] wrote: Hello Hello, Just wondering if anyone has any tips or ideas on optimizing this function, as its

Re: [Flashcoders] LoaderContext question

2008-03-06 Thread EECOLOR
From the top of my head, I think it should be: var _lm:LoadMe = LoadMe(_ldr.content.getChildAt(0)); Greetz Erik On 3/7/08, Andrei Thomaz [EMAIL PROTECTED] wrote: what is the error? []'s andrei ___ Flashcoders mailing list

Re: [Flashcoders] LoaderContext question

2008-03-09 Thread EECOLOR
Within Flex builder I got it working like this: ITestAS.as package { public interface ITestAS { function get testVar():String; }; }; TestAS1.as package { import flash.display.DisplayObjectContainer; import flash.display.Loader; import flash.display.Sprite; import

Re: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread EECOLOR
If we ever he need to pass extra arguments to the handler we use a delegate class to pass them. Usage: obj.addEventListener(Event.TYPE, Delegate.create(this, _handler, arg1, arg2)); private function _handler(e:Event, arg1:Object, arg2:Object):void { }; I added our delegate class as an

Re: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread EECOLOR
In Flex Builder 3 they have added the profiler. You can use that to take snapshots of your application and inspects its memory use, instantiated objects etc. Greetz Erik On 3/12/08, Henry Cooke [EMAIL PROTECTED] wrote: Wow, thanks for all the tips, guys. I forgot to mention that I was

Re: [Flashcoders] Passing vars with the the timer and events

2008-03-13 Thread EECOLOR
That's a dangerous practice. I do not completely agree. It prevents you from using weak event listeners Correct. The common use for weak event listeners is when adding listeners to the stage: the stage is allways present and adding normal listeners to it will insure that the listener will

Re: [Flashcoders] Passing vars with the the timer and events

2008-03-13 Thread EECOLOR
If you add a normal event listener to a child, and then remove that child, the child is _not_ garbage collected. Objects are only garbage collected when all references to the object are removed. Adding a normal event listener causes a reference to be created invisibly within the event system. I

Re: [Flashcoders] Running Independent SWF

2008-03-13 Thread EECOLOR
It is just a guess, but is the url in your swf /video/pic_8.swf? If so, you might want to change it to video/pic_8.swf (without the slash at the start). The slash at the start is only usefull if you are serving your swf from a webserver. Greetz Erik On 3/13/08, Marc Hoffman [EMAIL PROTECTED]

Re: [Flashcoders] Passing vars with the the timer and events

2008-03-14 Thread EECOLOR
Oh man, thank you for this example! This totally blows me away. I am sorry I was so persistent. You are correct. I will have to check all my applications now, hehe. This also means that all my earlier arguments are incorrect and that the use of Delegate is indeed very dangerous. Thank you for

Re: [Flashcoders] Passing vars with the the timer and events

2008-03-14 Thread EECOLOR
kicks in (might be triggered by total memory usage). I will continue to monitor the example to see if the instance will ever be garbage collected. If not, I will file a bug at adobe. Greetz Erik On 3/14/08, EECOLOR [EMAIL PROTECTED] wrote: Oh man, thank you for this example! This totally

Re: [Flashcoders] Passing vars with the the timer and events

2008-03-14 Thread EECOLOR
) { (e.currentTarget as SpriteClass).removeEventListener( Event.ENTER_FRAME, _handler); }; }; }; }; Greetz Erik On 3/14/08, EECOLOR [EMAIL PROTECTED] wrote: Hey there, I was totally shocked this morning. If what you were saying was true it would mean that if you created a class

Re: [Flashcoders] TextFieldAutoSize [AS3]

2008-04-01 Thread EECOLOR
Indeed, if you set the width of a TextField and autoSize to LEFT, it will automatically resize only the height. Greetz Erik On 4/1/08, Andrew Murphy [EMAIL PROTECTED] wrote: You can also do it like this: var tf:TextField = new TextField(); with(tf){ autoSize =

Re: [Flashcoders] Interfaces

2008-04-01 Thread EECOLOR
An interface is used to make sure your code is not tightly coupled. Instead of saying which class should be given, you say which interface should be given. This means that a developer has more freedom to implement his own version of an interface. Lets say you make a person interface called

Re: [Flashcoders] AS3 MouseEvent target?

2008-04-02 Thread EECOLOR
which is mouseChildren = false. In my humble opinion I do not think this is what he needs. He should not be referencing target, but instead he should reference currentTarget. If you are adding a listener, the handlers e.currentTarget will point to the object that you added the listener to,

Re: [Flashcoders] AS3 MouseEvent target?

2008-04-02 Thread EECOLOR
This behaviour can not emulated precisely because there is no way for us to set the target and currentTarget properties. This is done by internal EventDispatcher code. The EventDispatcher code works something like this: - check if the target property of the event has been set, if not set it -

Re: [Flashcoders] some dying logic ...

2008-04-02 Thread EECOLOR
*if (this.basicNews != null) { this.basicNews.removeEventListener(RepeaterEvent.CLICK, this.onNewsClicked); this.removeChild(this.basicNews); this.basicNews.die(); this.basicNews = null; }* In the above code I do not see why you would need any more then the following lines:

Re: [Flashcoders] some dying logic ...

2008-04-02 Thread EECOLOR
will then still be garbage collected. Greetz Erik On 4/2/08, Meinte van't Kruis [EMAIL PROTECTED] wrote: granted that the eventListener was added with a weak reference On Wed, Apr 2, 2008 at 3:35 PM, EECOLOR [EMAIL PROTECTED] wrote: *if (this.basicNews != null

Re: [Flashcoders] IDE TextField TextFormat

2008-04-05 Thread EECOLOR
Nope, only to dynamic and input type textfields. Greetz Erik On 4/3/08, laurent [EMAIL PROTECTED] wrote: Hi, Does TextFormat apply to none dynamic textfield ? thx L ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] movement

2008-04-09 Thread EECOLOR
Why does Flash act the way it does? More information can be found here on the blog of one of the Flash Player engeneers: http://www.kaourantin.net/2006/05/frame-rates-in-flash-player.html Greetz Erik On 4/8/08, Cory Petosky [EMAIL PROTECTED] wrote: My buddy and I were playing with some

Re: [Flashcoders] Question about the AIR security model...

2008-04-25 Thread EECOLOR
Describe type is quite a heavy operation. I am not sure if it would affect this application though. It indeed is an easy solution :) Another solution would be to call the loader.contentLoaderInfo.applicationDomain.hasDefinition(name:String):Boolean method. As far as the original problem is

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-28 Thread EECOLOR
If I recall correctly, the problem only exists with event listeners for Timer, stage and EnterFrame event listeners. Stage listeners are easy to clean up. If you ever attach a listener to the stage, add it within the ADDED_TO_STAGE handler, make sure you remove it within the REMOTED_FROM_STAGE

Re: [Flashcoders] How to compare 2 dynamic Arrays

2008-04-28 Thread EECOLOR
I think you could use a ByteArray to do it. It would be (from the top of my head) something like this: sBA = new ByteArray(); sBA.writeObject(sArray); var t1BA:ByteArray = new ByteArray(); t1BA.writeObject(t1Array); trace(sBa.toString() == t1BA.toString()); Greetz Erik On 4/28/08, ACE Flash

Re: [Flashcoders] Converting a ByteArray to string and back again...

2008-04-28 Thread EECOLOR
To me that seems to work perfectly: var a:Array = new Array(); a.push(hello); a.push(this); a.push(is); a.push(a); a.push(test); var ba:ByteArray = new ByteArray(); ba.writeObject(a); ba.position = 0; var ba2:ByteArray = new ByteArray(); ba2.writeUTFBytes(ba.toString()); ba2.position = 0;

Re: [Flashcoders] as3 namespace question

2008-05-13 Thread EECOLOR
I posted about this before and didn't receive and answer but it is still causing me issues so I am trying again. There were some concrete answers posted to your question. Anyway, let's see if we can solve it again. Before I will try and help with your problem, I want to point out something about

Re: [Flashcoders] as3 namespace question

2008-05-13 Thread EECOLOR
And now the attachment, hehe. Greetz Erik On 5/13/08, EECOLOR [EMAIL PROTECTED] wrote: I posted about this before and didn't receive and answer but it is still causing me issues so I am trying again. There were some concrete answers posted to your question. Anyway, let's see if we can

Re: [Flashcoders] Kilobyte Size of AS Classes

2008-05-13 Thread EECOLOR
If you are using Flex Builder to compile your ActionScript project, you can use the following compiler arguments: *-link-report c:\pathToTempDirectory\link-report.xml* This file will list each class like this: *script name=E:\Projects\RichTextEditor\src\fly\utils\LinkedList.as mod=1210602181669

Re: [Flashcoders] centering content on stage / resizable stage

2008-05-14 Thread EECOLOR
Make sure you have in your code (somewhere at the start) the following code: *stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT;* Also make sure that you have the following property in your object / embed tag: salign=TL Greetz Erik On 5/14/08, Patrick J. Jankun

Re: [Flashcoders] Aligning images and text in textfield / textarea

2008-05-14 Thread EECOLOR
I remember the component named Deng, which is able to render a subset of HTML. It can be found here: http://deng.com.br/ HTML within Flash is one of the toughest things to do as the support for HTML within Flash is very limited. Greetz Erik On 5/6/08, Neil Jenkins [EMAIL PROTECTED] wrote:

Re: [Flashcoders] The issue of parent in AS3

2008-05-15 Thread EECOLOR
I must disagree with this. Typing to Object will give you extra problems. You will not get code hinting and are more likely to make typeo's. It also is much more vulnerable to runtime errors. As for the original message, I would encourage you not to call any non-DisplayObject methods in the

Re: [Flashcoders] AS3 - Embeding Fonts

2008-05-15 Thread EECOLOR
Second link on google: http://www.tink.ws/blog/embedding-fonts-in-as3/ Greetz Erik On 5/15/08, SJM - Flash [EMAIL PROTECTED] wrote: Hi Guys i know about embeding fonts using the 'embed' button in the textfields property inspector within in the ide. Can anyone point me to some definitive

Re: [Flashcoders] alpha not working on mc with textfield

2008-05-15 Thread EECOLOR
Make sure you have the TextField also set to the same size as the font you embedded in the library. Also check if you maybe embedded the bold or italic property, your TextField should mirror the settings of the font you used. Greetz Erik On 5/13/08, Allandt Bik-Elliott (Receptacle) [EMAIL

Re: [Flashcoders] AS3 - Embeding Fonts

2008-05-15 Thread EECOLOR
?? SJM - Original Message - From: EECOLOR To: Flash Coders List Sent: Thursday, May 15, 2008 8:19 PM Subject: Re: [Flashcoders] AS3 - Embeding Fonts Second link on google: http://www.tink.ws/blog/embedding-fonts-in-as3/ Greetz Erik On 5/15/08, SJM - Flash

Re: [Flashcoders] Data merging problem

2008-05-15 Thread EECOLOR
I am not sure why you have duplicate items. I am assuming these items come from a database, you can use the query to leave out double records. In most other cases, the double is in there for a reason, which means you do not want to delete them. In that case you would like the .filterFunction

Re: [Flashcoders] Re: Retrieve The Web Link

2008-05-15 Thread EECOLOR
When we need the URL of the page that is serving the swf, we use ExternalInterface to call the window.location.href.toString() method. Greetz Erik On 5/8/08, Juan Pablo Califano [EMAIL PROTECTED] wrote: Yes, but be aware that the _url property returns the url of the swf, not the url of the

[Flashcoders] Why do you compile with the Flash IDE?

2008-05-16 Thread EECOLOR
I hardly ever use the Flash IDE these days. I program with FlexBuilder and import images created by the designers. I am wondering, why are some of you still using the Flash IDE to compile your applications? What is the big benefit of using the Flash IDE in combination with ActionScript? Greetz

Re: [Flashcoders] Giving all objects new methods ...

2008-05-17 Thread EECOLOR
I created a file called dump.as within the fly.utils package: *package fly.utils { public function dump(obj:Object, maxSuperClasses_int:int = 0):void { }; };* This way, I can just call* dump(something)*. Greetz Erik On 5/17/08, Stephen Ford [EMAIL PROTECTED] wrote: AS3 Question:

Re: [Flashcoders] Play MOV in flash

2008-05-19 Thread EECOLOR
If I recall correctly, you can only play .mov files if they are encoded with the H.264 codec. And only if you have Flash player 9.0.124. Greetz Erik On 5/17/08, Scott Wilhelm (HireAWebGeek.com) [EMAIL PROTECTED] wrote: Is it possible to play a MOV file within flash? Thanks, Scott

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread EECOLOR
Are you using LocalConnection by any chance? Greetz Erik On 5/20/08, Andrei Thomaz [EMAIL PROTECTED] wrote: dear Jonathan, in my computer, with the same versions of Firefox and FP, also under Vista, it runs fine. What worries me is that it doesn't use recursion, just some nested loops,

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-23 Thread EECOLOR
You could create a bitmap using BitmapData.draw. Add that to your display list, set cacheAsBitmap to true and things should run smootly. Not sure if it works, but it is just another suggestion. Greetz Erik On 5/22/08, Vayu Robins [EMAIL PROTECTED] wrote: Hej. I am wondering if there is

Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread EECOLOR
But in the end, how do you know that under the hood, the flash player is not doing exactly the same operation for an int cast, a Math.floor call and a shift zero ? Well, the thing here is that Math.floor is a function call. Function calls are by default more complex than using operators. This

Re: [Flashcoders] as3 - calling / sending with vars

2008-05-27 Thread EECOLOR
Another way to make the URLRequest is like this: *var urlVariables:URLVariables = new URLVariables(var1=1var2=10); var request:URLRequest = new URLRequest(http://url.com/;); request.data = urlVariables;* Greetz Erik On 5/27/08, Søren Christensen [EMAIL PROTECTED] wrote: Hi Viktor This

Re: [Flashcoders] API Interface in SWC...

2008-05-29 Thread EECOLOR
API's tend to be exposed through Interfaces. This allows you to program agains an interface, keeping the implementation (concrete class) out of sight. You wrote: *sumTwoNumbers(numA, numB) { baseApp.sumTwoNumbers(numA,numB) }* You should make sure that baseApp is typed as an interface (for

Re: [Flashcoders] AS3 - A simple questions

2008-06-05 Thread EECOLOR
I would recommend using event.currentTarget instead of event.target at all times. the event.currentTarget property contains a reference to the instance at which you registered the event listener. event.target refers to the class that dispatches the event. In this case there is no difference

Re: [Flashcoders] delegate.create query

2008-06-14 Thread EECOLOR
The this within the xmlOnload now points to the object you gave as scope to the create method of delegate. In order to access the xml object you would need to reference xmlDoc instead. The whole point of Delegate is to make sure mehods are called with the correct scope. xmlOnLoad will be called

Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread EECOLOR
Just a guess, but you could change the listener to MOUSE_OVER instead of ROLL_OVER. The difference between the two is very subtle and explained at the reference documentation of InteractiveObject. I am not sure if it is applicable to the problem posed. Greetz Erik

Re: [Flashcoders] AMF objects storing in database

2008-09-02 Thread EECOLOR
In the example they expect you to implement IExternalizable. This is only needed if you want to preserve properties that do not have both a getter and a setter. In most cases a public var is enough, then you wont have to implement the IExternalizable. I wanted to know, can I then just send the

Re: [Flashcoders] A Question that I've been asking for years!!

2008-09-02 Thread EECOLOR
There is one usecase that most Flash developers will come across. Lets say we have a loader.swf in which the main (or base) class is Loader.as. Loader.as loads main.swf, main.swf has as main (or base) class Main.as. Loader.as needs to give a signal to the loaded main.swf and tries to type the

Re: [Flashcoders] parsing newlines in textdocuments

2008-09-24 Thread EECOLOR
I think I would go for this: Replace the \r\n with \n and then split on \n. Greetz Erik On 9/8/08, Martin Klasson [EMAIL PROTECTED] wrote: Hi Coders, I am gonna to make a parser for the MicroDVD subtitle format, but I am not being able to find the documentation, yet a simple example for

Re: [Flashcoders] addChild multiple instances of a loader

2008-09-24 Thread EECOLOR
If img.jpg is on the same server as your swf, you wont have a problem. Otherwise you would need a crossdomain.xml. From the top of my head you could do something like this: function onLoadComplete(e:Event):void { var bitmap:Bitmap = Bitmap(_loader.content); var clone1:Bitmap = new

[Flashcoders] URLStream, POST and requestHeaders

2008-10-19 Thread EECOLOR
Hello, I am trying to do a request with custom request headers. In the documentation I found the following line: Due to browser limitations, custom HTTP request headers are only supported for POST requests, not for GET requests. So I changed my request to post, the request however does not seem

Re: [Flashcoders] URLStream, POST and requestHeaders

2008-10-20 Thread EECOLOR
I just found out the problem. If you put a value in the 'data' property of the urlRequest everything starts to work: * var r:URLRequest = new URLRequest(http://www.google.com;); r.method = URLRequestMethod.POST; r.data = 0; * Now the request will be sent as post and request headers are