Flash api bug around design work?

Hello, I came across a bug in api drawing flash where if you draw several things layers light opacity (24) get blotched especially if you use bitmap.draw (). I read somewhere that it is how the draw method has been coded, but I see no wrapper work. Any ideas?

I am considering the implementation of a custom drawing (AS3 or PHP) method to create the blotched and images...

Here are the solutions that work. Obviously, it is not limited in itself.

Your methodology did not work because you redraw graphics for the same object. In order for alphas to stick properly, it must create new objects.

The most important thing to make it work is set cacheAsBitmap true or draw the Bitmap. The two variants are presented below. If you change cacheAsBitmap false it stops working.

With very low alpha (0.01), you will need to run more than 2000 iterations of the loop to make transparency resulting opaque. My material does not very well

Also, even if it is not related to this topic, I noticed that you use instances of MovieClip. MovieClip is much heavier than the Sprite or shape. So, for this kind of testing, it is best to use the form - it is the lightest. Even in general, avoid as much as possible the MovieClip instances. Sprite must be the most used DisplayObjectContainer.

So, here's the code that extends your methodology.

This example uses forms directly with cacheAsBitmapset to true.

var rad:int = 10;
var s:Shape;

var rct:Shape = new Shape();
rct.graphics.beginFill(0xff0000);
rct.graphics.drawRect(0, 0, 100, 100);
addChild(rct);
rct.x = stage.stageWidth * .5 - 50;
rct.y = stage.stageHeight * .5 - 50;

container = new Sprite();
container.x = stage.stageWidth * .5;
container.y = stage.stageHeight * .5;
addChild(container);

var sTimer:Timer = new Timer(100, 1000);
sTimer.start();
sTimer.addEventListener(TimerEvent.TIMER, onTick);

function onTick(event:TimerEvent):void {
     rad += 5;
     s = new Shape();
     s.cacheAsBitmap = true;
     s.graphics.beginFill(0x000000, .02);
     s.graphics.drawCircle(rad, rad, rad);
     s.x = s.y = -rad;
     container.addChild(s);

     if (event.target.currentCount == 24) {
          var label3:TextField = textField("24");
          label3.x = 50;
          label3.y = 100;
          addChild(label3);
     }
}

This makes the bitmap:

var rad:int = 10;
var s:Shape;

var rct:Shape = new Shape();
rct.graphics.beginFill(0xff0000);
rct.graphics.drawRect(0, 0, 100, 100);
addChild(rct);
rct.x = stage.stageWidth * .5 - 50;
rct.y = stage.stageHeight * .5 - 50;

container = new Sprite();
container.x = stage.stageWidth * .5;
container.y = stage.stageHeight * .5;
addChild(container);

var sTimer:Timer = new Timer(100, 1000);
sTimer.start();
sTimer.addEventListener(TimerEvent.TIMER, onTick);

function onTick(event:TimerEvent):void {
     rad += 5;
     s = new Shape();
     s.graphics.beginFill(0x000000, .02);
     s.graphics.drawCircle(rad, rad, rad);

     var bmd:BitmapData = new BitmapData(s.width, s.height, true, 0x00000000);
     bmd.draw(s);
     var bm:Bitmap = new Bitmap(bmd);
     bm.x = bm.y = -rad;
     container.addChild(bm);

     if (event.target.currentCount == 24) {
          var label3:TextField = textField("24");
          label3.x = 50;
          label3.y = 100;
          addChild(label3);
     }
}

Tags: Adobe Animate

