A Flash Developer Resource Site

Search:

Type: Posts; User: jFunk

Search: Search took 0.02 seconds.

  1. Thread: Flash as2 + php

    by jFunk
    Replies
    1
    Views
    1,790

    Use a socket

    Hands-down, the best way to do this would be using a socket connection. PHP can be used to create a socket server (simple intro/example), which can communicate with Flash via the XMLSocket class...
  2. Replies
    5
    Views
    2,274

    AS 2 My only other thought is that the server response...

    My only other thought is that the server response could be cached, which doesn't make much sense given your headers. I'm not sure how that would happen. To test this you can append each call with a...
  3. Replies
    5
    Views
    2,274

    AS 2 This looks like a problem with MySQL. If you look...

    This looks like a problem with MySQL. If you look at this line:


    $sql = mysql_query($query,$db) or die("&output=false");

    It appears that every time you get output=false, it is because the...
  4. Replies
    5
    Views
    2,274

    AS 2 Can you post the pertinent PHP code for review? ...

    Can you post the pertinent PHP code for review?

    It does sound like a server problem, though, if it works on your localhost without issue.
  5. Replies
    5
    Views
    1,896

    Also, make sure your objects are in the same...

    Also, make sure your objects are in the same level. If one or more of your fields are in a movieclip, you will not be able to access them without specifying their level.
  6. Replies
    3
    Views
    2,300

    Here's how I would go about it. First, I would...

    Here's how I would go about it.

    First, I would probably store the values in a two-dimensional array. That way the related elements are always grouped together. For example:

    myArray =...
  7. AS 2 It looks like your problem is with the "="...

    It looks like your problem is with the "=" operator. Using one equals sign is for setting a value; to compare two values, use the "==" operator.

    For example:

    ...
    if (_root.potion == 0){
    ...
  8. Replies
    12
    Views
    8,121

    AS 2 Done! Check it out.

    Done! Check it out.
  9. Replies
    12
    Views
    8,121

    AS 2 Flash Barcode Generator

    Hey guys,

    On and off for several years I've been fiddling with this project. I recently got around to making a real website for it: http://www.free-barcode-generator.com/

    It was started when I...
  10. Thread: Adjusting code

    by jFunk
    Replies
    5
    Views
    911

    Here's what Adobe says about sending variables: ...

    Here's what Adobe says about sending variables:

    All enumerable variables in the LoadVars object are concatenated into a string in the application/x-www-urlform-encoded format by default, and the...
  11. Replies
    2
    Views
    752

    After a bit of trial and error, I came up with...

    After a bit of trial and error, I came up with the following code:


    $teams = 8;
    $data = array();
    $round = $teams;
    $i = 0;
    while(($round%2 == 0 && $round >= 2) || $round == 1){
    $data[$i+1] =...
  12. Thread: Adjusting code

    by jFunk
    Replies
    5
    Views
    911

    I'm not sure why it wouldn't send like that...but...

    I'm not sure why it wouldn't send like that...but can't you just send it as a string, and have the php change it to whatever type you need?


    $time = $_REQUEST['theTime'];

    // date
    $time =...
  13. Replies
    10
    Views
    1,566

    It may be duplicating correctly already, but...

    It may be duplicating correctly already, but stacking them all in the same place, so they look like one. You might try randomizing position, like this:


    for (i=0; i<zcount; i++){...
  14. Replies
    10
    Views
    1,566

    You could use this for moving Zombies: ...

    You could use this for moving Zombies:


    moveAmount = 2
    function MoveZombie(zom){
    var xdif = _root.player._x-zom._x
    var ydif = _root.player._y-zom._y

    var diag =...
  15. Replies
    2
    Views
    729

    If you're wanting to do it in one query, then I'm...

    If you're wanting to do it in one query, then I'm pretty sure it's impossible. Luckily, you can do more than one query. :) Are you using PHP?

    If so, do something like this:


    $userID = <user...
  16. Hmmm....seems to me you'd have to have your info...

    Hmmm....seems to me you'd have to have your info as an image and import that into the PDF instead of entering it as text.

    Would that do the trick?

    Otherwise, I think Google can decode all the...
  17. Replies
    2
    Views
    1,159

    Is this a MySQL database? Are you querying with...

    Is this a MySQL database? Are you querying with PHP?

    If so...I don't know of any way to accomplish that in one query. Unless the table is very large, I would do something in two steps, like this:...
  18. Replies
    3
    Views
    857

    Hi, Try replacing all the code in the PHP file...

    Hi,

    Try replacing all the code in the PHP file with this:

    <?

    // Enter your contact email address here
    $adminaddress = "annie@ridesigngroup.com";
    // Enter the address of your website...
  19. Replies
    9
    Views
    1,009

    For multiplayer games that send data back and...

    For multiplayer games that send data back and forth between different computers, you will probably need a socket connection.

    The basics are:
    1) A Flash client, i.e., your game, which sends user...
  20. Thread: [MX] Sprites...

    by jFunk
    Replies
    4
    Views
    865

    For moving, I would do something like this: ...

    For moving, I would do something like this:

    onClipEvent (load) {
    moveDistance = 32
    }
    onClipEvent (enterFrame) {
    var destx = 0
    var desty = 0
    if (Key.isDown (KEY.LEFT)) {
    ...
  21. Replies
    1
    Views
    1,355

    You can send information to an exe or the browser...

    You can send information to an exe or the browser window from a Flash movie by calling fscommand. I use Flash 5, and I think Flash 8 works similarly...

    Example:

    //flash code, attached to button...
  22. Replies
    15
    Views
    11,842

    Open source: no, I don't really feel inclined to...

    Open source: no, I don't really feel inclined to release the code here.

    Barcode specifications: A really helpful site I've found is http://barcodeisland.com. It has formats for quite a few more...
  23. Replies
    15
    Views
    11,842

    Barcode generator in Flash...

    In hopes of redeeming this thread, here's a link to a barcode generator/printer that I've been working on (in Flash 5).

    http://superbarcode.110mb.com

    I plan to support many more symbologies,...
Results 1 to 23 of 23




Click Here to Expand Forum to Full Width

HTML5 Development Center