Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 11-16-2006, 11:12 AM   #1
Registered User
Join Date: Nov 2006
Posts: 1
Default Class with param

I have this code attach to Tree's iconfunction:

private function treeIconFunction(item:Object):Class {
	return MyIconClass;
	import mx.controls.Image;
	import flash.display.Sprite;
	import mx.core.BitmapAsset;
	import mx.core.*;
	public class MyIconClass extends Image
		public var icon0:Class
		public function MyIconClass():void {
			var color:int=0
			var i:BitmapAsset= new icon0() as BitmapAsset;
			for (var y:uint = 3; y < 6; y++) {
				for (var x:uint = 4; x < 9; x++)
					i.bitmapData.setPixel(x, y, color);
My question is:
How can send param (item) from treeIconFunction to MyIconClass?
kefas123 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the mx.util.Delegate class within your classes! madgett ActionScript 2.0 3 09-02-2007 11:11 PM
Reusable class ... ? xxlm ActionScript 2.0 3 01-18-2006 03:29 AM
Database simulated with arrays on a cd-rom lecasn5 Components 61 09-07-2004 11:40 AM
card game: designing Deck class and good OOP? pigpen Gaming and Game Development 1 11-26-2002 11:41 AM

All times are GMT. The time now is 11:06 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.