Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

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 December 28th, 2006, 07:46 PM
isus isus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Location: MI, USA
Posts: 83 isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 12 h 35 m
Reputation Power: 7
Php mysql and flash "oh my"

Okay here is the scoop. I would like to create a low level CMS using flash on the font end as a UI, and mysql as a database and php to connect the two. I have never done anything like this and I need a tutorial or some really good references that would explain the nuts and bolts really well from the ground up. I am pretty profecient with flash and I understand actionscript pretty well but writing it is pretty difficult for me. Basically if I see the code I understand how it works (for the most part) but to come up with the syntax is more of a problem. I've just started to look at php so I'm total noobie. I know what mysql is but I don't have any experience with accessing and I really don't understand how the database structure works. The other issue is that I'm not totally sure how dynamic websites are created with php. I understand the concept but it seems that there are a ton of code snipits placed in various directories that are pulled together to make the website happen, but its hard for me to parse out how it actually works without seeing a roadmap of sorts with some directions.

Any ideas on all this? I know its a lot but I'm wiling to learn and read a ton just need a good start.

thanks

Reply With Quote
  #2  
Old January 5th, 2007, 10:02 AM
issamneo's Avatar
issamneo issamneo is offline
a matrix member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Tunisia
Posts: 176 issamneo User rank is Lance Corporal (50 - 100 Reputation Level)issamneo User rank is Lance Corporal (50 - 100 Reputation Level)issamneo User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 13 h 38 m 11 sec
Reputation Power: 9
isus, what you ask isn't a small task it's a whole project;
i work on a CMS, but sorry i can't give you the code.
the idea is that you have flash for the part to interact with th user and php do the server side job.
to send and get variables from php use sendandload in flash it's not hard then everything is easy. for me i haven't use mysql i use xml it's better so flash <==> php <==> XML

if you have any precise question

i'm here
__________________
THE MATRIX HAS YOU

-------------------------------
end transmission
-------------------------------

Reply With Quote
  #3  
Old January 5th, 2007, 01:16 PM
isus isus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Location: MI, USA
Posts: 83 isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 12 h 35 m
Reputation Power: 7
How do you create an xml database, and is it secure?

Reply With Quote
  #4  
Old January 5th, 2007, 01:37 PM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 5,309 b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 7 h 25 m 36 sec
Reputation Power: 2348
Facebook Orkut
You should use a proper MySQL database. That means you don't have to worry about things like concurrent users, caching, etc because the DBMS deals with it automatically. It's also much easier and faster to search/sort/update your data.

When you use PHP to access the database, you can return your data to Flash as XML.
__________________
.
:: My blip.fm tunes :: Web Design Feeds :: Web Dev Feeds :: CheatSheets :: PHP :: MySQL :: 13 Moon FB App.

"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves."
- Bill Hicks


"Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it."
- Heart Sutra

Reply With Quote
  #5  
Old January 5th, 2007, 02:09 PM
isus isus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Location: MI, USA
Posts: 83 isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 12 h 35 m
Reputation Power: 7
Quote:
Originally Posted by b3n
You should use a proper MySQL database. That means you don't have to worry about things like concurrent users, caching, etc because the DBMS deals with it automatically. It's also much easier and faster to search/sort/update your data.

When you use PHP to access the database, you can return your data to Flash as XML.


Doesn't this add another layer of complexity? Won't I need to convert my output and input so I will have flash-->xml-->php-->mysql and back.

Reply With Quote
  #6  
Old January 8th, 2007, 10:19 AM
armands_pucs armands_pucs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 2 armands_pucs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 31 sec
Reputation Power: 0
i remember there wa

i remember there was another way of getting data from php to flash.

I if remember right flash can call the php file and get variables directly from it.

Or maybe I was just dreaming it

Reply With Quote
  #7  
Old January 8th, 2007, 11:51 AM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 5,309 b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 7 h 25 m 36 sec
Reputation Power: 2348
Facebook Orkut
Flash and PHP can talk to each other directly.

Flash uses LoadVars() to communicate with a php script:
actionscript Code:
Original - actionscript Code
  1.  
  2. var myLoadVars:LoadVars = new LoadVars();
  3. myLoadVars.num1 = 5;
  4. myLoadVars.num2 = 3;
  5.  
  6. myLoadVars.onload = function(success)
  7. {
  8.    if (success)
  9.    {
  10.       trace(myLoadVars.answer); // 8
  11.    }
  12. }
  13. myLoadVars.sendAndLoad('script.php', _root.myLoadVars, 'POST');


So if your PHP script outputs:
PHP Code:
// script.php
$num1 $_POST['num1'];
$num2 $_POST['num2'];

$answer $num1 $num2;

print 
"&answer=$answer"


Hopefully you can see the possibilities.

Last edited by b3n : January 8th, 2007 at 02:41 PM.

Reply With Quote
  #8  
Old January 8th, 2007, 01:34 PM
isus isus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Location: MI, USA
Posts: 83 isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 12 h 35 m
Reputation Power: 7
This is really helpful. It seems I'm going to be working on this project in my off time now. I've just been thrown some higher priority items at work, but I will be playing with flash and php at home. Thank you.

Reply With Quote
  #9  
Old January 8th, 2007, 02:37 PM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 5,309 b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 7 h 25 m 36 sec
Reputation Power: 2348
Facebook Orkut
It's also possible to use an XML object instead of a LoadVars object. You can point it at an xml file or to a php script that prints out xml. I think that's faster.

Last edited by b3n : January 8th, 2007 at 02:40 PM.

Reply With Quote
  #10  
Old January 9th, 2007, 02:48 AM
armands_pucs armands_pucs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 2 armands_pucs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 31 sec
Reputation Power: 0
Made a working example

I made a working example where flash takes a variable from PHP!

I hope this will be useful!

d01.megashares.com/?d01=68a65f5

Reply With Quote
  #11  
Old January 9th, 2007, 06:47 AM
isus isus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Location: MI, USA
Posts: 83 isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level)isus User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 12 h 35 m
Reputation Power: 7
Thank you, I'll give it a whirll.

Reply With Quote
  #12  
Old October 20th, 2007, 01:25 AM
edub9 edub9 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 2 edub9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 39 sec
Reputation Power: 0
Working example

Would I be able to download the source files?
I learn by taking things apart and visually so things are difficult for me.

Thanks,

Eric


Quote:
Originally Posted by armands_pucs
I made a working example where flash takes a variable from PHP!

I hope this will be useful!

d01.megashares.com/?d01=68a65f5

Reply With Quote
  #13  
Old October 20th, 2007, 08:03 PM
XenNetwork XenNetwork is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: In the jungle with bicycle powered computers...
Posts: 213 XenNetwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 39 m 10 sec
Reputation Power: 8
Send a message via AIM to XenNetwork
This sorta thing is hard for someone who dosent know how certain aspects work, i would suggest making a php + mysql guest book as a way to learn how they both work, once you get that over with, you will be off to a great start.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Php mysql and flash "oh my"


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 - 2012, Jelsoft Enterprises Ltd.

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