browser vars into flash...USEFUL DATA

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default browser vars into flash...USEFUL DATA

    I hope i won't incur the wrath of any moderators for cross-posting, but someone
    suggested I post this particular forum. I have created a test movie that
    passes variables from the browser into the flash movie in 3 different ways.
    Please visit, fill out the form, and check the results! the results page is
    broken down by os, browser, version, etc.


    [L=http://keystone-design.com/td/flashpoll/var_test.html]http://keystone-design.
    com/td/flashpoll/var_test.html[/L]

    sneakyimp Guest

  2. Similar Questions and Discussions

    1. Please help --> How can I install flash player plugin (version 8) in browser without downloading setup or redirecting to macromedia site if flash plugin is not available in browser
      Hi, Please help How can I install flash player plugin (version 8) in browser without downloading setup or redirecting to macromedia site if...
    2. php vars into flash
      Hi i have a problem. When i take vars in Flash from php, the type of vars is "object". How translate them into String ? Thank's.
    3. mx 7 flash form The form data has expired, Please reloadthis page in your browser.
      When i first go to any flash form on my CFMX 7 server i get the following message. The form data has expired, Please reload this page in your...
    4. Passing Vars into Flash from Javascript
      Hi all, Sorry if questions like this are asked a lot, I searched the forums but didn?t find any posts that could help me. I'm building a menu...
    5. Flash gets php vars but php doesn't get flash vars
      looked everywhere, can't dfind answer. Flash gets the php variables, but php doesn't get flash variables, help.
  3. #2

    Default Re: browser vars into flash...USEFUL DATA

    Nicely done. With some more info on the pros and cons of every method and
    how you implemented it and suggestions for use, could become a nice
    resource. Was just wondering you you don't automatically detect OS and
    browser instead of letting users fill in thos data. Maybe I missed part of
    the point.

    John

    --
    ----------------------------------------------------------------------------
    -----------
    RESOURCES
    [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    ----------------------------------------------------------------------------
    -----------
    TUTORIALS at
    [url]www.laiverd.com[/url]
    Flash & PHP Emailform
    Using textfiles in Flash
    ----------------------------------------------------------------------------
    -----------


    Laiverd.COM Guest

  4. #3

    Default Re: browser vars into flash...USEFUL DATA

    It did occur to me to collect the users' browser data, but I haven't ever done
    that before...i know there are environment variables in PHP that let you do so
    but i have no familiarity with them.

    the other issue concerns my design...the poll is all about the browser getting
    data into the flash movie...if i can't get the browser to talk to the flash
    movie, it couldn't possibly tell the flash movie what kind of browser it is,
    eh? I guess I could fix this by putting my form in the PHP page instead, but
    this seemed easier.

    I do hope to add a little bit about the pros and cons, time permitting. right
    now, aside from the obvious MAC handicap regarding javascript, the only cons of
    the other two methods are that the QueryString approach might cause one's
    browser to reload a flash movie they had already downloaded. (i.e.,
    myFlash.swf?arg=TRUE might not be recognized as the same swf file as
    myFlash.swf?arg=FALSE and that might prompt a whole new download). This could
    be a problem if your application is large...perhaps containing a lot of fonts
    or something.

    I guess the advantage of the javascript approach (that it can dynamically send
    vars to flash depending on user activity) is completely nullified by its poor
    implementation on the MAC platform. It did occur to me that the Javascript
    function (assigned to the BODY's ONLOAD event) might be firing before the flash
    movie is ready. This could possibly be remedied by a timer approach...either
    waiting to fire it for some amount of time or possibly relying on an event
    triggered from the flash movie. this might just cause more trouble though.

    can't really think of any other pros/cons in general. thoughts?

    sneakyimp Guest

  5. #4

    Default Re: browser vars into flash...USEFUL DATA

    You can get variables like browser and platform info into Flash using
    javascript or php. Don't know how you've set up things now., but one could
    simply create a php page that echo's the browser or wahtevr info to Flash. I
    find the LoadVars object quite handy for this. Javascript could perform the
    same but is less browser/os compatible, but works in a very direct way
    (although of course the swf file would have to be loaded before it can
    receive variable values.

    John

    --
    ----------------------------------------------------------------------------
    -----------
    RESOURCES
    [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    ----------------------------------------------------------------------------
    -----------
    TUTORIALS at
    [url]www.laiverd.com[/url]
    Flash & PHP Emailform
    Using textfiles in Flash
    ----------------------------------------------------------------------------
    -----------


    Laiverd.COM Guest

  6. #5

    Default Re: browser vars into flash...USEFUL DATA

    i'm actually using the loadvars functionality to submit the user input to PHP.
    the problem is that since I'm collecting information about how well data gets
    from the browser into flash, we can't rely on that very process to collect our
    data...it would skew the results.

    I can imagine a version of this test where we put the data collection form in
    PHP instead and just use use FLASH to display the information...that would be
    the proper way to do it.



    sneakyimp Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139