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 12th, 2003, 09:44 PM
zapa zapa is offline
Mentat of IX
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Bucuresti / Toronto
Posts: 112 zapa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 sec
Reputation Power: 6
Send a message via ICQ to zapa
building dynamic flash content based on php/html

Hey guys ,
I was wondering if you can create dynamic FLASH content from a PHP website... that is, creating the Flash content based on the actual PHP backend not the PHP functions... Is that possible? I know FLASH supports PHP but can you import the whole PHP backend in FLASH? or do you have to re-create the PHP backend in FLASH?

Reply With Quote
  #2  
Old April 17th, 2003, 02:11 AM
JCMerlin JCMerlin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 126 JCMerlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 14 m 29 sec
Reputation Power: 6
Im not sure i understand what you mean..... why would you need to get the file into flash??

Reply With Quote
  #3  
Old July 24th, 2003, 02:22 PM
smithhayward smithhayward is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Edison, NJ
Posts: 9 smithhayward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to smithhayward
Yes you are right

I hope that this information doesn't come too late. You've probably already found your answer elsewhere, but I'll answer you anyway, as I am about to create what you're talking about from the ground up.

The short answer is YES. you have to rebuild it. The reason for this is that Flash doesn't accept the current output of HTML to display your information. You will need to re-write the PHP to output in a format that Flash can understand.

Flash basically calls a URL to get variables. You need to define what you want your variables to be called in flash and just export the data in this format:

var1=this is the value of the first variable&var2=the second variable is better than the first&

this should be on one line of the output from the PHP file. As you collect the information within your PHP code, you can keep appending the values to the end of a variable used in a final echo or print command (i.e. $output)

Once you have your data in Flash you can manipulate it all you want in actionscript, or just have dynamic text fields pre-assigned to the variables that you load from your PHP/DB backend.

There are plenty of tutorials around that should describe this in detail. Most decent Flash MX books will also touch on this topic. Flash MX Unleased (Sams I think) goes into depth with this sort of theory.

Happy RE-coding!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > building dynamic flash content based on php/html


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