School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,389 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,562 people online right now. Registration is fast and FREE... Join Now!




Maybe you guys can help me.

 

Maybe you guys can help me.

DeceitfulPillow

11 Jun, 2009 - 06:42 PM
Post #1

New D.I.C Head
*

Joined: 22 Jun, 2008
Posts: 35



Thanked: 1 times
My Contributions
Okay, for this project I was assigned by my admins on a forum, I have to create what is essentially a forum signature in photoshop and convert to flash. On this card I have to have certain components that could be interacted with by anyone. Hmm, I'm confusing myself.

Basically, a card, no bigger than probably 400x200 (WxH). Somewhere on this card, I need to an interactive component somewhat like a shout box. Kind of hard to explain. I just need a little area where people who are looking at it, can type something, press a send button and it'll post it in an area on the card so that the holder of the card could check back later, click the button to open the box with the messages, which is password protected, and read what people typed but the messages need to be saved on it and not disappear with a refresh. Now before I start on it I need to know two things.

Is this possible in any way?

If it is, what would I have to search for to get a good idea of how to do it? i.e. The action script needed, tutorials possibly, etc.

This post has been edited by DeceitfulPillow: 11 Jun, 2009 - 06:52 PM

User is offlineProfile CardPM
+Quote Post


BetaWar

RE: Maybe You Guys Can Help Me.

11 Jun, 2009 - 10:36 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
QUOTE
Is this possible in any way?

Yes, but it will be time consuming.

Minimal requirements (to make it good):
Flash (As2 or 3, doesn't matter)
PHP (or any other server side language)
Database (be it MySQL or otherwise)

Idea for sending messages:
You have the swf displayed on pages. It will need to know what member it is being displayed on at the time, as well as the member who is viewing the page (this will be done through HTML and sending Flash a variable upon loading) (this should be 2 different people, but may be the same in some cases)
People type in text
They click submit
Flash connects to PHP and sends the data (Person id who typed the message, person id who will recieve the message, and message)
PHP places it in the database

Idea for viewing messages:
When the user views the page which they can view the stuff from they type in their login information (into flash)
Flash sends it to PHP
PHP checks if it is valid (against the members database/table)
If it is PHP goes to the other database/ table and gets all messages to that user
PHP sends the messages back to flash
Flash displays the messages in some fashion.

Hopefully that makes sense.
User is offlineProfile CardPM
+Quote Post

DeceitfulPillow

RE: Maybe You Guys Can Help Me.

12 Jun, 2009 - 01:01 AM
Post #3

New D.I.C Head
*

Joined: 22 Jun, 2008
Posts: 35



Thanked: 1 times
My Contributions
tnx, I was messing around with some stuff and decided to try XML but I'm having problems.

I haven't done any of the PHP yet, but when I try and test the movie, I get compiler errors on these sections.

CODE
var urlRequest:URLRequest = new URLRequest("input.xml");
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener (Event.COMPLETE,fileLoaded);
urlLoader.load (urlRequest);

var myXML:XML = new XML();
myXML.ignoreWhitespace = true;
var xmlList:XMLList;


CODE

function fileLoaded (event:Event):void {
        myXML = XML(event.target.data);
        xmlList = myXML.children();


CODE

for (var i:int=0; i<xmlList.length(); i++) {
            var xmlName:String = xmlList[i].name;
            var xmlFull:String = xmlList[i].full;
            arrayName.push (xmlName);
            arrayFull.push(xmlFull);


Its actionscript 3.0

Btw, I'm not too good at 3.0 so I probably typed in something that wont work or something. basically it just says I can't load the URLRequest, URLLoader, XMLList, or event:Event. any ideas on what I nubbed up? lol

This post has been edited by DeceitfulPillow: 12 Jun, 2009 - 01:04 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 09:39PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month