Ask a Question related to Macromedia Director Lingo, Design and Development.
-
SimonBaum webforumsuser@macromedia.com #1
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
-
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... -
#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: ... -
#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: ... -
#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... -
startMovie&timeout
Hello, everybody! I'm (again) experiencing really strange behavior in Director MX. I'm developing a presentation that uses multiple movies. In... -
snikt! #2
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>...<snip>> 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
>
snikt! Guest



Reply With Quote

