Lingo Scripting

Hi, I am having some trouble in saving the lingo script for
creating a database in Lingo. It keeps mentioning, "missing
operator". Has anyone created a database in Director before?

There are loads of ways to create a database in Director, and
in order
to give you a useful answer, we will need significantly more
information
about what you are trying to do and what you mean by
database. If you
mean you want to use property lists to simulate a database (a
relatively
easy and often-used thing), then I would recommend checking
out the help
files about property lists and looking at places like
www.director-online.com or www.mediamacros.com for some
pointers.
If you mean you want an actual database file, then you will
probably
need an xtra, and which one you choose will be dependent upon
what you
are trying to accomplish. Does this database need to be on
the local
computer? Is it on a server? Do multiple people need to
access it at
the same time? A good list of all the database-related xtras
can be
found in the UpdateSgtae Mile-High List O'Products -
http://www.updatestage.com/products_table.html#Database
Another important variable here is how much money are you
willing to
spend on this function? Most of the xtras are non-free. I
believe the
only free one is Valentin Schmidt's SQLite xtra which would
require you
to understand how to use SQL.
I have had very good luck with Arca and Valentina. Valentina
is
particularly nice in that you can create a new database
pretty easily
and it is super fast and quite easy to use.

Similar Messages

  • To run an exe with lingo script

    I am making a tutor CD for children and I want to run a
    application exe with the help of Lingo Script plz. help with
    codings
    KUNDAN

    try:
    open "<fullPathToExe>"
    e.g.
    open (the moviePath)&"myApp.exe"
    "dankunus" <[email protected]> wrote in
    message
    news:efj1f2$fui$[email protected]..
    >I am making a tutor CD for children and I want to run a
    application exe
    >with the help of Lingo Script plz. help with codings
    >
    > KUNDAN

  • Writing a lingo script from an Interface

    Hi all,
    I wonder if there is any way to write a Lingo Script (movie)
    from scratch from an interface in director. In particular, I want
    to create an interface where when i will input a question + an
    answer and press the button next a particular line of code will be
    wirtten. For example:
    On answergeneration
    if the text of member ("Question") = "Yes" then
    do this
    end
    Is there any way to write the code from scratch by simply
    using the next button?
    Many thnaks

    "wgb14" <[email protected]> posted in
    macromedia.director.lingo:
    > on mousedown
    > set customscript = new(#script)
    > member(CustomScript).Scripttext = the text of member
    "Script"
    > end
    If you never erase that member, you'll end up with multiple
    unnamed script
    members. If you want to use the same script member, don't
    create it in code.
    Just create it once during authoring, give it a name, and
    refer to it by that
    member name.
    > the text of member script is the following:
    >
    > (the text of member "current_script" =
    "&scriptname&"):
    All lingo must be in a handler defined with the 'on' and
    'end' keywords.
    Setting the scriptText of a script member to a single line
    just won't work
    since there's no handler name to execute. You would need to
    create the entire
    script, including the on handlerName, the lines of code, and
    the 'end' with
    RETURNs in appropriate places. Then you would execute it in a
    line of code as
    (from this example) handlerName. Something like the following
    where I've
    created a handler named doIt
    global scriptname -- global since I don't know where you're
    getting it
    on mouseUp me
    scr = "on doIt" &RETURN
    scr = scr &scriptname &".hap" &RETURN
    scr = scr &"end"
    member("dynamicScript").scriptText = scr
    doIt
    end
    That seems like a very convoluted system, though there may be
    a good reason
    for it. What if a user enters a number representing a handler
    that doesn't
    exist? Say, 2147483647. Do you have a handler (object?) named
    2147483647.hap?
    [snip]
    I'm really not catching the concept here. You mention the
    text of member
    script containing the text of member "current_script" equal
    to a supposed
    variable enclosed in quotes (thus making it a string, not a
    variable) and
    wrapped in ampersands - which you later refer to as a
    variable named
    scriptname without ampersands. All somehow related to the new
    script
    member(customscript). *I am thoroughly confused*.
    What is member("current_script")?
    How does the user input the value for scriptname? Do they
    type a 1, 2, 77, or
    whatever into a #field or #text member? Then a mouse click is
    supposed to
    execute a handler in dialog (is dialog a MIAW?) named as
    1.hap, 2.hap, ...
    according to what they typed?
    Where does &scriptname& come into the picture? Is it
    related any of the
    above?
    Are you sure you need to use self-modifying code here? Maybe
    you can use
    parameters instead.
    -- PSEUDO CODE FOLLOWS
    -- movie script in (I assume) window "dialog"
    on hap (aValue)
    case aValue of
    1: doThis
    2: doThat
    3: doOther
    otherWise
    alert("Please provide a value")
    end case
    end
    -- behavior script
    on mouseUp me
    aVal = <get the user's input value from somewhere?>
    tell window("dialog") to hap(aVal)
    end
    Or are you incrementing a variable for each mouse click on
    the "next" buton?
    First is supposed to execute 1.hap, 2nd time it executes
    2.hap, etc.
    If so, still no need for modifying code at run-time. Assuming
    a similar movie
    script shown above:
    property pClicks
    on mouseUp me
    pClicks = pClicks + 1
    tell window("dialog") to hap(pClicks)
    end
    Let me know if I'm way off base here. If so, please explain
    in more details
    what you really want to happen.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • How do I use lingo script in director to open a pdf

    I am trying to create a button that, when pressed, will open
    a pdf file. I have scripted the button as follows
    on mouse up me
    open "flyer.pdf"
    end
    I have the flyer.pdf file in the root folder, but when I
    publish the movie and try to test it, on a mac using OS X, it trys
    to open clasic (I want it to open in OS X or higher), and on a PC,
    it does nothing. One thing I noticed is that when the CD is put
    into a PC, it drops the .pdf extention. What am I doing wrong? How
    can I get this file to open on both a PC and a mac? If it is
    something simple, can you write me a script that I can copy a paste
    that will work? Thanks so much.
    Andy

    Hi Andy,
    To open a file that needs another application, you need to
    tell Director
    what application to use. You can test to see what
    applications the user
    has that will show a .pdf and use the path to that file, or,
    you can
    install acrobat reader for each platform on your CD and then
    use those,
    or, you can use an Xtra that will find the application and
    open the file.
    Search this newsgroup for any or all of those solutions. You
    will find
    hundreds, maybe even thousands, of solutions.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Error in a script and i can´t find it

    Hi,
    I found a very interesting Tutorial about an Archtitcural
    Fly-Trough at the Adobe Sites.
    As I tried make the same i got an Error in the Lingo Script
    that was providet with the Tutorial. I have no experience with
    Lingo so I can´t find the Error. Could sombody find the Error?
    I marked the Line with <<<<<<<<
    Here is the Script (just a little bit long)
    You can see the whole Tutorial here:
    http://www.adobe.com/devnet/director/articles/shockwave_3d/shockwave3d_ch3.pdf
    on beginSprite (me)
    -- initialize properties
    pMember = sprite(me.spriteNum).member
    pSprite = sprite(me.spriteNum)
    pMouseDown = FALSE
    pRightMouseDown = FALSE
    pCamera = sprite(me.spriteNum).camera
    pCamAnimFlag = TRUE
    pCamAnimInfo = [#initT: pCamera.transform.duplicate(), \
    #finalT: pMember.camera
    ("first_person").transform.duplicate(), \
    #count: 0]
    -- create the camera’s bounding sphere
    mr = pMember.newModelResource("camera_sphere",#sphere)
    mr.radius = 7.5
    pCameraSphere = pMember.newModel("camera_sphere",mr)
    -- create a light to carry with the camera
    camLight = pMember.newLight("camera_light",#point)
    camLight.color = rgb(170,170,170)
    -- make the sphere and light children of the camera
    pCamera.addChild(pCameraSphere,#preserveParent)
    pCamera.addChild(camLight,#preserveParent)
    -- register the camera for the timeMS event in order to
    perform the intro animation if any
    pCamera.registerScript(#timeMS,#animateCamera,me,0,50,51)
    -- register the member for regular timeMS events in order to
    respond to user input and resolve camera “collisions”
    pMember.registerForEvent(#timeMS,#controlCamera,me,2500,50,0)
    end beginSprite
    on mouseDown (me)
    -- update the mouse down property
    pMouseDown = TRUE
    end mouseDown
    on mouseUp (me)
    -- update the mouse down property
    pMouseDown = FALSE
    end mouseUp
    on rightMouseDown (me)
    -- update the right mouse down property
    pRightMouseDown = TRUE
    end rightMouseDown
    on rightMouseUp (me)
    -- update the right mouse down property
    pRightMouseDown = FALSE
    end rightMouseUp
    -- The animateCamera handler is used to animate the camera
    automatically over time:
    on animateCamera (me)
    -- increment the internal counter for the animation
    pCamAnimInfo.count = pCamAnimInfo.count + 1
    <<<<<<I get an Errormessage in this Line!!!!!
    -- determine the interpolation percentage
    pctg = 100.0 × (pCamAnimInfo.count / 50.0)
    -- if pctg is greater than 100 end animation sequence
    if (pctg > 100) then
    pctg = 100
    pCamAnimFlag = FALSE
    end if
    -- determine the new interpolated camera transform
    t = pCamAnimInfo.initT.interpolate
    (pCamAnimInfo.finalT,pctg)
    -- apply that transform to the camera
    pCamera.transform = t
    end animateCamera
    on controlCamera (me)
    -- respond only if the intro camera animation is completed
    if not(pCamAnimFlag) then
    -- CONTROL THE LEFT/RIGHT ROTATION OF THE CAMERA
    -- if the shift key is *not* down then follow the mouse
    -- to adjust left right looking
    if not(the shiftDown) then
    -- check for the mouse locH wrt the sprite loc
    deltaH = the mouseH - pSprite.locH
    -- calculate rotation value to apply
    rotn = -(deltaH/165.0) * 4.0
    -- apply that rotation
    pCamera.rotate(pCamera.worldPosition,
    vector(0,0,1),rotn,#world)
    end if
    -- CONTROL THE FORWARD/BACKWARD MOVEMENT OF THE CAMERA
    -- if the left mouse is down then move the character forward
    if pMouseDown then
    pCamera.translate(0,0,-2.5)
    end if
    -- if the right mouse is down then move the character
    backward
    if pRightMouseDown then
    pCamera.translate(0,0,2.5)
    end if
    -- cast one ray fwd/bckwrd depending upon which mouse button
    is down
    case (TRUE) of
    -- left mouse down, cast ray forward
    (pMouseDown):
    -- cast ray
    tList = pMember.modelsUnderRay
    (pCamera.worldPosition,-pCamera.transform. zAxis,#detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    -- right (control+) mouse down, cast ray backward
    (pRightMouseDown):
    -- cast ray
    tList = pMember.modelsUnderRay
    (pCamera.worldPosition,pCamera.transform. zAxis,#detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    end case
    -- cast a ray to the left
    tList = pMember.modelsUnderRay
    (pCamera.worldPosition,-pCamera.transform. xAxis,#detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    -- cast a ray to the right
    tList =
    pMember.modelsUnderRay(pCamera.worldPosition,pCamera.transform.xAxis,
    #detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    end if
    end controlCamera
    on checkForCollision (me, thisData)
    -- grab the distance value
    dist = thisData.distance
    -- if distance is smaller than bounding radius, resolve
    collision
    if (dist < pCameraSphere.resource.radius) then
    -- get distance of penetration
    diff = pCameraSphere.resource.radius - dist
    -- calculate vector perpendicular to the wall’s
    surface to move the camera
    tVector = thisData.isectNormal * diff
    -- move the camera in order to resolve the collision
    pCamera.translate(tVector,#world)
    end if
    end checkForCollision

    While I wouldn't use count as a property name as it's also a
    list method, it
    does work. It seems to me your problem is not having property
    declarations.
    property pCamAnimInfo (and any others) should be declared
    before the
    beginSprite
    Dave -
    Adobe Community Expert
    www.blurredistinction.com
    www.macromedia.com/support/forums/team_macromedia/

  • Script Error : Handler Not Definied

    Hi Gurus,
    I try to play a Lingo Script with Director MX 2004 but i got
    this message: Script Error : Handler Not Definied
    The Debug stops at this line in my code: dosRegister
    "70BE7B1-13977F4"
    Is anything missing from my Xtras folder?
    I have DirectOS though.
    Any idea ??
    Thx

    I suspect you have a cast member that uses one of the three
    names in the
    list and it is not a check box. It's probably before the
    actual checkbox
    member in the cast so it's finding it first.
    Craig Wollman
    Lingo Specialist
    Word of Mouth Productions
    212-928-9581
    www.wordofmouthpros.com
    "ajrobson" <[email protected]> wrote in
    message
    news:etn9j1$op2$[email protected]..
    >I have a script that get a list of choosen check boxes,
    it was working fine
    >but
    > now when i press the button that calls the script i get
    a error saying
    > "script
    > error property not found" then it lists the line i have
    put a * next to
    > and
    > says #hilite
    >
    > This is the top part of that script and to my knowlegde
    i have not chnaged
    > any
    > of it and it worked before but now it does not, i also
    use a script almost
    > identical to this but use it for radiobuttons instead
    and the line is the
    > same
    > in that and that script works, can anybody tell me what
    as gone wrong?
    >
    >
    >
    > global err
    >
    > on CheckBoxState -- name of custom handler
    > TickedBoxes = [] -- a empty list will be filled where
    ever a checkbox is
    > ticked
    > CheckBoxNames = ["Dr no", "From russia with
    love","Casino royale" ]
    > repeat with i = 1 to 3 -- repeat for each checkbox
    > CurrentCheckbox = CheckBoxNames
    > ** if the hilite of member(CurrentCheckbox) then -- if
    currentcheckbox
    > hilite
    > is true (checked)...
    > append(TickedBoxes,CurrentCheckbox )
    > end if
    > end repeat
    > return TickedBoxes
    > end
    >

  • Trace in lingo

    Hi, I am very new to Director. Now i am trying to familiarize with the basics of lingo script.  I have declared a variable in the script window as:
    global mySum
    then,
    mySum = 5+5
    thus an error is showing.Can anybody help me to solve this?
    Thanks and regards,
    Sreelash

    Here are some example files that I put together about 6 years ago. Each one covers a basic element in Director 3D. I hope they are useful to you:
    http://www.ddg-designs.com/threeDsamples/axisRotation.zip
    http://www.ddg-designs.com/threeDsamples/default.html
    http://www.ddg-designs.com/threeDsamples/fogView.zip
    http://www.ddg-designs.com/threeDsamples/index.html
    http://www.ddg-designs.com/threeDsamples/meshExample.zip
    http://www.ddg-designs.com/threeDsamples/objectCreation.zip
    http://www.ddg-designs.com/threeDsamples/parentChild.zip
    http://www.ddg-designs.com/threeDsamples/translateScale.zip
    http://www.ddg-designs.com/threeDsamples/worldSpace.zip

  • Detect and install quick time with lingo

    When I import a quick time movie into Director presentation - it needs QuickTime to be installed on every computer to run properly
    Is there any setting which may make these kind of movies run on any computer without QuickTime?
    Is there a Lingo script which may solve it?
    Otherwise is there any Lingo code to check for the presence of QuickTime and then react accordingly if the user doesn't have it installed ? (probably display a screen that offers to install QuickTime or quit the movie)
    any idea?
    Thanks a lot in advance.
    sof

    Is there any setting which may make these kind of movies run on any computer without QuickTime?
    No - if you want to display QuickTime movies (or use #quickTimeMedia members in Director) the playback machine must have QuickTime installed on it.
    Otherwise is there any Lingo code to check for the presence of QuickTime and then react accordingly if the user doesn't have it installed ?
    There is the QuickTimeVersion() command (which you would have discovered if you had checked the Help file):
    on prepareMovie
      if QuickTimeVersion() < 7.0 then
        _player.alert("You need to install QuickTime - please re-start this program when the installer finishes")
        -- assuming the installer is in the same folder as the current movie/projector
        _player.open(_movie.path & "QuickTimeInstaller.exe")
        _player.quit()
      end if
    end

  • Lingo P-code definition

    There are now a number of reports of malicious code targetting Lingo scripts. To detect this I want to parse the p-code and validate commands which are known to have issues. I have done this for ActionScript where the p-code is readily available in the manual, however I cannot find a similar definition for Lingo Script.
    I am aware that there are patches for some if not all of the detected vulnerabilities (for example CVE-2010-3653) but I need to be able to protect un-patched systems as well.

    The vulnerability that I am currently looking at is CVE-2010-3653, which although a bit dated seems to be currently in use. Other possibly related reports are CVE-2010-4186, CVE-2010-4187, CVE-2010-4188, and CVE-2010-4190. You can look at other reports using:
    http://web.nvd.nist.gov/view/vuln/search?execution=e2s1
    This is a search window and I entered 'adobe director' which will give you a list of CVE numbers and brief summaries. Then search on the complete CVE number in any search engine and you should find fuller descriptions.
    Note that the numbers quoted above may not be related directly to Lingo, as I have yet to identify all the blocks within a Dir file
    Unfortunately security by obscurity is not a good policy, The 'bad guys' simply have to fuzz a file until it gives them something useful, where the 'good guys' have to understand the whole format to offer protection.
    Thanks for your reply, it looks like it is trial and error then :-(

  • External Script Editors?

    Does anybody have suggestions for external script-editors
    that work with
    Lingo? I've tried the usual searches, but the first several
    pages of Google
    all seem to link to the same program (lingo script editor
    0.42) whose
    website is now defunct - www.creative-inspiration.net (Don't
    bother clicking
    that link, there's nothing there.) I don't know if that
    specific program
    is what I'm looking for (can't even get a screenshot), but
    it's the only one
    that seems to appear on searches, and it doesn't even exist
    anymore, so I
    don't know where else to look. Ideally, something that works
    from within
    the Director authoring environment would be best, I'm not
    sure how many fit
    the bill for that, but I'm getting pretty sick of all the
    annoying bugs and
    lack of features in the default internal editor. (Is
    highlighting of
    corresponding parentheses too much to ask? Every other code
    editor in the
    world does it, but not Director's for some reason. Also
    collapsable code
    blocks would be nice, and a "what links here" feature like on
    wikis to track
    code a bit better would be really invaulable. Heck, even a
    back-button to
    go back to the last script you were working on? Nah, that's
    just asking too
    much.)

    > you need to do searches for general editors which allow
    you to use a
    > keyword
    > highlight file for Director or Lingo or .ls format.
    >
    > Here's one called HiEditor:
    >
    http://programmerstools.org/node/701
    > - click on the HiEditor.zip link under File:
    >
    > .ls syntax file here:
    >
    http://www.winasm.net/forum/index.php?showtopic=2220
    Is there a different version of HiEditor somewhere? Because
    the one you
    pointed me to doesn't seem to have any such features at all,
    basically just
    seems to be Notepad with tabs. The Options menu doesn't seem
    to have
    anything that would allow you to do script highlighting,
    auto-indent, or
    basically anything except font and size. There's also no Help
    file at all,
    nor any info on the site about how to use this.
    > Or better yet, UltraEdit (but it costs $):
    >
    http://www.ultraedit.com/downloads/ultraedit_download.html
    > Here's the word file page:
    >
    http://www.ultraedit.com/downloads/extras.html#wordfiles
    > - search for Lingo and you should find two entries.
    I looked at UltraEdit - played around with the shareware
    version a bit.
    Looks like it's got most of the features I was looking for,
    though certain
    things I can't get to work properly. (e.g. Auto-indents for
    case
    statements, proper indenting of lines with if/then and
    command on the same
    line, a few others) Also $50 is a bit steep for a
    text-editor, I think.
    Maybe I can get my boss to pay for it, (though not if it
    comes at the cost
    of my paycheck, you know how it is...)

  • Is VBscript's URL decoding an exact reciprocal of Lingo's encoding from postNetText?

    I’m trying to send the output of an RC4 encryption
    routine to an ASP script on a WinTel server via postNetText. The
    output of RC4 encryption is not URL safe, however, Lingo’s
    postNextText encodes the string (when sent as part of a property
    list) and VBScript’s request.form(“myString”)
    decodes the string automatically … more or less. When I
    decrypt the string server side I get about 75% of the original
    string, or I get the entire string with letter shifts scattered
    throughout. RC4 encryption is symmetrical, ie: the encrypted output
    may be sent back though the same code with the same key and results
    in the decrypted string. My VBscript is symmetrical with its own
    output, the same is true for my lingo script … it’s
    only when I send the lingo output to the vbscript that I get this
    odd result. I tried various combinations of URL encoding the string
    explicitly before sending to postNetText, no luck. I’m going
    to try base64 encoding the output but maybe there’s another
    problem. I’ve attached the encoding scripts for the
    curious.

    "Applied CD" <[email protected]> schreef in
    bericht
    news:f4n6d8$1gf$[email protected]..
    > Woo hoo .. got it. Had to convert the entire outgoing
    string from ascii to
    > hex
    > with $ delimiter rather than % (which gets encoded to
    %25) and added a
    > function
    > server side to convert hex back to ascii again
    recognizing $ as the
    > delimiter.
    > The two encryption routines are now completely
    symmetrical with themselves
    > and
    > each other.
    >
    > Base64 would probably be more efficient but for the
    amount of data I?m
    > passing
    > this works fine. If anyone wants to fill me on why the
    encoding in
    > postNetText
    > doesn?t exactly match the decoding by VBScript I?d love
    to know.
    Hi Applied,
    base64 is not an ecryption algorithm like RC4.
    Base64 is an encoding technique, and in itself doesnt
    "hide"anything.
    Its in the same league as "quoted printable" encoding.
    Regards,
    Richard
    LOOPING Multimedia

  • Pass data between AS and Lingo

    Hi
    We have an Arabic educational application in Director 11.5,  published originally asprojector for desktop use. Since Director don't support “right to left” languages, the application uses an ActivX component to call external encoded html and load it into a textarea container, in this way the Arabic language can be written and redden.
    since ActiveX is not sockwave-safe and cannot be used , im using swf as an input textarea. it  seems ok ( i dont read Arabic so i cant tell if its correct), the important thing for this stage is that i  can write  text and no errors comes from the shockwave player.
    The main problem:
    the words been typed in the swf ,  should be sent  to the the Lingo script in Director, for example there is a "speed typing test " that check if all the typed words are correct.
    in the original the application uses:
    sprite(120).navigate(the moviePath & "assets\t.html")
    to load the html into the  textarea and uses and:
    on hideQuitDialog me
      if the frame  > 45 then
        mySprite.locV = 485
        mySprite.puppet = 0
        mySprite.navigate("Javascript: focusText()")
      end if
    end
    to get some javascript from the html.
    my question is how to pass the swf input data to Lingo?  what code should i use, either in Flash AC3 or in Lingo in Director to make this happand?
    appreciate you time
    Tx
    Shay

    Hi,
    The problem was that when populating and reading the custom controller, I had to add GLOBAL. in front of the custom controller name. Like this: 'GLOBAL.ZKBT116QH_SRVQ/CuCoOrders'
    Thank you,
    Andra.

  • A Movie in a Window Problem

    Hi All,
    I have runned into another problem with my project that i
    wonder if anyone can help me out. I have a movie in a window that
    opens in my main project with a simple text-phrase (e.g., say
    something). I want when the user clicks on this text phrase to
    activate a spcified lingo script into my main movie. I have set up
    the whole thing as follows
    on prepareMovie
    global gDemo
    set gDemo to movie ("Greek-English_Non-AIML_Scenario.dir")
    ---Greek-English-Non-AIML_scenario is my main movie in which
    the movie in a window opens
    The script of the text-phrase is
    on mouseUp
    global gDemo
    tell gDemo to switchToA
    ---switchToA is the script that i want to activate in my main
    movie
    end
    I get the following error
    "Script error can not perform tell void "
    Any idea what is going on?
    Many thanks for all your valuable help so far

    It appears that sending messages from the main movie to the
    MIAW works fine, but i can not figure out the vice verca.
    Any ideas will be welcomed
    Please help
    Thanks

  • Moveablesprite Problem

    I have six sprites that dance onto the stage. When they arrive at their set positions I make them moveable in my Lingo script to enable the user to drag them to particular locations. After the user has placed them all 'correctly', the sprites are reset to their starting positions, the movie loops back to the beginning of the animation and the sprites are supposed to dance in onto the stage again, wearing a different set of cast members.
    The trouble is that the second time the animation doesn't work. The sprites do change to the new cast members. I can see them waiting in the wings but that's where they stay, off-stage. I know animations won't work when the sprites are set to moveablesprite, so in the script I set the moveablesprite for each of the six to false before looping back to the start of the animation. I've tested that their moveablesprite property is indeed false, but they still won't come in.
    The animation always works the first time but the sprites are obviously holding onto something that stops them from subsequently appearing when the animation runs again.
    I'm tearing my hair out at this stage. Hoping someone has some ideas!
    Jen

    In addition to turning the moveableSprite value on and off, you need to stop the sprite from being a puppetsprite. Here's how you would do that for sprite 1:
    _movie.puppetSprite(1,false)
    Put that at the same place that you are setting moveableSprite=false

  • Create a child cast member

    Hi,
    I need to create a dynamic menu for an application. Right
    now I am creating every item as a new cast member:
    newMember = new(#text)
    member(newMember).name = "Item1"
    member(newMember).text = "Blabla"
    What I would like to do, is have an existing cast member with
    the good font, font size, color, etc... and in my lingo script,
    create all my new cast members based on the existing one, so I
    would only need to change the text it contains and not the color,
    size....
    It could also be usefull to do this since I could attach a
    behavior to the existing cast member and then all my new ones would
    have the same behavior attached to them.
    I hope this can be done, sorry if it is obvious, I'm in the
    process of learning Director and Lingo.
    Thanks,
    Pat

    Hi Pat, and welcome to the list.
    As for your question, I'd suggest you work with a single cast
    in general,
    unless it really helps organizing your project.
    Creating members on the fly -as it seems you are doing- is a
    much cleaner
    approach.
    Why don't you create a handler that would accept as arguments
    the formatting
    options and the member they should be applied to?
    Or e.g. two handlers that each would apply some fixed
    formatting to a member
    that is passed to it.
    The less the members, the smaller the project, btw.
    > It could also be useful to do this since I could attach
    a behavior to the
    > existing cast member
    I suppose you are talking about cast member scripts, not
    behaviors. Another
    thing you'd better avoid, since behaviors (scripts attached
    to sprites) are
    more flexible, receive notifications that script members
    don't (like e.g. on
    beginSprite), and are designed for oop (a reference to the
    script
    object -me- is passed as the first argument by the system
    when calling
    behaviors' handlers).
    "PDiLalla" <[email protected]> wrote in
    message
    news:f97p50$rh1$[email protected]..
    > Hi,
    >
    > I need to create a dynamic menu for an application.
    Right now I am
    > creating
    > every item as a new cast member:
    >
    > newMember = new(#text)
    > member(newMember).name = "Item1"
    > member(newMember).text = "Blabla"
    >
    > What I would like to do, is have an existing cast member
    with the good
    > font,
    > font size, color, etc... and in my lingo script, create
    all my new cast
    > members
    > based on the existing one, so I would only need to
    change the text it
    > contains
    > and not the color, size....
    >
    > It could also be usefull to do this since I could attach
    a behavior to the
    > existing cast member and then all my new ones would have
    the same behavior
    > attached to them.
    >
    > I hope this can be done, sorry if it is obvious, I'm in
    the process of
    > learning Director and Lingo.
    >
    > Thanks,
    > Pat
    >

Maybe you are looking for

  • Jar with gif's

    Hi everyone, I'm having a problem when trying to run a stand-alone application from a jar file. I have a single class Main (no package) and it uses several gif files that are loaded with "new ImageIcon("file.gif"). all is fine until I create a jar (w

  • Disable Collaboration Features coming up in the popup window for somegroups

    Hi, How can I disable the Collaboration Features (Send Email,Create Appointment,Send InstantMessage,CreateTask etc ) that come up in the popup window whn we click on the link provided just after user name. I know how it is to be done for all users. B

  • Big Big Gnarly Question

    Hi people! I was just contemplating some question about arrays that I had this morning. Well, my question is about memory allocation. If I declare a new array of say 50 integers and then use it then declare another array of 30 integers using the same

  • Can we throw an error in java ,if yes plz give an example?

    Hi, How can we throw an error in java like an exception(using try catch).If an error can be thrown then what is the diffrence between error and exception because both can be thrown using throwble. Thanks Sumit

  • Android Beam?

    I have 2 LG spectrum 2s that I am trying to get the contact list transfered from one to another using the beam feature but Its not working. On each phone I have NFC and Android beam on, open contact list on the phone i want to transfer from, place th