Coding mask - mask id

Hi All,
I have configured new coding mask 00-XXXX-XXX-XXXX at client 100. Where 00 is PrjID 
I have copied that TR to client 300 dev.
I am able to see the coding mask in dev server. But when I tried to create the project with the coding mask. I am not able to see the format of my complete coding mask in project definition. The format should display beside Mask ID
I am not able to create project as per my coding mask
Please find the attached screen shot
Please  help me
Thanks
Praveen

Hi,
can i create a coding mask without giving prjid id it possible.
Please let me know what is the solution.
No, I don't think its possible because when you create a Project, system check available coding mask with the help of PRJID. If you don't give then how system will check coding mask.
As a suggestion, you should create PRJID as your client company shortcode and rest in coding mask section, start with your year and so on.
e.g. If you create coding mask like ABC-XXXX-XXX-XXXX-XX (Lets say ABC is your company name and put it in PRJID)
Now you can create Projects codes like- ABC-2014-ADV or ABC-2015-ADV and so on.
In this way, you can keep your years also by using same mask.
Regards
Shishir

Similar Messages

  • Mask / Masking Using an image with transparent bg

    Flash CS4
    AS2
    Okay - so I must be missing something here -but perhaps people here can help me.
    I have a flash movie, and I want to apply a mask to it.  The mask I want to apply, or rather, the "shape" of the mask I want to apply is an external image that was made in photoshop.  The shape is an irregular one with a bunch of jagged edges.  the shape itself is solid, with a transparent background.  I've tried saving it as a PNG with transparent b/g, and I've tried importing the PSD file directly into Flash - however  - when I go to use this shape for a mask, the mask that is applied is an entire rectangle bounding the imported image - rather than along the edges. 
    Hopefully you can see what I'm trying to do here, and perhaps offer some insight on how I can get this image into flash (let's stick with the idea that the jagged edged manner of the image is too difficult to recreate inside of flash)...
    Thanks for your help!

    okay...
    so I did this now - and now there is no bounding box - there is no box at all - and it's done a reverse mask....
    okay - so let me explain the movie.
    The movie is a page peel - it peels from the bottom right corner, peels back, and up to the left across the whole page  -   So basically, I've taken this image of a corner peel - and using motion tween - made the peel larger and larger - and effectively what it does it looks like it's peeling from the corner this parchment paper with a jagged edge...  to reveal a blank parchment below it.  So I'm trying to set the parchment paper as a "mask" to hide the parts of the animated "peel" that aren't on the parchment - effectively it will make it look like a full page peel away... which is why I need the mask to be the parchment document, rather than the bounding box around it - because then it looks like it's peeling away a transparent square film that is laying on top of this parchment image...
    okay... so with that more explained I'm hoping....
    Now - I've used the setmask() as outlined in the adobe flash documentation - and now there is no bounding box - but instead wherever the peel is during the animation the parchment shows under that peel animation, and no where else - so it's done a reverse masking...  and if I reverse the parameters outlined in the documentation (which isn't right) the peel still shows, but now the parchment doesn't show at all...  ugh... either way I still see the full size peel which is now larger than any bounding box that was there before...

  • How do i create a mask for an application?

    Hello.
    I pulled out an flex app out of Flash catalyst, and it has several "fx:designLayer"s containing images that slide off the stage.
    I'd like to hide the images going outside the stage borders with a mask.
    I tried:   
    <s:mask>
        <s:Group id="mask">
            <s:Rect width = "100" height="100">
                <s:fill>
                    <s:SolidColor color="#FF0000"/>
                </s:fill>
            </s:Rect>
        </s:Group>
    </s:mask>
    but all I see is blank.
    I tried to set mask = "{mask}" inside the <s:Application > tag and removing the <mask> tags, which works, but it gives me a warning that bindings to mask cannot be detected.
    How do I get the mask for the app with no warnings?
    And just for the sake of understanding Flex, how could I fix either one of those approaches?

    Defining a Group as the mask doesn't seem to work because the Group is never
    put on the display list so it doesn't draw its content.  Other examples I
    saw were using FXG will compiles down into Sprites that draw automatically.
    I don't normally do masking like this, I just draw a filled Sprite and
    assign it as the mask.
    One way I found that worked was this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="800"
    minHeight="600"
                   backgroundColor="#66DDFF"
                    >
        <fx:Declarations>
        </fx:Declarations>
        <s:Group id="mask" includeInLayout="false" visible="false" >
            <s:Rect x="300" y="10" width="600" height="200">
                <s:fill>
                    <s:SolidColor color="#FF0000"/>
                </s:fill>
            </s:Rect>
        </s:Group>
        <s:Rect height="341" id="myRandomThing" width="800" x="79.5" y="86.5" >
            <s:fill>
                <s:LinearGradient rotation="270" scaleX="341" x="115.5" y="341">
                    <s:GradientEntry color="#222222" ratio="0"/>
                    <s:GradientEntry color="#FFFFFF" ratio="1"/>
                </s:LinearGradient>
            </s:fill>
            <s:stroke>
                <s:SolidColorStroke  color="#333333"  weight="10"/>
            </s:stroke>
        </s:Rect>
    </s:Application

  • Creating Mask In Flash CS3

    HELP!!!!
    I am about to pull my hair out.
    I am new to flash and would like to know how to create a
    mask. Could someone please send me the step by step instructions on
    what to do.
    Your help is greatly appreciated.

    On the stage, you do it the same as in previous version of
    Flash. Right click the layer your mask is on and select the 'mask'
    option. It will mask any layers grouped under it.
    In ActionScript you would do it like this:
    ** You need to have imported the Button class into your
    library, drag a Button component to the stage and then delete it.
    Try the code below in an empty flash file to see how it works.
    import fl.controls.Button;
    var masked:Shape = new Shape();
    var g = masked.graphics;
    g.beginFill(0xff0000,1);
    g.drawRect(0,0,300,300);
    g.endFill();
    addChild(masked);
    var masker:Shape = new Shape();
    g = masker.graphics;
    g.beginFill(0x000000,1);
    g.drawRect(150,150,50,50);
    g.endFill();
    addChild(masker);
    function applyMask(e:MouseEvent = null):void {
    masked.mask = masker;
    var myButton:Button = new Button();
    myButton.label = "Apply Mask";
    myButton.emphasized = true;
    myButton.width = 150;
    myButton.move(20, 20);
    addChild(myButton);
    myButton.addEventListener(MouseEvent.CLICK, applyMask);
    myButton.y = 325;

  • WCCP mask and weight?

    Hello
    We're setting up an scenario with datacenter with three WAEs using WCCP to distribute the load.
    The core switches are catalyst 6500 so we're using redirect in. L2 redirection and mask to optimize forwarding of redirected packet.
    the problem is that the three WAEs are not equal. Two are 612-2GB and the other is a 7341, so we want to use the weight parameter of the wccp tcp-promiscuous command, but I'm not sure if this parameter works also with the mask mode or only with hash mode. And couldn' t find a definitive answer in the documentation.
    It's possible?
    Regards, Fernando

    Fernando,
    Typically we don't see/ nor recommend using such different devices, especially in the data center.  The 7341 can handle up to 12000 concurrent optimized connections, and the 612-2GB can only handle up 4800 concurrent optimized connections.   So, in the event of a 7341 failure you will lose more than half of the connection capacity you data center can handle.
    However, you can use the weight keyword with mask assignment.  I just confirmed in my lab two WAEs connected to a 6500 with the following config:
    WAE 14.110.3.19
    wccp router-list 1 14.110.3.17
    wccp tcp-promiscuous mask src-ip-mask 0xf dst-ip-mask 0x0
    wccp tcp-promiscuous router-list-num 1 weight 90 l2-redirect mask-assign
    wccp version 2
    WAE 14.110.3.20
    wccp router-list 1 14.110.3.17
    wccp tcp-promiscuous mask src-ip-mask 0xf dst-ip-mask 0x0
    wccp tcp-promiscuous router-list-num 1 weight 10 l2-redirect mask-assign
    wccp version 2
    6500 output:
    pdi-6500#sh ip wccp 61 det
    WCCP Cache-Engine information:
    Web Cache ID:          14.110.3.20
    Protocol Version:      2.0
    State:                 Usable
    Redirection:           L2
    Packet Return:         GRE
    Packets Redirected:    0
    Connect Time:          00:00:45
    Assignment:            MASK
    Mask  SrcAddr    DstAddr    SrcPort DstPort
    0000: 0x0000000F 0x00000000 0x0000  0x0000
    Value SrcAddr    DstAddr    SrcPort DstPort CE-IP
    0014: 0x0000000E 0x00000000 0x0000  0x0000  0x0E6E0314 (14.110.3.20)
    0015: 0x0000000F 0x00000000 0x0000  0x0000  0x0E6E0314 (14.110.3.20)
    Web Cache ID:          14.110.3.19
    Protocol Version:      2.0
    State:                 Usable
    Redirection:           L2
    Packet Return:         GRE
    Packets Redirected:    68
    Connect Time:          00:00:39
    Assignment:            MASK
    Mask  SrcAddr    DstAddr    SrcPort DstPort
    0000: 0x0000000F 0x00000000 0x0000  0x0000
    Value SrcAddr    DstAddr    SrcPort DstPort CE-IP
    0000: 0x00000000 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0001: 0x00000001 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0002: 0x00000002 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0003: 0x00000003 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0004: 0x00000004 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0005: 0x00000005 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0006: 0x00000006 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0007: 0x00000007 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0008: 0x00000008 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0009: 0x00000009 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0010: 0x0000000A 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0011: 0x0000000B 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0012: 0x0000000C 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    0013: 0x0000000D 0x00000000 0x0000  0x0000  0x0E6E0313 (14.110.3.19)
    So you will see the WAE with weight of 90 took 14 of the 16 available buckets.
    Sorry for the confusion on the original update.
    Regards,
    Mike Korenbaum
    Cisco WAAS PDI Help Desk
    http://www.cisco.com/go/pdihelpdesk

  • Complicated Masking always freezes up program???

    Hey I've been working on a 4 or 5 second shot with 3 complicated masks masking the movement of 3 people frame by frame. Usually after 10 minutes of working I'll move one of the vector points, and the point will move but what is visually being masked won't apply. this is when I know i gets frozen up a bit. then the color wheel comes on for 10-15 seconds. Now ever vector I move after that does the same thing with the pinwheel. The only way to stop it I save it and reopen it and get 10 more minutes of work in. I'm working on a new mac pro 3.0 dual quad with 6 of memory so I don't think thats an issue.
    prefs
    Does anyone have any ideas to avoid this, it's slowing up my productivity quite a bit. I have also changed the cache yield in to 90 sometimes 100 percent. Am I missing something here?

    Well, I took a look at your project - lotta work there - first thing I can say is you didn't take ThatChineseYouth's recommend, which I'll repeat here -
    There are ways to improve Motion's interactive performance.
    1) If you're using Ram Preview, clear it periodically.
    2) Keep your render quality at Draft or Good until the very end.
    3) Text is especially draining of resources in Motion 3. Turn off layers you've finished with to improve performance while you work in other areas.
    4) Definitely turn off Timeline and Layer thumbnails.
    5) Don't have any layer selected when playing - the thumbnail for the Inspector Tab has to be generated when you stop.
    Notably, you didn't turn off thumbnails. You might try running activity monitor to see if your ram is being eaten up - when I ran it, just loading the project took a gig of ram away... and I believe you're using HDV clips? Not sure it would have any effect, but you might try exporting your HDV file as a ProRes and linking to that.
    post back,
    Patrick

  • Mask clipping only works with absolute widths and heights

    Hi all for some reason this works:
    <s:BorderContainer height="404" width="504" borderColor="0x000000" borderWeight="2" backgroundColor="0x000000" filters="{[dsf]}" cornerRadius="10">
                    <s:Group id="mask">
                        <s:Rect width="500" height="400" radiusX="10" radiusY="10">
                            <s:fill>
                                <s:SolidColor/>
                            </s:fill>
                        </s:Rect>
                    </s:Group>
                <s:BitmapImage width="100%" height="100%" source="/assets/images/logo.jpg" maskType="alpha" mask="{mask}"/>
            </s:BorderContainer>
    But if i change the clipping rect to:
    <s:Rect left="0" right="0" top="0" bottom="0" radiusX="10" radiusY="10">
    OR
    <s:Rect width="100%" height="100%" radiusX="10" radiusY="10">
    It does not work as a mask and only displays the background color of the BorderContainer.
    I'm using flash builder 4.5
    Any reason for this inconsistency?

    Say thanks to Shongrunden and use binding for this: <s:Rect width="{bc.width}" height="{bc.height}" radiusX="10" radiusY="10">
    where bc is your BorderContainer's id.

  • How to create a moving mask?

    Hi,
    I'm new to after effect, hope can get some guidances here.
    I shot this time lapse sequence of Clark Quay, with camera panning technique, have encounter some issues to editing in after effect,
    The panning is not smooth, as I need to adjust the exposure on the camera during the sequence. I presume can use wrap stabilizer to smooth it out, but I also need to blur out some of the building neon signage (Riverside point, Novotel and CQ Clark Quay).
    My question is; since the daylight is changing, so are the brightness of signage changing too, and it moves too, how do I create masks to blur the selected areas, and they moving along across the screen?
    Thank you so much.

    The jerks in your time lapse are not going to be smoothed out by Warp Stabilizer. You will have to do some manual realignment of those frames to smooth the shot. The flicker in the lighting can be controlled by Digital Anarchy's De Flicker plug-in. If you want to selectively correct the color in certain parts of the shot you'll need to do figure out how to create some procedural mattes. Red Giant's Colorista II is very good at this.
    Flicker Free
    Colorista II
    Both have tutorials.
    You might also want to check out this great video from my friend Stu Maschwitz that shows you how to use Mask Tracking and Effect Tracking in AE CC 14.
    Effect Masking - Mask Tracking

  • Setting masks with AS

    What am I doing wrong?
    I have a MC in my library with a linkage identifier of
    "mask". And I have a bunch of MCs on my stage with a instance names
    of line_0, line_1, line_2.... etc.
    Somehow the mask it not getting set. What am I doing wrong?
    for (var i:Number = 0; i < numOfLines; i++){
    this.attachMovie("mask", ["mask_" + i],
    this.getNextHighestDepth(), {_x:647, _y:1165});
    this["line_" + i].setMask("mask_" + i);
    Thanks a lot for any help!

    I think the problem is with your attachMovie line,
    specifically the second argument. That is where you pass in the
    name of the newly attached clip. It doesn't need the array brackets
    around it.
    However your setMask line where you are passing in the name
    of the recently attached mask clip will need them!
    this["line_"+i].setMask(this["mask_"+i]);
    That is because in that case you need to tell flash to look
    inside the current timeline (this) and look for the item named
    "mask_"+i. Get it? When you give the name, it only needs a string
    for the name, because you are telling it where to attach with the
    this before the attachMovie. But afterwords you have to tell flash
    where to look so then you do need the array notation.
    BUT, there is a shortcut that is very useful.
    var curLine:MovieClip=this["line_"+i];
    var
    curMask:MovieClip=this.attachMovie("mask","mask"+i,100+i,{yourobject});
    curLine.setMask(curMask);
    By defining temporary variables to be your line and your
    mask, you can make the code easier to read and manage. Notice the
    first one I just use the same code you've got, but assign it to a
    variable. This is escpecially good if you are going to use that
    several times. I don't know about you, but I have trouble always
    typing the square brakets, the quotes, the plus and the variable in
    the right order without a type. In this case you type it once and
    then use the much easier to read and type curLine over and over.
    In the second line, I rely on a how attachMovie works. If you
    look it up in the help files, there is a line where it will tell
    you that attachMovie returns a reference to the movie it just
    attached. In fact many methods return things and you can either
    ignore them or use them if you need them. In this case I capture
    that return and assign it to curMask. Then again, I can always be
    sure that I've got the correct mask by using the simple curMask.
    Tricky, huh?

  • Mask- color range sometime crash , did it happen to you?

    Hi
    i run photoshop cs5 under w7 32bit ultimate
    sometime when i select a mask ,  mask palete -> color range photoshop stops to work and give me an error
    did it happen to you?
    is there a cure?
    thanks
    cheers

    This has been happening to me today only. I have been using this program for about a year now. Today I duplicated a layer, went to select at the top, and selected "Select Color". I selected a lot, most of the image, then when I clicked "Okay" it crashed. I did this several times and it persists. I remembered to copy the error thingy one time and it was this:
    Problem signature:
      Problem Event Name:                        APPCRASH
      Application Name:                             Photoshop.exe
      Application Version:                           12.0.0.0
      Application Timestamp:                     4bbc5b10
      Fault Module Name:                          MMXCore.8BX
      Fault Module Version:                        12.0.0.0
      Fault Module Timestamp:                  4bbc6013
      Exception Code:                                  c0000005
      Exception Offset:                                000000000002616a
      OS Version:                                          6.0.6002.2.2.0.768.3
      Locale ID:                                             1033
      Additional Information 1:                  6e28
      Additional Information 2:                  60c89792d861b06d6249963314831187
      Additional Information 3:                  b098
      Additional Information 4:                  a86d8e801a11949dbe1113ebd4726171
    Files that help describe the problem:
      C:\Users\Administrator\AppData\Local\Temp\WER3D6E.tmp.version.txt
      C:\Users\Administrator\AppData\Local\Temp\WERBA11.tmp.appcompat.txt
      C:\Users\Administrator\AppData\Local\Temp\WERBD2F.tmp.mdmp
    I don't have any plug-ins and when I went to look at the files listed, I opened WER3D6E.tmp.version.txt. But when I closed it, neither it nor the other two were there. I'm guessing the .tmp means they're temporary and I was only able to open that one because I did it so soon after the crash? Anyway, I came to these forums and saw something about MM fonts - I don't have any. I also saw people with this problem - color select. So, I opened CS5, duplicated the layer and before I could click "Select", it crashed. I forgot to get the report     but I got this:
    Files that help describe the problem:
      C:\Users\Administrator\AppData\Local\Temp\WER2C1F.tmp.version.txt
      C:\Users\Administrator\AppData\Local\Temp\WER50A0.tmp.appcompat.txt
      C:\Users\Administrator\AppData\Local\Temp\WER50EF.tmp.mdmp
    Any help would be great!  

  • Using Toolkit for CreateJS (v1.1) produces jagged edged Masks

    The toolkit is publishing everything from Flash very well, except for Masks. Masks do show up in the published file, but they produce very jagged edges on the result. The mask is just a shape layer. I've tried masking other basic shapes that are broken apart and also tried masking a grouped shape (object), a graphic, and a movie clip. But keep getting an object that has jagged edges where the masking occurs.
    Does anybody have any ideas on why this is happening? I'm a flash animator (yes they still exist) not a developer, so the javascript file is 75% mystery sauce to me. In other words, I could be missing something very simple.
    I know there are some restrictions on masks as written at the Adobe Developer Connection:
    "It also supports mask layers with some restrictions. The mask layer cannot contain symbol instances, bitmaps or text; only vector shapes are supported. Shape tweens and keyframes are supported to allow animated masks."
    I've attached the .js code pertaining to the mask creation, not sure if that will help.
    Thanks for any help you can provide,
    Jenny
    // symbols:
    (lib.square = function(mode,startPosition,loop) {
              this.initialize(mode,startPosition,loop,{},true);
              // masker (mask)
              var mask = new cjs.Shape();
              mask._off = true;
              mask.graphics.p("AHvhYIjhI4IpigmIiZpPIIDlKIHZGH").cp();
              mask.setTransform(90,93.9);
              // redSquare shape
              this.shape = new cjs.Shape();
              this.shape.graphics.f("#CC0000").s().p("ALhrgIAAXBI3BAAIAA3BIXBAA").cp();
              this.shape.setTransform(73.7,73.7);
              this.shape.mask = mask;
              this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape}]}).wait(23));
    }).prototype = p = new cjs.MovieClip();
    p.nominalBounds = new cjs.Rectangle(0,0,147.5,147.5);

    The toolkit is publishing everything from Flash very well, except for Masks. Masks do show up in the published file, but they produce very jagged edges on the result. The mask is just a shape layer. I've tried masking other basic shapes that are broken apart and also tried masking a grouped shape (object), a graphic, and a movie clip. But keep getting an object that has jagged edges where the masking occurs.
    Does anybody have any ideas on why this is happening? I'm a flash animator (yes they still exist) not a developer, so the javascript file is 75% mystery sauce to me. In other words, I could be missing something very simple.
    I know there are some restrictions on masks as written at the Adobe Developer Connection:
    "It also supports mask layers with some restrictions. The mask layer cannot contain symbol instances, bitmaps or text; only vector shapes are supported. Shape tweens and keyframes are supported to allow animated masks."
    I've attached the .js code pertaining to the mask creation, not sure if that will help.
    Thanks for any help you can provide,
    Jenny
    // symbols:
    (lib.square = function(mode,startPosition,loop) {
              this.initialize(mode,startPosition,loop,{},true);
              // masker (mask)
              var mask = new cjs.Shape();
              mask._off = true;
              mask.graphics.p("AHvhYIjhI4IpigmIiZpPIIDlKIHZGH").cp();
              mask.setTransform(90,93.9);
              // redSquare shape
              this.shape = new cjs.Shape();
              this.shape.graphics.f("#CC0000").s().p("ALhrgIAAXBI3BAAIAA3BIXBAA").cp();
              this.shape.setTransform(73.7,73.7);
              this.shape.mask = mask;
              this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape}]}).wait(23));
    }).prototype = p = new cjs.MovieClip();
    p.nominalBounds = new cjs.Rectangle(0,0,147.5,147.5);

  • Image Dynamic Masking

    I got this code from an online source. I will appreciate your help in editing the code very much.
    NEED HELP IN THE FOLLOWING:
    I need the image to be inside the stage and not load externally.
    I also want the masking to start when mouse rolls over.
    the file id made out of 2 frames and has an external file named test.jpg...
    frame 1:
    Stage.scaleMode = "noScale";
    _root.createEmptyMovieClip("foo",1);
    _root.foo.createEmptyMovieClip("img",2);
    _root.foo.onEnterFrame = function()
    if(this._width > 100 && this.img.getBytesLoaded() >= this.img.getBytesTotal() && this.img.getBytesLoaded() > 0)
      this._x = 80-this._width/2
      this._y = 300-this._height/2
      nextFrame();
    if(n==undefined)
    loadMovie("test.jpg",_root.foo.img);
    } else {
    loadMovie(n,_root.foo.img);
    stop();
    frame 2:
    stop();
    _global.h = 50;
    _root.createEmptyMovieClip("mask",3);
    _root.foo._visible = 0
    _root.foo.img.setMask(_root.mask);
    mask.onEnterFrame = function()
    this.onMouseMove = function()
      this.a++;
      this.createEmptyMovieClip("l"+this.a,10+this.a);
      this.lc = this['l'+this.a];
      with(this.lc)
       beginFill(0x000000,100);
       moveTo(0,-h/2)
       lineTo(100,-h/2)
       lineTo(100,h/2)
       lineTo(0,h/2)
       lineTo(0,-h/2)
       endFill();
      this.x1 = _root._xmouse;
      this.y1 = _root._ymouse;
      this.lc._x = this.x1;
      this.lc._y = this.y1;
      this.x2 = this['l'+(this.a-1)]._x == undefined ? _root._xmouse : this['l'+(this.a-1)]._x;
      this.y2 = this['l'+(this.a-1)]._y == undefined ? _root._ymouse : this['l'+(this.a-1)]._y;
      this.lx = this.x1 - this.x2;
      this.ly = this.y1 - this.y2;
      this.rotation = Math.atan2 (this.lx,this.ly);
      this.rotation *= 180/Math.PI;
      this.lc._rotation = 270-this.rotation;
      this.lc._xscale = Math.sqrt(this.lx*this.lx+this.ly*this.ly)+1;
      _root.foo.img.setMask(_root.mask);
      updateAfterEvent();
    _root.foo._visible = 1
    mask.onMouseUp = function()
    this.a++
    this.onMouseMove = undefined;
    foo2._alpha = 20
    this.onMouseMove

    Is this AS3?  I'm no expert, but if the image isn't loading I might suggest using an event to wait for the JPG to fully load before executing your other functions.  Something like this:
         public class loader extends Sprite {
              private var loadObj          :     Loader          = new Loader();
              public function loader() {
                   var url               :     String               = "insert_file_path_here";
                   var target          :     URLRequest     = new URLRequest(url);
                   loadObj.contentLoaderInfo.addEventListener(Event.COMPLETE, initHandler);
                   loadObj.load(target);
              public function initHandler(event:Event):void {
                   addChild(loadObj);
    That would load an external image or movie clip, and when it was ready add it to the stage of the movie.  The way I have it written there is for a document class, but you could modify that code for a frame script instead.

  • Moving masks between images? (motion 5)

    Hi Everyone,
    First of all I'm new to Motion 5 and learning through exploration so applogies for any daft questions (I have tried to research this elsewhere but had no luck).
    I've created a mask (made up of many masks) to isolate an object from the background. Now that I have the mask I want to copy it to alternate source images but am struggling to do this.
    What I've been doing
    Creating a new group containing the new image, copying the (multi) mask layer and pasting over the new image.
    Result
    Although the mask goes over ok the scale of the mask is out of proportion with the image and I cant find a way to rescale the image independant to the mask / mask independant of the image.
    If anyone can help with this it would be greatly appreciated. 
    Thanks
    James

    hi,
    if you need to the ability to scale the image and the mask applied to it separatly then apply the mask to the group that the image is in and not to the image. Now you can click on the image and scale it, and the mask will stay the same size.
    hth
    adam

  • Dynamic text and animated masking problem?

    Hi
    Can anyone suggest to me what might be happening here. I will
    try and explain step by step... I am using flash MX
    I have dynamically created a movieclip which I want to mask -
    _root.createEmptyMovieClip("myMovie", 1);
    I dynamically add a movieclip into it which I then load a jpg
    into -
    _root.myMovie.createEmptyMovieClip("image1", 0);
    _root.myMovie.image1.createEmptyMovieClip("newFile", 0);
    _root.myMovie.image1.newFile.loadMovie("http:...");
    I dynamically create another movieclip called myNormalText1
    insde the first movie -
    _root.myMovie.createEmptyMovieClip("myNormalText1", 2);
    this holds a dynamically created text box called mytext -
    _root.myMovie.myNormalText1.createTextField("mytext",1,0,0,0,10);
    // the text box formating is dynamic, uses devise fonts,
    arial and is red ect.
    I have then attach a movieclip and use it as a mask to create
    a transition effect over _root.myMovie (which holds the image and
    text)
    _root.attachMovie("mask","mask",5);
    _root.myMovie.setMask("mask");
    the mask movieclip is what is causing me the problem!!!
    method one
    when the mask movieclip contains this -
    a phisically drawn box that fills the whole page
    I use a shape tween to make the box transform into a thin
    rectangle down the left hand side of the screen
    I get a transition effect which makes _root.mymovie disapear
    to the left which is what I want!
    The image and text are masked correctly!
    *** Please note I am aware that dynamic text boxes using
    devise fonts are not displayed correctly under a mask layor when
    they are not embeded, in flash MX. I am able to view my movie in a
    browser window which uses flash player 8 that now allows dynamic
    devise fonts to be masked!
    method two
    I then wanted to create a different transition effect like
    venitian blinds,
    so, in my mask movieclip I created several rectangles that
    fill the page
    again I used a shape tween so they get thinner,
    when I tested my movie the same way in the browser,
    the mask did not work correctly over my text in
    _root.mymovie???
    yet the image in _root.mymovie was masked correctly???
    the only differance between the two methods is the shape
    tween in method one uses one box shape, and the shape tween in
    method two uses several rectangler box shapes.
    I was wondering if anyone knows why the text is correctly
    masked in case one and is not correctly masked in case 2
    I want to do other transition effects using masks in this way
    and I am having no luck :-(
    Thanks for any advice
    Claire Wall

    Hi
    I have been researching this ALOT and found some info that
    basically tells me when I use setMask() over dynamic device fonts,
    the mask uses its bounding box (the rectangular outside edge of the
    whole mask movieclip) as the mask.
    In case 1 the mask moviclips bounding box shrinks when the
    shape tween plays because there is one rectangular box being
    tweened. It appears to mask the text correctly.
    In case 2 I have variouse different shape tweens going on
    inside the mask movieclip so the bounding box stays the same size
    across the whole screen and it wont appear to mask my text
    correctly.
    I think I have answered my own question, but this still
    leaves me stuck! I want to create this venitian blind effect using
    masks over devise fonts.
    I came up with the idea of using for example 4 different
    masks over the one movieclip but again flash doesnt like this and I
    guess I can only use one setMask() per movieclip?
    Can anyone suggest a way I can use multiple dynamically
    created masks on one movieclip or cant it be done?
    Thanks
    Claire x

  • How to retrieve "KeyValue" from multiple Shape paths then "SetValue" to Mask path Keyframes?

    Hello AEScriptsComm.,..
    i have one question (hopefully the tutorer will answer soon), which is the goal and reason i'm learning ExtendScripts:
    I have a few dozen Adobe Illustrator, imported Shape Layers with paths "Created..from Vector Layers" in AEffects.
    In order to use a .jsxbin script to change every path to the same number of verticies for animating, i must 1st convert them to Keyframes on the same Mask Path property.
    1) i hoped to please be shown\sent an example showing how to,..
    a) Get\Retrieve "KeyValue" from multiple, single (Shape Layers):Outlines > Contents > Group > Path > Path as shown in screenshot "4-CreateShapeFromVecLyr2Outlines.JPG",
    and then,..
    b) "SetValue" from those paths into Mask > Mask Path keyframes also in screenshot "1-ExtendScript_ShapePathsTOMaskPathKeyframes.JPG"?
    Really appreciate any help soon as time allows,
    Jeff

    Hello Xavier,
                       esp. with my limited experience i can't determine how your concise script works.
    Because it 1st errors  esp. with undefines  i'm thinking at best its incomplete (or algorithm) to give me the gist and i'm to fill in the blanks, which i am doing with the sort of working code example pasted below.
    Its written with every  definition, declaration and initialization completed, so a novice like me can read the manuals, rev. eng. pertinant script(s), then with fragmented code and understanding quickly connecting to form a complete custom script, as we've all done.
    like this:
    var comp = app.project.activeItem:
    var layer  = comp.layers.addSolid([1,1,1,], layerName, comp.width, comp.height, 1.0, comp,duration);
    therefore,..
    var CompLayerSolid = app.project.activeItem.layers.addSolid([1,1,1,], layerName, comp.width, comp.height, 1.0, comp,duration);
    ..then with such direct access in other essentials, i can substitute compatible properties, methods,  parameters etc. and remaining code that affect the layer objects i need to control simultaneously. Also thereby learning more complex code quickly enough to use.
    Only, i hoped to save time here by those already familiar.
      But by comparison your script without declarations or many references in AE's CS6 Scripting Guide and online, i can't decipher or understand,
    although you wrote this more complete segment at CCow:
    "shapeLayer.content.addProperty("ADBE Vector Graphic - Fill");",
    ..in which is the addProperty i 1st looked for in your script after erroring with "ShapeLayer is undefined"
    But i could'nt find a ref. to either .content or content. anywhere in ExtendScript, nor "targetLayer.mask", and "targetLayer" i found once in ref. to ExtendScript as an AE layer name. So perhaps their your variables?, you see i can't determine or use.
    i don't know that was'nt meant, maybe a bit to tell me do my own research?,  no offence, can't confirm that without reply, hope you will, but my research is why i'm here and your probably advanced script could only help with your assistance.
    Thanks anyway,
    Cheers.
    function()
    var comp = app.project.activeItem;
    var masksLayer = comp.selectedLayers[0];
    var masksGroup = masksLayer.property("ADBE Mask Parade");
    app.beginUndoGroup(rd_MasksToShapesData.scriptName);
    // Create an empty shape lay
    // Get the mask layer's pixel aspect; if layer has no source, use comp's pixel aspect
    var pixelAspect = (masksLayer.source != null) ? masksLayer.source.pixelAspect : 1.0; //copixelAspect;
    // Iterate over the masks layer's masks, converting their paths to shape paths
    var mask, maskPath, vertices;
    for (var m=1; m<=masksGroup.numProperties; m++)
    var suffix = " Shapes";
    var shapeLayer = comp.layers.addShape();
    shapeLayer.name = masksLayer.name.substr(0,31-suffix.length) + suffix;
    shapeLayer.moveBefore(masksLayer);
    var shapeLayerContents = shapeLayer.property("ADBE Root Vectors Group");
    var shapeGroup = shapeLayerContents; //.addProperty("ADBE Vector Group");
    //shapeGroup.name = "Masks";
    var shapePathGroup, shapePath, shapePathData;
    // Get mask info
    mask = masksGroup.property(m);
    maskPath = mask.property("ADBE Mask Shape");
    // Create new shape path using mask info
    shapePathGroup = shapeGroup.addProperty("ADBE Vector Shape - Group");
    shapePathGroup.name = mask.name;
    shapePath = shapePathGroup.property("ADBE Vector Shape");
    shapePathData = new Shape();
    // ...adjust mask vertices (x axis) by pixel aspect
    vertices = new Array();
    for (var v=0; v<maskPath.value.vertices.length; v++){
    vertices[vertices.length] = [maskPath.value.vertices[v][0] * pixelAspect, maskPath.value.vertices[v][1]];
    shapePathData.vertices = vertices;
    shapePathData.inTangents = maskPath.value.inTangents;
    shapePathData.outTangents = maskPath.value.outTangents;
    shapePathData.closed = maskPath.value.closed;
    shapePath.setValue(shapePathData);
    shapeLayer.transform.anchorPoint.setValue(masksLayer.transform.anchorPoint.value);
    shapeLayer.transform.position.setValue(masksLayer.transform.position.value);
    shapeLayer.transform.scale.setValue(masksLayer.transform.scale.value);
    if (masksLayer.threeDLayer)
    shapeLayer.threeDLayer = true;
    shapeLayer.transform.xRotation.setValue(masksLayer.transform.xRotation.value);
    shapeLayer.transform.yRotation.setValue(masksLayer.transform.yRotation.value);
    shapeLayer.transform.zRotation.setValue(masksLayer.transform.zRotation.value);
    shapeLayer.transform.orientation.setValue(masksLayer.transform.orientation.value);
    else
    shapeLayer.transform.rotation.setValue(masksLayer.transform.rotation.value);
    shapeLayer.transform.opacity.setValue(masksLayer.transform.opacity.value);
    // Match the mask layer's transfor
    // Mute the mask layer
    masksLayer.enabled = false;
    app.endUndoGroup();

Maybe you are looking for