Movie clip path

Ok this is driving me crazy. It is pretty simple. I just want
a button I click to tell another movie clip to gotoAndPlay(2); and
when I click the button nothing happens. I know the path is correct
because I have the other movieclip in the _root section and it is
named site_mc so the actionscript says on(press){
_root.site_mc.gotoAndPlay(2); } and nothing happens. any
ideas?

The buttons are working. I am not sure what was wrong other
than operator error. I do notice the movie clip has a white margin
on the left and a white margin on the top. What parameter should I
be using to center the movie clip in the window and to position the
movie clip at mid spot of the scrollable instead of at the
top?

Similar Messages

  • Is it possible to move/resize individual objects in Compound Clipping Path in Illustrator?

    Hi,
    I have created a Compound Clipping Path in Adobe Illustrator, and wonder if there is a way of moving/resizing individual objects in this path that create the mask? At the moment when I try to change just one object it changes them all.
    Essentially I am try to make fine adjustments to the mask.
    Thanks in advance for any help,
    Nick

    Adobe updated masks in CS4, which has made to editing inidividual contents within masks more difficult, especially more complex masks (eg: nested)
    When you select a mask now you select the mask and the contents. 5 ways to help you select the elements within the mask:
    To get into the contents to edit them use the "Edit Contents" button (the 2nd one in the top left).
    Flip down your layers palette triangles, to try and make selections there
    Individually select items with the hollow arrow tool or group select tool, and hide them, then unhide to have the sum of the elements selected.
    Save back to CS3 and work in CS3 
    Isolation Mode (though that mode is preferred disabled by many users)
    Be careful as if you ever release a mask, this can entirely mess up your layeringorder on occasion, and undo won't help. Save before releasing a mask, sometimes you can undo, sometimes undo will not be abel to reconstruct you layer order.

  • [AS][Photoshop] Checking if there is any paths or clipping paths

    Hey guys,
    I would like to determine if there is any paths or clipping paths in the files dropped onto the droplet. Then sort them into different folders. One folder for files with paths and one for without paths. Getting the files to move I think I can manage, but I can't get checking for the paths to work. Anyone got a clue? This is how far I have got.
    > on open fileList
    > tell application "Adobe Photoshop CS3"
    > activate
    >
    >
    > repeat with thisFile in fileList
    > open thisFile showing dialogs never
    >
    > set CountOfPaths to count of path items
    > display dialog CountOfPaths
    >
    > end repeat
    >
    > end tell
    end open

    Solved it! :D
    on open fileList
    tell application "Adobe Photoshop CS3"
    activate
    -- DO WITH EVERY FILE DROPPED ONTO THE DROPLET
    repeat with thisFile in fileList
    open thisFile showing dialogs never
    tell current document
    -- CHECK FOR PATHS
    set CountOfPaths to every path item
    if CountOfPaths is equal to {} then
    -- IF THERE'S NO PATH
    tell application "Finder"
    -- MAKE RED IN FINDER
    set the label index of thisFile to 2
    end tell
    else
    -- IF THERE IS A _CLIPPING PATH_
    if exists (every path item whose kind is clipping) then
    tell application "Finder"
    -- MAKE GREEN IN FINDER
    set the label index of thisFile to 6
    end tell
    else
    -- IF THERE IS A PATH BUT _NO_ CLIPPING PATH
    tell application "Finder"
    -- MAKE PURPLE IN FINDER
    set the label index of thisFile to 5
    end tell
    end if
    end if
    end tell
    -- CLOSE THE FILE
    close current document saving no
    end repeat
    end tell
    end open

  • Cutting out images in indesign, clipping path problems

    Hi,
    I have been putting images of my drawings from photoshop onto indesign for my portfolio,  after looking around the only way I can seem to find to cut them out is using clipping path/detect edges.
    The problem I have is because they are scanned sketches this method produces really inacurate and shoddy results and no matter how much I play around with the threshold and tollerance this means I still have to mess around with the pen and arrow tool for ages on each image.
    Is there a quicker solution to cutting them out like the magic wand or lasoo tool on indesign?
    It has taken days now in in design , I have all the images already cut out from their original pages on photoshop but the white box always comes around again when I drag or place the images in indesign.
    I have been shorcutting some pages and doing layout on photoshop and placing the image behind which works fine sometimes but is really inconviiant when I want to move the layout around text ot anything...... i have attatched some pictures to show you what I mean.
    Thanks for your help in advance
    Leo

    Well Thats 2 days of my life Ill never get back!
    Thankyou very much! cant belive I was that stupid

  • As 2.0 class objects- how to swap depths of a movie clip

    How do you bring an object to the top? if it's just a movie
    clip, I could do a swapdepths, but if it's a movieclip that's part
    of an AS 2.0 object, how do you swap depths of the whole object?
    I create 2 objects (same class) which each have a movieclip
    within them. The movie clip is created on a unique level with
    getNextHighestDepth().
    I have a button which tries to swapDepths of the 2 objects,
    but I can't get it to work. Can anyone help?
    here's the detail:
    1. create a symbol in the library called "someShape_mc" and
    put some shape in it - a circle, a square, whatever - this symbol
    is exported for action script, and has an AS 2.0 Class of
    "ClassObject" ( I also put a dynamic text field in the shape to
    display the current depth - it's called "depth_txt")
    2. create a button called "swap_btn" on the stage.
    Frame 1 has the following actionscript:
    var BottomObject:ClassObject = new ClassObject(this,100,150);
    var topObject:ClassObject = new ClassObject(this,110,160);
    // for the button add this:
    Swap_btn.onRelease=function() {
    // try it with the full path:
    _root.BottomObject.__LocalMovieClip.swapDepths(_root.topObject.__LocalMovieClip);
    // try it with with just the objects:
    BottomObject.__LocalMovieClip.swapDepths(topObject.__LocalMovieClip);
    // try it with the object as a movieclip
    BottomObject.swapDepths(topObject);
    trace("Did it Swap?");
    // try it with a method in the class....
    BottomObject.swapIt(topObject.__LocalMovieClip);
    BottomObject.swapIt(topObject);
    trace("nope... no swapping going on...");
    ================================
    here's the AS file: "ClassObject.as"
    class ClassObject extends MovieClip{
    var __LocalMovieClip;
    var __Depth;
    function ClassObject(passedIn_mc:MovieClip,x:Number,y:Number)
    __Depth = passedIn_mc.getNextHighestDepth();
    __LocalMovieClip =
    passedIn_mc.attachMovie("someShape_mc","__LocalMovieClip",__Depth);
    trace("made a shape at " + __Depth);
    __LocalMovieClip._x = x;
    __LocalMovieClip._y = y;
    __LocalMovieClip.depth_txt.text = __Depth;
    public function swapIt(targetMc) {
    __LocalMovieClip.swapDepths(targetMc);
    __LocalMovieClip.depth_txt.text =
    __LocalMovieClip.getDepth(); // no difference.
    trace("Tried to swap from within the class...");
    ========================
    so- the goal is to bring the "bottom" Class object on top of
    the "top" object. The button tries various methods of swapping the
    depths of the movie clips - but there is not one that works. What
    am I missing?
    tia
    ferd

    Thank you for your response - and here I have included the
    code I reworked to show how it works, and doesn't work. you're
    right about not needing the extra containers, but this example is
    part of a bigger thing...
    I'm confused - it works ONLY if I attach the movie outside
    the class, even though the "attachment" occurs, I'm thinking, at
    the same scope level, that is, _root.holder_mc, in both examples.
    it seems that the advantage of having a class is defeated
    since I have to do the extra coding for each object that will be
    created. It's like the class can only have a reference to the
    movieclip outside itself, and not have a clip INSIDE that is fully
    functioning. am I right about this? Is there someplace good I can
    learn more about class objects and movieclip usage?
    also, my class object IS a movieclip, but " this.getDepth() "
    is meaningless inside the class object. hmmm...
    This one works..... attaching the movies at the root level
    (to a holder_mc)
    // Frame 1
    tmp1 =
    holder_mc.attachMovie("someShape_mc","tmp1",holder_mc.getNextHighestDepth());
    var BottomObject:ClassObject3 = new
    ClassObject3(tmp1,100,150);
    tmp2 =
    holder_mc.attachMovie("someShape_mc","tmp2",holder_mc.getNextHighestDepth());
    var topObject:ClassObject3 = new ClassObject3(tmp2,110,160);
    // for the button add this:
    Swap_btn.onRelease=function() {
    BottomObject.swapIt(topObject);
    trace("clicked button");
    // ClassObject3.as
    class ClassObject3 extends MovieClip{
    var __LocalMovieClip:MovieClip;
    function
    ClassObject3(passedInMovieClip:MovieClip,x:Number,y:Number) {
    trace(" this class object is at ["+this.getDepth()+"]");
    __LocalMovieClip = passedInMovieClip;
    __LocalMovieClip._x = x;
    __LocalMovieClip._y = y;
    public function swapIt(targetMc:MovieClip):Void {
    trace("do the swap in the class");
    trace("===========================");
    trace("target type :" + typeof(targetMc));
    trace("__LocalMovieClip type :" + typeof(__LocalMovieClip));
    __LocalMovieClip.swapDepths(targetMc.__LocalMovieClip);
    This one does NOT work..... attaching the movies within the
    class object...
    // Frame 1
    var BottomObject:ClassObject2 = new
    ClassObject2(holder_mc,100,150);
    var topObject:ClassObject2 = new
    ClassObject2(holder_mc,110,160);
    // for the button add this:
    Swap_btn.onRelease=function() {
    BottomObject.swapIt(topObject);
    trace("clicked button");
    // ClassObject2.as
    class ClassObject2 extends MovieClip{
    var __LocalMovieClip:MovieClip;
    function
    ClassObject2(passedInMovieClip:MovieClip,x:Number,y:Number) {
    __LocalMovieClip =
    passedInMovieClip.attachMovie("someShape_mc","stuff1",passedInMovieClip.getNextHighestDep th());
    __LocalMovieClip._x = x;
    __LocalMovieClip._y = y;
    public function swapIt(targetMc:MovieClip):Void {
    trace("do the swap in the class");
    trace("===========================");
    trace("target type :" + typeof(targetMc));
    trace("__LocalMovieClip type :" + typeof(__LocalMovieClip));
    __LocalMovieClip.swapDepths(targetMc.__LocalMovieClip);

  • Making a movie clip play beyond keyframe

    Hi,
    I have a movie clip that is about 30 frames long. I've placed an instance of it on the main timeline and it follows a motion path. My motion path ends after about 20 frames. At this time, I've inserted a keyframe which is preventing my movie clip from playing the remaining 10 frames.
    I tried adding an ActionScript layer where the last keyframe is and it reads:
    instance.gotoAndPlay (20)
    Doesn't seem to work. Just a note that this is around frame 292 of the main timeline. Also note, a new keyframe begins on another layer with a different movie clip.
    Any ideas? Much appreciated.

    I think I may understand now, and your first approach to solving it should work.  What you need to be sure to do is to assign the instance name at every keyframe.  If you did not name it in its first frame of the main timeline, it will inherit that lack of a name in the keyframe at the end of the tween, regardless of your assigning it there... just a quirk of Flash.
    Another option, if this is a straight line tween of the object on the main timeline is to use actionscript to animate it rather than a timeline tween.

  • Passing a variable from a movie clip to the main timeline

    Hi,
    I'm having trouble passing a variable from a movie clip in my
    flash file to the main timeline.
    I have a movieclip with the instance name IntroNav which
    contains several buttons. Clicking a button sets the variable
    "page" to a specific name, i.e. page = "home"
    However, outside of the movie clip, on the main timeline I am
    unable to call this variable, and "page" seems to have no value.
    Can anyone tell me why this is and how to solve it?
    Thanks

    Umm, yes ... declare your variables correctly.
    var page:String = new String(); //proper complete
    var page:String; //strict typing
    var page:String = "home"; //stirct typing with value
    declaration
    Do not declare the variable in your buttons, you would have
    to do so in every button and be constantly resetting the value.
    Declare it on the main timeline at the lowest level. You do not
    need to use it as a _global, you just need to resolve your path
    issues. You can 'set' the variable value from a button, without any
    problem, but you have to call to the variable correctly.
    You do not 'name' a variable as "_root.page" , the '_root'
    refers to the lowest level of the SWF or the main timeline, as does
    a call to ' _level0' (that's a zero). If the variable is declared
    on the main timeline, and you're calling from the MC/button or
    anywhere you can refer to the variable by calling to it by
    the proper path of '_root.page'
    To set the variable from any of your button/MC instances
    call:
    _root.page = "value"; OR _level0.page = "value";
    But you must have the varibale declared on the main timeline,
    and only once and the playhead should be stopped or it will reset
    the value to the default upon looping.

  • Making Button links within a movie clip

    I am attempting to learn more Flash in general and
    actionscript in particular. I have created a flash piece that
    consists of 4 buttons within a movie clip that is being masked by
    another movie clip. One movie is the set of 4 buttons. The other
    movie is a "spotlight" that moves with the cursor. As the spotlight
    shines on each button, the button's text changes color and is "lit
    up".The Over state of each button is set to cause the button to
    change color. When I put a keyframe in the Down state of each
    button in order to add actionscript to create the action that makes
    the button clickable to take the viewer to a web page, it tells me
    that no actions can be given to this Down state. If I try using
    Behaviors to accomplish the same thing, it tells me that Behaviors
    are not supported. If I put actionscript into the actions layer of
    the timeline, it does not do the required action, i.e. clicking on
    the buttons leads nowhere. I have tried moving the actionscript
    before, between, and after the setInterval and setMasker
    actionscript that controls the interaction between the two movie
    clips (which work perfectly). I have tried inserting an actions
    layer into the button movie clip--same result--nothing. I have
    tried putting the actionscript in the second frame of the actions
    layer (both in the main timeline and in the movie clip), all to no
    avail. I did give each button an instance name and used them in the
    actionscript.
    Here is the actionscript I am using for one of the buttons:
    book.onPress = function(){
    book.getURL("http.//www.bainbridge.wednet.edu");
    I do not get an error message with this actionscript. I just
    don't get sent to the web page. I am using Flash 8.
    What else I should be doing? Is this a problem because the
    cursor is already attached to an action? I am sure that this must
    be possible, if only I knew more.
    Thanks for helping.

    do you have the actual mc identified as ( book ) on the root
    as well as the code i posted above? if so, are the code and the mc
    on the same frame? also you should note that the code posted above
    is meant to be placed on your root time line, not directly on the
    mc identified as ( book ). one more thing: you must target your mc
    ( book ) correctly.
    target like this:
    IF YOU ARE ON THE MAIN TIME LINE ( _root ):
    // if ( book ) is setting on the _root already then your
    target path is simply book.onRelease.
    // if ( book ) is setting inside another movieclip on the
    _root, find out what movieclip ( book )
    // resides in. that will now be the first part of your target
    path.
    // next find out if ( book ) resides in yet another
    movieclip. if so, that will be the next part of
    // your target path.
    // continue this until you reach ( book ). the entire path
    you took to reach ( book ) is your
    // target path.
    // you can also click on the target icon in your actionscript
    pane to insert a target path for
    // your movieclip.
    here is an example in which ( book ) resides inside another
    movie clip ( yourMovieClip ) on your _root:
    yourMovieClip.book.onRelease = function () {
    getURL("
    http://www.cnn.com/");

  • Going Back to the main frame, from inside a movie clip time line.

    In flash CS5 I want to go back to the main time line, from inside a movie clip button, so when i click the the movie clip it goes to another frame on the main time line..
    Can anyone help me?
    Thanks
    Daniel Derrick

    your can use _root to reference the main timeline from anywhere though that can lead to problems if your swf is loaded by another swf.  because of that eventuality, it would be better to use a relative path back to the main timeline.
    so, from a movieclip's timeline (when the movieclip is on the main timeline), you can use _parent to reference the main timeline.
    but even better would be to use no code on that movieclip's timeline and keep all your code on one timeline (the main one).

  • Loadvariablesnum not working on movie clip

    I have a movie clip called "popup" on my root timeline. In
    the popup movie clip, there is a dynamic text box with the variable
    set as "content". I have an external txt file called "file.txt". On
    my popup timeline, I have this code:
    loadVariablesNum ("file.txt",0);
    I have both my fla file and the txt file in the same folder.
    The txt file doesn't load. It loads if I put a dynamic text
    box on the root timeline and put the actionscript there too.
    What am I doing wrong? Thanks!

    what makes you think it doesn't load? if the text fails to
    appear in your textfield i would suspect you have a path issue
    because your variable (from the textfield) is loaded into _level0
    and your textfield variable is in _level0.popup.

  • Navigating Out Of Movie Clips

    Hi, i have a presentation set up whereby I have 2 scenes,
    Intro Movie and Introduction. I have a Movie Clip in Introduction
    with a number of navigation buttons in it for within this
    movieclip, but i need one button to replay the Intro Movie in the
    other scene. Can someone help me out with some actionscript for
    this? Any help would be greatly appreciated

    it goes like this - the main timeline is the _root of the
    movie. Anything on that timeline has a . after it. So if you have a
    movieclip called "clip1" and inside of that another movieclip
    called "subclip" then the full path to that movie is:
    _root.clip1.subclip
    From the subclip movie if you want to control the main
    timeline you just write something like this:
    button1.onRelease = function(){
    _root.gotoAndPlay(1);
    No matter where that button is located (inside a clip inside
    a clip inside....) it will still control the main timeline.
    Hope that makes sense.

  • OOP and movie clips in arrays

    I have a number of movieclips in a game that needs to all appear at a certain x;y co-ordinate at the same alpha value and move at a dynamically produced path and basically have the same behaviour up to a point. Flash has created links to .as files for eachEach movie clip.
    I want to put them all in an array to code once. My question - Must this array be in the main class .as file or can I have a seperate .as file written especially for this array.
    Thanks
    Charine
    Facebook: buggoop

    you can pass a reference from your main class to your array class. eg,
    // in document class
    var arrayClass:ArrayClass=new ArrayClass(stage);
    // ArrayClass
    package{
    public class ArrayClass{
    private var _stage:Stage;
    public function ArrayClass(s:Stage){
    _stage=stage;
    dowhatever();
    private function dowhatever():void{

  • Clipping Path Assigner

    Hey All,
    I export high-res pdfs from indesign, and one of the biggest problems I have is during our preflight. Each image we have linked has to be "told" to use it's photoshop path, or else it will not use it upon export (leaving big white boxes).
    For every image, We have to choose Object - Clipping Path - Options: Then Photoshop Path, which automatically selects the available path, then Hit OK. And It won't let us do multiple images at once.
    So the question of a document script comes to mind. Would it be easy to create a script like this?:
    For each visible image:
        Do:
            Object - Clipping Path - Options
                Photoshop Path (will always be named "Path 1" (no quotes) if you need to specify a path name)
        End Do;
    End For;
    Popup - Finished
    I looked for an "Actions" feature of sorts, to record menu actions like photoshop, but it just doesn't exist. Thoughts?
    (I have pretty much zero scripting knowledge, so either a 'for dummies' instruction, or someone to help is in order...)

    Just select the frame and move it...
    What sort of difficulty are you having?

  • Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    code on the last frame of your movieclip instance:
    _root.gotoAndStop('whatever_frame');  // will work unless this swf is loaded into another swf.  in that situation, you should use a relative path to the main timeline (eg,  _parent or _parent._parent etc).

  • How can i remove a movie clip container

    Hallo friend,
    I am dealing with this problem.
    In the first frame of my project i am designing a movie clip
    dynamicaly - with action script 2 - which i use as a container in
    order to fill it with attachments to other movie clips and with
    text boxes which i make dynamically too.
    The problem is that i want to delete this container in order
    to have a quickly way to delete the object that contains, but i
    can't find a way to do this.
    I have tried the functions removeMovieClip() and
    unloadMovie(), but there was no result.
    Please, can somebody help me with this ?

    Friends forgive me for my absence but i do had a very
    defficult period, as i wal looking for new job.
    Enyway, now i have time and tommorow i will post the code, in
    order to let you understand the way i build it.
    My friend, uomodicuore2 i use the correct path to the
    function unloadMovie() and removeMovieClip()
    Friend ric5611 i don't use flash components

Maybe you are looking for

  • Doubt in BDC

    I have a doubt in BDC, They used a standard SAP program (RSBDCBTC_SUB and RFBIBL00) for upload the data for the transaction FBB1. they don’t want the particular record . They used a session method for upload the data. I know only the session name. ho

  • Create Background Job after data saved in module

    Hello, I have a program that has a start selection screen with material group, you enter your data, execute.  When it has finished you get a ALV of sales order with items where you can make changes to dates and other details and save.  I would like t

  • WPF How can I implement the INotifyPropertyChanged in a Three-tier architecture?

    I am a student and I am confused on using the INotifyPropertyChanged in a three-tier style of coding. Can you guys help me a bit with these? I have a solution named MetroAppProject. It is composed of four projects (I omitted the using clauses and ref

  • Adobe Reader Version XI (11.0.06) vs Adobe Acrobat 9 Standard Version 9.5.5

    Do I have to install Adobe Reader Version XI (11.0.06) when I have Adobe Acrobat 9 Standard Version 9.5.5 on my WIN7 Pro, just because Firefox 26.0 needs a newer plugin?

  • Request alert

    Hi, I am trying to write an alert via a shell script to search for a specific library cache lock that stops other programs from running. My logic is: 1. check fnd_concurrent_requests to see if the request in question is running 2. If it is running, g