Display problem with the lineTo method

Hello

There is a code to draw a horizontal line below. My problem is that the quality of the screen is bad. How to run the code in order to have a better view of the line?

var monDessin:Shape = new Shape();

addChild (monDessin);

monDessin.graphics.lineStyle (1, 0 x 990000, 1);

stage.addEventListener (MouseEvent.MOUSE_DOWN, clicSouris);

stage.addEventListener (MouseEvent.MOUSE_UP, relacheSouris);

stage.frameRate = 2;

var temp: Number;

function clicSouris(pEvt:MouseEvent):void

{

var positionX:Number = pEvt.stageX;

var positionY:Number = pEvt.stageY;

temp = positionY;

monDessin.graphics.moveTo (positionX, positionY);

pEvt.currentTarget.addEventListener (MouseEvent.MOUSE_MOVE, bougeSouris);

}

function bougeSouris(pEvt:MouseEvent):void

{

var positionX:Number = pEvt.stageX;

var positionY: number = temp;

monDessin.graphics.lineTo (positionX, positionY);

pEvt.updateAfterEvent ();

}

function relacheSouris(pEvt:MouseEvent):void

{

pEvt.currentTarget.removeEventListener (MouseEvent.MOUSE_MOVE, bougeSouris);

}

Change the line that defines your lineStyle use pixel reference:

monDessin.graphics.lineStyle (1, 0 x 990000, 1, true);

Tags: Adobe Animate

