Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 18:10
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Recent Tutorial Support
| |-+  Flash GuestBook Support (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis)
| | |-+  Some questions about the guestbook
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Some questions about the guestbook  (Read 4548 times)
Left Nut of Thresh
Server what's that
*
Posts: 4


Flash-db Rules


View Profile WWW Email
« on: 01/17/02, 18:54 »

First off, thanks for making it for us.


I'll try to make this concise.

1.  I'm making one from scratch using your code and tutorial.  I want it to be two separate movies, one I've named read.swf, the other named write.swf.  

I assume this is possible.  Also, I want the read.swf to load into level 20, the write.swf to load into 15.  So anyplace I've seen a 1 or 0 at the end a line of code, I've changed the levels accordingly, correct?  Like so:

("http://www.roberthenry.org/Guestbook/GuestBook.php", 15, "GET");

Also, am I correct to assume that the write swf can work independant of the read.swf?  They don't need each other to work, I don't think.

2.  In your documentation, you never mention that we might have to change the path to the text file and the php file.  Is it understood that we should do that?
For instance, in the php file, it only references GuestBook.txt, but I changed it to its path on my server.  I also made these same type changes to the button code in the flas themselves.  Is this correct?  AND is there a problem with having two file names for all of this, ie. read and write?

Thanks.

Robert Henry
Left Nut of Thresh
http://www.roberthenry.org


Logged

Robert Henry
"Left Nut of Thresh"
http://www.roberthenry.org
Romwin
Server what's that
*
Posts: 35


Flash?... Whats Flash?


View Profile WWW Email
« Reply #1 on: 01/18/02, 03:40 »

Nut,
  Ok, yes you can have your movies working in different levels.  You dont necesarily have to change the level digit in the LoadMovNum action.
I never have and my stuff seems to work alright as long as the php output prints to the correct place... such as
Code:
Print "_level15.firstmc.secondmc=your return";
You also dont need to write out the whole address in the LoadMovNum action... you can just put in the file name if its in the same directory.  This is the way I tend to do it, saves writing
ActionScript
Code:
loadMovieNum ("GuestBook.php", 0, "GET");


Theres no problem in having two separate files, one to read and one to write.  

Hope i helped a little, Good luck
« Last Edit: 01/18/02, 03:41 by Romwin » Logged

Romwin out...
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #2 on: 01/18/02, 15:34 »

First of all you may want to read this MM technote on loadmovie vs loadMovieNum.  It also goes into some differences on loadvariable vs loadvariableNum.

http://www.macromedia.com/support/flash/ts/documents/loadmovienum.htm

Yes everything you have mentioned is possible.  And yes it is assumed that if you are changing things around you will be changing the path's name accordingly.  I tried to provide a set way of setting things up to provide the easiest way to use it the first time.  But their really is no need to set it up the way I explained.  Basically their is an unlimited amount of ways to set it up and use it.

(You can also use two files, one for writing and another by reading - by splitting up the script accordingly.)

The most important thing and hardest part is getting all of the path names correct.  
« Last Edit: 01/18/02, 15:37 by Flash-db » Logged

-Jeff.
Left Nut of Thresh
Server what's that
*
Posts: 4


Flash-db Rules


View Profile WWW Email
« Reply #3 on: 01/18/02, 20:36 »

Both of you, thanks for your help thus far.

I got everything working, except that when the read.swf shows the guestbook comments, there are bits of code mixed in with the actual message.  See:

Name: <b>Robert Henry</b><br>Email: <b><u><a href="mailto:robert@roberthenry.org">robert@roberthenry.org</a></b></u><br>Website: <b><u><a href="http://www.roberthenry.org" target="_blank">www.roberthenry.org</a></b></u><br>Comments: <b>THIS IS A TEST MESSAGE.</b><br><i><font size="-1">Date: Friday 18th of January 2002 (

This is what is displayed.  How can I fix this?


Logged

Robert Henry
"Left Nut of Thresh"
http://www.roberthenry.org
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #4 on: 01/18/02, 20:44 »

Check off the 'HTML' checkbox for the dynamic text box you are using to display the data in.

That should work.
Logged

-Jeff.
Left Nut of Thresh
Server what's that
*
Posts: 4


Flash-db Rules


View Profile WWW Email
« Reply #5 on: 01/18/02, 20:49 »

Damn, that was fast.

I checked and the HTML box is already as you suggested.

Here is the fla if you wouldn't mind checking it.

http://www.roberthenry.org/files/Read.fla
Logged

Robert Henry
"Left Nut of Thresh"
http://www.roberthenry.org
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #6 on: 01/18/02, 21:25 »

Checked it - The "HTML" check box was not checked off for any of the fields.    Text Options > Text Options - then the top Checkbox - HTML.  For the 'readfile' dynamic text box.  That should really work.  
Logged

-Jeff.
Left Nut of Thresh
Server what's that
*
Posts: 4


Flash-db Rules


View Profile WWW Email
« Reply #7 on: 01/18/02, 21:32 »

Lol, I understood you to mean checked OFF, as in not checked.
Logged

Robert Henry
"Left Nut of Thresh"
http://www.roberthenry.org
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #8 on: 01/18/02, 21:34 »

As in checked.  Just try it each way if I'm not making any sense which is probably the case.
Logged

-Jeff.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything