Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 July 11th, 2002, 05:02 AM
carazy carazy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 1 carazy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
variables in flash

Is there anyway to make flash use variables from a mysql database?

Thanks,

Warren

Reply With Quote
  #2  
Old July 15th, 2002, 05:31 PM
wdn2000's Avatar
wdn2000 wdn2000 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Apr 2000
Posts: 1,058 wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level)wdn2000 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 6 Days 20 h 56 m 43 sec
Reputation Power: 21
Sure.

Have PHP (or your scripting language of choice) fetch the values and then pass them to your .swf something like this:

Code:
<param name="movie" value="your.swf?name=value">



http://www.phpforflash.com/ is a decent site for more info about this sort of thing.


wdn2k

Reply With Quote
  #3  
Old July 18th, 2002, 07:13 AM
Rooseboom's Avatar
Rooseboom Rooseboom is offline
busy...is there any other way?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Amersfoort, Netherlands
Posts: 259 Rooseboom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 9 m 43 sec
Reputation Power: 12
that is 1 way of doing it....another (more dynamic in my opinion) is to let flash load a script with variables in it.

howto outlined:

on timeline let flash load variables (see loadmovie) and call a php (if u use php) script.

the php script gets the wanted variables from a database (mysql in your case) en echo them as:

echo "&var1=value&var2=value2&var3=value3";

If flash load this it can use the variables var1, var2 and var3.

For instance if you dynamically want to fill a textbox with the content of var1 you make a textbox in flash (after loading the script on the timeline) and use |AB in flash the make it a input type textbox and give the textbox the name var1.

Now your flashmovie will show the content of var1 in the textbox.

goodluck

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > variables in flash

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap