Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 12th, 2003, 11:58 AM
djcheetah djcheetah is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 djcheetah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Trying to Dynamically Create Thumbnails...Help...

I have a problem.. What I am trying to accomplish is to load the images to copies of thumbMC on the root timeline. I can make the thumbnails with the following script:

// Just placeholder until I get the reading from textfile down..
image1 = "fa14.jpg";
image2 = "fa24.jpg";
image3 = "fa138.jpg";
totimage = 3;

// Duplicate thumbnail as long as there are image variables
i = 1;
while (i<=totimage) {
duplicateMovieClip("thumbMC", "t"+i, i);
this["t"+i].loadMovie("icon_"+eval("image"+i));
// Position
this["t"+i]._x = ((i*200)+20);
i++;

The thumbMC is a instance on the stage of a movie clip with a button already embedded in it. The button has script attached to load an emptyMovieClip "Container" on the stage. (This code is not included in the above).

The problem is when I use loadMovie to place the thumbnail image into the thumbMC, it erases the button that was in the orignal thumbMC.

Is there anyway to keep the invisible button in the movieclip after I load the jpg thumbnail to it? Or will I have to load a copy of the button separately (using similar code from above) to another level?

Thanks in advance for any help you can give.

DJCheetah

Reply With Quote
  #2  
Old November 16th, 2003, 01:51 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,714 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 10093 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 8 m 12 sec
Reputation Power: 580
Facebook MySpace
I thought loadMovie replaced the contents of the target movie with whatever you load. You can deal with this by adding another layer to your animation and place a blank movie in there. Then replace that movie with loadMovie instead. Make sure to place this new layer underneath the invisible button layer so that the button is still clickable/reachable.

hope this helps
-Tann

Reply With Quote
  #3  
Old November 19th, 2003, 09:25 PM
djcheetah djcheetah is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 djcheetah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the help...

It works by adding another empty movie clip "holder" and loading the jpg into thumbMC.holder.loadMovie("image1.jpg).

Works good.

Thanks,

DjCheetah

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Trying to Dynamically Create Thumbnails...Help...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT