Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 01:54
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)
| | |-+  Guestbook as Separate Movie Clip
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Guestbook as Separate Movie Clip  (Read 2874 times)
nate
Server what's that
*
Posts: 2



View Profile Email
« on: 01/27/02, 14:16 »

Jeff, I want to think you for providing this guestbook and the tutorial, it has been a great learning tool.

Here's my problem:

I want to be able to take the existing guestbook code and use it within a separate movie clip (MC).  This way I can can call the MC from the main time line, scale it, move it etc. I have stumbled through this by trial and error but cannot get the text box to update with the guestbook.txt info. Interestingly, the EnterData form still functions and entries are updated within the text file from the MC even though I only see the "Loading" message.

I have kept all of the tutorial files named the same and am using a movie clip entitled "gbook".  I simply copied the frames from the main time line into the new MC. Any help on how to set up the paths/php print statement etc. for this approach would be greatly appreciated.

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



View Profile WWW
« Reply #1 on: 01/27/02, 21:56 »

The hardest part of using the guestbook in a different movie clip will be to get all of the path names correct.  You should make sure that you've got it working in it's basic form - then experiment with using it in different locations.  It will be possible to use the guestbook even if you load the GuestBook dynamically with LoadMovie.  But the Paths do get tricky.

It's important to give every Movie clip your using an Instance Name - then reference that Instance name in the paths that you are using.

Their are a couple of similiar threads on this, here's one:
http://www.flash-db.com/Board/index.php?board=2&action=display&threadid=34&start=0

One of the easiest ways to use is using the 'This' path.  So if your loading the Guestbook into a movie clip.  You can place something like this on the first frame:

NumLow = 0;
NumHigh = 10;
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), this);
stop();

Notice how "This" replace's the "0" - that was their before.
Logged

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



View Profile Email
« Reply #2 on: 01/28/02, 20:30 »

thanks for the help.

It's working! The instance suggestion was the first help. The second was the links that you provided. I had the paths set up at one point, however I kept getting the new window with the text file. The final fix was to change to "loadVariables" not loadVariablesnum.

Thanks a million.
Logged
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