Similar Questions

  • Can't get my design work, if someone could lend some advice?

    Hello

    I'm a complete newb to v8.6.1 from Labview.  I come from the .net world and I have difficulties making the transition, some advice would be greatly appreciated.

    I have attached my .vi I came up with, but I hit a wall and I can not get this design works properly:

    I have two buttons on my .vi, a sample button and a calibration button.  When I hit the button in the sample, I need to write the values of my linear sensors in a file, it works fine.  When I hit the calibration button, I need get the values of the sensors, store them in a table for later use.  This works fine as well.

    The problem I have is that I have to use the values stored in the table in my button sample logic that does not work because I have cases for my condition 'False. '

    I'm even close to the right solution here?

    Thanks for the tips.

    There are different ways to do this. You need shift registers. You can also use the structure of the event. I tried to edit your existing vi just a bit and hope that's what you're looking for.

  • SanDisk cruzer flash drive glide does not work on my rt of surface, both are new

    SanDisk cruzer flash drive glide does not work on my rt of surface, both are new. Could not format it rises

    Hi Victor,

    Welcome to the Microsoft Community and thanks for posting the question.
     

    According to the description, the Flash Player does not work.
     
    This can happen because incorrect settings in the computer.
    Click on the link below and see if it helps.
     
    Answer to us if you are having problems with the Flash Player or any Windows problem, and we would be happy to help you.
     
    Good day!
     
     
    Hope this information helps.
  • How to use the Adobe Air?  Adobe Flash must Adobe Air to work properly?

    How to use the Adobe Air?  Adobe Flash must Adobe Air to work properly?

    Flash Player requires no AIR.

    AIR is a technology that allows Flash developers to make stand-alone desktop applications and mobile.  Some desktop applications of AIR (generally older) require the shared AIR runtime to exploit, while others are packaged in stand-alone applications with no external dependencies.

    Hope that helps.

  • Apparently, I have a missing MSVCP110.dll after going to Windows 10.  The result is that I can't open Flash CC Pro.  All work through this issue?

    Apparently, I have a missing MSVCP110.dll after going to Windows 10.  The result is that I can't open Flash CC Pro.  All work through this issue?

    Error: "msvcp110.dll missing file.

  • CSS designer works do not with the full URL in the stylesheet href

    I just started on a Wordpress site and I try to use the designer to CSS in Dreamweaver.

    If I change the stylesheet so that it uses a relative URL (href = "/ MySite/wp-content /...") the CSS designer works perfectly.

    But if the stylesheet uses a full URL ("href ="http://testserver/mysite/wp-content/...) CSS designer will show all properties for all that I select.


    Two ways the site perfectly using live view - and these two ways have my style.css sheet appearing as being related within the designer of CSS, but when using the full URL, the designer of CSS shows it as being empty.


    Unfortunately, WP automatically adds the full URL to its hrefs stylesheet.

    Very strange and frustrating problem...

    I found the solution - after hours of frustration.

    My Site Local folder and the folder on my server were both on a share network and both the value //server/foldername

    I mapped the share to a drive letter (w) and changed both of the locations on w:/foldername

    Now it works!

  • Is there an API for OIM Design Console?

    I was wondering if there is an API for OIM design Console.
    I would like to add fields to a connector resource and configure the commissioning of the resource of connector and the search for reconciliation through Java code.
    Adding more than 100 attributes of resources is a tedious process, and I would like a better way to automate this process.

    In the developer's guide, there are instructions for configuring a custom client that can connect to your application to IOM. You can use the tcLookupOperationsIntf api to add values to your search.

    -Kevin

  • Cannot find the OIA API for custom ETL work planning

    I'm looking for Oracle identity analytics API, using which I want to plan a custom ETL job that I have developed.
    Here is my requirement that I will develop an executable java command line I should be able to connect to the application of the OIA and schedule a task custom ETL, that is already provided on jobs.xml using cron expressions. I did a search for OIA API could not find, help me find the details of OIA API for custom ETL work planning.

    There is no such API exposed by OIA. However, because it uses the quartz Scheduler, you can find something useful if you look at the documentation of the API of quartz. Quartz is open source so just google it.

  • I can't get rid of the blue border around my work after its publication on the web

    I can't get rid of the blue border around my work after its publication on the web

    Lol fireworks will not help you with this. It is a CSS problem.  Try to add below:

    Nancy O.

  • Created with Flash CS6 app does not work on iOS6

    Hi, I have developed an application with Flash CS6 iOS and it works perfect on iOS 5.1, but today I updated my iPhone 4 iOS beta 6 for developers and my application do not work! Applications developed with CS5.5 work well on iOS 6. How to fix? I tried to save to the format flash cs5.5 and open it with CS5.5 for export, but it does not export anything! Please give me a solution.

    This morning I updated the Air SDK to 3.4 and my problem was solved. Everything works now as expected.

    Maybe it is a good idea to ship the CS6 version with the latest version of the SDK, or telling people to update.

  • Bug Flash possible? Does not work on Windows 7, explorer11


    I have a problem with Adobe Flash. It seems is not or to work properly and I'm trying to debug the problem to see if it a bug to Adobe or something else.

    I have two old laptops and new side by side to solve problems, both use the same version of windows 7 home, internet Explorer 11, adobe flash, directx 11, Norton, etc...

    But the newer faster i5 mobile Adobe Flash guard housing on.

    -J' checked (by report) all settings security to explore between all the computers seem to be the same.
    -Flash is enabled in internet explore 11, add-ons
    -latest version of flash has been installed and has been reinstalled (even a copy saved on the disk and run the disk offline).
    -down cache explore 11
    -flushed out of cache from adobe
    -active x of filtering is disabled

    -restart the computer.

    I find it a bit frustrating that what is originally flash malfunction, someone at - it ideas to try?

    on https://helpx.Adobe.com/Flash-Player.html
    It indicates that I installed the latest version

    on the Adobe - Flash Player: settings - global privacy settings panel Manager

    None of the panels is displayed

    but on the http://www.Adobe.com/software/Flash/about/
    It does not display the little saying version information window you have installed x.x.x.x or the red box of adobe bouncing displays it as on my laptop more old. but when you click on the global settings menu it says that you have installed the latest version...

    example: playing a flash game online, www.volvooceanrace.com loading the game asks to open a session, and then you hear sounds and then seems to not load, proceed to others, or crashes. There are 170 000 daily players using this flash game.

    First of all, check that the ActiveX filtering is configured to allow Flash content:

    https://forums.Adobe.com/thread/867968

    Internet Explorer 11 introduced a number of changes both in the way the browser is identified with remote web servers, and how it treats JavaScript for behavior targets specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the provider of content changes their site to conform to the new approach to development required by the modern versions of IE.

    You can try to work around these problems by using the compatibility view:

    http://Windows.Microsoft.com/en-us/Internet-Explorer/use-compatibility-view#IE=ie-11

    If it's too inconvenient, using Google Chrome may be a better alternative.

  • [locked] adobe flash player plugin doesn't work in FFox 3.6.8

    I run Windows XP Home Edition entirely automatic-implementation to date, have IE8 + FFox last browser 3.6.8 and your Shockwave Flash Player installed (as Admin)

    and plugin version 10.1.53.64.  FFox Plugin Check says "up to date".  At least 10 times a day, I get a "script error" Javascript alert when I try

    to view the Flash content. I have carefully studied this prob on your site, but can't find any answer to my prob, is why this thread.

    Please tell me:

    1. how to solve this problem, and

    2. why should I not COMPLETELY block all Flash content with freeware tools.

    It would be a shame, because I have 5 million hits on my YouTube (and other files swf/.flv-hosted vidsites)... but I have no option now but to consider

    your last updated unusable and incompatible with my Firefox sys secure. I did successfully dodging your attempt slyly unethical to default installation

    McAfee Junkware, as I am responsible for securing computers a bit in my cabinet. I use and regularly update / scan w /:

    AVG Antivirus, Spybot S & D + resident Teatimer and the free Zonealarm firewall. I have updated my Java and Javascriptscript and always keep

    Active JavaScript. I also run SpywareBlaster and occasional free Kaspersky, Panda and Virusscans F-secure. I have no viruses/spyware.

    I wrote my first line of code in 1968.

    The only problem I have and my users have is with YOUR product updates Flash/plugins in FFox, crashing and generate a Javascript error message.

    You have even completely locke my computer, which NEVER happens to me except doors t - it. I'm afraid, that I fell for the old trick of

    for v. 1 of dishes existing to be corrected subsequently, in evil M$ oft elsewhere.  If your products don't work with M$ oft OS and browsers.

    you violate the famous maxim success Google "don't be evil!"  And the common sense rule that content-delivery Netware

    should be independent of the browser. I know you the code for intrusive adware and helped. But I'm VERY tired of seeing

    a Javascrpt error message and words on my browser FFox "the plug-in Adobe broke down. Send the report of accident "-which I always do."

    I know Open Source goods urge you to hard, but yes, the. PDF Reader has BEEN designed to be the first common format other than ASCII.

    You're far short of accepting user comapared days. Your products are WAY overpriced bloatware. Please do not be the

    Bill Gates served-out pictorial content, where "there is ANY owner." That will kill your sales and inspire writers freeware that you can

    believe.  If you fail to correct this bug quickly in your freeware, you will suffer the fate of Vista. I NEVER buy in a 1.0 release, but you forced me to.

    and it does not work.  Fix it - put out a patch or a patch, or the community OPEN ALL SOURCE/SHAREWARE users like me will not even

    CONSIDER buying your products.  I write for your benefit, not mine. . PDF and Word/.wmv files are NEEDED by users. DON'T BE EVIL!

    Help me! I have already installed OpenOffice and BONES of my next sys will be a UNIX flavor...  You do business the WRONG way for users of 2010!

    Or you copy it exceeded, universally hated by pros M$ oft-business model? In less than a decade of time Internet, it will not even there HAVE one

    Microsoft-with the exception of those who are Net-Noobs full and can easily be bullied. IE8 is a magnet to virus constantly patched. Please

    Don't go down that road... for your own good.

    Him dé-Crasher

    [edited for content]

    I would like that having something to offer a solution to this problem. I have had several accidents and sent hundreds hundreds or reports of incidents to FireFox and Adobe, but apparently, they don't have anyone accompanying such questions. There may be some setting of the majical browser that allows Adobe products work because they are designed in the browser settings. Looks like if there were specific parameters, that Adobe would have made a very clear notice of them, before offering the free download, or it must have ben said in the installation process.

    Not everyone who uses a computer is a technical expert and should not expect to have all these answers. There are technical gurus however that supposed to work in the technical support Office, somewhere in the vicinity of which the error and accident reports are sent. It is an assertion that the people of Adobe don't do their job.

    Message edited by Jochem van Dieten

  • Flash and Silverlight don't work at all in beta 34.0, when Internet Explorer is working correctly with these; immediately arrived with Update Beta 34.0.

    Hello!

    Immediately after the Update Beta 34.0, Silverlight and Flash, completely stopped working in Firefox. I am running Vista Home Premium, Service Pack 2.

    They work fine in Internet Explorer.

    This happens in any website I want.

    For example, I can go on Youtube and the page will display a black box where the video should be, but there is no control of playback, or any way to activate the video. Clicking in the black box has no effect.

    On the site of game music, Grooveshark, the site does not recognize Flash installed at all. (If you have not installed Flash, this site displays a message each time. Grooveshark correctly recognizes that Flash has been installed by Internet Explorer.)

    I've updated the Flash plugin for the current version, which also has nothing.

    I have not reinstalled Firefox, or do a system restore, still.

    I just bought a new computer I was going to migrate to and withdraw from this computer, so I wasn't going to make heroic efforts to solve this problem. I reported this more on the order of a bug report.

    Thank you.

    Karl

    Karl,

    Do you by chance have Flashblock installed? I had checked before and did turn off but it seems was not enough. Update b 34, 1 break Flashblock who, in turn, breaks Flash and, for me, VLC. I had to disable (in Add-ons) and restart Firefox, and now everything is fine.

    I found this while digging for answers on the Mozilla forums and eventually find http://forums.mozillazine.org/viewtopic.php?f=23 & t = 2881007
    on Mozillazine.

  • API social does not work for me

    Social buttons API (FBchat) in are not available since the update to FF Aurora 29. The sidebar is available!

    The support article that covers 'FBchat', How does Facebook Messenger for Firefox work?, should probably be updated to Firefox Aurora.

    Firefox Aurora is a pre-beta test version, that is, it is still a 'work in progress'. I'm not test it myself. If you get a better response from someone familiar with Aurora, this is a bug report, that I found on the sidebar API Social, in which case it is useful:

    • Bug 960198 - no obvious option to display the sidebar SocialAPI

    Here's dawn release notes, pointing to more information on the new UI of Firefox:

  • iMac 4 k (end of 2015) photoshop screen flashing problem/bug

    Hello

    I'm a Retoucher, so I use Adobe Photoshop to do my job.

    Recently, I bought a new iMac 21.5 (end of 2015) with the cool Retina display 4 k.

    Configuration:

    OS X El Capitan

    Version: 10.11.3 (15 d 21)

    iMac (retina 4K, 21.5 inches, end of 2015)

    Processor: 3.1 GHz Intel Core i5

    Memory: 8 GB 1867 MHz DDR3

    Graphics card: Intel Pro Iris Graphics 6200 1536 MB

    But the happiness was gone soon after the installation of Adobe Photoshop and trying to do my job. The fact is that I found a disgusting bug. My screen goes black / begins to blink/flicker (the video is here - https://youtu.be/D-5dF3dvYmM).

    First my thought was - maybe it's a problem with the combinations of keys or graphics tablet. Then I turned off the Tablet and checked the shortcut key settings and tried once more - the problem has not disappeared.

    Then I tried to repeat the bug. I realized that there are not any sequence of actions. Screen flickers randomly. But I noticed - fact screen to browse more often (when you use the tools brush or pad), pressing CMD, SPACE, the [] keys.

    The next step was Google. I found a lot of these questions:

    https://discussions.Apple.com/thread/7349449

    https://discussions.Apple.com/thread/7401844

    https://discussions.Apple.com/thread/7370586

    https://forums.Adobe.com/message/8289188

    https://forums.Adobe.com/message/8337985

    https://forums.Adobe.com/message/8353487

    https://forums.Adobe.com/message/8252309

    https://forums.Adobe.com/message/8392296

    https://forums.Adobe.com/message/8157454

    I have already tried:

    (1) different combinations of the parameters of the advanced graphic processor - nothing has changed

    (2) passing off the coast of the use of the GPU - nothing has changed

    (3) update to my OS x to the latest version - nothing has changed

    (4) update Adobe Photoshop to the latest version - nothing has changed

    (5) restore default settings PS - nothing has changed

    There is ONLY a SINGLE REALLY WORKING solution - https://www.youtube.com/watch?v=8aGJBafQWTg

    + Chris Hong Here is a very ugly solution - I realized that this issue only happens when my cursor for eraser size is too large. I just went into preferences > slider and make the precise cursor. He stopped the issue of flashing. Although it makes the little hard work on photoshop.


    It's really worked, but done PS is usless to me (and as I understood it too for many users of the new iMac 4K).

    I tried to make a comeback to the iMac, but my dealer Apple told me that it is software problem, so that they can't return to my iMac and get a refund.

    Dear Apple or Adobe,

    Please solve this terrible problem.

    I look forward to your response and resolution of my problem.

    Thank you.

    Yours faithfully,

    Alyona

    PS Sorry for my English.

    Hello

    I have the same problem with my iMac nine 4K, the latest version of the operating system and Photoshop was last updated.

    I've contacted Apple and Adobe, but Adobe has no answer for us, and Apple says it's a software problem, Adobe has to solve.

    The really unique solution for not having the flashing black screen is the one you posted, made a comment on a Youtube video: set the cursor as "accurate".

    I agree with your prayer: Please Adobe and Apple fix this bug!

    Tatiana

Maybe you are looking for

  • HP Envy m6: cold damage

    I left my laptop in the cold (5-20 degrees) for about 2 hours.  When I started up the sceen had many top lines.  Some have disappeared, but they will disappear, and if not it means a new computer?

  • HP Photosmart C4780 all-in-One: Photosmart C4780 will not install on laptop dv7 Pavilin

    My C4780 will not install on my computer laptop dv7. I downloaded the current software on the HP site and tried to use the disc that came with the printer. In both cases, that the installation program begins to run, goes through four steps and when i

  • Cannot run Real Player or download games from Vista updates this weekend

    Since set windows to update this weeked - 3 automatic updates - now Real Player will not work and I can't download games.  Any suggestions?

  • ea3500 without ftp

    after update for smart WiFi, I can't access FTP USB or off-grid.Only one is accessible is the only router computer is attached to via network drive.FileZilla gives me this error..."The connection attempt failed with"ECONNREFUSED - connection refused

  • x 200 ban: that is it for?

    I plan to make one with the x 201 laptop. I read the description for the x 200 ban on the Lenovo site and I still don't see its purpose. Can I hook up an external keybord mouse directly to the x 201 laptop? Can I connect the monitor directly on the x