Problems rotating shape with anchors

Hey everyone,
Just learning Java and I'm trying to rotate an oval around in a circle on a fixed point. The problem that comes up is that when the angle changes, the oval moves it's center. I can't get an anchor in place and rotate around it.
I've looked everywhere for possible fixes and none seem to be working. I think at least I need an AffineTransform. My code (snippet) is below. Any help is greatly appreciated.
public void paint(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
AffineTransform rotator = new AffineTransform();
rotator.rotate(Math.toRadians(45),37,45);
g2.setPaint(Color.red);
g2.setTransform(rotator);
g2.fillOval(0,0,100,150);
Any ideas why it's not anchoring?

Blah, db beat me to the punch.{color:#000080}Yay! First time I ever did that, and today's a bad day... got 9.71 kbps (yes that's bits, not Bytes) average over the last 2 hrs or so...
<aside>^happy I guessed right, too^</aside>
db{color}

Similar Messages

  • How to distort a irregular shape with anchor points around it

    Hi,
    I want to skew the irregular shape with anchor points around it.If any body point any samples please help me.
    with thanks,
    Srinivas

    If you want the fill to follow the boundary, here's one way to do it, more easily done than demonstrated:

  • Creating a symbol from shape with gaussian blur = problem

    I am trying to create artwork to map to a globe using the 3D revolve effect...the problem is the shape/layer I'm using to create the "glow" effect (compound path filled with white and a gaussian blur applied):
    When I create a symbol out of this, here is the problem (note the "excess" areas on the top and right):
    ...resulting in this messed up globe...
    Doing an outer glow effect instead of gaussian blur results in the same thing (its definitely the blur causing this, deleting the shape fixes the problem).  Expanding the shape with the blur results in an image the same size as the bounding box in image 2 above. Any ideas how to address this?
    thx

    Yep, that did it! (something strange going on now with the longitude/latitude lines going thru India, but I'll work on that later)...Thank you!

  • [CS3] GREP-Problem with Anchored Objects

    Hi,
    I've the following problem:
    Lines beginning with a, b, c etc. should be formatted equally, so I use the following GREP:
    Search:
    ^([a-z])(\.??)([ \t])
    Replace:
    $1.\t
    Now there are some abc lines, which begin with an anchored object, so I tried:
    Search:
    ^(~a*?[a-z])(\.??)([ \t])
    Replace:
    $1.\t
    But with this, the anchored object is deleted. Is this a bug or am I doing something wrong?
    Thanks
    Tobias

    That's a known bug -- Dave Saunders discovered it, to his surprise, I might add. There seems to be no reason for it.

  • Problem in moving Rotated Shape object

    Hi All,
    I want to move the rotated shape object based on the mouse movement
    m able to move the object which is not rotated, but m facing the problem when i move the rotated object its moving position is not correct . I am expecting to maintain both shape objects movement is same, i mean if i did mouse movement to right rotated object moves upwards and normal object moves towards right insted of moving both r moving towards to right.
    Pls help me
    the following code is m using to moving the object
    The one which in red color is not rotated and the one which is in black color has rotated.
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import java.awt.Shape;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
    import java.awt.geom.AffineTransform;
    import java.awt.geom.Point2D;
    import java.awt.geom.Rectangle2D;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import com.clinapps.LDPConstants;
    public class MoveRotatedObj extends JFrame
         public MoveRotatedObj()
              JPanel pane = new Dorairaj();
              add(pane);
         public static void main(String[] args)
              MoveRotatedObj f = new MoveRotatedObj();
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.setSize(400, 400);
              f.setLocation(200, 200);
              f.setVisible(true);
         static class Dorairaj extends JPanel
              implements
                   MouseListener,
                   MouseMotionListener
              Shape o = null;
              Rectangle2D rect = new Rectangle2D.Double(
                   10, 10, 100, 100);
              Graphics2D g2 = null;
              boolean flag = true;
              int x=10,y=10,x1, y1, x2, y2;
              AffineTransform af = new AffineTransform();
              AffineTransform originalAt = new AffineTransform();
              int origin = 0;
              public Dorairaj()
                   addMouseListener(this);
                   addMouseMotionListener(this);
              protected void paintComponent(Graphics g)
                   super.paintComponent(g);
                   g2 = (Graphics2D) g;
                   g2.draw(new Rectangle2D.Double(0,0,500,500));
                   g2.translate(origin, origin);
                   g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                        RenderingHints.VALUE_ANTIALIAS_ON);
                   rect = new Rectangle2D.Double(
                        x, y, 150, 100);
                   g2.setColor(Color.RED);
                   g2.draw(rect);
                   g2.setColor(Color.black);
                   originalAt = g2.getTransform();
                   g2.rotate(Math.toRadians(270), 200, 200);               
                   g2.draw(rect);
                   g2.setTransform(originalAt);
              * Invoked when a mouse button has been pressed on a component.
              public void mousePressed(MouseEvent e)
                   e.translatePoint(-origin, -origin);
                   x1 = e.getX();
                   y1 = e.getY();
              public void mouseDragged(MouseEvent e)
                   x2 = e.getX();
                   y2 = e.getY();
                   x = x + x2 - x1;
                   y = y + y2 - y1;
                   x1 = x2;
                   y1 = y2;
                   repaint();
              public void mouseMoved(MouseEvent e)
              * Invoked when the mouse button has been clicked (pressed and released)
              * on a component.
              public void mouseClicked(MouseEvent e)
                   repaint();
              * Invoked when a mouse button has been released on a component.
              public void mouseReleased(MouseEvent e)
              * Invoked when the mouse enters a component.
              public void mouseEntered(MouseEvent e)
              * Invoked when the mouse exits a component.
              public void mouseExited(MouseEvent e)
    Edited by: DoraiRaj on Sep 16, 2009 12:51 PM
    Edited by: DoraiRaj on Sep 16, 2009 1:00 PM
    Edited by: DoraiRaj on Sep 16, 2009 1:07 PM

    Thanks for replay and suggestion morgalr,
    I mean MoveRotatedObj1 is MoveRotatedObj only jsut m maintaing a copy on my system like MoveRotatedObj1.
    finally i solved my problem like this ,
    Is this correct approach m followinig or not pls let me know .
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import java.awt.Shape;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
    import java.awt.geom.AffineTransform;
    import java.awt.geom.Point2D;
    import java.awt.geom.Rectangle2D;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import com.clinapps.LDPConstants;
    public class MoveRotatedObj extends JFrame
    public MoveRotatedObj()
      JPanel pane = new Dorairaj();
      add(pane);
    public static void main(String[] args)
      MoveRotatedObj f = new MoveRotatedObj();
      f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      f.setSize(400, 400);
      f.setLocation(200, 200);
      f.setVisible(true);
    static class Dorairaj extends JPanel
      implements
       MouseListener,
       MouseMotionListener
      Shape o = null;
      Rectangle2D rect = new Rectangle2D.Double(
       10, 10, 100, 100);
      Rectangle2D rect1 = new Rectangle2D.Double(
       10, 10, 100, 100);
      Graphics2D g2 = null;
      boolean flag = true;
      double lx, ly;
      int x = 10, y = 10, x1, y1, x2, y2;
      int l = 20, m = 20;
      int angle = 270;
      AffineTransform af = new AffineTransform();
      AffineTransform originalAt = new AffineTransform();
      int origin = 0;
      public Dorairaj()
       addMouseListener(this);
       addMouseMotionListener(this);
      protected void paintComponent(Graphics g)
       super.paintComponent(g);
       g2 = (Graphics2D) g;
       g2.draw(new Rectangle2D.Double(
        0, 0, 500, 500));
       g2.translate(origin, origin);
       g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
        RenderingHints.VALUE_ANTIALIAS_ON);
       rect = new Rectangle2D.Double(
        x, y, 150, 100);
       g2.setColor(Color.RED);
       g2.draw(rect);
       rect1 = new Rectangle2D.Double(
        l, m, 150, 100);
       g2.setColor(Color.black);
       originalAt = g2.getTransform();
       g2.rotate(Math.toRadians(angle), 200, 200);
       g2.draw(rect1);
       g2.setTransform(originalAt);
      public void mousePressed(MouseEvent e)
       e.translatePoint(-origin, -origin);
       x1 = e.getX();
       y1 = e.getY();
      public void mouseDragged(MouseEvent e)
       boolean left, right, up, bottm;
       int dx, dy;
       left = right = up = bottm = false;
       x2 = e.getX();
       y2 = e.getY();
       dx = x2 - x1;
       dy = y2 - y1;
       x = x + dx;
       y = y + dy;
       up = dy < 0;
       bottm = dy > 0;
       left = dx < 0;
       right = dx > 0;
       if (left || right)
        // b += dx;
        m += dx;
       if (up || bottm)
        // a -= dy;
        l -= dy;
       x1 = x2;
       y1 = y2;
       repaint();
      public void mouseMoved(MouseEvent e)
      public void mouseClicked(MouseEvent e)
       repaint();
      public void mouseReleased(MouseEvent e)
      public void mouseEntered(MouseEvent e)
      public void mouseExited(MouseEvent e)
    }

  • Problem with Anchor tag in windows Chineese XP OS

    Hi ,
    In my application I use an anchor tag to point to save item once page is submitted and reloaded.
    The URL with anchor is generated by the servelet dynmically
    URL will be something like this
    loaclhost:8080/myapp/CartonPlannerLoad?shipCode=996#2
    This works fine in Windows XP English OS.
    however when i ran the application in traditional chinese windows XP version it gives a java script error when the page is loaded.
    English translation of the error in chinese is
    "Wrong: Has not used the jurisdiction formula code"
    When i takeoff the #2(the anchor) and refresh page loads without any errors.
    How can i fix this issue while using the anchor tag.
    Is it due to the charset i have used. The jsp page i am loading consists of several includes. all the pages I have defined content type as follws
    contentType="text/html; charset=iso-8859-1"
    Could you plaese help me to fix this issue.
    Thanks in advance

    Hi ,
    In my application I use an anchor tag to point to save item once page is submitted and reloaded.
    The URL with anchor is generated by the servelet dynmically
    URL will be something like this
    loaclhost:8080/myapp/CartonPlannerLoad?shipCode=996#2
    This works fine in Windows XP English OS.
    however when i ran the application in traditional chinese windows XP version it gives a java script error when the page is loaded.
    English translation of the error in chinese is
    "Wrong: Has not used the jurisdiction formula code"
    When i takeoff the #2(the anchor) and refresh page loads without any errors.
    How can i fix this issue while using the anchor tag.
    Is it due to the charset i have used. The jsp page i am loading consists of several includes. all the pages I have defined content type as follws
    contentType="text/html; charset=iso-8859-1"
    Could you plaese help me to fix this issue.
    Thanks in advance

  • How to distribute equal spacing with anchor points?

    I am working in Lesson 5 of Adobe Illustrator CS5 Classroom in a Book, and am having a problem selecting the 2 anchor points to distribute equal space based on the bottom center anchor point of the violin.  The note said to reference chapter 2, which I have already been through, but even after reading the Illustrator Help dialog on pg 75, I am still at a loss.  Can anyone explain how to distribute this equal spacing of 2 anchors relative to one anchor point?

    csnpreggers,
    If anyone has any further advice or comment, I'd still love to hear from all parties.
    Especially when working with a finished symmetrical shape, such as a violin, which may have been created using mirroring, in other words elaborating on a shape, possibly with something unforeseen in the first round, and especially when it is inconvenient to cut paths to work with one half, you may use the instructions in small print using invisible ink at the bottom of item 3 in lesson 5:
    2 tips, using the Line Tool and Smart Guides:
    To make sure the left Anchor Point has the same same distance from the bottom Anchor Point, first ShiftDrag horizontally with the Line Segment Tool from the right Anchor Point to cross the path, then select the violin path and click it with the Add Anchor Point Tool where Smart Guides say intersect.
    Or to place both Anchor Points at the same time instead, first create a sufficiently long horizontal path with the Line Segment Tool below the violin path, then ShiftDrag it upwards to cross the violin path at the desired distances, then select the violin path and click it with the Add Anchor Point Tool where Smart Guides say intersect, both right and left.

  • AE CS5 - Shape Layer - Anchor point moves after position keyframe

    I am experiencing unintuitive (to me) behaviour with a brand new shape layer. Here are the steps to reproduce the issue. I have made a screen cap of the problem but can't figure out how to upload it to this forum.
    1. In an existing composition, I create a new Shape Layer
    2. By default the anchor point (center point) is in the dead center of the shape layer. Perfect.
    3. I turn on Position keyframing, and add a position keyframe at my current time
    4. Instantly the anchor point now jumps to the center of the composition, and so now when I scale my shape layer it doesn't scale properly
    If I try to use the Pan Behind tool, I get position keyframing. Besides, I SHOULD NOT HAVE TO DO THIS, since the anchor point was in the correct spot to start with, and it's only because of this keyframing "bug" that the anchor point jumps.
    What am I missing or doing wrong? How can I add a position keyframe to a BRAND NEW LAYER that has no other animation on it, and still keep the anchor point in the dead center of my shape?
    Thanks for your advice,
    Tom

    Thanks to Rick and Mylenium for your helpful answers. Rick, I'd prefer not to have to manually reposition, because I'm never going to be as mathematically precise as the software for positioning the Anchor Point dead center.
    Using the transform controls on the shape rather than the global container certainly did the trick! You guys are great. Thanks.
    [rant]
    In my defense as far as the constant exhortations to "RTFM", we all know that most veteran software users only go to the manual when there's a problem. You also know that Adobe's help system (particluarly in regards to search) has gotten worse over the years, not better. So when I run into a situation like this, I'm going to search through the help for what I believe the problem is: namely "anchor points", "transformations" and "keyframes", and maybe "shape layers". This is a fair amount of research, and it's exactly what I do as my first line of defense.
    The second line of defense that most tech savvy folk do, is a Google search; for example: "anchor point moves after position keyframe" or "After Effects shapes layer anchor point moves keyframe" etc. And you spend your time sifting through forums trying to find the relevant answers. I feel that THAT is my true due diligence, rather than reading the F'n Adobe manual that is so very very sparse.
    So after my due diligence, I turn to the experts communities, because there I know I will get educated, reliable help within a reasonable turnaround time. And because I myself contribute to these same forums in areas where I have higher than average expertise. The Adobe Forums have proven to be one of the great online resources.
    Finally, now that I have a great answer from two knowledgeable experts (thanks again!), I've also enriched the community, because of the way I have crafted my post title, hopefully the next poor ******* who has a similar problem and a similar methodology to finding resolution will stubmle upon my post because I've tried to overload the title with relevant keywords that will generate hits in google.
    Through my question, and your accurate answers, the global knowledgebase has improved.
    So forgive me for not memorizing the F'n Adobe online help. I go to the resources that are the most useful, expedient, and provide the greatest value as a whole.
    [/rant]
    Peace,
    Tom

  • Using Javascript to rotate images with the style.backgroundImage property & I leave the onload pg & return, the images have trouble loading.

    I'm using Javascript to rotate background images -->
    function rotateImages() {
    setInterval("startRotator()", 7000);
    var counter = 0;
    function startRotator() {
    var images = ["images/finance1.jpg","images/finance2.jpg","images/finance3.jpg","images/finance4.jpg","images/finance5.jpg","images/finance6.jpg"];
    if( counter >= images.length ) {
    counter = 0;
    var image = "url('" + images[counter] + "')";
    counter++;
    document.body.style.backgroundImage=image;
    The script is triggered by the load event when the homepage loads and the script only runs on the homepage. Everything works fine upon opening the homepage.
    If I leave the home page and return, the images will have trouble loading for about 3 to 5 cycles and I'll get white backgrounds for part of the time. The same thing happens if I enter the site from a page other than the homepage and then go to the homepage.
    I discovered, however, that if I enter the site at the homepage and then leave the homepage and return using the back button, everything runs fine. Apparently it then accesses a cached version of the homepage? Seems having two cached versions creates a conflict?
    This problem only happens with Firefox (I have ver 29.0.1). It does not happen on IE ver 11, Chrome ver 34, or Safari ver 5.1.7.
    I get the same problem with XP, Win7, and Win8 but, only on Firefox.
    Can you please fix this?

    Hey, I am trying to reproduce this here: [http://jsfiddle.net/u3TLb/]
    Mozillazine forums and the [http://webcompat.com] are more specialized in Web Compatibility, please ask there as well.

  • Irregularity with anchor behaviour - inserting anchors in anchored frames

    I am experiencing irregular behaviours with anchors and I'm not sure if it's a glitch or something I am overlooking. Sometimes it works, sometimes it dosen't, and I can't tell what is causing the difference.
    What I want is an anchored text fram to a main body text - which is an imag caption - and from this text frame I create a new anchored image frame, in which I put the image I am referring to in the caption. Sometimes this process works smoothly, while other times, when I go to insert the anchor in the anchored text frame it re-routes me back to the main body text from where I came. I have tried different insertion points within the anchored text frame, but nothing seems to solve the problem in this scenario....
    any ideas?
    thanks!

    Kat,
    I hope I understand your problem correctly.
    The paragraph containing the figure title is positioned in the side head with alignment set to Top Edge. Then that paragraph is followed by another paragraph, which of course is in the main text column, empty, and aligned at the top with the side head.
    With the insertion point in the second paragraph, import the image file. This puts the image below the line. Select the image, not the anchored frame, and scale it if necessary. If not created at the correct size, you probably want to scale it down to fit the width of the text column. Now press the key sequence Esc, m, p (note m and p are lowercase). The anchored frame shrinks to fit tightly around the image and changes it position to At Insertion Point. If you turn on Text Symbols, you will see the end-of-paragraph symbol at the lower right edge of the image, and the top of the anchored frame will align with the TOP of the side head text.
    You also have to be sure the line spacing of the paragraph holding the image is NOT fixed or Frame will move the image up.
    Hope this is what you need,
    Van

  • Active state not working in scrolling site (with anchor links)

    I'm design a scrolling site with anchor links and an horizontal menu on the top.
    when i publish the site and click on the menu buttons the site scrolling to the place of the anchor but the active state in the menu is not working.
    now... when i leave the main page (were the scrolling site is) and then return back to it all active states are working perfectly
    anyone have this bug? or any one know how to fix it ?

    Hmmm...I've just been playing around, and I think I got the Active State to work correctly.  I think my problem was not understand what Active State means.
    To answer your question, I was changing the Font Color and Box Fill Color of the Active State.
    I did not understand that Active State means the look of the Menu Item when the PAGE is active.  I thought it meant the look of the Menu item when the cursor is scrolling down the Menu (i.e. when the MENU is Active, not the page).
    Look at this page for an example of what I'm trying to achieve...
    http://www.pgavdestinations.com
    When you hover over the "Work" menu item, and move the cursor down the menu, the state of "Work" remains changed until you move the cursor off of that menu column. It does NOT return back to it's Normal state until you are off of that menu column.
    Is there a way to achieve this with the menu states in Muse?
    Thanks for the replies!
    Dave.

  • How to fill shape with pattern... and cut outline?

    I have an old plotter that works great for making drawings. I can fill a shape with a pattern, convert the pattern to outlines (or strokes) BUT my problem is that the outline of the original shape remains, and this will be plotted. I do not want an outline of the original shape, I want the pattern to create the shape. Any ideas? Also, shape stroke remains part of the art (even if stroke = none before object/expand/ungroup/divide)

    aha!
    made scribble
    expanded scribble
    put shape in front
    select all, ctrl+7 (masked scribble to shape)
    pathfinder/crop
    solved. thanks! sishamDSS!

  • CS5 Live Caption Issue with Anchored Images

    For some reason, InDesign will not let me add a live or static caption if it is anchored in the body. I can put it on the pasteboard and add it but not while it is anchored. Does anyone know of a work-around?

    Hi Richard,
    I have the same problem as you do. I'm working on user manuals, with hundreds of screen captures I want to flow with text. The Live caption feature is wonderful, only it does not work with anchored images! If anyone out there finds a way to deal with this issue, or knows of a patch or update to download...
    Jonathan

  • Creating shapes with blend modes in actionscript 3

    Ok I'm having a lot of trouble with ActionScript 3. I'm supposed to make five buttons that when clicked show a different blend mode using 2 or more shapes. Each of these blend modes also has to have a text box explaining what the blend mode does.  The assignment requires only one layer which is the actions layer. Everything has to be made using script only, which is why I'm having so many problems.
    Can someone please help me with this and simplify it has much as possible. I need to have some sort of answer sometime tomorrow. I thank anyone who helps.
    I have this code so far.
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    import flash.display.Shape;
    //create button instances
    var btn:darkBtn = new darkBtn;
    var btn2:invertBtn = new invertBtn;
    var btn3:overBtn = new overBtn;
    var btn4:screenBtn = new screenBtn;
    var btn5:subBtn = new subBtn;
    //add our interface objects to the main display list
    addChild(btn);
    addChild(btn2);
    addChild(btn3);
    addChild(btn4);
    addChild(btn5);
    //button positions
    btn.x = 12;
    btn.y = 395;
    btn2.x = 131;
    btn2.y = 395;
    btn3.x = 250;
    btn3.y = 395;
    btn4.x = 367;
    btn4.y = 395;
    btn5.x = 485;
    btn5.y = 395;
    //create a new font
    var mainFont = new GeorgiaRegular();
    //create a new text format object
    var mainFormat:TextFormat = new TextFormat();
    mainFormat.size = 18;
    mainFormat.leading = 4.5;
    mainFormat.font = mainFont.fontName;
    mainFormat.kerning = true;
    //create text field copy
    var mainTxt:TextField = new TextField;
    mainTxt.x = 307;
    mainTxt.y = 182;
    mainTxt.width = 221;
    mainTxt.height = 333;
    mainTxt.multiline = true;
    mainTxt.wordWrap = true;
    mainTxt.defaultTextFormat = mainFormat;
    mainTxt.autoSize = TextFieldAutoSize.LEFT;
    mainTxt.embedFonts = true;
    //create a URLLoader object
    var textLoad:URLLoader = new URLLoader;
    //create a new URLRequest
    var darkReq:URLRequest = new URLRequest ("text/dark.txt");
    var invertReq:URLRequest = new URLRequest ("text/invert.txt");
    var overReq:URLRequest = new URLRequest ("text/over.txt");
    var screenReq:URLRequest = new URLRequest ("text/screen.txt");
    var subReq:URLRequest = new URLRequest ("text/sub.txt");
    //test to see that the external file has completely loaded
    //once it has executed the function that will add the loaded content
    //to our dynamic text field
    textLoad.addEventListener(Event.COMPLETE, textComplete);
    //function to execute once the external data is loaded;
    //adds the external file data (the actual text) to our text field
    function textComplete(event:Event):void
        mainTxt.text = event.target.data;
    //create a new shape object
    var sq:Shape = new Shape();
    //use the lineStyle method of the graphics object to
    //set the line thickness and color
    sq.graphics.lineStyle(2, 0x000000);
    //use the beginFill method to fill the shape
    //with the specified color
    sq.graphics.beginFill(0xFF86600);
    //use the drawRect method to draw a rectangle
    sq.graphics.drawRect(175, 100, 100, 100);
    //use the endFill method to end the fill of the shape
    sq.graphics.endFill();
    //add our shaped to the display list
    addChild(sq);
    //create a new shape object
    var circ:Shape = new Shape();
    //use the lineStyle method of the graphics object to
    //set the line thickness adn color
    circ.graphics.lineStyle(2, 0x000000);
    //use the beginFill method to fill the shape
    //with the specified color
    circ.graphics.beginFill(0xFF9900);
    //use the drawCircle method to draw a circle
        circ.graphics.drawCircle(150, 150, 85);
    //use the endFill method to end the fill of the shape
    circ.graphics.endFill();
    //add our shape to the display list
    addChild(circ);
    //apply a blend mode to the circle
    circ.blendMode = BlendMode.MULTIPLY;
    //create a display object container
    var contentContainer:Sprite = new Sprite;
    addChild(contentContainer);
    contentContainer.x = 10;
    contentContainer.y = 24;
    contentContainer.width = 1000;
    contentContainer.height = 725;
    //set initial page
    contentContainer.addChild(mainTxt);
    textLoad.load(darkReq);

    blendModes can only be applied to DisplayObjects (Sprites, MovieClips, Bitmaps etc)
    For an example how to get it working:
    DisplayObject - Adobe ActionScript® 3 (AS3 ) API Reference

  • CAN Text Box/Shape with Text on top of Flash?

    Hi,
    i'm wondering, Do the Text Box/Shape with Text posible to put on top of the Flash?Do it able to read the Text after published?
    I'm scratching my head...Safari Have no problem to read it but Windows user can't read the text.
    Any idea?

    OGC Management wrote:
    ... if I checked the invert box it corrected the problem! 
    your going to chase your tail with that "solution".
    Select all (ctrl+a)(cmd+a) and set Text Wrap to none as shown.
    The item could be on a master page or a locked layer, but  you indicate you were able to modify the wrap attributes...

Maybe you are looking for

  • Sales /Outgoing Excise Invoice number Range for J1IIN

    Dear Gurus, We are doing STO from excisable plant 1000 to plant 1100. We created a PO with document type UB ( STO) and created delivery with reference to PO and created billing document ( delivery challan). Against billing document number we created

  • How to remove a partition of my hard drive

    I have an old 2007 HP Pavilian DV6000 series with Windows Vista. At some point, one of my husbands friends had the bright idea to partition the hard drive and put Linux (Ubuntu) operating system on my laptop. I haven't used this laptop in a few years

  • FI-SL Special Ledger Extractor (Delta not working) Issues

    Hi, We are creating extractor for Special Purpose Ledger using standard SAP methodology. Step1: Goto Transaction BW01 --> select the Summary table ---> Check for total records and line Items and then execute. This results in extrators created for tot

  • How to determine the types of interactive form fields

    Hello: I have written a utility that traverses through the objects in a PDF file, and finds the ones of Type "Annot", Subtype "Widget". I need to go one step down the hierarchy and determine which kind of widget (text, radio button, check mark, press

  • Poor Elgato results w/ 30" HD Display??

    I have an Elgato 200 unit hooked to my G5 (dual 2.7, so plenty of power) with 30" HD display. Though the Elgato unit works "ok", the picture quality is quite poor. I've thought that perhaps it's the same issue as when a non-HD signal is coming into m