Welcome, Guest
  • Author Topic: Print  (Read 7370 times)

    B-L-A-D-E

    • Seasoned Programmer
    • ***
    • Posts: 221
    • Intermediate Flash Designer/Novice-Programmer
      • MSN Messenger - millerstephen@hotmail.com
      • AOL Instant Messenger - WICKIDxCLOWNxBOY
      • View Profile
      • SWJuggalos
      • Email
    Print
    « on: 01/09/07, 23:46 »
    Ok...

    I Edited The Guestbook Php Script Into My Own.This Code Snip Is What I Use.

    $Input= "Dogs=$Dogs<BR>&Cats=$Cats<BR>&DayIn=$DayIn<BR>&DayOut=$DayOut<BR>&DateIn=$DateIn<BR>&DateOut=$DateOut<BR>&TimeIn=$TimeIn<BR>&TimeOut=$TimeOut.:::.;

    So The Entered Info Gets Put Into The Text Like This

    Dogs=1&Cats=&DayIn=Friday&DayOut=Monday&DateIn=12/25/06&DateOut=1/5/07&TimeIn=PM&TimeOut=AM.:::.

    I Have Another Flash File With All Those Text Fields And When I Load The Text With The Above Info It Places It In The Flash Perfect.. But How Do I Using a Button Be Able You Load The Next Set Of Info After The  .:::.  In To My Flash File So I Could Print Each One Seperatly....
    [shadow=Blue,left,300]Stephen Miller[/shadow]
    Aim:WICKIDxCLOWNxBOY
    E-Mail: MillerStephen@Hotmail.com

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re: Print
    « Reply #1 on: 01/10/07, 00:11 »
    hey hi B-L-A-D-E! i have a suggestion for you, if you can load all the text from your file ((in case you used a file to store your entries)) you can use an array and then split everything using your key in your case ".::."

    cheers!
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    B-L-A-D-E

    • Seasoned Programmer
    • ***
    • Posts: 221
    • Intermediate Flash Designer/Novice-Programmer
      • MSN Messenger - millerstephen@hotmail.com
      • AOL Instant Messenger - WICKIDxCLOWNxBOY
      • View Profile
      • SWJuggalos
      • Email
    Re: Print
    « Reply #2 on: 01/10/07, 00:37 »
    Hmm How Would I Do That Exacly? Dont Use Arrays Alot..
    [shadow=Blue,left,300]Stephen Miller[/shadow]
    Aim:WICKIDxCLOWNxBOY
    E-Mail: MillerStephen@Hotmail.com

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re: Print
    « Reply #3 on: 01/10/07, 00:51 »
    ok...load everything with php, loadVars are highly recomended to achiev this, now once you loaded use something like:

    var mydata
    var lv2=new LoadVars();
    lv2.onLoad=function(){
    mydata=lv2//look very carefully this part, it usually send you some trash
    mydata=mydata.pslit(".::.")
    }
    var lv=new LoadVars();
    lv.sendAndLoad("your_php_script",lv2,"POST");

    hope it helps
    cheers!!!
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    B-L-A-D-E

    • Seasoned Programmer
    • ***
    • Posts: 221
    • Intermediate Flash Designer/Novice-Programmer
      • MSN Messenger - millerstephen@hotmail.com
      • AOL Instant Messenger - WICKIDxCLOWNxBOY
      • View Profile
      • SWJuggalos
      • Email
    Re: Print
    « Reply #4 on: 01/10/07, 07:32 »
    would i put it on a button
    [shadow=Blue,left,300]Stephen Miller[/shadow]
    Aim:WICKIDxCLOWNxBOY
    E-Mail: MillerStephen@Hotmail.com

    B-L-A-D-E

    • Seasoned Programmer
    • ***
    • Posts: 221
    • Intermediate Flash Designer/Novice-Programmer
      • MSN Messenger - millerstephen@hotmail.com
      • AOL Instant Messenger - WICKIDxCLOWNxBOY
      • View Profile
      • SWJuggalos
      • Email
    Re: Print
    « Reply #5 on: 01/10/07, 07:39 »
    i cant get it to work?
    [shadow=Blue,left,300]Stephen Miller[/shadow]
    Aim:WICKIDxCLOWNxBOY
    E-Mail: MillerStephen@Hotmail.com

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Print
    « Reply #6 on: 01/10/07, 08:17 »
    Hi steve,
    there is a typo -

    it is supposed to be mydata.split(


    After arrays are so powerful, you should get used to them ;)
    happy flashing
    8)
    Ronald

    B-L-A-D-E

    • Seasoned Programmer
    • ***
    • Posts: 221
    • Intermediate Flash Designer/Novice-Programmer
      • MSN Messenger - millerstephen@hotmail.com
      • AOL Instant Messenger - WICKIDxCLOWNxBOY
      • View Profile
      • SWJuggalos
      • Email
    Re: Print
    « Reply #7 on: 01/10/07, 09:40 »
    Should I Put That Code On A Button Or What Because Ive Tried Alot And Still Cant Get It To Switch To The Next Set... or is there an easer way to save the data from all my text fields each time some one submits it and when make My Other Flash file Read Each One Seperatly
    [shadow=Blue,left,300]Stephen Miller[/shadow]
    Aim:WICKIDxCLOWNxBOY
    E-Mail: MillerStephen@Hotmail.com

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re: Print
    « Reply #8 on: 01/10/07, 12:34 »
    hi BLADE, the code i submitted is supposed to be stored on the first frame, and the main event "sendAndLoad" must be called from your submit btn.

    cheers!!
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    B-L-A-D-E

    • Seasoned Programmer
    • ***
    • Posts: 221
    • Intermediate Flash Designer/Novice-Programmer
      • MSN Messenger - millerstephen@hotmail.com
      • AOL Instant Messenger - WICKIDxCLOWNxBOY
      • View Profile
      • SWJuggalos
      • Email
    Re: Print
    « Reply #9 on: 01/10/07, 15:21 »
    dang Im Still Havn Trouble I Cant Get It To Work...

    ok i have the edited guestbook script that save the info to a text like this

    Dogs=1&Cats=&DayIn=Friday&DayOut=Monday&DateIn=12/25/06&DateOut=1/5/07&TimeIn=PM&TimeOut=AM.:::.

    and if someone write another reservation it save it after the .:::. like you know...

    on another flash file that has all 9 different text fields and i have


    loadVariables("http://www.blahblah/ReservationPrint.txt", "_root.");

    That Loads The Last Reservation saved to the text to load fine but i cant get the next reservation after the .:::. to load in the same fields when pressing a next button..

    What im doing is i have a reservation script(edited guestbook script) that sends inputed data to the text and i have another flash file with a sheet from the company i work for scanned and dynamic text fields in the spots i need them on the sheet. and that works fine i just cant get the next set of data after the .:::. to Load Into the same text fields on the flash file by clicking a button?

    If that makes any sense please help?
    [shadow=Blue,left,300]Stephen Miller[/shadow]
    Aim:WICKIDxCLOWNxBOY
    E-Mail: MillerStephen@Hotmail.com

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Print
    « Reply #10 on: 01/11/07, 02:24 »
    a better solution is using a database.
    If you need direct access to different fields and different records, this is the much better approach.
    Working with files is easy and good for just growing entries.
    As soon as it starts, that you want to manage the entries somehow, use a database.
    happy flashing
    8)
    Ronald