Results 1 to 3 of 3

Thread: Loading vars

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Loading vars

    Im trying to load vars threw flash basically the embed code "test.swf?id=1" . I want to load a php file inside

    flash not sure if this is the right code to load in flash for the php file but somthing like this.

    this.loadVariables("phpfile.php?id=000");

    Where the 000 is I want the number 1 on the embed code for flash to transfer into the flash swf file then load the

    phpfile it will look something like this ("phpfile.php?id=1"); the php file will not print anything on flash. Im

    not sure how to put a var where 1 is. Im using in the php file the request fuction $id = $_REQUEST[id];

    thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    IF I understand you right (and I may not) this sounds like 2 different questions.

    First you need to load the php file, but that will depend on how your php file is structured. Second you will need Flash Vars to load a variable from a page into the swf.

    And this is more Medyman's area rather than mine. But if he doesn't show up I am willing to try anything I've done it all before, just not always so pretty.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I want to load a php file in flash dosn't print anything on flash. Lets say i put the embed code on my site "test.swf?id=1&t1=test&t2=testing" when the flash swf file loads I want it to past the vars threw flash on to the php file like this phpfile.php?id=1&t1=test&t2=testing"); the php file i under stand just passing the vars threw flash I dont thanks.
    Last edited by dcool86; 12-08-2008 at 03:32 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •