Welcome, Guest
  • Author Topic: wont work  (Read 4484 times)

    mock tudor

    • Server what's that
    • *
    • Posts: 4
      • View Profile
    getting closer...
    « Reply #15 on: 05/24/02, 06:28 »
    thanks Karl.

    SO i changed all the references to level 0 to the level within the parent movie.
    that is the frame action  and the button actions for 'prev 10' 'next 10', and 'submit'
    No joy...
    The directory is as follows - a launcher.swf  loads a navigation.swf to level 100,  and the navigation.swf  then loads the guestbook to level 102. so i guess that i just replace '0' with '102'. but no joy.
    the .php .txt and guestbook file of course now all reside in the same folder but on a different server from the parent movie.
    should anything be changed to the .php file??
    or should the reference to the .php file within guestbook.swf be changed to an absolute URL??

    any ideas??

    thanks again

    stuart


    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #16 on: 05/24/02, 11:14 »
    well there is a nice little security feature that Flash has...you cannot link to scripts on another server.  It is a security feature made for preventing people from stealing scripts, pictures, and whatever else.

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:wont work
    « Reply #17 on: 05/24/02, 18:34 »
    I have managed to get this to work quite successfully first time round. I suppose as you are linking to the file that links to the script on the same server it kind of bypasses the security thing.

    Try giving it the full URL reference

    http://www.yoursite.com/yourdirectory/Guestbook.php

    loadVariablesNum("http://www.yoursite.com/yourdirectory/Guestbook.php NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 1);

    That's what worked for me.

    Also I was a bit confused as to why you are loading in at _level 102, do you need to go up so far?

    Do you have any urls I could see?

    This is strange as I have tried a number of applications out like this and all seems fine.

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #18 on: 05/31/02, 19:41 »
    If you are loading into a level, might I purswade you to load into an MC.  I find that it has far less complications and is alot easier to work with. The _level102 thing is a little high up there, I am a little curious about that one too.  If you use an MC then you will not have to worry about conflicting levels.


    one more thing.....like mock said....you need to use the absolute path to reference to your php file if it is on a different server from your swf...however this should not work.  Macromedia has the security feature which won't let you do this.  You php needs to be no the same server as your swf but your txt can be on a different server if you use php (like in the GB) to read and write to it.  You need to use the absolute, not relative, path to your textfile in the php if the two are on different servers.....so use http://yourdomain.com/GuestBook.txt....and make sure that you are setting the chmod (permissions)m of your textfile to 666 or 777.  666 is better for security purposes.  Keep posting your progress. Lates.
                                                                            -Ian
    « Last Edit: 05/31/02, 19:47 by BurtonRider1983 »