Similar Questions

  • Display problems with the Portege R600 and Win 7

    I have a R600 running windows 7, every two minutes, I have a display problem where where the vertical pixels seem to get every centimeter unaligned, so my screen seems to blur digital in bars across it.

    I have an external monitor attached and get the same problem with or without him. I have tired the driver of toshiba and intel driver.

    It seems to go away if I have windows min and max, but sometimes it doesn't. If I run my mouse an affected area, that it seems in trouble and sometimes it's not all screen.

    A refresh solves it.

    Anyone have any ideas?

    > I have an external monitor attached and get the same problem with or without him.
    Maybe I m wrong but in most cases if these symptoms are seen on the two displays (internal & external) then a graphics chip could be affected
    It would be the worst case, because that would mean that the motherboard needs to be replaced

    But just a question; have you noticed that using the previous Windows OS preinstalled by maybe Toshiba (Win XP or Vista), you must install the image of Toshiba again to verify if this display problem is still visible

  • Problem with the substring method

    I cannot using the substring method results in an "if" statement  To isolate the problem, I run the following code on the 9550 Simulator:

        String buff = "abcdef";
        String B = "";
        B = buff.substring(2, 3);
        Dialog.alert("B = " + B + ",  size = " + B.length());
        if (B == "c") Dialog.alert("Test passed");
        if (B != "c") Dialog.alert("Test failed");
        if (buff == "abcdef") Dialog.alert("xyz passed");
    

    When running I get the message "B = c, size = 1" message tracking "Test failed". and "xyz happened."  This last post seems to indicate that the "if" test is not having problem with channels.

    I tried to copy B on another channel and use it and adding spaces to the front and back and then cut, but none of those who have helped.  I even tried to change the test to B == buff.substring (2.3), but that no longer works.  When I change line 3 to B = 'c', I get the message "Test."

    Can someone tell me what is happening here?

    This seems to be the result wanted for me. The substring is only the letter c, because you start to position 2 (the third character because it is zero-based) and go down to 3 (which is impossible), but you check with the equality operator (==) and not the .equals of the String class that actually controls the characters method, then the test is a failure.

  • Problem with the getCharIndexAtPoint() method.

    Just try to set up a basic script to detect the text when the user clicks on it. The following code:

    trace (caesar_txt.getCharIndexAtPoint (300,300));

    GetCharacter();

    function getcharacter()

    {

    trace (caesar_txt.getCharIndexAtPoint (300,300));

    }

    Produced these results:

    42

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to fl.text::TLFTextField/getCharBoundaries()

    to fl.text::TLFTextField/getCharIndexAtPoint()

    at Untitled_fla::MainTimeline/getcharacter()

    at Untitled_fla::MainTimeline/frame1()

    If the first command the trace, the character index in this point (42) is returned, but as soon as the trace command is called in a function he faces a null object reference, apparently in the getCharBoundaries method. The field of text in question exist on the stage, it is not created in the code, but I doubt it would be a problem. Appreciate any help you could give me.

    I think you found a bug. I can reproduce it. The reason I think this is a bug is disable Word wrapping (select textfield, go to pass container and flow, defined behavior "Multiline no film"). The bug seems to only happen with active wordWrap.

    I produced the TLFTextField with code and also placed on stage to hand, the two error if the word wrapping is enabled.

    Disable word wrapping made your mistake disappear?

  • Problem with the Paint method

    Hello guys,.

    I develop a map-like application,

    the screen contains key components of towing,

    -on the upper part is an ObjectChoiceField where the user can select a card

    - and below which is on the plan that the user has selected

    The problem is that I use the paint method to allow the user at the image of pain, what causes my ObjectChoiceField to disappear. Any help? Please be easy on me, I'm totally new

    Example Code:

    private static final int HORZ_SCROLL_FACTOR   = 10;
        private static final int VERT_SCROLL_FACTOR = 10;
        int left = 0;
        int top = 0;
        int maxLeft = 0;
        int maxTop = 0;
    
        final String choices[] = {"3", "4", "5", "6", "23"};
        private ObjectChoiceField choiceField;
    
        private BitmapField imageOutputField;
        Bitmap bitmap;
    
        public NetworkingMainScreen() {
    
            setTitle("AUC Maps");
            imageOutputField = new BitmapField();
            choiceField = new ObjectChoiceField("Pick a Map:", choices)
            {
                protected void fieldChangeNotify(int context)
                {
                    getURL();
                }
            };
    
            add(choiceField); // doesn't appear
            add(new SeparatorField()); // doesn't appear
    
            add(new LabelField("Map retrieved:")); //doesn't appear
            add(imageOutputField);
    
        }
    
        protected void paint(Graphics graphics) {
            if (bitmap != null) {
                graphics.drawBitmap(0, 110, imageOutputField.getBitmapWidth(), imageOutputField.getBitmapHeight(),
                        bitmap, left, top);
            }
        }
    

    You try to create a screen where you can move an image larger than the screen?

    Try this:

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-scrollable-image-field/TA-p/444955

    Have the user choose the card before arriving at the screen or use more menu items.

    The moving image field must focus to work properly. This scrolling while being able to focus on the ObjectChoiceField image will be delicate.

  • Display problems with the iMac

    screen-problems.jpg

    The latest version of PS CC 2014 and 2015 is now made of images like that.  This happens usually when I have already some open images.  I have this iMac for more than three years and it is that recently I've had this problem.  I removed all my plugins NIC has even thought that they have not been installed.

    Sometimes using the maginifier to resize the image, helps, but just as often it is not.

    I work in PS every day and I am constantly seeing that.  It's not fun.

    What is the answer in this thread help? https://forums.Adobe.com/thread/1855166?q=black%20and%20White%20squares

  • Display problems with the E40

    Recently on an accident, I deleted a program on my computer that allowed me to see what the volume level was if I has increased or decreased. This is true also for when I pressed the button caps lock or brightness. The counter for these options button no longer appears and I need to know the name of this program of re - install. Are there other solutions such as re - install the graphics driver?

    Hi bizzo1357 and welcome to the community.

    It is the utility of keyboard shortcuts.  It is under the software and utilities on your driver page.

    Dave

  • Hello! The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that s.

    Hello!
    The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that the server redirects the request for this address in a way that it will never end." How to solve this problem? Please excuse me for my English.
    Sincerely, Vsevolod.

    This can be caused by corrupted cookies or cookies that are not sent or otherwise blocked.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    See also:

  • having display problems with my macbook air, first version of 2015. When I turn on my macbook, after boarding the password, then press on enter three lines (not really they look more like flashes coming from the top of the screen appear) in

    having display problems with my macbook air, first version of 2015. When I turn on my macbook, after boarding the password, then press on enter three lines (not really they look more like flashes coming from the top of the screen appear) in the colors Blue, green and red.

    also when I turn off my laptop just until the display on the top of the screen that is 2 and a half inch thick green line appears and goes about a second.

    help someone?

    Thank you

    Howdy Yaser of zoysia,

    It seems that your screen displays some graphical anomalies when you connect to your user name. I would use these troubleshooting steps in the following article on the resolution of screens:

    Restart your Mac in safe mode to reset the default display resolution.

    If booting safe mode doesn't resolve the problem, reset your Mac NVRAM and SMC to reset the video ports on your Mac to their default values.

    From: get help with graphics issues on external displays connected to your Mac.

    Thank you for using communities of Apple Support.

  • Problems with the Display Mode target on end 2009 27 "iMac

    Used late 2009 iMac 27 "in the view target in conjunction with a Dell XPS tower with i7 processor, Windows 7 and the best graphics card I could afford at the time connected by HDMI to mini display port cable.  Worked well for years.  Set aside Dell for a few months and the update of the iMac to El Capitan OS 10.11.3.  Recently tried old setup with same Dell PC and was able to move from Mac to PC, but the PC screen resolution was at the lowest setting. I got an error message when enabling/disabling to PC who said there was a problem with the port causing mini display of the system back to the lowest resolution. Impossible to reset at a higher resolution.

    I tested the Dell PC on another monitor, and it works very well at higher resolution (2560 X 1440). Now, when I reconnected it to the iMac (which works fine), the screen becomes black.

    Is it possible that the operating system upgraded (El Capitan) is not compatible with the targets using mini display port Display Mode?  Any ideas?

    Use your iMac as a display with the target - Apple Support Display Mode , also consider having a bad cable or connection. Does not hurt to try different cables, they can and will the bad!

  • Satellite L750D-1FD - problems with the display driver

    I got this laptop from my uncle and it was filled with junk and crapwares so I did a clean reinstall and upgrade Windows 7 Home to ultimate. I have a problem with the GPU, windows does not recognize it, or doesn't fly chart AMD.
    Processor is AMD A8 - 3520 M APU, and I think that the GPU is a Radeon HD 6620 G or something before the re-installation. I can't change the resolution, it stuck at 800 x 600, memory shows by n/a, Direct X features are not available, not from the downloaded display driver Toshiba worked.
    Dxdiag appears to the:

    Name: Standard VGA Graphics adapt
    Manufacturer: Advance Micro Devices, Inc.
    Chiptype: AMD ATOMBIOS
    : Type DAC: 8 bit
    Memory Approx.Total: n/a
    Current display mode: 800 x 600 (1 Hz)

    It nothing and can do with this laptop now because the GPU does not work as expected. Please, help me to solve this problem.

    Hello

    I found only Satellite L750D-1FD so I think you have this model. I want to help you on any other way. Here is the correct order of installation for Win7. Please check and install all the available stuff you can find on the download page of Toshiba - http://www.toshiba.eu/innovation/download_drivers_bios.jsp

    Win7 SP1
    4.9.2.0 TOSHIBA supervisor password utility
    TOSHIBA HW Setup Utility 4.9.2.0
    TOSHIBA Assist 4.02.02
    TOSHIBA ReelTime 1.7.18
    AMD driver 1.0.0.52 xHC
    8.834.1 - 110420 a-118118C-Toshiba AMD display driver
    TOSHIBA value added package 1.5.10.64
    ATI HDMI Audio Driver 7.11.0.7710
    Conexant Audio Driver 8.51.1.0a
    Wireless LAN driver
    Synaptics Touch Pad Driver 15.2.11.1
    V4.07 Bluetooth Monitor
    Atheros Bluetooth Driver Package v1.0.7 Filter
    Battery Bluetooth for Windows by Toshiba v8.00.06 (T)
    Atheros LAN Driver 1.0.1.50
    Card reader Realtek 1.0.0.14
    TOSHIBA 1.0.4 Wireless LAN indicator
    TOSHIBA Sleep 1.4.2.8 utility
    3.1.8 TOSHIBA face recognition
    TOSHIBA eco Utility 1.3.2.64
    TOSHIBA HDD/SSD Alert 3.1.64.8
    TOSHIBA PC Health Monitor 1.7.7.64
    ConfigFree 8.0.38
    TOSHIBA Web Camera Application V2.0.0.21
    TOSHIBA V4.00.7.01 VCR - HAS
    TOSHIBA resolution + plug-in for Windows Media Player 1.1.0
    TOSHIBA Disc Creator 2.1.0.9 for x 64
    TOSHIBA Network Device ID registry setting tool 3.0.32.4 - 16_wMSI
    TOSHIBA Media Controller 1.0.86.2
    TOSHIBA Media Controller plugin 1.0.6.1

    If you need assistance more let us know.

  • problem with the Finder - files and folders displaying incorrectly

    After acquiring a new iMac, I noticed a problem with the Finder - files and folders are displayed wrong (see table).

    This is what happens always after the files have been transferred from one folder to another. I was reminded of my days of using Mac OS in the 1980s when automatic setting of files was not so "automatic." I use Mac OS for decades and I don't remember the last time I had to think about GUI problems like that.

    Other problems in the graphical display of files and folders were introduced, such as when you have hundreds of files in a single folder, you end up deleting about 30 to 40 of them say in a particular section, and you end up with gaps of the ChartSpace where files used to be, that is the remaining files automatically rearrange themselves (fill in these gaps) - never. A week later, you open the folder, and the gap of GUI is still there.

    I decided to do a clean install of the operating system but nothing works.

    Is there some setting in Prefs I'm missing?

    Hi there highland99,

    Looks like your folder icons are not accommodating themselves automatically you plan to do. To me, this indicates that you have organize by the None value in the view menu. You can change the way files and folders are prepared automatically by clicking on view > reorganize by and selecting how you would like that fixed.

    Thank you for using communities of Apple Support.

  • Problems with the display of the 3D graph

    Hello world

    I use a 3-d chart in one of my screws and I have problems with the display. See what it shows by yourself:

    So, as you can see, the chart does not correctly display the data. But one thing I know, is that the data are sent correctly, because when I copy the LabVIEW graphic and paste it into paint, what I see, this is the graph displayed correctly:

    Anyone know what may cause the problem? I also have a similar problem with a waterfall in 3D.

    You can always download the updates of ni.com so.

    I also went through a documentation on known LV 2011 issues. I was able to find something interesting onthis page:

    3D image controls can display transparently or LabVIEW crash on some graphics cards

    The 3D Picture Control is based on an OpenSceneGraph that uses OpenGL. It was noted several reports of the 3D image control crashing LabVIEW. In almost all cases, it was an Intel graphics integrated into question. This accident is due to a mismatch of the graphic material. Note: most 3-d charts use the 3D picture control

    Some possible workarounds are:

    • Update the video driver
    • Enable/disable hardware acceleration
    • Enable Aero in Windows 7
    • Disable Aero in Windows 7

    I might try these workaround solutions and see if any of them work for you.

  • After submitting my info, I had the SERVER ERROR: 500 internal server error! There is a problem with the resource you are looking for, and it cannot be displayed. :

    Over the four days, I've lost two e-mail accounts:

    1 * e-mail address is removed from the privacy *

    2nd * e-mail address is removed from the privacy *

    I went to www.windowslivehelp.com

    I filled in all the information and answered all the question. I provided

    the email address where I can be reached: * address email is removed from the privacy *

    But when I click on submit

    "The display shows:" Server error

    500 internal Server Error. There is a problem with the resource you

    can are looking for, and it cannot be displayed' you explain or tell me

    How can I return my email accounts. Thank you and best regards

    B.Okediji sanogo

    {deleted}

    E-mail address is removed from the privacy *.

    Hi Zacheus B.Okediji,

    1. what web browser do you use?

    2. when the problem started?

    The website you are visiting had a server problem preventing the display of the Web page. It often occurs due to maintenance of the site, or due to a programming error on interactive websites that use scripts.

    For more information, see the following article:

    Get help with the Web site (HTTP error) error messages.

    If you use Internet Explorer, you can read the following article and try steps 2, 3 and 4 to solve the problem.

    Internet Explorer is slow? 5 things to try

    Note: Resetting the Internet Explorer settings is not reversible. After a reset, all previous settings are lost and cannot be recovered.

    You can also visit the following links to support Windows Live:

    "Server too busy", "Internal Server Error" and we do little maintenance to improve the service.

    Internal server error when trying to open hotmail

    Hope this information is useful.

  • Problems with the old game; Total Annihlation. Display a horizontal bars, turns into a rainbow of colors. Help, please. I love this game.

    I have display problems with a game that I just downloaded. The game is Annihlation Total; the game does not appear correctly. He works for a few seconds, all the graphics turn Rainbow and I can't seem to stop. Tried to run in compatibility mode; did not work. I hope there is a solution because this is one of my favorite games...

    Hi razorbladeapple,

    (a) what operating system do you have? And also to indicate the version?
     
    There is currently no information on the compatibility of the game with Windows 7.
     
    (b) is the display horizontal bar change only whem you play the game?
     
    (c) you have installed the updated display drivers?
     
    Some devices have drivers you need to install yourself. If you download a driver that is not self-installable, follow these steps:
     
    You must be logged on as administrator to perform these steps.
     
     
    Contact GT Interactive and check what they have to say about the compatibility of the game with Windows 7 because they are the best people to offer support.

    Aziz Nadeem - Microsoft Support

