A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Accessing custom made variables

  1. #1
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    Posts
    171

    resolved [RESOLVED] Accessing custom made variables

    In my script some of the variables are passed on like this from the html:

    Code:
    <SCRIPT LANGUAGE="JavaScript">var x0 = 186;var y0 = 249;var x1 = 63;var y1 = 149;</SCRIPT>
    The number of x0, x1, x2 ... and y's may vary.
    When accessing the variables I used:

    Code:
    dotNumber = 0;
    alert(this["x"+dotNumber]);
    However, this only works in chrome, not firefox.
    Does anyone know of an alternative way to access the variables?

  2. #2
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    Posts
    171
    Seems like there is no alternative way to do this, was forced to use array instead.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center