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
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
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
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.
(*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
]
[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
: 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
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 *
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
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 =
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
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?
12 matches
Mail list logo