#1 (permalink)  
Old 06-29-2008, 01:26 PM
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default clicked item data > load mc

Howdy,

How can i get it to load a movieclip instead of xml data upon clicking the images. I would need it to load a different movieclip for each image.

ta
Reply With Quote
  #2 (permalink)  
Old 07-01-2008, 08:26 AM
Super Moderator
 
Join Date: May 2008
Posts: 519
Send a message via Skype™ to Adrian
Default

Hi,
You could try this:

In the main.fla, first frame action script:
Code:
Image.clickHandler = function(dat){
	some_mc.loadMovie(dat);
}
and in the xml:
Code:
<pic src="pics/10.png" title="Regoran" data="some_external_file.swf" />
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.