A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Equivalent in Flash 4 Syntax

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    5
    I've got some modularised Flash 5 code which works fine as long as it's published as Flash 5, unfortunately I want to publish as Flash 4 and am having trouble with the following;

    - onClipEvent(load) : used to pass parameters to the generic clip

    - _parent.NameMovie.gotoAndStop("StartLoop") : used to stop a parallel running movie clip

    Can anyone point me to other syntax or methods that'll work with Flash 4 ?

    Thanks

  2. #2
    ActionScript.org
    Join Date
    Aug 2000
    Posts
    1,030
    There is no equiv for clip events. You could put the code in the first frame of the movie clip and it will therefore only execute when the first frame loads (but it wont wait for the whole clip to load).
    Parent can be replaced with ../

    _parent.gotoAndStop(1)

    is equivalent to

    tell Target (../) {
    gotoAndStop(1)
    }

  3. #3
    Junior Member
    Join Date
    Apr 2001
    Posts
    5
    Thanks, that did the trick.

    Funnily enough, dynamic text boxes seem quite happy with their variable source as _parent.summat and publishing as Flash 4.

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