RE: [Flashcoders] attaching an event to a movie clip

2007-04-10 Thread Tony Accurso
CAN YOU PLEASE REMOVE MY EMAIL FROM THIS LIST? YOUR WEBSITE DOES NOT WORK IN 
REMOVING IT. I WILL REPORT YOU AS A VIOLATION OF THE CANN-SPAM ACT, I HAVE 
SENT EMAILS BEFORE REGARDI G THIS


Original Message Follows
From: "Jesse Graupmann" <[EMAIL PROTECTED]>
Reply-To: flashcoders@chattyfig.figleaf.com
To: 
Subject: RE: [Flashcoders] attaching an event to a movie clip
Date: Fri, 6 Apr 2007 13:56:08 -0700
MIME-Version: 1.0
Received: from chattyfig.figleaf.com ([146.145.88.77]) by 
bay0-mc8-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 6 
Apr 2007 14:02:57 -0700
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])by 
chattyfig.figleaf.com (Postfix) with ESMTP id 4F8745E1FE8;Fri,  6 Apr 2007 
16:02:52 -0400 (EDT)
Received: from enterprise.dns-nac-zone.com (unknown [207.99.65.32])by 
chattyfig.figleaf.com (Postfix) with ESMTP id BD1C15E1CB7for 
;Fri,  6 Apr 2007 16:02:17 -0400 (EDT)
Received: from c-24-19-42-102.hsd1.mn.comcast.net 
([24.19.42.102]:1262helo=AMD64X2) by enterprise.dns-nac-zone.com with esmtp 
(Exim 4.63)(envelope-from <[EMAIL PROTECTED]>) id 
1HZvTp-0003cQ-IOfor flashcoders@chattyfig.figleaf.com; Fri, 06 Apr 2007 
21:56:21 +0100
X-Message-Info: 
txF49lGdW41lf1H3XdHksU7aNwyk7PJZlFoY/7Q/OB06H9FXnsZwLb1WccYJRJB4

X-Original-To: flashcoders@chattyfig.figleaf.com
Delivered-To: flashcoders@chattyfig.figleaf.com
References: 
<[EMAIL PROTECTED]><[EMAIL PROTECTED]>

X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Thread-index: Acd4gCxvbQF/5b9ATquXqmgaVTsJPgAAZ3ygAAKzM/A=
X-Pass-two: yes
X-AntiAbuse: This header was added to track abuse,please include it with any 
abuse report

X-AntiAbuse: Primary Hostname - enterprise.dns-nac-zone.com
X-AntiAbuse: Original Domain - chattyfig.figleaf.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - jessegraupmann.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-BeenThere: flashcoders@chattyfig.figleaf.com
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: flashcoders.chattyfig.figleaf.com
List-Unsubscribe: 
, 


List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: 
,

Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 06 Apr 2007 21:03:08.0945 (UTC) 
FILETIME=[FAA98010:01C7788E]


Or you can use the MovieClipLoader()...




//
//  DATA
//


imageData =
{
dir: "models/",
ext: ".jpg",
images: [
 {title:'myfirst', path:"image1"},
 {title:'mysecond', path:"image2"}
 ],
clips: []
};

//
//  CREATE
//

var xspace = 100;
var yspace = 100;
var holder = this.createEmptyMovieClip ( 'holder',
this.getNextHighestDepth();
var len = imageData.images.length;

for (i = 0; i < len; i++)
{
var mc = holder.createEmptyMovieClip ( 'mc_'+ i,
holder.getNextHighestDepth() )
mc.image = mc.createEmptyMovieClip ( 'image',
mc.getNextHighestDepth() )

mc.loader = new MovieClipLoader();
mc.loader.addListener( mc );
mc.onLoadInit = proxyBEFORE ( this, image_onLoadInit, i );
mc.onLoadError = proxyBEFORE ( this, image_onLoadError, i );
mc.loader.loadClip( imageData.dir + imageData.images[i].path +
imageData.ext, mc.image );

mc.id = i;
mc._x= xspace * -i;
mc._y = yspace * i;

imageData.clips.push ( mc );
}

//
//  LOADING
//

function image_onLoadError ( id, image )
{
var mc = imageData.clips [ id ];
trace( 'image not loaded for: ' + mc );
}

function image_onLoadInit ( id, image )
{
var mc = imageData.clips [ id ];

delete mc.loader;
delete mc.onLoadInit;

mc.onRollOver = function()
{
var title = imageData.images [ id ].title;
var path = imageData.images [ id ].path;

trace( 'title: ' + title +  '  path: ' + path )
}
}


//
//  PROXY
//

function proxyBEFORE (s:Object, func:Function):Function
{
// from jgDelegate
var a:Array = arguments.slice(2, arguments.length);
return function ():Void { func.apply(s, a.concat(arguments));};
}






_

Jesse Graupmann
www.jessegraupmann.com
www.justgooddesign.com/blog/
_




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Ngo
Sent: Friday, April 06, 2007 12:30 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: 

[Flashcoders] Please remove me from your email lists!

2007-03-05 Thread Tony Accurso
Hi, can you please remove my email from your list??? I have tried several 
times before with no success. I hate to site the Cann-spam act on your org, 
and pursue this to a deeper resolution. thanks...


_
Play Flexicon: the crossword game that feeds your brain. PLAY now for FREE.  
 http://zone.msn.com/en/flexicon/default.htm?icid=flexicon_hmtagline


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com