Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default action script help

    im trying to load an external swf file using the

    gotoAndPlay(_root.emptyClip.loadMovie("grey_bars.s wf"));

    is it possible to load the same movie but on a certin frame number or label

    thanks
    dash



    dash Guest

  2. Similar Questions and Discussions

    1. xml and action script
      I want to display the "Value" in a dynamic text field from an xml document called "stocks.xml". here is my action script code for the dynamic text...
    2. CF Grid / Java Script / Action Script
      Hi, Does anyone know of a good reference for the attributes CFgrid exposes in a flash form? eg. I would like to select the first row on load. ...
    3. Action script??!!?!
      HI, Im kinda new to this action script stuff and a friend of mine gave me some code a while back to look at. Basically its a menu system with...
    4. Need help with an Action Script
      Hello Everyone, I am developing the included action script for one of the Spanish teachers at my work place. The concept is that the students drag...
    5. Need Help with action script.
      I am working on a project for one of my classes, and in it I want to be able to click on an apple (which is a button) and make it fall. I have tried...
  3. #2

    Default Re: action script help

    Użytkownik "dash" <dashangel@optushome.com.au> napisał w wiadomo¶ci:
    > gotoAndPlay(_root.emptyClip.loadMovie("grey_bars.s wf"));
    ??

    //[1.Frame]
    button.onPress = function(){
    gotoAndStop();
    }

    //[2.Frame]
    _root.emptyClip.loadMovie("grey_bars.swf");

    //END AS

    your code is bad :) because:
    USAGE: gotoAndPlay([scene,] frame)
    pozdrawiam
    Swiezy

    --
    _name: adam szymański a.k.a. swiezy / sw132y _________________
    ___gg: 2021448 || @_: swiezy (małpa) przecinek (kropka) com __
    __kom: (+48)888-879-155 || city: poznań || school: XII LO ____
    __www: coming soon . coming soon . coming soon . coming soon _


    Swiezy Guest

  4. #3

    Default Re: action script help

    That is just rubbish

    all you need is

    _root.emptyClip.loadMovie("grey_bars.swf")

    wrapping it inside a gotoAndPlay is just going to cause problems and is not
    valid code

    You can put the code to do that in whatever keyframe you want .. so that
    means you can load it whenever you want .. or you might put it in an event
    that happens whne you click on a button etc.

    --
    All the best,
    Jeckyl


    Jeckyl 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