School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 353,816 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,502 people online right now.Registration is fast and FREE... Join Now!



Maybe you guys can help me.

Maybe you guys can help me.

#1 DeceitfulPillow  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 1
  • View blog
  • Posts: 35
  • Joined: 22-June 08


Dream Kudos: 0

Posted 11 June 2009 - 06:42 PM

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 June 2009 - 06:52 PM

Was This Post Helpful? 0
  • +
  • -


#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • Icon

Reputation: 328
  • View blog
  • Posts: 5,032
  • Joined: 07-September 06


Dream Kudos: 1500

Re: Maybe you guys can help me.

Posted 11 June 2009 - 10:36 PM

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.
Was This Post Helpful? 1

#3 DeceitfulPillow  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 1
  • View blog
  • Posts: 35
  • Joined: 22-June 08


Dream Kudos: 0

Re: Maybe you guys can help me.

Posted 12 June 2009 - 01:01 AM

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.

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;


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



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 June 2009 - 01:04 AM

Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



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