Welcome, Guest
  • Author Topic: Trouble Loading Email Submission Form and Guestbook into a new level in my movie  (Read 5016 times)

    boycetown

    • Server what's that
    • *
    • Posts: 6
      • View Profile
    >I am having trouble with the guestbook that I got off of here and email
    >submission form.  Basically, when I load them into my main movie on a
    >level, they don't work, it seems like they are having trouble talking to
    >the PHP files or txt files, when I access them directly off of the web,
    >they work just fine.  Its only when I open up my website and go to the
    >location of these forms where they load up in a new level that they don't
    >work.  Please help if you can, thanks.

    nothingGrinder

    • Mods
    • Systems Administrator
    • *****
    • Posts: 823
    • Automatic websites with social media distribution
      • View Profile
      • nothingGrinder
    if they are loading into a new movieclip then it could be a naming issue with the flash variables.

    "Basically, when I load them into my main movie on a
    >level, they don't work, it seems like they are having trouble talking to
    >the PHP files or txt files, when I access them directly off of the web,
    >they work just fine.  Its only when I open up my website and go to the
    >location of these forms where they load up in a new level that they don't
    >work."

    i dont understand the difference between loading in a level and opeing them on  a website

    are you trying to access the PHP files from the Flash player on our desktop ?
    are you trying to do this when Testing the movie?

    im not sure as to when the problems occurs..

    1) file loads into a SWF
        then loaded file doesnt work

    2)file doesnt work from the desktop but it works from the site

    3)file on FlashDB works fine but in your SWF it doesnt work?

    boycetown

    • Server what's that
    • *
    • Posts: 6
      • View Profile
    Check it out here:

    the forms don't work directly from the website: http://www.pledgetothecause.com/causetest.html
    (Go to "Word", and then "Guestbook" for the guestbook, and then go to "Contact" for the Email submission form. they are loaded into this movie on a level 1)

    If you access them directly, http://www.pledgetothecause.com/Email101.swf (The Email Submission form)

    http://www.pledgetothecause.com/word/guestbook/GuestBook.swf (the Guestbook)

    both of these work fine.  I am loading them up into a level 1 in my website movie and that is when they don't work.  Please be aware I am no an expert in any way in flash.  I don't undersand variables or other components very well.  My knowledge of flash is very basic.  Thanks for your help and I would really appreciate if you could help me find the solution to this as it is bugging me and I need this in order to complete the site.

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Hi,

    are you using an old flash for the email, with something like
    loadVariablesNUM('script.php', 0, 'POST')
    inside? If so, check newer mail script, and have a look at loadvars object in flash help

    Musicman

    nothingGrinder

    • Mods
    • Systems Administrator
    • *****
    • Posts: 823
    • Automatic websites with social media distribution
      • View Profile
      • nothingGrinder
    so i have a feeling that in
    http://www.pledgetothecause.com/word/guestbook/GuestBook.swf

    this version, the SWF itself, the content is being called using a _root or _level0 variable

    could you post the code for this.

    boycetown

    • Server what's that
    • *
    • Posts: 6
      • View Profile
    I wanted to upload the zip files themself but i guess this forum doesn't allow that.  I will do my best to explain what you have requested but once again, keep in mind i am a flash beginner.

    When you go to my main movie, http://pledgetothecause.com/causetest.html, when you go to the guestbook, the guestbook is being called in using the following code:
    loadMovieNum("word/guestbook/GuestBook.swf", 1);

    nothingGrinder

    • Mods
    • Systems Administrator
    • *****
    • Posts: 823
    • Automatic websites with social media distribution
      • View Profile
      • nothingGrinder
    ok, so the swf is loaded, but into what movieclip?

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Hi,

    it seems that the movie is loaded into level 1. Now, if that one uses a loadVariablesNum(..., 0) to send data, it would not work.

    Musicman

    boycetown

    • Server what's that
    • *
    • Posts: 6
      • View Profile
    Is there a guestbook that you recommend that I can try out that would work if I loaded into a level in my main movie? 

    boycetown

    • Server what's that
    • *
    • Posts: 6
      • View Profile
    Musicman, i checked the flash file and it does use loadVariablesNum to load the data.  How can I make this guestbook work?  I tried putting it directly into my main movie rather than loading it up within a level but even that didn't work for some reason.  If you could help me with this it would be greatly appreciated.

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Hi,

    I am certain there is a thread like "fla that works on any level or clip" for the guestbook...
    You could do either
    a) change the Num to wherever you are loading the movie .... but it will no longer work by itself
    b) use "relative" targets, that is replace loadVariablesNUM('url',level,'POST') by this.loadVariables('url','POST')
    Relative targets can sometimes be tricky - if loadVraiablesNum was called from a (button within a) movieclip, you would need to write _parent.loadVariables('url','POST') instead. The resulting movie will work by itself and when loaded
    c) like b, but even more changes: use loadvars object .... you explicitly have to add code for all data you want to send and for all data you want to receive, and you get the ability to detect load errors; on loadvaribles style calls they just never return

    Musicman

    boycetown

    • Server what's that
    • *
    • Posts: 6
      • View Profile
    Music man,

    so, here is the current Load Action in the file:

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

    is this what I should change it to?:

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

    All of this doesn't make sense to me as I am a beginner in flash.  Let me know though, thanks