on startMovie initializing-problem?

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default on startMovie initializing-problem?

    hello

    i would like to store the data that is entered into the text field in property lists which are then stored in a global linear list. so i can store the whole data with setPref on the harddisk.

    unfortunately i get the following script error message when i push the send-button:

    list expected for handler
    add gList, adresse
    #add

    i don't understand this, the gList is initialized in the first frame?
    thanks for your answers

    simon baumgartner

    -- script on the send-button:

    global gList

    on mouseUp

    adresse=[:]

    addProp adresse,#name1,member("name1").text
    addProp adresse,#prename,member("prename").text
    addProp adresse,#village,member("village").text

    add gList, adresse
    setPref "milo", string(gList)
    go to frame 10
    end

    script in the first frame:

    global gList

    on startMovie
    gList=[]
    member("name").text=""
    member("vorname").text=""
    member("ort").text=""
    end



    SimonBaum webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. timeout and startmovie/stopmovie
      sometimes i think there are some things i do not really understand... for testing the frames per second i tried to write a very simple script wich...
    2. #26364 [Opn->Bgs]: initializing class in other class vars value problem
      ID: 26364 Updated by: sniper@php.net Reported By: brightone at o2 dot pl -Status: Open +Status: ...
    3. #26364 [Bgs->Opn]: initializing class in other class vars value problem
      ID: 26364 User updated by: brightone at o2 dot pl Reported By: brightone at o2 dot pl -Status: Bogus +Status: ...
    4. #26364 [NEW]: initializing class in other class vars value problem
      From: brightone at o2 dot pl Operating system: windows xp PHP version: 4.3.4 PHP Bug Type: Class/Object related Bug...
    5. startMovie&timeout
      Hello, everybody! I'm (again) experiencing really strange behavior in Director MX. I'm developing a presentation that uses multiple movies. In...
  3. #2

    Default Re: on startMovie initializing-problem?

    Hi Simon,

    The logic in your code is fine, it sounds like it's the location of
    the code that's causing the problem. You can't actually use the
    startMovie handler on a behavior script (frame script). Instead, you
    either want to make that script cast member a movie script (if you
    don't know how to do this -- check the cast member properties / script
    tab, there's a dropdown that lets you choose behavior/parent/movie),
    or change it from 'on startMovie' to 'on enterFrame'

    because the frame script will recognize enterframe where startMovie
    will only be recognized as a global handler in a movie script.

    Best,
    Katharine


    "SimonBaum" [email]webforumsuser@macromedia.com[/email] wrote in message news:<bi3h3k$abp$1@forums.macromedia.com>...
    > hello
    >
    > i would like to store the data that is entered into the text field in property lists which are then stored in a global linear list. so i can store the whole data with setPref on the harddisk.
    >
    > unfortunately i get the following script error message when i push the send-button:
    >
    > list expected for handler
    > add gList, adresse
    > #add
    >
    > i don't understand this, the gList is initialized in the first frame?
    > thanks for your answers
    >
    > simon baumgartner
    >
    <snip>
    snikt! 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