Newbie Q: What do movie clips need to allow Actionscript?

Hello. Thanks for taking time out for this question.
Basically, I started an exercise in a book and it asked me to
add code to a movieclip. I created a basic circle, converted it to
a movie clip and tried to press F9 for actionscript, but Flash told
me "Current selection cannot have actions added to it".
When I looked at the example file that came with the book, I
couldn't see anything special about the movieclip that was used.
What am I missing?

However, the techniques of adding code directly to movie
clips is an old and outdated way of coding. And I would advise that
if you are serious about learning Actionscript that you don't go
down that road.
AS 2 is perfectly useful and good so learn that or learn AS3
(or both!), but here is a link to an article about the issue:
http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent
David Stiller (that is his blog) posts here often and is a
great source of information. You might want to check out more of
his articles.
It could be that your book is just showing one way before
moving on to a more sensible approach, but check the examples
toward the end. If they are full of on() and onClipEvent() I woudl
recommend getting a different book.

Similar Messages

  • Newbie:  Help with Interactive Movie Clips

    I'm just starting off with Indesign and am already running into an issue on a seemingly simple issue.  I'm trying to create an interactive document that I will play movie clips when exported to pdf.  Ok so far so good.  I've inserted one movie and started to play around.
    1st issue - The only option I can get to actually play the movie when clicked is when the pdf export option for compatibility is set to 'Acrobat 5 (PDF 1.4)'
                     How come no newer options work?  Using Acrobat reader 9 by the way and tried to toggle options such as 'embedding' the movie.
                     No luck with playing on any setting except 'Acrobat 5 (PDF 1.4)'
    2nd Issue - Inside the movie options dialog box for this clip, there is an option for a poster that I can 'choose movie frame' as poster.  The dialog box       comes up and is completely empth with no video controls or anything.  What the deal with this.
    I'm just starting out and I know I'm not totally incompetant but I'm not very pleased with what I'm seeing right now.
    Any help or suggestions would be very much appreciated.
    Thanks,
    Don

    Here is some help for starter.
    For embedding, do that in InDesign. I think you know the movie will only play in the PDF.
    If you export to PDF 1.3/1.4•Non-RGB movie or sound posters aren’t visible in the exported PDF document.
    •SWF and MPEG movies aren’t playable in the exported PDF document.
    •Clipping paths applied to movie or sound posters don’t appear in the exported PDF document. Posters are resized to match the movie page item.
    •Movies cannot be embedded.•Sounds cannot be linked.
    If you export to PDF 1.5 or laterQuickTime is specified as the preferred player when exporting to PDF. To change the preferred player, you must edit the rendition in Acrobat 6.0 or later.
    If you export to any PDF version•Non-rectangular media frames don’t appear in the exported PDF document.
    •Hyperlinks applied to movies, sounds, or buttons are not active in the exported PDF document. However, you can add those hyperlinks using Acrobat Professional.
    •Rotated or sheared movies and posters may not appear correctly in the exported PDF document.
    •Any masking applied to movie frames or posters is not supported.

  • Newbie question: What accesories do I need ...

    Hi there,
    I'm in a phase of buying the iPod Color (60GB) and want to use it as follows:
    - Connect it to my PC to synchronize (via iTunes/Photoshop Elements 3.0) with various kinds of sources (music, photos, podcasts, music store) & recharge (preferably using a dock)
    - Connect it to my Audio/TV equipment for slideshows and/or listening & charging
    - Connect it to my car audio
    - At times (vacation) be able to use (part of the) disk as a backup device for my digital camera (Canon G5) whilst on the road.
    My questions:
    - Am I asking too much?
    - If not what exactly do I need to buy next to the iPod color bundle itself to realize the functionality listed above without having to carry around with all sorts of cables and docks between PC/Car/TV-Audio? (I want a comfortable solution in which the iPod is the only "mobile" part)
    I know this sounds pretty trivial but I find it pretty confusing to compose the correct bundle on the iStore (Netherlands) which led me to put forward this question in this forum.
    Hoping for some good advise.
    Thanks in advance

    Thanks for your reply.
    I definitely need a case based on the feedback I got. Seems the iPods case is easy to be scratched. (BTW: Any recommendations?)
    Furthermore I have the following list:
    - Seems I need 2 docks, one for the PC and one for the TV/Audio.
    - Next to this I need an additional AV-cable and Monster Audio Cable to connect one of the docks to the Audio/TV
    - I need a power supply + cable (which one?) to be able to charge the iPod whilst on the "Audio/TV-dock?.
    - I need an FM transmitter (which one do you advise?) for in-car usage (I don't have a cassette player anymore so the cassette-adapter is no option). Any experience on the quality, is it better than normal broadcasts?
    - I need an iPod camera connector so I can connect it with my camera via an USB cable.
    Guess that's about it, right?
    @arrowsparrow: The dutch translation is readable though not really correct. I get the idea but it is a bit too literal. If I didn't have the English text for reference it would be hard to understand parts of it. I think you can do a better job yourself once you took the dutch-course :>)
    I just took a vacation (west coast of France)a few weeks ago so I won't be going again in short time.

  • Movie clip needs to change alpha of another movie clip

    In frame 3 of my Flash animation, I make a graph animate
    using a mask. At the end of that animation I want a button in frame
    3 whose alpha is set to 0 to become visible so it can be clicked.
    So, within the movie clip of the graph, on the last frame I
    have:
    mc_temp.alpha = 1;
    stop();
    But I get an error stating "Access of an undefined property
    mc_temp"
    The button (set as a movie clip) is named "mc_temp". I don't
    understand why I can't call it directly from the timeline of a
    movie clip.

    because its not on the movieclip's timeline. if your graph
    movieclip is on the same timeline as mc_temp, try:
    MovieClip(this.parent).mc_temp

  • TS1702 What app do I need to allow my wifi printer to work on ipad2

    I have tried printing on an Epsom XP305 wireless printer and keep getting a message saying "no air printer found" I have been told there is an app I can add to allow printing on a wireless printer. Please help. What app do I need to make it work?

    Printing From iPAD
    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99)  http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/

  • Flash Movie Clip Run Very Slow

    I have about 10 of "coconut tree" Movie Clips, 1 clouds movie
    clip, 1sea movie clip. The problem is when i run all of the movie
    clips together, the animation run very slow. Can anyone help me
    please................................................
    thanks

    It's hard to tell without knowing what those movie clips
    contain. If they contain raster images (bitmaps), have tons of
    points, utilize a lot of alpha tweening, etc. it could be the
    cause. How does it run with each movie clip running by itself? Are
    coconut trees vector or raster? If vector, can you optimize the
    shapes any to reduce the number of points?
    (Modify>Shape>Optimize)

  • Trying to get a movie clip to go both up and down depending on which button gets clicked

    hello,
    I have a file with 5 movie clips in it. I have a button that when clicks, plays each one. One of the movie clips needs to move both up and down and I am having a lot of trouble with this.
    stop();
    function showVenue(Event:MouseEvent):void
              mc_speaker.play();
    function showSpeaker(Event:MouseEvent):void
              mc_compliance.play();
    function showCompliance(Event:MouseEvent):void
              mc_strategic.play();
              mc_data.play();
    function showStrategic(Event:MouseEvent):void
              mc_data.gotoAndPlay("down");
    function showData(Event:MouseEvent):void
              mc_data.gotoAndPlay("up");
    btn_viewMore_Venue.addEventListener(MouseEvent.CLICK, showVenue);
    btn_viewMore_Speaker.addEventListener(MouseEvent.CLICK, showSpeaker);
    btn_viewMore_Complinace.addEventListener(MouseEvent.CLICK, showCompliance);
    btn_viewMore_Strategic.addEventListener(MouseEvent.CLICK, showStrategic);
    btn_viewMore_Data.addEventListener(MouseEvent.CLICK, showData);
    Is there anyway to attach my file here for someone to look at???
    thanks!
    babs

    Well, on the mc_data movie clip, I had the animation going up and down with stop actions to stop it. so I put labels on those areas and tried to just control it that way. Seemed simple enough, but not working.
    I really don't know how to control the toggle up and down in AS without using the timeline....just trying to help a friend, and ready to scream..I thought this would be so simple...
    would be easier to explain if I could show you a dummy file...but I still don't see an attach button????

  • Pause Playback for Nested Movie Clips

    Anybody know a script solution for how to target pause of a
    myriad of different movie clips from a button script on the root
    timeline?
    I'm using this script which works fine for pausing the root
    timeline, but if I've passed off control to a movie clip, you would
    have to press this button again to make the movie clip stop.
    Here is the button script:
    on (release) {
    if (global_sound.getVolume() == 100) {
    global_sound.setVolume(0);
    stop();
    Help appreciated. Thanks!

    kglad,
    I mean I've issued a stop(); in the root timeline and now the
    movie clip is going to play until it is done. Once it is finished,
    I issue a resume back to the root timeline with a _root statement
    and the playback continues in the root timeline. Essentially the
    movie clips need to complete their playback and then they can
    return back to allowing the root timeline to continue.

  • Flash Newbie needs help with Movie Clips/Action Scripting

    Hi -
    I'm having a problem with my movie clips playing
    simultaneously and cannot, for the life of me, figure out what I
    have done wrong. I'm new to flash, so I may have set something up
    incorrectly, but here's what I have so far:
    11 layers, total: 1 layer with 10 control buttons, each
    button with the following actionscript:
    on (release) {
    gotoAndPlay(85);
    Where the number changes in relation to which keyframe the
    next movie is on.
    I have 10 movies, total, but they are only movie clips,
    essentially photo slide shows with audio, made all in the library.
    The problem happens when I click on the second or third
    button. Not only does the movie that I have selected begin to play,
    but all of the previous clips do as well, so it all sounds quite
    garbled. I don't know what I am missing in the action script, as my
    Action Layer has a stop command on it at each keyframe where there
    is a new clip to play.
    I have tried to add a stopAllSounds command, but I'm afraid
    that doesn't do anything because it is not a "sound file" per se,
    playing in the timeline.
    I'm at the end of my rope and really need some help in
    figuring this one out. My project is hanging in the balance on
    this, as I have scripted everything else correctly and it runs
    beautifully.
    Please help!
    Thanks,
    Caroline

    Each layer has a blank keyframe before and after each
    movieclip. Each movie clip is at a different frame. Even with the
    blank keyframes added, the second video starts to play and then the
    first video begins to play. Same happens if I click on the third
    button. Third plays, and starts 1st and 2nd shortly thereafter. Is
    there an action script I can put in that will tell the timeline
    that, when a button is clicked, no matter where the movieclip is,
    it will stop and start the newly selected movieclip?

  • HT2518 I am trying to move across & view my home movie clips from my PC to Mac, but I can't view them.  What do I need to have installed on the MAC to view such files? (Originally put onto the MAC from a Canon video camera)

    I am trying to move across & view my home movie clips from my old PC to my new Mac but I am unsure what software I need to view them.  They are from a Canon video camera originally.  Please advise how this is done!

    Do they have a file extension?
    How about anything on the camera which might indicate what it is, like AVCHD?

  • I'm struggling to move video clips from my macbook pro to my ipad. a few play but most won't go over in the sync. What format do I need to clips to be in?

    Greetings. I'm attempting to sync video clips from my macbook pro to my ipad 2 without much success.  A few videos go over and the rest can't. What format do they need to be in?  Thanks for any help you can give.  JWA

    QuickTime Pro costs a few buck but is a good tool to have on hand as it can open and transcode a wide variety of video and audio formats.
    It's like a Swiss Army knife for media files.
    http://www.apple.com/quicktime/extending/
    Matt

  • Hi, i am a bit of a newbie at AS & need some help applying it to a movie clip button

    I have created a movie clip button but am stuck with the actionscript. I have created the rollover and rollout for this movie clip button but i want it to do 2 things after this i want it to go and stop on the first frame of a movieclip which has my content on it called portfoliogallery_mc (which is also the same instance name for it) when you then click the button i want it to go and play frame 11 of that movie clip portfolio gallery_mc.
    Here is my current actionscript i HAVE Flash 8 on my comp that i am currently using.
    Please note my actions are on a layer called actions and not on the movieclip button itself.
    nxtimagetwo_mc (is the movie clip button/instance of mc)
    THE CODE I HAVE USED
    this.nxtimagetwo_mc.onRollOver = function() {
    nxtimagetwo_mc.gotoAndPlay("_over");
    this.nxtimagetwo_mc.onRollOut = function() {
    nxtimagetwo_mc.gotoAndPlay("_out");
    portfoliogallery_mc.gotoAndStop(1);
    portfoliogallery_mc.gotoAndPlay(11);
    currently it is playing to frame 11 not stopping at frame 1 and stops on frame 20 where i have a stop action. I also have a stop action on frame 1 of that movie clip.
    What I want it to do is first stop at frame 1 of that movie clip and when the button is clicked again to go and play frame 11 of that same movie clip.
    Basically what i want the mc button to do is 2 things automatically stop the mc for the first content and when button is clicked let the content fad out and play to where the next stop action is set to in the Movie Clip.
    Nothing to with the above www.rsquareme.co.uk is my current portfolio website if you would like to check it out it is not fully complete yet.

    it doens't make sense to execute:
    portfoliogallery_mc.gotoAndStop(1);
    portfoliogallery_mc.gotoAndPlay(11);
    only the 2nd line of code will be effected.
    i know you want to control 2 movieclips.  what are the instance names of the two movieclips and what do you want to occur in each of those movieclips.
    or, do you want to control 1 movieclip and have it play a certain sequence of frames followed by another sequence of frames?

  • Need help returning correct name from a code created movie clip

    Hello. I am an AS3 n00b with hopefuly a simple question I am designing a simple game in flash. This code creates an array of movie clips and asigns a picture to each one. It is a map screen. What I need is when I click on one of the created movie clips, I need it to return either the index of the clip in the array or the name of the clip. Basicaly anything I can use to tell them apart in the code. Here is the code:
    import flash.display.MovieClip;
    var MapLoader:Array = new Array();
    var strJPGext:String = ".jpg";
    var intContTileNumber:int;
    var strContTilePath:String;
    var intDistStartX:int = 63;
    var intDistStartY:int = 64;
    var intDistMultiplyY:int = 0;
    var intDistMultiplyX:int = 0;
    var intDistCount:int = 0;
    var MapSquare:Array = new Array();
    for (var i:int = 0; i < 729; i++)
             //var MapSquare:MovieClip = new MovieClip();
            MapSquare.push (new MovieClip());
            MapSquare[i].x = intDistStartX + (intDistMultiplyX * 30);
            MapSquare[i].y = intDistStartY + (intDistMultiplyY * 30);
            MapSquare[i].name = "MapSquare" + i ;
            addChild(MapSquare[i]);
            intContTileNumber = i;
            MapLoader.push (new Loader);
            strContTilePath = intContTileNumber + strJPGext;
            MapLoader[i].load(new URLRequest(strContTilePath));
            MapSquare[i].addChild(MapLoader[i]);
            intDistCount++;
            intDistMultiplyX++;
            if (intDistCount > 26){
            intDistCount = 0;
            intDistMultiplyX = 0;
            intDistMultiplyY++;
    stage.addEventListener(MouseEvent.CLICK, reportClick);
    function reportClick(event:MouseEvent):void
        trace("movieClip Instance Name = " + event.target.name);   
    Now all this works fine, it creates the map and assigns the correct picture and places them in the correct X,Y position and it is the correct grid of 27x27 squares. The problem is with the name, when I click on the movie clip, it returns "Instance2" or "Instance5" or whatever. It starts with 2 and then increases each number by 3 for each clip, so the first one is 2, then 5 then 8 and so on. This is no good. I need it to return the name that I assigned it
    . If I put the code in trace(MapSquare[1]) it will return the name "MapSquare1" so I know the name was assigned, but it isnt returning.
    Please assist
    Thanks,
    -red

    Thanks for the resopnse,
    I know I dont really need the name, I just need the index number of the array, but I cant figure out how to get the index name without specificaly coding for it. That is why in the listener event I use event.target.name because I dont know what movie clip is being clicked until it has been clicked on. Basically when a movie clip is clicked it needs to return which index of the array was clicked.
    I could do it this way:
    MapSquare[0].addEventListener(
      MouseEvent.MOUSE_UP,
      function(evt:MouseEvent):void {
        trace("I've been clicked!");
    MapSquare[1].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    MapSquare[2].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    ... ect
    but that is unreasonable and it kind of defeats the purpose of having the array in the first place. The code that each movie clip executes is the same, eventualy that index will be passed into a database and the data at that primary key will be retrieved and returned to the program. So I just need to know, when one of those buttons is clicked, which one was clicked and what is its index in the array.
    I am a VB programer and in VB this is very easy, the control array automatically sends its own index into the function when one of the buttons is clicked. It seems simple enough, I just dont know how to do it in action script.
    Thanks again,
    -red

  • Urgent Need of Help Playing Movie Clips

    I'm a complete noob when it comes to AS. I know basic things like stop(); and gotoAndPlay.
    Here's my dilemma.
    Dearest Professor has given us a task of creating a website in Flash. You need to have 15 links, or 15 pages. He states that you can only go frame by frame on the main timeline with no tweening spaces in between. So I'm virtually creating all of my animations in symbols.
    This isnt such a problem... I created a short introduction title video in Flash using a Movie Clip Symbol... placed it on the main timeline on the first page, and then called ActionScript to play the video.
    Here's the problem... So.... the movie will play, but it will continuously loop... I've tried putting stop(); on the home page, under the AS... I'm just completely lost on how to get this to play the short clip and go straight to the home page... Could someone PLEASE, direct me on how to do this and give me an explanation as to why this way is the way it is... I would very much like to understand how it works.
    Thanks
    The Flash Noob

    Thanks Rob!
    I did what you suggested but I think I may have messed it up...
    Here's the output error I have going on right now.
    TypeError: Error #1034: Type Coercion failed: cannot convert flash_website_template2_fla::MainTimeline@7fff0d7aea1 to openingtodogwood.
      at openingtodogwood/frame9()[openingtodogwood::frame9:3]
    In the end of the timeline of the movie clip I put this:
    stop();
    openingtodogwood(parent).play();
    I think that might be wrong but I'm unsure on what I should have really put. I was also reading that having the name of the movie clip the same as the class in the properties panels is not a good idea?
    Thank you so much for your help!

  • How to detect the end of a movie clip:  what eventListener to use?

    I'm doing a rather fancy button with up,down,rollover,rollout,and static states, something the standard flash button structure isn't capable of as far as I can tell, and believe me, I've tried it.
    Here's the setup:  My main timeline has a series of frames with stop(): scripts, and each frame has a movie clip representing what should happen during that state:  still, rollover, rollout, mousedown, mouseup
    I can't get the mouseup event  to work.
    Here's what I've tried so far that doesn't work:
    1. in the imbedded movieclip, no script at the end.  Result: This just loops the embedded clip.
    2. in the imbedded movieciip, put gotoAndPlay("NextFrame"), where "NextFrame" is the label in the root movie where I want to go. result: loops clip
    3. in the imbedded movieciip, put root.gotoAndPlay("NextFrame"), where "NextFrame" is the label in the root movie where I want to go. result: error
    I think what I need to do is write an eventListener for the root actionscript, but I don't know what event to listen for. 
    What event is thrown when a movieclip finishes playing?
    :<)McFrisco

    You have to create your own mechanism(s) for detecting the end of a movieclip being reached.  You can either build code into the end of the clip itself, possibly dispatching an event that is being listened for by a containing timeline, or you could continuously monitor the currentFrame of the clip to see if it equals the totalFrames value.

Maybe you are looking for

  • How to overwrite an inner query in the select clause

    Hello, I have a queryof this form: SELECT t1.ID,            t1.column2,            (SELECT SUM (t2.column2)                 FROM table2 t2               WHERE t2 = t.ID                    AND t2.column1 IN (SELECT ..... FROM table3 t3 WHERE t3.column

  • Clarification regarding " " & ""  - Help

    The below code produces $ java t103 Hello World! HelloWorld! is there any logical or any difference in using the two ways of declaring c and cc, because in one of the program that I was writing i was figuring out the problem for a long time and this

  • Calculated paper bar codes

    I have several adobe forms that need to transform a field that the user populates into a barcode. I can create the form using the barcodes and it works fine in Adobe pro. However not in Reader. I have been told I need Reader Extensions, but the sales

  • Will I be able to use my Tmobile simcard for the "contract-free" iPhone 6 without activating a new number?

    Since we all know that the term "contract-free" is not clear for everyone - considering so many questions appear to this related topic. Will I be able to use my old Tmobile number without activating a new one? Thanks!

  • In Transaction CC02 Business Work Place icon is missing in some clients

    Hi Experts, The ICON to access Businees Workplace from Change Master Transactions  CC02 seem to be missing in some clients . It is present is some clients and missing in Some clients. Thanks in Advance Best Regards, Gaurav Vijayvargiya