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

  1. #1

    Default including php code

    hi
    ist it possible to include php code in an swf, so that i can build up/change
    an dynamic link online?
    alex
    Alexander Gausa Guest

  2. Similar Questions and Discussions

    1. Problem including mxml code
      I want to keep my code clean and I would like to include my code in other seperate files. What would be the mxml script equivalent of an...
    2. Including Panel
      Hello All; Please how can i add (include a panel) to the mxml file. Please see the attached code Thanks <?xml version="1.0"...
    3. Including non-serverside php
      why whould you want to send the ip to the non php server ? Even so you could do it in JS :D Savut ":: Ole C ::" <olecl-news@start.no> wrote in...
    4. .bmp including with .exe
      including a .bmp file with the same name as your projector, opens the .bmp before the .exe. Is there anyway to make the opening .bmp come in...
    5. Including .js in Template
      Hi, I have made some pages using Dreamweaver template. I have included some external .js files into these pages. While updating the template, it...
  3. #2

    Default Re: including php code

    As far as i know u can only invoke javascript functions from flash. You can
    pass variables from js to flash and from flash to js, but no php which is
    only used at page-generation.

    "Alexander Gausa" <ingga@gmx.de> a écrit dans le message de news:
    d1akkq$ks9$05$2@news.t-online.com...
    > hi
    > ist it possible to include php code in an swf, so that i can build
    > up/change
    > an dynamic link online?
    > alex

    Henri Guest

  4. #3

    Default Re: including php code

    Henri wrote:
    > As far as i know u can only invoke javascript functions from flash. You can
    > pass variables from js to flash and from flash to js, but no php which is
    > only used at page-generation.
    >
    > "Alexander Gausa" <ingga@gmx.de> a écrit dans le message de news:
    > d1akkq$ks9$05$2@news.t-online.com...
    >
    >>hi
    >>ist it possible to include php code in an swf, so that i can build
    >>up/change
    >>an dynamic link online?
    >>alex
    >
    >
    >
    You can't put PHP directly into Flash, because Flash runs on the
    'client-side' and PHP is on the 'server-side'. What we need to do is get
    Flash talking to PHP:

    Look at the LoadVars actionscript. You can query a PHP-script directly
    from flash (by sending variables in the http-request, which the PHP
    processes and then returns data for). Flash tends to time-out if there
    is too much data, but if you write tight code you can chunk it.
    Alternatively, look at getXML and get PHP to write out the data then
    parse it in that way.

    Also have a look at: [url]http://www.sephiroth.it/tutorials.php[/url]

    Davemon

    Davemon 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