Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-29-2007, 05:12 AM   #1
Senior Member
Join Date: Aug 2007
Posts: 155
Default click event on loader component


i m trying to make thumbnails of large images using loader component. And i have done with it. but now how to give click event to those thumbnails to show large images.

my code:

_root.emptymc_mc.scrollmc_mc.newmc_mc.createClassO bject(mx.controls.Loader, "clip" + i , i, {contentPath:
thumbs.firstChild.childNodes[2].childNodes[i].childNodes[0].nodeValue, scaleContent: true, _width: 40, _height: 40, _xi*55), _y:5});

anybody can help me???

waiting for ur reply...

thanks a lot.
jlackyashdya is offline   Reply With Quote
Old 12-30-2007, 04:21 AM   #2
Greg SS
Uber sleepy
Join Date: Nov 2007
Location: Bandung
Posts: 886
Send a message via Yahoo to Greg SS

this might work...
var target:String = thumbs.firstChild.childNodes[2].childNodes[i].childNodes[0].nodeValue;
_root.emptymc_mc.scrollmc_mc.newmc_mc["clip"+i].onRelease = function(){
Greg SS 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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BREAK an IF Loop? 05studios ActionScript 3.0 8 12-12-2007 06:40 PM
More than one Click event at a time p0c ActionScript 3.0 2 08-23-2007 12:02 PM
How do I change the alpha of a movie being loaded in with a Loader Component? Shaun-Optimus Components 0 06-01-2006 03:29 PM
using loader component for external swf and jpg. HELP 72monkeys ActionScript 2.0 0 02-21-2006 07:47 PM
Event handling with Listeners - learning from Java robertpenner ActionScript 1.0 (and below) 2 08-08-2001 11:36 PM

All times are GMT. The time now is 11:19 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.