A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Syntax Error

  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    25

    [F8] Syntax Error

    hi there,

    I'm using this panorama picture template (http://www.flashkit.com/movies/Anima...9997/index.php)

    and everything works fine when my publishing settings are set to flash 5,6,7 | AS1

    why then does it throw up a syntax error when i export using flash player 8 when the AS is still set to 1?

    the line in question which is being called up as a syntax error is:
    Code:
    dup = "body" add m;
    the full piece of code is:
    Code:
    m = 0;
    while (Number(m)<Number((/:myPanoramaDuplicates*2)-1)) {
    	m = Number(m)+1;
    	dup = "body" add m;
    	// Depth of this layer and depth of city layer CANT be the same. So in this layer I add 10 to the depth to make sure of that.
    	duplicateMovieClip("body", dup, Number(m)+10);
    	setProperty(dup, _x, Number(getProperty(dup, _x))+Number(m*getProperty(dup, _width)));
    }
    if anyone could tell me whats wrong with the code when exporting as flash player 8? thanks.

  2. #2
    foo to you foo2's Avatar
    Join Date
    Nov 2006
    Location
    Germany,Europe
    Posts
    180
    Hi,

    'add' is deprecated in flash player 8

    http://livedocs.adobe.com/flash/8/ma...=00001815.html
    Sorry for my bad english. Feel free to correct my mistakes

  3. #3
    Junior Member
    Join Date
    Jul 2006
    Posts
    25
    cheers matey

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