Masking a movie clip that contains other movie clips

hi,
i am just trying out something in flash but it just doesnt
work.
I have a layer which has a movie clip which contains other
movieclips in itself.
Masking the layer that has the main movie clip causes the
other movieclips in the main one to disappear when running the swf.
Does any one have any idea how to get around this???
thanks

Hi,
Recently, I have been putting together a flash presentation.
And I am just wondering if the following might help you, in your
communication with the said swf file:
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onComplete);
function onComplete(event:Event):void
event.target.content.thinggy_mc.y -= 100;
Not the best example, but this allows you to target a mc
within an external swf file. I think if you look up this code, you
will have an answer ;)
Kind Regards,
Boxing Boom

Similar Messages

  • Serializing classes that contain other classes

    Hi all,
    Hoping someone can answer me a quick question, I'm familiar enough with Java + OO in general but just starting to try to put a multiplayer game framework together so running into a few areas I haven't encountered before... so sorry if this is a bit of a newbie sounding question...
    I have a serializable class that contains a reference to another serializable class, very similar to:
    public class ClassA implements Serializable
        private ClassB b;
        ...and some other fields...
        public ClassA ()
            super ();
        ...and a standard public getB and setB
    public class ClassB implements Serializable
        int someValue;
        ...standard no arguments constructor...
        ...standard getSomeValue and setSomeValue...
    }Now that all works fine, serializes fine, send it down an ObjectOutputStream down a network socket, deserializes the other end, all no problem. What I don't like is that to create a ClassA I have to do:
    ClassA myClassA = new ClassA ();
    myClassA.setB (new ClassB ());   <--- this line
    myClassA.getB ().setSomeValue (5);because it could easily be ommitted (especially since the real situation is more complex that two simple classes like above) and I'll get a NullPointerException. Normally (in a non-serialized ClassA) I'd have put b = new ClassB (); in the constructor.
    However I don't like the idea of doing that because when deserializing a ClassA, I imagine the deserialization mechanism creates its own ClassB object to set into ClassA? And so if in the ClassA constructor, I create my own ClassB, then the deserialization will then immediately go and create its own ClassB and the ClassB I created will go to the garbage collector, i.e. it was a pointless object to create?
    Just wondering what suggestions anyone has on this, there must be a standard approach to deal with this?
    Thanks very much,
    Nigel.

    Allthough you give a lot of information I do not quite understand what you mean, but maybe a little re-arrangement of the setB en getB methods will do it:
    public ClassB getB() {
        if(b == null) {
            setB(new ClassB());
        return b;
    public void setB(ClassB b) {
        this.b = b;
    }

  • Cannot send emails that contain other asian languages

    i can receive emails that contian other languages, like chinese and korean. However, well i reply emails in those languages, people only receive smybols. I try to send it to my own email address as well, I also only receive symbols, like question marks. I'm using rogers but I don't think it has anything to do with the carriers because it was okay before. 

    Hello Hans
    The problem I have can be explained with what has happened to me just today!
    I was sitting in the back garden and wrote two emails. (Normally my EE Brightbox router will allow me to use wifi in the garden so I thought it safe to send them.)
    Wrong!
    Because I had no wifi signal for whatever reason, the emails were sent via my network (3) and not via the EE wifi network.
    3 then attempted to send them via smtp.orangehome.co.uk (specified in my mailbox setup on my phone since EE insists I use that outgoing server) and I assume that EE then refused to accept them since they did not originate from an EE user. The phone (Lumia 920) at that point froze with the 'Sycnhronising' message static on the screen. When I went to 'email setup' I got a message to tell me that there was a problem with my email setup. Whether the main problem or not, my email password had been lost and even when re-entered, I had to switch the phone off and on to stop the  'Sycnhronising' message and get access to email.
    This was slightly different from previous situations - normally I get the numeric error message mentioned earlier. Even now that I have deleted the two emails from the outbox I still cannot use email until I delete and recreate my email account.
    I have my own email server which I would prefer to use for outgoing mail as opposed to EE and the Lumia does not offer any facility to alter outgoing ports (as far as I an see).
    Sorry if the reply is a bit wordy but I do feel that this situation deserves wider exposure as had I known earlier I would have chosen a broadband supplier who did not dictate the setting for outgoing mail server.
    John H.D. Tuach

  • Trying to Clone an array object that contains other objects

    I have an employee object with the fields name (String), Salary (Double), and hireDay (Date). Since the date field contains many int fields (year, month etc..), using a straight clone will not work.
    What I want to do is copy an array of employees into a new array.
    For example:
    Employee [] newEmps = (Employee[])OldEmps.clone()
    In the employee class, I implement the Cloneable interface and my code so far will copy one Employee. How do I change this to copy an array of empoyees? Specifically, since hireDay contains many fields, a straight super.clone of the array won't work. Here is my clone code:
         public Object clone()
         try {
              // call Object.clone()
         Employee cloned = (Employee)super.clone();
              // clone mutable fields
    cloned.hireDay = (Date)hireDay.clone();
         return cloned;
         catch (CloneNotSupportedException e)
         { return null; }
    Any help is appreciated. Thanks!
    -Eric

    There's so much I don't understand about that, it just
    isn't worth asking. Let me spell out my previous post
    since it seems to have gone right over your
    head.Employee[] emps;
    // here you fill in the array of Employees
    Employee[] clonedEmps = new Employee[emps.length];
    for (int z=0; z<emps.length; z++) {I understand this next line of code. My question lies within the clone() function
    clonedEmps[z] = emps[z].clone();OK - Let me try to clear things up. If we take from your example the original array "emps". Now for me, emps, is already filled up in main().
    So in main() when I call emps.clone(), my clone function starts running:
    // the employee class (which I created) implements the Cloneable
    // interface
    // This clone function is inside my employee class
    public Object [] clone()
    try {
    Employee [] cloned = (Employee)super.clone();
    // IS THIS NEXT LINE OF CODE REQUIRED TO MAKE A DEEP COPY? IF SO, How would I implement perhaps a for loop that would copy the hireDay from each element in the original array to the elements in the the new array?
    // Obviously, each employee (element in the array) has a hireDay
    // Please modify this next line of code to show me how.
    cloned.hireDay = (Date)hireDay.clone();
    return cloned;
    catch (CloneNotSupportedException e)
    { return null; }
    If I wanted to access say the "hireDay" field of the 3rd element in the original employee array INSIDE THE CLONE FUNCTION - then how would i access it?
    Thanks
    -Eric

  • Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items)

    Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items from the last itunes or anything from that OS because it had a virus and i just wanted windows 7)

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Hope this helps,
    JD

  • I have a Ipad2, my computer that contains all of my apps, music etc crashed and dosent work. I bought a new laptop, how do I retrieve that iTunes account and or apps, movies etc.

    I have a Ipad2, my computer that contains all of my apps, music etc crashed and dosent work. I bought a new laptop, how do I retrieve that iTunes account and or apps, movies etc.

    With your new computer, you'll download a fresh copy of iTunes and then authorize iTunes using your Apple ID and Password.  Read the following link:
    http://support.apple.com/kb/ht1420
    You can then connect your iPad to your new computer via USB cable and transfer your purchases (do not connect your iPad until you have authorized the computer.  The music you had in your old iTunes account will not be in your new account as music is stored in a file on your hard drive, which you said has crashed.

  • How move a physical disk directory that contains images

    PSE 11. How can I move a directory on my hard drive that contains images to another drive from within PSE 11? Thanks.

    Hi Bazsl,
    Just a quick answer, late to pick up my wife -grin.
    Starting with the assumption you are just seeing the column of directories without the indication of what drive they are on:    If So then:
    On the left margin next to the begining of the yellow folders aka directories, there is a small symbol of two yellow folders, if you click it the normal directory view will appear  (also assuming you are familar with earlier versions of PSE ).
    Then you can click and drag the directory to its new location, again the system may take a few minutes to complete the move if you have a big catalog of pictures...
    gotta run..
    Al

  • Masking using movies

    Hiya,
    I know it must be possible in FCP so how do you mask a movie with a movie? What I mean is if I have a movie that is purely black & white footage that matches a full colour movie can I use the B&W movie to create an alpha or luminance mask on the fully rendered movie.
    Cheers
    Dan

    hello...
    put your colour clip on V3, your B&W clip on V2, and your background on V1... all on top of each other.
    then ctrl-click on your colour clip and go to composite mode... select travel matte-luma from the list and that should do you... try experimenting with different composite modes for the heck of it...
    J

  • Compressing "masked' quicktime movie-mask has ragged edges and white areas

    I have been masking quicktime movies with quicktime pro. I get a good-looking masked quicktime movie. But when I try to export to mp4 or other file types, the mask looks terrbile, the edges are ragged and some previously masked areas are now white. HELP!

    i tried apple 1, 2, and 3 for actual, double, and full size, always a white border in full screen. at actual size the side borders are bigger than the top and bottom, double and full it's a crisp 1 pixel grey line all the way around. i made the mask file 481x641 and 482x642 with no changes at all, all of them cut way inside the edges of the picture to avoid that border.
    strange part is at full size (more than double size for sure with these files) the border is exactly 1 pixel, not scaled up to 2.x pixels like you would expect if it was in the movie, not just the player sucking with masks. guess i'll hope someone notices and fixes in a future release. just like with the h.264 encoding border with masks. i guess the white border all the way around is better than a neon green one on the right side which i get with h.264
    /someone not testing QT with simple rectangular masks it seems
    here's a screenshot of my movie in fullscreen at double size so you can see the whole border:
    http://www.farkimages.com/view.php?img=4c9f24b0f5.jpg

  • Masked QuickTime movies not displaying correctly...

    Hi there,
    I'm still a relative novice with Keynote, but am quickly learning that this is a seriously great application! I haven't encountered any real problems so far, except the one I'm about to describe - and I'd really appreciate any help you could give me with it!
    Basically, I've made a masked QuickTime movie in the shape of a circle (as described here: http://docs.info.apple.com/article.html?path=QuickTime+Player/7.0/en/c3qt18.html) and then placed this onto one of my slides in Keynote. In the slide design view everything looks fine; the the movie is visible as a circular poster frame (and even plays as it should using the controls in the QuickTime inspector panel). However, when I go to "play" my slide it displays the movie as a rectangle. Obviously, the masking is somehow getting lost somewhere.
    Is this a bug with Keynote, or am I just missing something?!
    Many thanks in advance.

    the way my presentation is organised requires the movie to move in and out of the slide
    The final effect you want might still be doable, as long as you don't think of the builds as having to take place on the same slide. If I understand what you mean by the movie moving in and out of the slide, you could have the opening still from the movie as an image, masked to the shape you want, move in on one slide, then undetectably transition to the slide with the cutout and movie underneath, then, when the movie is done, transition to a new slide with the final movie image as a still, again masked to the same shape, and have this move out. It would take three slides instead of one, but you should be able to achieve the end result you want.
    PowerMac G5   Mac OS X (10.4.4)  

  • How do I assign a file to a drive other than the drive that contains my program software?

    I've just installed a video editing program on my new Mac Pro Xeon 64 bit workstation. I want to ensure that all my media files reside on a drive other than the drive that contains programs. I had no problem doing this on my old Dell. How do I do this on my Mac Pro? -- Gary

    Application Preferences.
    Next time, 'what' program would also help.
    Most people do setup with a dedicated boot drive with OS and apps, .then use other drives or array(s) for media, scratch as needed, including external hardware RAID.

  • I used a partitioned HDD for time machine, using a partition already containing other data files. I am now no longer able to view that partition in Finder. Disk Utility shows it in grey and "not mounted". Any suggestions of how to access the files?

    I used a partitioned HDD for time machine, using a partition already containing other data files. I am now no longer able to view that partition in Finder. Disk Utility shows it in grey and "not mounted". Any suggestions of how to access the files? Does using time machine mean that that partition is no longer able to be used as it used to be?
    HDD is a Toshiba 1TB, partitioned into two 500GB partitions.
    OS X version 10.9.2

    Yes, sharing a TM disk is a bad idea, and disks are cheap enough so that you don't need to.
    Now
    Have you tried to repair the disk yet

  • When I receive an email that contains a logo in a png format the logo is repeated twice.  Why is this happening in my email when it is not happening in other recipient's mail.

    When I receive an email that contains a logo in a .png format the logo is repeated twice.
    Why is this happening in my MAC maverick system when it does not happening in other
    MAC recipients' email?
    Nan

    WMP is a windows proprietary format.
    It is not supported on iOS devices.
    QuickTime player is built into ios and used for all video playback-nothing is being converted.
    You can try downloading an alternate player that can playback wmp or use a computer.

  • Scaling an object that contains a gradient

    I'm working in Illustrator CS3. Got a question: I'm looking to scale an object that contains a gradient, but I want the position of the gradient to remain in the same position on the page. That is, I don't want the gradient to scale along with the object. Is it possible to do this without manually rebuilding the gradient?

    Normal scaling of an object (using the Scale tool, Transform or dragging the bounding box) will always scale the gradient too, but there is a sort of workaround if you know where the gradient starts and ends in the original.
    If you haven't already marked the beginning and end of your gradient, do so by pasting a copy of it in front (Cmd-F) and expanding the gradient - then you can see its start and end points when you turn off the preview. Mark what you need with guides and delete the expanded gradient. It's useful to make a guide that follows the angle of the gradient.
    Now draw a gradient-filled rectangle behind your object and get the gradient to match the angle and position of the gradient in your object by dragging with the gradient tool according to the guides.
    Having done this, copy and scale your object and change it into a clipping mask that masks the rectangle you just drew. Alternatively you can make a masking layer of your object if you know how to do that.
    Lock the rectangle (if you are using a normal clipping mask) and then you can move the object (which is now a mask) at will and the gradient will stay put.
    This is all a bit long-winded but please get back to me if you're lost :-)

  • Creating interactive swf files that contain flash files that don't play once loaded on server

    I am creating an interactive swf file that contains a  flash movie f4v file and when I preview the page in ID it plays, but once I export the InDesign file to swf, insert that on a html page using Dreamweaver (so I can send a link and not a file out) the movie doesn't play, just the first frame of the clip.  I have uploaded the f4v file to our server and linked in the original ID file and it still doesn't play.  Any suggestions or similar issues?

    I have left the page up for quite a while to see if it is just taking longer to load that clip and that doesn't seem to be it.  I am just stumped and honestly not knowledgable on how websites and servers work - just know how to get my documents up so I can send links.

Maybe you are looking for

  • Playbook stuck in update mode

    Hello all.. need help badly! Was in the process of adding blackberry desktop to a new computer (Windows 8); program went in fine but the Playbook was still connected and now it says that the playbook is not finished downloading its program and does n

  • Installation document for SAP NetWeaver 7.01 ABAP Trial Version on XP

    Hi Experts Please give me link of installation document  for SAP NetWeaver 7.01 ABAP Trial Version on XP or Tell me Steps for installation. thanks Best Regards Jitender

  • Price from Real Item in MDM Catalog is not copied to PO in SRM 5.0

    Dear All, We  have issue in SRM 5.0  , fully  completed  SC from  MDM Catalogue (Real item -  Vendor , Price ), but while converting to  PO . The price is not getting copied in PO. We are not sure whether any settings/configuration is missing in  MDM

  • Secured webpage requires Internet Explorer

    I'm a Apple newbie as of today. Trying to access a secure webpage for work and it requires Microsoft Internet Explorer 5.0 for MAC or better, do I have to download it or does Safari handle that requirement? Also requires Adobe Acrobat Reader, again,

  • Analysis service Tabular Model Rolling the values

    Hi Help me anyone, I Have to calculate for 1 Year rolling values from current date  example let say i am in march-2014   i have to rolling my column values for 1 year means April-2013  For this what function should i use  and also one more thing I ha