Masking two objects with single image

hello guys
               can anybody guides me how to mask tow objects(one box and other image) present in same canvas with third image that also present in same canvas.i can mask only one object at a time but need to mask both.any solution ?
Thanks in advance
   vineet sharma

Thanks A Ton Arun.it works for me.
can u do one more favour for me. plz tell me how to draw the arc and star in flex with mouse.
i give u reference site http://www.papercritters.com/pc.php
plz click on toy critter and check the shape menu on right side.
you will get the shapes including arc and star .i need to draw shapes in similar way.
ny ways thanks once again for help

Similar Messages

  • Two button with single function

    I want to create two buttons for single function and one button for one function. For example, I click button1, the screen will show "clicked1"
    If I clicked button2, the screen will show "clicked2". If I click button1 and then click button2, it will show "two button are clicked". However, it does not work in two button with single function. What is the problem? Here is the code.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    if (isClicked&&isClicked1){
              trace("two buttons are clicked");

    It works but I want the screen only shows the "isClicked" only when I click button1. But now when I click button1, "isClicked" and "two buttons are clicked" show at the same time.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    button1.addEventListener(MouseEvent.CLICK, onClick3);
    button2.addEventListener(MouseEvent.CLICK, onClick3);
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    function onClick3(evt:MouseEvent):void{
              trace("two buttons are clicked");

  • Apply multiple effects to multiple objects with single click box

    I would like to click on a click box and have one object appear and another object disappear. I guess what I'd like to do is apply effects to multiple objects with a single click box. Is that possible?
    Thank you.

    Welcome to our community
    Sure it can be done but you won't use effects to do it.
    When you insert an object in Captivate, you have an option to enable or disable Visibility. You also have an option to name the object. So you would give the object a meaningful name and clear the Visibility option to "hide" it until needed.
    Then you would create an Advanced Action that would hide some objects and show others.
    After that, you would assign the Advanced Action to a Click Box or a Button or some other event.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Optimize php page for browsers lacking flash, so that it replaces flash objects with static images

    Hello,
    I basically want to have my php pages with flash swf objects to be smart enough to replace the flash swf's with static images or other content for the non-flash user (iphone, ipad, etc.) who visits the website.  I guess this would be an option or perhaps a script that just sent the visitor to a version of the .php page that is tailored to them, a version of the page designed for non-flash users.
    I've done a little bit of reading up and have found that some people like to use DOM scripts like
    Unobtrusive Flash Objects (UFO) v3.22
    or what seems to be the successor:
    SWFObject 2.0
    What is better?  Is there a better script out there to use at this point?  Advice would be much appreciated.

    I guess I will reiterate this.
    I would like someone to tell me which one of these scripts that I have mentioned above would be best to use.
    What am I trying to do?  Well from my understanding these scripts allow me to have multiple versions of the website, so that it loads up with static images in place of the flash swf's for... NON FLASH USERS.
    The script will be able to detect whether the flash capabilities of the browser are sufficient, and if not display the web page accordingly.
    SO.  I'm looking for an answer as to what is the best script to use, if it's not one of the scripts I am asking about.
    @The Shocker.. if I wanted to research it on the net by googling, which I already have, I wouldn't be using this forum.  I'm looking for someone who is knowledgeable in this area of expertise to give me a recommendation, based on information they can give me that is logical and clear.  And then I can do further research once I feel I'm being sent in the right direction.
    Thanks in advance to anyone who would like to offer me some direction on this.

  • How can I create a stop animation video with single images in Premiere Pro?

    Let me start off by saying I am 100% new to pretty much all Adobe software as of about 3 weeks ago. I have been doing a lot of googling these past few weeks. With that said, I will do my best to explain my question.
    I am making a stop motion animated video.  I am not using several photos to create the look, but rather single photoshopped images that I have deleted the backgrounds out of. Basically the video is single charms "crawling" or flying in individually from off screen into a circle, there is a story explaining what each charm means. I started in After Effects, but had issues with audio... am I right in my understanding that you cannot preview the audio unless you use the preview feature? So my solution was playing a guessing game, rendering/exporting, importing it to Premiere Pro, taking notes and then heading back to After Effects to try to re-do the timing. Obviously this was not working too well.
    Then after doing more googling and clicking around I figured out you could layer images in Premier Pro and make them move just as you would in After Effects, which is great! There are two things hanging me up...
    1. I used the wiggle effect in After Effects. For the life of me I cannot find or figure out an effect or preset similar to this in Premiere Pro. Is there such a thing? Or do I have to create rotation keyframes? (I think I'm using keyframes correctly).
    2. Making the images stop-motiony and not smooth.
    My question is... any suggestions on how to re-create the wiggle effect easily in Premiere Pro? Or is there away to create the effect in After Effects and then import the image into Premiere Pro and still be able to change the position and timing?
    Please help! My deadline is tomorrow by the end of the work day!
    Please forgive me if these are silly questions... go easy on me, I'm soo new! Thanks in advance!

    Thanks so much for the reply!
    I read that... but it doesn't preview the whole thing? It only previews a few seconds and then loops. I tried to figure out how to change the preview settings, but I can't seem to get it to work.

  • How to control Object States of different objects with single button?

    I have a set of Images, stacked one on the other. I have selected all of them & created Object States for them. I also have a set of Text Objects, each containing a description of the images. These text objects are also stacked on top of each other & I've created object states for them too. I have two buttons which go to previous state & next state. When I do a mouse release operation on these buttons, only my images are moving from state to state.
    My question is how do I control the states of these different types of objects (images & type) so that they change states in sync with each other - I want to have an image 1 with its description, then image 2 with its description & so on. Thanks in advance.

    You just group your description with images

  • Batch Replace Smart Object With Different Image Quality and Sizes

    Hi there,
    I need help. I have this template that is in 1000x1000pixel and 300 dpi. I'm trying to replace the smart object inside with various JPEG that I have. These JPEG comes in large image sizes but lower than 300dpi. The issues is, when I run the script that I have, some of the pictures become really pixelated. Beforehand, I resized them to fit into the empty place in sizes that I find fit the best (8 cm x 6 cm). Some of them work okey, but then some of them just pretty bad. I'm wondering if you can help me fix the script that I have so I didn't have to resized the images before running the script, and for all of them to automatically fit into my template without altering the quality of the image that I put in.
    below is the script that I am using and the screenshot of my template:
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var theName= myDocument.name.match(/(.*)\.[^\.]+$/)[1];
    var thePath = myDocument.path;
    var theLayer = myDocument.activeLayer;
    // psd options;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = true;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // check if layer is smart object;
    if (theLayer.kind != "LayerKind.SMARTOBJECT") {alert ("selected layer is not a smart object")}
    else {
    // select files;
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog ("please select files", "*.psd;*.jpg;*.jpeg;*.tif", true)}
    else {var theFiles = File.openDialog ("please select files", getFiles, true)};
    if (theFiles) {
    // work through the array;
    for (var m = 0; m < theFiles.length; m++) {
    // replace smart object;
    theLayer = replaceContents (theFiles[m], theLayer);
    var theNewName = theFiles[m].name.match(/(.*)\.[^\.]+$/)[1];
    //Raise color picker for Back cover;
    try {
    app.activeDocument.activeLayer = app.activeDocument.layers[app.activeDocument.layers.length - 1];
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
    var desc7 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref2 = new ActionReference();
    var idcontentLayer = stringIDToTypeID( "contentLayer" );
    var idOrdn = charIDToTypeID( "Ordn" );
    var idTrgt = charIDToTypeID( "Trgt" );
    ref2.putEnumerated( idcontentLayer, idOrdn, idTrgt );
    desc7.putReference( idnull, ref2 );
    var idT = charIDToTypeID( "T " );
    var desc8 = new ActionDescriptor();
    var idClr = charIDToTypeID( "Clr " );
    var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
    desc7.putObject( idT, idsolidColorLayer, desc8 );
    executeAction( idsetd, desc7, DialogModes.ALL );
    } catch (e) {};
    //save jpg;
    myDocument.saveAs((new File(thePath+"/"+theName+"_"+theNewName+".jpg")),psdOpts,true);
    ////// get psds, tifs and jpgs from files //////
    function getFiles (theFile) {
    if (theFile.name.match(/\.(psd|tif|jpeg|jpg)$/i) != null || theFile.constructor.name == "Folder") {
    return true
    ////// replace contents //////
    function replaceContents (newFile, theSO) {
    app.activeDocument.activeLayer = theSO;
    // =======================================================
    var idplacedLayerReplaceContents = stringIDToTypeID( "placedLayerReplaceContents" );
    var desc3 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc3.putPath( idnull, new File( newFile ) );
    var idPgNm = charIDToTypeID( "PgNm" );
    desc3.putInteger( idPgNm, 1 );
    executeAction( idplacedLayerReplaceContents, desc3, DialogModes.NO );
    return app.activeDocument.activeLayer

    Thank you for your answer.
    I was resizing it before from bigger image size to a smaller one (121 cm to 8 cm) which fit my template size. But the dpi remains in 72 which makes the picture pixelized.
    I am wondering if I can find a script that will keep the size of the first image that I put on the template for other images that I place, regardless the size they are imported to. Basically, how to make them all fit into the template regardless the size.
    Thank you for the info about the scripting forum. I will write there too.
    Sorry, I'm so new to this

  • Two problems with displaying images in JPanel

    Hi,
    I need to display some small rectangular images inside a JPanel. These images also need to be componenents as they will have listeners associated with them. I have never had any experience with images, so I might totally be down the wrong path. I was thinking of just creating a class which extends JComponent, and using the graphics drawImage method. However, I don't want each image component to have to know exactly where to draw the image associated with itself. Rather, I want the JPanel which holds all of the images to know how to lay them out.
    Is there an easier way to use images?
    Which brings me to my second problem. I want these images to overlap each other, so that only a small portion of each is showing (this way I can fit more on the screen), then when the user clicks on one, I can show more of it.
    Unfortunately, I don't know of any layout managers which will allow me to overlap components. I could use the drawImage method mentioned above, but like I said, I would like to try to not have each image object try and figure out its location.
    any help is greatly appreciated. Thanks!

    Hi
    there is a better way ; it is called a JLabel ;-)
    JLabel myJLabel = new JLabel(new ImageIcon("img/myLogo.gif"));for your second problem, don't use any layout manager like in this code :
    myJPanel.setLayout(null);
    myJPanel.add(myJLabel);
    myJLabel.setBounds(new Rectangle(x, y, width, height);hope it helps
    Nico

  • Two database with Single Catalog

    Hi Experts,
    Is it possible to have two databases registered with a single catalog?
    My database versions are : 9i & 10g.
    The installed database version is 10g.
    Please advice & suggest
    Thanks & Regards,
    MB

    I have problem while connecting with the catalog , am trying to connect from 10g catalog to 9i database, but i get the following error.
    RMAN> connect target sys@TABS
    target database Password:
    Recovery Manager incompatible with TARGET database: RMAN 8.0.4.0 to 9.2.0.0 required
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-06429: TARGET database is not compatible with this version of RMAN
    Please i need help
    Thanks & Regards,
    MB

  • Map two tag with single style JS[CS4]??

    I've tried to come up with solution but still fail to get anything positive if I wanted to tag two tag(consecutive) to one style e.g. see sample code
    <Art>
    <Head1>This first heading</Head1>
    <p>This is <it>first</it> para</p>
    <Head2>This <b>second</b> heading</Head2>
    <body-text>This is body <sup><it>this text should be in italic superscript</it></sup> text para</body-text></Art>
    Sample script code:-
    var myDocument = app.documents.item(0);
        var myPage = myDocument.pages.item(0);
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("Head1"), myDocument.paragraphStyles.item("Head1"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("Head2"), myDocument.paragraphStyles.item("Head2"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("p"), myDocument.paragraphStyles.item("Para"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("body_text"), myDocument.paragraphStyles.item("Body"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("sup"), myDocument.paragraphStyles.item("Sup"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("it"), myDocument.paragraphStyles.item("Italic"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("b"), myDocument.paragraphStyles.item("Bold"));
    //What else could be here kindly suggest
    myDocument.mapXMLTagsToStyles();
    My requirement is to apply "SupItalic" style at bold character tags
    Mac

    Hi Pankaj,
    This requirement will be achieved only by script, no other way.
    Thanks,
    Praveen

  • Creating Video with single Image and Audio

    Hi All,
    My requirement is to pass an Image and audio and the expected out put is a like a video which shows the image and plays the background. Can it done in JMF if so how can it be done? Thanks.

    Hi,
    I am also trying to do almost the same thing using the JpegToMovieConverter, however I am facing a problem.
    Objective: To create a video file which will include the output from webcam and my mic. Also, there are some images. Whenever the user selects an image, then instead of the webcam video, that image should be shown until it is unselected or the user selects some other image.
    Problem: I have implemented the mic and webcam streams but
    1. I dont understand how would I create a stream from my image, given that the length of stream should be as long as the image is selected.
    2. Also, how would I merge the three stream so that the images' stream overwrites the webcam's video stream.
    Thank you.

  • How to sync two devices with single Apple ID?

    I would like to use the same Apple ID for both devices. During syncing in computer ITunes, is it possible to avoid the applications in both devices share to each others?

    What syncs to any given device from a single iTunes library depend on how you have that device's profile set up in iTunes. When you connect the device to iTunes and select it under Devices, you will see a screen to the right. That screen has several tabs, including a tab for Apps. You select which apps you want on a particular device there.
    Be sure you do not have "Automatice Downloads" set up under Settings>iTunes & App Stores for the devices in question.
    Cheers,
    GB

  • Using two computers with single Ipod

    I have an IMac G5 which I have my main ITunes library of music on. I also have an IBook that I travel with and occassionally I download a disc of music onto that computer's Itunes. Then I want to download that disc to my Ipod but if I connect to the IBook I will lose everything except what's on the
    IBook. Can I manage this in the "manuel mode" and how do I get to the manuel mode on the IBook since I have to plug in the IPod to get to preferences and indoing so would lose everthing! help

    "Question: I have a computer at home and one at work. Can I update my iPod music collection from more than one computer?
    Answer: Yes. When you first connect iPod to your computer, iPod recognizes that computer as its "home" computer. Each time you connect, iPod automatically downloads the music library stored on it. When you connect iPod to a different computer, iPod asks for permission before synchronizing with this music library. If you choose Auto-sync, iPod recognizes the second computer as its home computer and breaks the link with the original computer. If you do not choose Auto-sync, iPod switches to manual update mode, allowing you to selectively drag songs, albums, or playlists from the second computer to your iPod.
    Synchronization occurs only in one direction, from your computer to your iPod. This means you cannot transfer music, automatically or manually, from your iPod to a computer, and you cannot use iPod to copy a music library from one computer to another. But, if you legally are allowed to copy music files, you can configure your iPod as a hard disk to move music files."

  • Two objects from one table

    My current setup is two tables and two objects with a one to one relationship between them, Object and ObjectMD (metadata).
    Not sure why my predecessors set it up like this but...that's how it is.
    The problem is that my Object table (and thus ObjectMD also) has reached 40 million rows and large joins between Object and ObjectMD are taking forever and are completely unnecessary.
    I want to import the ObjectMD data into the Object table and go forward with a single table. The problem is that the ObjectMD table has it's own java surrounding it and that code is used in way too many places to weed it out. I need to leave the Java object structure in place.
    I think I should be able to create both these objects from a single table, but I can not figure out the descriptor. My set method needs to be getMetaData().setMethod, but of course TL's reflection doesn't like this. I suppose I could create new methods in Object to get/set all these fields and just forward them to the real methods.
    How can I define descriptors to create two objects from a single table?

    What I decided on for my last problem was to use a method to setBar, and inside that method, set the Foo of the Bar.
    Here are my files for future reference:
    --------------------------------------Foo.java-------------------------------------
    public class Foo {
         public int id;
         public String first;
         public Bar bar;
         public void setBar(Bar newBar){
              if(newBar != null){
                   newBar.foo = this;
              this.bar = newBar;
    --------------------------------------Bar.java-------------------------------------
    public class Bar {
         public Foo foo;
         public String second;
    --------------------------------------Descriptors.java-------------------------------------
    public class Descriptors {
         public static void addDescriptors(Project project) {
    project.addDescriptor(Descriptors.buildFooDescriptor());
    project.addDescriptor(Descriptors.buildBarDescriptor());
    private static Descriptor buildFooDescriptor() {
    Descriptor descriptor = new Descriptor();
    //     basic information
    descriptor.setJavaClass(Foo.class);
    descriptor.addTableName("FOO");
    descriptor.setPrimaryKeyFieldName("ID");
    //     mappings
    DirectToFieldMapping directToFieldMapping;
    AggregateObjectMapping aggregateObjectMapping;
    //     id mapping
    directToFieldMapping = new DirectToFieldMapping();
    directToFieldMapping.setAttributeName("id");
    directToFieldMapping.setFieldName("ID");
    descriptor.addMapping(directToFieldMapping);
    //     first mapping
    directToFieldMapping = new DirectToFieldMapping();
    directToFieldMapping.setAttributeName("first");
    directToFieldMapping.setFieldName("FIRST");
    descriptor.addMapping(directToFieldMapping);
    //     bar mapping
    aggregateObjectMapping = new AggregateObjectMapping();
    aggregateObjectMapping.setAttributeName("bar");
    aggregateObjectMapping.setReferenceClass(Bar.class);
    aggregateObjectMapping.setSetMethodName("setBar");
    aggregateObjectMapping.dontAllowNull();
    descriptor.addMapping(aggregateObjectMapping);
    return descriptor;
    private static Descriptor buildBarDescriptor() {
    Descriptor descriptor = new Descriptor();
    // basic information
    descriptor.descriptorIsAggregate();
    descriptor.setJavaClass(Bar.class);
    //     mappings
    DirectToFieldMapping directToFieldMapping;
    //     second mapping
    directToFieldMapping = new DirectToFieldMapping();
    directToFieldMapping.setAttributeName("second");
    directToFieldMapping.setFieldName("SECOND");
    descriptor.addMapping(directToFieldMapping);
    return descriptor;
    ----------------------------------------Go.java------------------------------------
    public class Go {
         public static void main(String[] args) {
              if(args.length != 0){
                   throw new RuntimeException("Arguments are not supported");
              Project project = new Project();
              project.setName("fooBarProject");
              DatabaseLogin login = new DatabaseLogin();
         login.usePlatform(new Oracle9Platform());
         login.setDriverClassName("oracle.jdbc.driver.OracleDriver");
         login.setConnectionString("jdbc:oracle:thin:@nnn.nnn.nnn.nnn:nnnn:SERVICE");
         project.setDatasourceLogin(login);
         Descriptors.addDescriptors(project);
         Server server = project.createServerSession(2, 2);
         server.setLogLevel(oracle.toplink.sessions.SessionLog.FINE);
         server.login("schema", "password");
         Session session = server.acquireClientSession();
         UnitOfWork uow = session.acquireUnitOfWork();
         Foo fooBar = (Foo) uow.newInstance(Foo.class);
         fooBar.id = (int) (Math.random() * 10000);
         fooBar.first = "abcd";
         uow.commit();
         ExpressionBuilder builder = new ExpressionBuilder();
         Foo fooBarLoad = (Foo) session.readObject(Foo.class, builder.get("id").equal(fooBar.id));
         System.out.println("ID:" + fooBarLoad.id + " FIRST:" + fooBarLoad.first + " SECOND:" + fooBarLoad.bar.second );
         session.release();
         server.logout();
    ------------------------------------------------------------------------------------------

  • TopLink Question - Mutliple Object to Single Table mapping

    Just a short question,
    Does toplink support mapping feature as such that it can map two distinct objects with single table that when in insertion or selection those two objects can be manipulated, selected in single operation? I know that TopLink mapping supports single object from multiple table mapping, but I'm not sure about multiple objects being associated with single table.
    Secondly, does Hibernate has something like what I described above?
    Howard.

    Hi Howard,
    You can map two objects to a single table if the objects are related by aggregation.
    In TopLink, two objects–a source (parent or owning) object and a target (child or owned) object–are related by aggregation if there is a strict one-to-one relationship between them, and all the attributes of the target object can be retrieved from the same data source representation as the source object. This means that if the source object exists, then the target object must also exist, and if the source object is destroyed, then the target object is also destroyed.
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/tutbuild004.htm#sthref2325
    -Blaise

Maybe you are looking for