Flash gradient mask problem

Having a bad day everything i do doesn't work today... I am trying to create a gradient mask but because its not on the main timeline also its in a nested swf, just can't get it working, this is what I was using and tried it with _parent.(instanceName) and _root
clip.cacheAsBitmap = true;
mask.cacheAsBitmap = true;
clip.setMask("mask");
Any ideas
Rich

mask shouldn't be in quotes.
if removing the quotes doesn't solve your problem what's the following show:
clip.cacheAsBitmap = true;
mask.cacheAsBitmap = true;
clip.setMask(mask);
 trace(clip);
trace(mask);

Similar Messages

  • Printing a graphic with a gradient mask in Flex 3-problem

    Hello, I am fairly new to flex development. I am puting together a little program that allows the user to upload a picture add a vignette mask in order to achieve a soft edge,  and have a problem I cannot  find an answer anywhere, maybe someone could help me please.
    I want  to print a the user photo with a gradient mask or vignette from flex. I managed  to show the image correctly on screeen with the gradient mask using  this class but the output to paper is a rectangle without the soft mask.
    //package to add the mask for display
    package com.dm.graphics
       import flash.display.Graphics;
       import mx.containers.Canvas;
       import flash.display.GradientType;
       public class FrameBorderSoft extends Canvas
          override protected function updateDisplayList(w:Number, h:Number):void
             super.updateDisplayList(w,h);
             var g:Graphics = this.graphics;
             g.clear();
             g.beginGradientFill(GradientType.RADIAL, [0x000000, 0x000000, 0x000000, 0x000000],
             [1,1,0.8,0],
             [1,128,195,255],
             horizontalGradientMatrix(0,0,w,h) );
             g.drawRect(0,0,w,h);
             g.endFill();
    It  works beautifully until I try to print the graphic. The image prints  but without the gradient edges (soft) instead it is just a sharp edge  rectangle.
    Does anyone know how to do this?
    Here is my print function:
    private function doPrint():void {
                    // Create an instance of the FlexPrintJob class.
                    var myPrintJob:FlexPrintJob = new FlexPrintJob();
                    // Start the print job.
                    if (myPrintJob.start() != true) return;
                    // Add the object to print. Do not scale it.
                    if (tabnavigator1.selectedChild == img1) {
               //switchcolor is a variable to detect if the user changed the background to white or clear.       
                             switchcolor = 100;
                          //printCF is the card front container with the photo masked
                       myPrintJob.addObject(printCF, FlexPrintJobScaleType.NONE);
                       myPrintJob.printAsBitmap = false;        
                    } else if (tabnavigator1.selectedChild == img1b) {
                       switchcolor = 100;
                       myPrintJob.addObject(printCB, FlexPrintJobScaleType.NONE);
    I hope this helps to visualize,
    I would greatly appreciate any assistance or advise.

    Hello, back on my issue, i tested a little bit more the message dispaching.
    I read the lazyLoadPolicy class and noticed that it always has to have a ModuleId property in the message to work, that's why the broadcast message didn't work to awake the module with the lazy loading policy.
    So i added copy of my module:
         <cairngorm:ParsleyModuleDescriptor objectId="test"
              url="TestModule.swf"
              applicationDomain="{ClassInfo.currentDomain}"
         />
         <cairngorm:ParsleyModuleDescriptor objectId="testbis"
              url="TestModuleBis.swf"
              applicationDomain="{ClassInfo.currentDomain}"
         />     
    Set them both with a basicLoadPolicy, and tries to dispatch a message to only one of them using the ModuleId metatag. I then noticed that both modules received the message and not only the one i expected.
    I then changed the ModuleMessageInterceptor configuration to dispatch to only one kind of module:
    <cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }" moduleRef="test"/>
    and this worked as expected. Only the first module catched the message. I am obiously messing with the ModuleId metatag but i cannot see what's wrong...
    I compiled with
    -keep-as3-metadata+=ModuleId
    but this hasn't changed anything...

  • Gradient alpha mask problem

    Hello-
    I am attempting to create a gradient alpha mask for a PNG file, the effect being that of a reflection fading out gradually into the background.  CS4 doesn't recognize the white to black alpha gradient or solid to transparent gradient.  It uses the entire gradient as the mask.
    I have searched and searched, but cannot figure out how to make a simple alpha gradient mask for an image.
    Any help would be greatly appreciated.
    Thanks.
    Jesse
    Artwork attahced for concept.

    You need to make the mask and the maskee movie clips, give them instance names, set cache as bitmap on both to true, and then use setMask to make the mask work.
    I believe pretty good directions are here: http://www.align.sk/blog/blog1.php/2008/10/23/transparent-masks-with-cacheasbitmap-as3
    For what it's worth, it's a well known enhancement request to have this work at author time in addition to runtime with AS (I for one sure hope we can add this).

  • How to create gradient mask in CS3 ?

    Is it possible to create gradient mask without programming?
    It is important
    that Flash document must be created in version 9 and AS3. I
    tried to use
    blend modes alpha/erase but they makes object invisible
    (cache as bitmap was
    on and off - every combination of 2 used objects).
    Flash document used for test cosist of 2 MCs:
    - top layer: contains MC with filled by gradient rectangle.
    First color is
    black with alpha 100%, second color is black with alpha 0%.
    - bottom layer: MC containing photo
    I want object on top layer to be a gradient mask.

    Is it possible to create gradient mask without programming?
    It is important
    that Flash document must be created in version 9 and AS3. I
    tried to use
    blend modes alpha/erase but they makes object invisible
    (cache as bitmap was
    on and off - every combination of 2 used objects).
    Flash document used for test cosist of 2 MCs:
    - top layer: contains MC with filled by gradient rectangle.
    First color is
    black with alpha 100%, second color is black with alpha 0%.
    - bottom layer: MC containing photo
    I want object on top layer to be a gradient mask.

  • Need help with gradient mask over XML images

    I have a file that works great in pulling images via XML
    data. I want to create a gradient mask using flash CS3, but i can't
    seem to get any sort of mask (solid or gradient) to react with the
    XML driven images.
    Download my FLA
    and other working files
    845 kb

    granted i can see resizing the mask and now it responds...
    however, take a look at this
    Sample of alpha gradient mask:
    http://www.devx.com/webdev/Article/29296#codeitemarea
    i'm trying to this type of mask (static mask obviousl)

  • Why my gradient mask at home renders smooth, but is clipped at work?

    I created a number of gradient masks applied to images with a basic 100 to 0 black gradient, on my Mac at home. They look smooth in Illustrator, and rendered smooth both as a PDF and exported to a PNG.
    Gradient Mask from my Mac at home:
    But when I open the same illustrator document on my Mac at work the gradation of the mask is clipping. So instead of a smooth transition there's now a hard line.
    Gradient Mask on my Mac at work:
    This is the same file, opened on different Macs. Both identical versions of Illustrator CS6, identical color settings, identical color profiles.
    The main differences are my Mac at home is a 2009 MacPro running OS 10.9, and my Mac at work is a 2008 MacPro running OS 10.8.
    I've created and recreated gradient masks over and over again, and I cannot get a smooth transparency gradient mask at all on my Mac at work.
    This presented a problem, as the client had to have last minute revisions when I was at work, and could not produce a smooth image, I was forced to deliver the final graphic with clipped gradient masks.

    So deleting preferences didn't fix it. I even rasterized the gradient to see if an image mask would work better, that didn't work. Then I toggled "invert mask." I was suprised to see that once I inverted the mask (which reversed the gradient), the transparency was smooth from 0 to 100.
    So I've figured out a work around for the problem, but it's still not resolved.
    Invert gradient mask
    Rotate gradient mask 180°
    Adjust gradient mask break points to accomidate reversal
    Here's the result:
    Now if someone can explain to me why a gradient mask doesn't work in one direction, but it does when it's inverted.

  • Applying a gradient mask to type to create a reflection

    I working with CS4 Windows and am applying a gradient mask to unrasterized type to create a reflection. I've flipped the type, chose gradient tool, have chosen foreground to background, foreground to transparent, etc. The mask layer keeps acting like a "normal" layer and instead of masking out the part I want masked, it darkens that portion. I've even verified my method with tutorials and come up the same problem. I figure there's something I have either checked or unchecked but I can't figure out what. If I use another tool to mask part of the type it works fine. I'm really baffled.

    You either want a proper layer mask, or to create a clipping mask. You might try posting a screenshot of your layers panel if you're still stumped.
    More about layer masks here:
    http://help.adobe.com/en_US/Photoshop/11.0/WSfd1234e1c4b69f30ea53e41001031ab64-7866a.html
    More about clipping masks here:
    http://help.adobe.com/en_US/Photoshop/11.0/WSfd1234e1c4b69f30ea53e41001031ab64-7853a.html

  • Flash Player sound problems on a 5.1 system

    I don't know if i found the right topic for asking for this question, but here it goes.
    I noticed that flash player has this issue with my 5.1 system, when i play music (and i mean any music, like my online radio, played through flash, or music through the site VK.com), the sound is extremely awful. Words actually can't explain it, there is no bass, and the sound, overall, seems to be of very low quality. But it's not. When the same music is played via stereo system (any), it seems to be perfect - with bass and etc.
    Now i'm really confused. It's either a problem of flash, or a problem of somewhat in my system. My guess is that flash simply does not support audio output rather than 2.0. I will be really grateful if anyone will at least point me in the direction of the source of this problem; it makes my life miserable. Thank you.

    Is it possible to have e version of flash player like silverlight which give thepossibility to hear audio on whole 5.1 system?
    I have the following system computer:
    Case: Thermaltake Mozart; PSU: Thermaltake Toughpower 750W; MainBoard: Asrock 4coredual-sata2; Heatsink: ZeroTherm Zen120; CPU: Core2 Extreme X6800 3,2Ghz; RAM: OCZ Platinum DDR400, 2x1 GB; GPU: Sapphire HD3850 AGP; PPU: BFG Ageia; HDD1: WD Caviar Blue WD5000AAKS; HDD2: WD WD2000BB; Monitor: Asus VB175T 17" 5:4; Audio System: danneggiato, in corso di sostituzione; OS: Xp Professional Sp3; Browser: Srware Iron.

  • Revolution Main Screen Gradient Mask

    I'm authoring a DVD in iDVD 7.1.2 (latest version with iLife '11).  I want to use the Revolution Theme with an image in the overall screen behind the chapter buttons.  Unfortunately for me, the theme has a black gradient mask over the screen and the image that I inserted is extremely dark.  Is there some way to edit the details of the Revolution Main screen?
    Thanks,
    Dave

    There's a menu title which is the rotating text.  Change it and the rotating text will change.
    OT

  • Help: Flash 9 - Video problem - OS X

    OS X 10.4.8
    I installed Flash 9 today, since then no more Google video.
    Browser crashes each time. Also with other sites that use Google
    video. Tried uninstall, and install Flash 8: same problem. Cannot
    get back to previous situation where everything worked fine.
    Also problem with msnbc, no video, claims plugin missing.
    Youtube works fine.

    Hi,
    folder deleted, after reinstall only the two flash files in
    the folder. Same problem.
    Worse, now Google Finance also hangs up. Spinning wheel of
    death, requires force quit. BTW, this is the same for Firefox,
    Safari, and Camino.
    If there is no solution, how can I get back to my previous
    system. The problem started when the Charlie Rose website required
    me to update flash. Before the update everything worked like a
    charm. Now problems everywhere.

  • Drawing artifacts with motion under a gradient mask

    Hello,
    I am having an issue with using a motion under a gradient mask and was hoping someone might have a solution. I have a  transparent png bubble in movie clips that are being randomly sized and  animation started using code. The design has a reflection and I am  using a gradient mask for the effect. The issue is when the bubbles  animate they are causing drawing artifacts. Please see the attached  screen shot or you can see the swf here - http://archetypeworks.com/test/tm/. Below is the code I am using to set the mask. Any help or  suggestions are appreciated.
    Code:
    bottomMask.cacheAsBitmap = true;
    beaker_bottom.cacheAsBitmap = true;
    beaker_bottom.mask = bottomMask;
    Thank you,
    Ococ

    Thank you for the suggestion, but that did not work. I also tried breaking apart the png, using the magic wand to select and delete the transparent areas. Still getting the same issue.

  • Can't log into Adobe Story on windows 7 after installing flash player10. no problems w/win98 @work.

    Can't log into Adobe Story on windows 7 after installing flash player10. no problems w/win98 @work.

    I downloaded Adobe air and the desktop app for story and can get online from that. Thanks anyway. T

  • Director MX 2004 + Flash MX 2004 - Problema con formulario flash con combos dentro de director

    Buenas,
    He desarrollado una aplicacion con base Director, que lleva
    dentro un
    formulario flash con varios combos tirando del componente
    combobox del
    mismo. Hasta ahora lo habia usado en otras aplicaciones con
    una integracion
    similar sin problemas, pero en este caso me ha surgido algo
    realmente
    extra�o, esto es, si pulso muchas veces en los combos
    hay momentos en los
    que estos se vuelven locos y se quedan como colgados (de
    hecho la aplicacion
    esta como colgada cuando pasa esto). Esto pasa mas a menudo
    en windows 2000
    por no decir la mayoria de las veces, y en XP pasa en
    determinadas
    circunstancias. He probado a quitar el direct to stage del
    sprite flash,
    ademas de quitarle la "animacion" que realiza al desplegarse,
    y creo que en
    xp el problema esta resuelto, pero en win 2000 me parece que
    estamos en las
    mismas.
    El problema es que necesito combos para ese formulario, y no
    me valen los
    que trae Director por defecto, basicamente por el aspecto.
    Tampoco puedo
    permitirme el lujo de cambiar todo el formulario a Director
    aunque usara un
    xtra o un behavior, ya que esto lo entrego ma�ana y
    tengo que matizar mas
    cosas. Alguien ha hecho algo parecido, o ha tenido un
    problema similar?
    Muchas gracias y saludos a tod@s

    Buen dia, el problema que tienes radica en la version de xtra
    que
    utiliza director para mostrar la info que hasta el momento
    esta en la
    version 7, lo que debes hacer es exportar los ficheros a una
    version 7y funcionaran perfectamente.
    "Tony" <[email protected]> escribi� en el
    mensaje
    news:e85ovc$s0j$[email protected]..
    > Buenas,
    >
    > tengo una aplicaci�n hecha en Director MX que
    necesita abrir ficheros
    > flash. El problema radica que si estan hecho con la
    versi�n 8 no me los
    > abre. Alguien sabe por qu�? en PC tengo instalado
    la �ltima versi�n del
    > Flash player.
    >
    > Salu2 y gracias de antemano.
    >
    >

  • Mask problem in Premiere Pro CC 2014

    Hello!
    I have a strange problem with the mask tool in Premiere Pro CC 2014, and made this video to explain the problem.
    Hope someone can help me.
    Thanks a lot
    /Per Haar
    Mask problem in Premiere Pro CC 2014 - YouTube

    But the whole point is that I am not able to place the mask properly because of the strange way it behaving. The purpose of a mask is that it should affect the area it is located above and not somewhere else, and it should also fill the entire mask and not only a spot at the center of the mask area.
    It has nothing to do with the order of things, or if I turn up feathering or extract the edge. It's all about the wired way it applys it self.
    If I apply and drag the mask to the corner, it should affect the corner and not somewhere near the center of my footage. As it is right now I have to zoom out to 25% and drag the mask way out of frame to affect the corner of my footage.
    /Per

  • Need to create a 'gradient mask' using a b&w photo image.

    I have not created a document yet and would like some thought on how to do this: I want to use a continuous tone black and white image which is somewhat close to what would be a 'knockout' but with soft edges - so it gradates appropriately over the background image I want to use, making the black part of the image used as the mask become much of the effect of a gradient mask: the background image shows through whereever there is the 'black' and 'tone' of the image. I hope this makes sense.
    my first thought is to create a layer mask and then paste the black and white image onto that, but I'm not sure if that will work to accept the 'soft tones' of the image and work appropriately.
    Has anyone had experience with this type of thing that they can share what steps I should take to make this effect work?
    TIA,
    Ken

    Doug.S wrote:
    Such a mask can also be very useful in an adjustment layer to control color, sharpneess, contrast, luminance, etc.
    See/search for PPW, Dan Margulis, Photoshop books on color corrections such as LAB or Photoshop workflow, or Italian site "color duels" or Yahoo group "colortheory".
    This is interesting. I'll check these sources and try some of this today. Thanks Doug.

Maybe you are looking for

  • Cost of Goods Sold Value

    Hello, In our material master, neither Moving Average price nor Standard price is maintained,But while doing PGI it is taking value of Cost goods Manufactured from costing Sheet. Pls help me to know,how this value gets determined during PGI and proce

  • Dual 1.8 GHz G5 only running of one processor

    My dad has a Dual 1.8 GHz G5 and had problems in the past, one of the processors went out. He took it to a repair shop and they switched it to run only off one processor. Apparently after they repaired the computer, they didn't tell it to run on both

  • Accessing Selected Value from Payment Terms (Item 47) in AR Invoice Form

    Hi, Have just started working in SAP Business One and SDK adn would really appreciate any help I could receive. I'm trying to access the selected value from Payment Terms field(Item 47) in the AR Invoice Form. Have successfully managed to do this aga

  • Printing a listing from an array of objects

    I know I'm missing something simple here but for the life of me I can't spot it. The code below should print a list of student names to the screen. At the moment it only prints the last name entered into the array. I will kick myself when I see the a

  • How to display an ouput in d specific format?

    hi frnds.. i wud lik to display d output(may it be a name or a number) in d following format.. O R A C L E how do i write a query to display d output in dis format??