Applying bitmaps as fills to movieclips

How do I apply a bitmap as a fill to an existing movie clip
during runtime?
What I am trying to do is allow the user to select fabric and
then apply it to an object they are looking to buy such as a chair.
Any help would be appreciated.
cheers,
jr

I have this layer selected and the Gradient tool ready
I go to click on the right side of the green area to apply the gradient tool...
The fill I want to use disappears, and the previous fill is selected instead.
I will point out (if it isn't obvious already) that I AM NOT experienced with Illustrator, but I want to understand why this isn't working.

Similar Messages

  • Moving selected objects up and down with keyboard is automaticly applying a colour fill.

    Hi,
    My InDesign is strangely applying a colour fill when i move an objects up or down using the directional arrow in my keyboard. If the colour pallet is open. Nudging an object up makes the pallet disappear on the first press. It then reappears on the second press while filling the object (text frame) with black. This is instensly frustrating. How can I stop this? Suggestions would be very appreciated.
    I have already reset the preferences.
    Cheers,

    Thanks for your reply.
    I fixed the problem by replacing the keyboard!
    Cheers,
    Nick Meadows
    0421 976 704
    www.nickmeadows.com
    Date: Fri, 30 Mar 2012 06:01:22 -0600
    From: [email protected]
    To: [email protected]
    Subject: Moving selected objects up and down with keyboard is automaticly applying a colour fill.
        Re: Moving selected objects up and down with keyboard is automaticly applying a colour fill.
        created by Peter Spier in InDesign - View the full discussion
    I have to ask if you reset the prefs uing one of the methods in this thread: Replace Your Preferences If not, there's a good chance you left out one of the files, so please try again using one of the listed methods. And please tell us the OS and your version of ID, including the patch level. Obviously this is not normal behavior. It sounds as if the Swatches panel has focus when you are pressing the arrow keys.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4302200#4302200
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4302200#4302200. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in InDesign by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can I apply a current fill color to a stroke, then adjust that stroke color's build?

    Hi all, I'm trying to figure out a way to automate a simple, yet repetative process I do countless times a day. Ideally, I'd like to tie it to a keystroke to speed up my workflow.
    I work on line art and colorways for footwear, so the way I'm coloring these shapes and strokes helps to break apart the different materials and pieces of the shoe.
    While coloring line art, I work with Pantone spot colors as fills for closed path objects. I then have to manually apply that same color to the stroke, set the stroke to 0.5px weight, convert that spot stroke color to CMYK, and add 15% to the K value.
    I found some code in an older post for applying the actively selected object's fill color to the stroke, but I'm having but I'm having trouble with the next step of figuring out how to take that spot stroke color and convert it to a CMYK build that I can then add 15% black to. Is this something that's even possible? I've spent about an hour playing with the script and have only had luck matching the fill color or turning the stroke white. Thanks for the help!

    ok try this one, I added the spot color option
    // make stroke color same as fill color + 15% black increase
    if ( app.documents.length > 0 && app.activeDocument.pathItems.length > 0) {
        for (var a=0; a<app.selection.length; a++) {
            try {
                    var sel = app.selection[a];
                    var fillcolor = sel.fillColor;
                    if (fillcolor.typename == "CMYKColor")
                        var cmkycolor = fillcolor;
                    else if (fillcolor.typename == "SpotColor")
                        var cmkycolor = fillcolor.spot.color;
                    var col = new CMYKColor;
                    col.cyan = cmkycolor.cyan;
                    col.magenta = cmkycolor.magenta;
                    col.yellow = cmkycolor.yellow;
                    var black = cmkycolor.black + cmkycolor.black +15;
                    col.black = black>100 ? 100 : black;
                    sel.strokeColor = col;
                    sel.strokeWidth = 0.5;
            catch (e){alert(e)

  • Adding a bitmap graphic to a movieclip in code

    Hi, I'm new to as3 and programming and I'm trying to add a bitmap to a movie clip in code. However, I'm having trouble getting the bitmap location to go where I want it because it's inside the movieclip and it just shows up at 0,0 of the movieclip instead of the coordinates I want it to be: Here's some of code so you can see what I mean:
    imageBitmapData3 = new Lander(63, 53);
    _player = new Bitmap(imageBitmapData3);
    _gameLevel.addChild(_player);
    _player.x = 145;
    _player.y = 90;
    -Instead of showing up at 145, 90 It just shows up at the movieclip, _gamelevel, 0,0.
    does anyone know how I could get it to do what I want it to do? I want to add it inside the mc because I need everything to move with the _gameLevel background when I move it.
    Thanks

    hi
    your code looks fine to me - you could try adding a breakpoint after _player.y = 90 and see if the bitmap is in the right place when the breakpoint is reached, if it is, there must be some code elsewhere that is subsequently changing x/y to zero?

  • Paragraph background fill also applies character background fill

    This is what I want and see in iBooks Author:
    This is what I get and see in iBooks on an iPad 1:
    Note the difference in the last line of text and the grey background: "expensive: satellites worth $370M were lost." acts as if there's a character background fill when I only have a parapgraph background fill applied. This seems like a bug either in iBooks Author or iBooks 2. Has anyone run into this? Any suggestions for a fix?

    Armando Fox wrote:
    This is what I want and see in iBooks Author:
    This is what I get and see in iBooks on an iPad 1:
    Note the difference in the last line of text and the grey background: "expensive: satellites worth $370M were lost." acts as if there's a character background fill when I only have a parapgraph background fill applied. This seems like a bug either in iBooks Author or iBooks 2. Has anyone run into this? Any suggestions for a fix?
    You may have inadvertantly selected background character fill. You want a text box object that contains this text and then you want to select background fill for the whole text box.
    TIP
    I noticed that some text boxes can have a different background fills depending on the mode vertical or portrait. So I choose both views to check to see if I am getting what I want. I simply fill the background in both views.
    One has to be careful that only the text box is selected otherwise you will end up filling the background for selected text. In your example turn on invisibles and check to see if a few were included in your fill producing the effect you have displayed.
    Check both views in IA.

  • Correct way to implement cache as bitmap to deeply nested movieclips? help!

    I've been really stuck at this problem for a number of days and cant find any help online as to where im going wrong.
    1119: Access of possibly undefined property CloudsNAnim through a reference with static type Class.
    the setup as of now, there are 4 movieclips i want to cacheasbitmap. two copies of a vector movieclip called CloudS2 and two copies of one called CloudS4
    those are in a movieclip holding them called CloudsNear and another movieclip holding that which holds an animation of the CloudsNear movieclip moving past the screen in a loop which is called CloudsNAnim
    and that is inside the main level which is added to the stage called PlaneLevel
    where do i place the cacheasbitmap lines in my code to load them into memory before I load the main movieclips
    package
          // all my imports etc //
        public class MightyMend extends MovieClip
            public function MightyMend()
                // constructor code
                addChild(PLoading);                      //this loads my loading screen png to the stage
                stage.addEventListener(Event.ENTER_FRAME, loading); //reoccuring event listener happens as often as is set by FPS
                PlaneLevel.CloudsNAnim.CloudsNear.CloudS2.cacheAsBitmap = true;    
                PlaneLevel.CloudsNAnim.CloudsNear.CloudS4.cacheAsBitmap = true;     //these lines dont work
            private var PLoading:Bitmap = new Bitmap (new PlaneLoading());       
            private var PLevel:PlaneLevel = new PlaneLevel();   
            public function loading(e:Event):void //
                var total:Number = this.stage.loaderInfo.bytesTotal;
                var loaded:Number = this.stage.loaderInfo.bytesLoaded;
                var percent:Number = loaded/total * 100;
                trace (percent);
                if (total == loaded) //checks if all bytes for all movieclips have been loaded
                    stage.removeEventListener(Event.ENTER_FRAME, loading);
                    onComplete();
                     //the rest of the code staes that when oncomplete it will remove the loading screen and add the plevel to the stage etc..

    The movieclip is called Plane_Level but i had linked it to actionscript as a class nameed PlaneLevel
    im not sure if that makes a difference but when iadded that declaration
    the line :
    private var PLevel:PlaneLevel = new PlaneLevel();
    now gives an error
    1046: Type was not found or was not a compile-time constant: PlaneLevel.
    1180: Call to a possibly undefined method PlaneLevel.

  • Applying a solid fill after applying a gradient?

    In CS5.5, I create a basic shape and apply a gradient from the Toolbox, I now want to fill the shape with a solid color from the foreground swatch, though it doesn't take the color. What do I need to do?
    Thanks.

    Drag the foreground swatch {your cursor will change to a hand}, and drop the color on top of your gradient.
    Also if you are in this situation, you can use the < keyboard shortcut, or click on the first of 3 swatches under the foreground/backgorund swatches.

  • Applying scripted masks to sequential movieclips

    I am trying to add transitions to a simple slideshow. I can
    load img1
    into mc1 using MovieClipLoader.loadClip(), load img2 into mc2
    also using
    MovieClipLoader.loadClip(). I can place mc2 behing mc1 and
    create a
    transition using setMask(mask_mc) & mask_mc.play().
    Everything works fine, now I want to do the same thing for
    img2 and
    img3, and so on. I thought about using
    MovieClip.swapDepths(),clearing
    the setMask(), and loading the next image, but I am getting
    all tangled
    up in the process. Is swapping depths the only (best0 way to
    do this?
    Any suggestions would be appreciated
    Bill

    Thanks for the quick response Pete. They would need to be created as well. 
    I was hoping that they would continue on through pages, but not documents (for booked instances). That they would be numbered on the fly so that if you moved pages around they would renumber themselves and then you could run a script to fix the order in the table. I have the sequential numbering scheme down for automatic figure box numbering. I just cant figure out the in-text mid-paragraph numbering. What do you have for me MVP?

  • Gradient fill not displayed correctly after applying a rotation angle

    Hello,
    I've created a rectangleframe and applied a gradient fill, and afterwards I have applied a rotation of -90 to the gradient fill. After the rotation the gradient does not display correctly anymore (after saving the document to .idml I've noticed that the property GradientFillLength was not recalculated after rotation). Is there a command to force the update or am I missing something? This problem occurs in InDesign CS3/CS4.
    Thank you
    UIDList targetList(m_SplineUIDRef);
    InterfacePtr<ICommand> applyCmd(Utils<IGraphicAttributeUtils>()->CreateFillRenderingCommand(
                    gradientUid, &targetList, kTrue, kTrue));
    CmdUtils::ProcessCommand(applyCmd);
    InterfacePtr<ICommand> angleCmd(Utils<IGraphicAttributeUtils>()->CreateGradientFillAngleCommand(
                    gradientAngle, &targetList, kTrue, kTrue));
    CmdUtils::ProcessCommand(angleCmd);

    Thanks. I saw those threads but this is not that issue. I really think that this is a bug in the latest update for illustrator.

  • How can I apply a pattern above a color fill?

    Hello, I'd like to apply a pattern above a color fill, at the moment I apply the color fill, then I convert it to a smart object and apply the pattern, this because if I apply pattern and color fill, the color fill goes above the pattern covering it.
    There is a way for skip this procedure and apply the pattern above without smart objects?
    Thank you.

    Try this i am sure it will help you to achive the goal
    From your Layer Style -> Select Color overlay, then Change the Blend mode to "overlay"
    after that Select Pattern and it should work .
    here is the screenshots

  • Converting a movieclip to bitmap data (AS3)

    Hi,
    Just been gradually switching over to AS3, and I've hit a
    problem and its doing my nut in because I can't find a way to get
    it to work.
    Basically I want to take a portion of a movieclip and convert
    it into bitmap data into another movieclip.
    I know the basis would be something like:
    var b:BitmapData=new BitmapData(100,100,false);
    var bm:Bitmap=new Bitmap(b);
    mymc.addChild(bm);
    But I can't work out how to get that to pick up the movieclip
    that I'm trying to extract from.
    Hayyyulp.
    The link below is the kind of method I want, but because this
    is drawn at real time it would cause the area to expand with the
    movie clip, when all i want is to extract a portion and place it as
    a surface texture. (draw on the box on the right hand side)
    http://www.visitmyworld.co.uk/body.swf
    Also, I don't really think it necessary to update in
    realtime, that and id assume generating the bitmap area in real
    time would cause major slowdown issues. If anybody has any
    different solutions to what I propose then advice welcome.
    The reason id want a bitmap is that data id want to project
    could be complex layers, ie- items can be dragged on rather than
    just being drawn on.
    Cheers,
    Adam

    And also, whilst we're at it, I seem to have hit a bit of
    trouble with understanding to call a parent function
    ie - in AS2 you would put:
    _parent.myfunction()
    Any ideas?.

  • Fill & Stroke applied when changing graphic style to none

    Since you set new rectangles now default to having no stroke and no fill. I think it would be good to also do the same to setting the graphic style to none because it is still applying a white fill & black stroke.
    Maybe its something you just didn't notice when making the update, so I thought I would let you know.
    Thanks,
    Sean

    Vicky,
    You could make the arrowhead  into a Scatter/Pattern Brush, in the following way:
    1) Create the arrowhead,
    2) In the Brushes palette/panel flyout tick New Brush,
    3a1) Tick Scatter Brush,
    3a2) Set the Spacing (as the total length of arrowhead and gap relative to the length of the arrowhead, 200% for gap = length).
    3b1) Tick Pattern Brush,
    3b2) Set the Spacing (relative to the length of the arrowhead, 100% for gap = length).
    Scatter Brush will give you undistorted arrowheads pointing with a slight inaccuracy.
    Pattern Brush will give you bent arrowheads following the path accurately.

  • How do I create a new Style that can be applied to an object?

    Under the Assets menu there is a tab called “Styles”.  My question is how do I create a new Style that I can apply to an object???  A link to a tutorial or something like that would be useful because I can’t find anything!!!    Thanks in advance for helping me eliminate this frustration!!! 

    KomputerMan.com wrote:
    What I want to do is create a library of styles that are basically pictures of various wood types.
    There are a couple of approaches you could try.
    Clipping paths
    1. Draw the part shape as a closed path.
    2. Position the image of woodgrain above or below the shape where you want it positioned.
    3. Cut
    4. Select the closed path.
    5. Paste Inside.
    See: Using FreeHand MX > Contents > Working with Objects > Working with clipping paths
    Tiled fills
    1. Use autotrace to trace the image of the woodgrain, using plenty of colors.
    Using FreeHand MX > Contents > Using Imported Artwork > Tracing bitmaps > Tracing an image
    2. Group the traced paths (but not the image) and create a tiled fill,
    Using FreeHand MX > Contents > Using Strokes and Fills > Applying attributes to fills > Using tiled fill attributes
    3. Make a style from a tile-filled object
    4. Apply the style to other objects.
    Judy Arndt

  • How to scale animation? (or apply scale transforms?)

    Hi,
    I made a flash game in 640x480 pixels resolution with lots of skeletal animation and bitmap-graphics. Now I want to recreate the very same game for 1024x768. Graphicwise this is no problem, since I've drawn the graphics in a much higher resolution anyway. But I have problems figuring out how to scale all the animations (tweens) I did in the Flash IDE. Needless to say I can scale each MovieClip to 160%, so they have the right size. But then the MovieClips graphical pieces look pixelated, so I would like to replace those pieces with their higher resoluted equivalents. However, if I do so the higher-resoluted-equivalents are, of course, in turn scaled to 160% as well, so they end up far too big. What I am looking for at this point is a way to apply the scale to the MovieClip as well as its contents. Is there a way to do this? And if not, how would you go at scaling animations / tweens to higher resolutions inside the Flash IDE?
    Or do I have to recreate all animations? (That would be a lot)
    By the way, the animations are to be read by the DragonBones-plugin directly inside the Flash IDE (it creates a texture-atlas and xml-files out of the movieclips), so affecting things with Actionscript is no option.
    Best regards

    I also would recommend using a tool like the above mentioned. The process will otherwise require exactly what you don't want to do, replace each piece individually with adjustments.
    There is some JSFL code that can help here but honestly learning a new language just to solve this one short case issue isn't really advisable.
    It might be a good time to consider Stage3D however. While this is an even larger leap than re-importing and aligning all assets, the performance boost would be so amazing it would be well worth your time. 2D sponsored engines like Starling have a texture scale during import that can help here as it seems based on your desired resolution that mobile is or may be important.

  • Gradient applied to letters as a whole

    I'd like to apply a gradient to my letters, but I'd like the gradient to progress from the first to the last, i.e. the first letter is black, the middle letters get progressively lighter until the last letter is white.
    I DO NOT want each letter to have the same gradient of light to dark.

    Once you create outlines of text you have a group of coumpound shapes.
    But a Group of Compound Paths is not the same as a single Compound Path. If you swipe across a selected Group with the Grad tool, you will apply separate Grad Fills to each object in the Group. It will initially look like one continuous Grad Fill, but it is not.
    This is an important distinction, especially when explaining it to someone unfamiliar. Besides just being inefficient, if after doing this with a Group, the user then decides to, say, adjust the spacing between the characters, he will be moving the individual character's grad fill relative to those in the other objects, thereby breaking the merely apparent continuity.
    JET

Maybe you are looking for

  • Error in insert statement

    hi, i have used script for insert statement.while compiling it ,it shows error in declare section that to in t24_customer_code.can any body pls check out and tell me. the script is .... DECLARE a NUMBER := 10; t24_customer_code NUMBER; my_tab SYS.dbm

  • Error -6753 airport on pc with windows 8.1

    hi! I was getting error 10057 and I fixed it with disabling IPTCP V6 but now im getting error -6753. any ideas. Thanks.

  • E51 Balance checking restart Necessary

    After calling someone from airtel( Airtel is network operator in India) if Balance checking is done using *123# immediately after call, you get message balance could not be known. After this, Then Contacts calling wont happen at all and checking bala

  • Can I make a search rule in Aperture?

    I'm using Aperture 3, and fairly familiar with it but trying to organize a library from scratch.  I want to organize projects into folders by year and then event (e.g. 2012 --> Trip to Chicago, Baby Baptism, etc.).  I already have photos organized by

  • Sales Analysis with Customer Group Name

    Hi, Just want to know whether anyone knows how to add the Customer Group Name in SAP Standard Sales Analysis Report? I have tried to add in Sales Analysis layout designer, but the value reflected is not correct. E.g. when my customer group criteria i