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 February 14th, 2004, 11:22 AM
skezo skezo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 74 skezo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 12 sec
Reputation Power: 5
any help PLEASE! hair seems to be thinning...

Could someone please help I am going crazy!! I am connecting to a php file then it retrieves data from a mySQL database then flash presents it. This all works great. But here is the problem I want to then be able to duplicate the data (which is images). Please view the code below, I have tried many different ways but nothing seems to work. Any help would be greatly appreciated!!!
Thank you
skezo

Code:
userData = new LoadVars();
userData.load("testme.php");
userData.ref = this;
offset = 60;
userData.onLoad = function(succes) {
	if (succes) {
		for (var i = 0; i<this.cant; i++) {
		this.ref.createEmptyMovieClip("clip_"+i, i);
		this.ref["clip_"+i].createEmptyMovieClip("holder_"+i, i);
		this.ref["clip_"+i]["holder_"+i].loadMovie(this["Image"+i]);
		this.ref["clip_"+i]._yscale = 40;
		this.ref["clip_"+i]._xscale = 40;
		this.ref["clip_"+i].onPress = function() {
			duplicateMovieClip(this, "mc"+i, 500+i);
			startDrag("mc"+i);
			};
		this.ref["clip_"+i].onRelease = function() {
				stopDrag();
			};
		if (i != 0) {
			this.ref["clip_"+i]._y = this.ref["clip_"+(i-1)]._y+this.ref["clip_"+(i-1)]._height+offset;
			}
		}
	} else {
		trace("Something is wrong!!!");
	}
};
stop();

Reply With Quote
  #2  
Old February 14th, 2004, 03:02 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,297 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 9 m 17 sec
Reputation Power: 104
Send a message via ICQ to christo Send a message via Yahoo to christo
moderator's note

please post with a meaningful title if you want to get a meaningful answer.

christo

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > any help PLEASE! hair seems to be thinning...


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 3 hosted by Hostway