RE: [Flashcoders] Tile Bitmap

2005-12-02 Thread Frédéric v . Bochmann
Another way you can do this is by using a combination of the BitmapData.draw method and the Rectangle object. Technically you could draw a part of an image delimited in coordinates by the Rectangle object directly in another bitmap. This might be a bit faster than coming pixel per pixel your

RE: [Flashcoders] Flash 8 - upload/download - authentication problem

2005-11-30 Thread Frédéric v . Bochmann
Rephrasing: I personally think you simply can't UPLOAD in secure areas, but I might be quite wrong. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frédéric v. Bochmann Sent: November 30, 2005 1:39 PM To: 'Flashcoders mailing list' Subject: RE

RE: [Flashcoders] Load/export Symbol in ActionScript

2005-11-28 Thread Frédéric v . Bochmann
Normally, you would keep the RMCSymbol in your library with the linkage and class association and not use Object.registerClass. If you want to associated your symbol dynamically to a class at run-time you can use Objec.registerClass(RMCSymbol, RMC); for example. This function can only set your

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
I'm not picking any sides, The Idea of a getInstance method (Singleton), as you guys have been saying, is to have a static way to get a non-static instance of a class. Also, that way of working makes it easier for the creator of that class to know his class will only get instantiated once.

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
(*Just looking back at the title of this Thread*) Just in case someone's wonders; creating a Singleton is nothing new in ActionScript, it can be done in AS1, AS2 or AS3. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Spike Sent: October 29, 2005 12:25

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: October 29, 2005 12:48 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question I didn't know what a Singleton was until AS2 was well underway. - Original Message - From: Frédéric v. Bochmann [EMAIL PROTECTED

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
: Frédéric v. Bochmann [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Saturday, October 29, 2005 6:32 PM Subject: RE: [Flashcoders] Newbie AS3 question (*Just looking back at the title of this Thread*) Just in case someone's wonders; creating a Singleton

RE: [Flashcoders] scrolling problem

2005-10-29 Thread Frédéric v . Bochmann
I forgot something...true. Change it to something like: var scrollRatio = scrollBar.slider._y / scrollBar.scrollTrack._height; var heightToScroll = currentChild._height - currentChildContainerMask._height; if(heightToScroll 0) { heightToScroll = 0; } currentChild._y = - scrollRatio *

RE: [Flashcoders] scrolling problem

2005-10-29 Thread Frédéric v . Bochmann
To: Flashcoders mailing list Subject: Re: [Flashcoders] scrolling problem Frédéric v. Bochmann wrote: I forgot something...true. Change it to something like: var scrollRatio = scrollBar.slider._y / scrollBar.scrollTrack._height; var heightToScroll = currentChild._height

RE: [Flashcoders] Re: Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
Hey ryanm, Imagine this: class MyClass { private var myName:String; public function MyClass(myName:String) { this.myName = myName } } Or: class MyClass { public function MyClass(myEventDispatcher) { var myListener = new Object(); myListener.controler = this; myListener.click =

RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Frédéric v . Bochmann
This example makes me wonder: If I was to write this in AS2, it would probably look like: class Game extends MovieClip { public function Game(){ var gameworld:MovieClip = new createEmptyMovieClip(gameworld_mc,getNextHighestDepth()); //new GameWorld()? var

RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Frédéric v . Bochmann
What's drawn at each frame is it only the BitmapData representation of the movieclip or is it the actual movieclip? I know technically that could end-up to the same thing, that's why I'm curious. Just trying to get a good grasp of how addChild and new MovieClip work internally. Anyone know?