Maybe you are looking for

  • Satellite Pro M15-405 - Permanent reboot cycle with 1 GB of RAM

    So I have an old Satellite Pro that I needed to make it work again since its my only laptop. I did some research and discovered that my mode has a maximum upgrade to 1 GB of RAM SODIMM. I took out the stock 256MB 266 MHz PC2100 RAM and replaced with

  • Google links no longer work after iOS 9.3

    After update to iOS 9.3 on my iPhone 6 Plus I can no longer click on the Google search links more. Tried in Safari and Chrome. Works well with Bing.com. If I hold down on the link and choose open in a new tab, it works. restarted apps-> same result T

  • HP officejet pro l7780 all in a problem of scanning windows 7 64 bit

    First could not scan, replaced OS, OS reloaded, downloaded at hp, Hp solutions/scan came back. Now when I use the scan works but (always) arrives with 8.50 x 14 page scannee.00 even with a 8.50 x 11 printer page. The image size is 300 dpi.  When I ha

  • Is better or record persistence store

    HELLO developers, I recently did a project BB, which uses huge DB, I have implemented this in the record store. but the problem is its takes more time to write and to recover the DB.  If one of my friends told me to use the persistence instead of rec

  • BlackBerry Smartphones Blackberry Torch 9800-device update problems

    Recently received a notice on my BB Torch 9800 that my device was in need of an update of the software of the device of the RIM. Update I noticed that all my settings have changed. All the programs I downloaded now passwords still need once and all m