Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 00:46
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)
| | |-+  won't work
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: won't work  (Read 3060 times)
monkonfire
Server what's that
*
Posts: 2


Flash-db Rules


View Profile Email
« on: 01/21/02, 08:07 »

Hello Admin

I've been working on one of your tutorials for a guestbook - however on the version I tried to make for myself I kept coming accross a problem - I then uploaded the .FLA supplied with your tutorial and the same thing happens. in the enties panel i get a piece of the .php code which looks like this
";
     for ($n = $NumLow; $n

I'm probably having a wood for trees moment but I've had a nightmare trying to get a CGI version of a guestbook up and running and I thought this was heaven sent when I read it. the link where it currently resides is below, hopefully you can give a hint or tip - thanks in advance.
John

PS I looked for the missing " you mentioned in the email but it was there.
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 01/21/02, 17:13 »

Hey John,

This may be a server issue.  If you answer the next couple of questions I'll see what I can help you with.

1) Does your server support PHP - I'm sure it does but I may need some more information on this.

2) If so can you create a file called Test.php and place the following Code inside of it:  
Code:

<?php phpinfo(); ?>


What this does is provides information on what version you are using - and any special items/configurations that the server your hosting your site on has done.  If this file does not work, then you do not have PHP installed.

(You can upload Test.php to any directory or location on your server).

If that is working - Please Post the GuestBook.php Code you are working with and I'll look over it for syntax errors.
Logged

-Jeff.
monkonfire
Server what's that
*
Posts: 2


Flash-db Rules


View Profile Email
« Reply #2 on: 01/22/02, 05:59 »

ah hello Jeff

my fault - it was as simple as Chmod'ing the wrong file - .php not .txt

anyhow I have encountered another problem - the file works ok when loaded on it's own but when I load the .swf into another .swf (level 1) it won't work. any ideas

thanks

John
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #3 on: 01/22/02, 17:40 »

This problem is due to the paths you are using to load the variables.  If for example your guestbook is on level 1 - you will have to use the (target/level) attribute of loadVariables.  I can not provide the exact code because I'm not sure how you have it set up exactly.  But you should be the idea.  You can specify a level, or target to load the variables into.  

For example:

loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), this);
(Notice the 'This' - this will load the variables into the MC that you made the call from)

loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 1);
To Level 1

loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), _root.MC1.GuestBookMC);
(To a movie Clip called GuestBookMC located within the Movie Clip MC1)


Just try out a couple of different options that you think would work - then you'll eventually find one that does after a couple of tries.  The most important thing is probably just keep trying, then after you get the hang of loading variables into different Levels or Targets, it will be easier.

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