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 April 6th, 2003, 03:05 PM
jej2003 jej2003 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 7 jej2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Flash Newbie

Ok, here is my question. I am a newbie to flash and have only been playing with it for about oh maybe 3 hours. I need to learn this relatively quickly though as I have a project due in a class of mine and would like to make it snazzy with Flash. So here goes. I am currently trying to get information from MySQL and use it in Flash. To my understanding I need to use PHP or some other scripting language to do so which is not a problem. I have made a test file that simply echo's a string in the form var="value"&var2="value2" and I am trying to load this into Flash using the following commands
Code:
temp = new LoadVars();
temp.onLoad = function() { 
    for (i=0; i < this.n; i++) {
        content.htmlText += "<b><ahref='mailto:" + this["lastName"+i] + "'>" + this["lastName"+i];
    }
}
temp.load("test.php");

the only problem is I get no output at all when I do this. The fla file I am currently using is located at http://www.eden.rutgers.edu/~rusty0/SE/crap3.fla if you need to look at it and the test.php file is located there as well. I am sure what I am doing is because I am a complete retard as far as it is concerned with Flash right now but I woudl greatly appreciate any help

Reply With Quote
  #2  
Old April 7th, 2003, 01:16 AM
jej2003 jej2003 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 7 jej2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok, I got that part fixed. I followed a tutorial I found online (after doing it wrong a couple of times and got it working). My next question is an interesting one. I am trying to use the following command
Code:
content.htmlText += "<b><a href='asfunction:showmess," + this["message"+x] + "'>" + this["course"+x] + "</a>" + this["title"+x] + "</b><br>";

and for some reason it works for the 2nd and 3rd values but not the 1st and 4th. Here is the output of the php file I am taking the information from
Code:
num=3&course0=01:192:150:02&coursename0=Web Applications&title0=Testing for bruce&date0=20030404030255&message0=bruce look at this&course1=01:192:150:02&coursename1=Web Applications&title1=Beginning of year info&date1=20030404000536&message1=This is a test to check web apps&course2=01:192:301:02&coursename2=Intro To&title2=Comp Science Urgent Please Read&date2=20030403224801&message2=This message is to show that my system works 

Also as a side note which might help someone solve this when I don't use the asfunction:showmess the output is as expected. It seems there is somethign wrong with message0 and 4 I just can't figure out what

Reply With Quote
  #3  
Old April 7th, 2003, 01:35 AM
jej2003 jej2003 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 7 jej2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok I am retarded, please ignore this whole post.

Reply With Quote
  #4  
Old April 8th, 2003, 07:01 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
if u don't want us to read it, delete it. and dont make it so we have to scroll out to do anything.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash Newbie


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