BitmapData.draw is not rendered content outside of the visible part of the canvas

My application has a canvas with a bunch of items to this topic and who has a scroll bar to see the entire contents of it, i.e. the canvas has a height of 200px, but objects in extend beyond the 200px all the way to 400px. When I pass this canvas object to my BitmapData instance which I created with a height of 400px, the result is that I get a 400px image, but only the top 200px are actually rendered. If I move the scroll bar down and you call the draw, I get the background of the canvas, rendered 200px on half superior of the BitmapData.

Is there a way to make all of the content of the object from the canvas and not only what is currently visible in the display window?

Thank you

Ruy

It is internal, which means that it is not documented, but it should be in the rawChildren or you can access it via mx_internal.  I think that if you set the height = 400, called validateNow() and bitmapData.draw then it might work.

You can also try setting scrollRect = null.

FWIW, people often have a print view that connects to the same model of data.

Alex Harui

Flex SDK Developer

Adobe Systems Inc..

Blog: http://blogs.adobe.com/aharui

Tags: Flex

Similar Questions

  • BitmapData.Draw () does not work with crossdomain images

    We develop a gallery of dynamic moving images using Flash 8 & AS2, for which images are called from another area. I used the Reflection class (in which bitmapdata.draw () of works) to achieve reflections. It works fine when the images are called from the same domain. But when the images are called from another area, the Reflection class does not work because bitmapdata.draw () does not work on images of crossdomain due to security sandbox. Although the images are appearing. I would be very grateful if anyone can answer, because I tried this for the last few days with little success.

    There is some information at the bottom of this page:

    http://livedocs.Adobe.com/Flash/8/main/00001950.html

    And here
    http://flashforever.homeip.net/blog/?p=4#comment-31

  • Lightroom "Edit In" feature sends only not to editors outside of the

    Hello

    I ran into an issue today with my Lightroom to Photoshop connection (which extends to other editing software as well). I have the most updated Lightroom (5.7) and the most up-to-date Photoshop CC 2014 (2014.2.1); I tried to send a photo to Photoshop for editing and nothing happens (even with all my external editor). I read about similar experiences on the adobe forum and the recent opinion on this question (which does not apply as it is already the latest version of PS). So I uninstalled Photoshop, then reinstalled by the recommendations I had read. Nothing has changed. So I uninstalled PS (including my old version of CS4), Bridge, and Lightroom. Then reinstalled Lightroom. Tried to export to another edition of software and it wouldn't work. I then uninstalled the extra editing software and re-installed PS. Lightroom won't always export. I don't know what for now... I could uninstall everything, but it's one heck of a pain... Any other suggestions or others running into this issue?

    Figured it out.

    In fact, it had to do with an incompatible camera profile (would not load again because of the PS was last updated). Thank you for all your help.

  • Fresh paint - can not paint, don't move the canvas. FRUSTRATING!

    Hello

    This has happened for a while now. I used to be able to open the fresh paint and draw as usual, but now every time I use the touch screen to draw or use the left button of the mouse, he simply dragged the canvas autour instead of fixing the paint. I have try all kinds of combinations, change the brushes, etc, but nothing works. Any suggestions? I restarted the app and restarting the computer and uninstall/reinstall the application.

    Help!

    Jonathan

    Hi Jonathan,.

    Thanks for posting your question in the Microsoft Community forums.

    I'm sorry to know that you are facing problems with fresh paint and I understand how frustrating it can be. Let me try and help you with the issue that you are facing.

    1. did you run the troubleshooter Apps?
    2. do you have an another user account on this PC? If so, have you tested the issue on the other user account?

    Try to run the utility of troubleshooting Apps. This tool can automatically identify and fix problems with the applications. If the problem persists, see the other steps mentioned in this article.

    A problem of an application:
    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    If you do not have a different user account, kindly, create and verify the result.

    http://Windows.Microsoft.com/en-us/Windows/create-user-account#create-user-account=Windows-8

    Let us know if it helps. If the problem persists, we will be happy to help you further.

  • BitmapData.draw () do not draw together MovieClip

    Hi, all.

    I'm doing a few skinny blitting to a rotating object by rotating once at startup and capturing a snapshot of BitmapData of each 5 degrees.  The problem I have is that the the BitmapData object draw() method resumes only the pixels in the MovieClip which are below and to the right of the alignment point.  If I change the MC so that the registration point is in the upper left corner, I sometimes what looks like most of the pixels, but the whole of the object turns in and out of the framework, since it revolves around the corner and not the centre.

    Has anyone encountered before, and if so is there a solution?

    Thank you;

    Amy Blankenship

    flexdiary.blogspot.com

    Information of BitmapData.

    BimapData will and can only caputure bitmaps unadjusted and always point TopLeft originally.

    However, it may sometimes seem like the captured bitmap filter effects or rotating, the thing is there not at least on the object in the draw was taken for target.

    If the object you draw children have turned to is opposed and filters etc they will appear in the draw by lot, because they were like children.

    Say that to turn something bitmap because you are blitting, this image will be a top left point of origin.  rotation 180 degrees even actually will mess up your draw.

    because top left original point is where you will turn around... not the Center.  so when you draw this image, it will always ONLY draw with is right and below 0.0

    It must be taken into account whenever you draw.

    for this purpose, first focus your bitmap with translate(-bitmap.width*.5,-bitmapHeight*.5)

    var: matrix new matrix())

    Matrix.translate(-bitmap.) Width*.5, - bitmapHeight *. 5)

    Matrix.Rotate)90 * (Math.PI / 180))

    Matrix.translate (bitmap. Width*.5, bitmapHeight*.5)

    Draw (bitmap, Matrix)

    Whoops swap bitmapHeight and width

  • Muse NOT RENDERING content creation simple widget in all breakpoints...

    I was the construction of office oriented websites with Dreamweaver since the late 90s. Just recently started to use the Muse and if SO is celebrated on the freewheel and is 'simple' 'sensitive' Web design (especially the latest version of) Muse, I find my work with Muse REALLY frustrating.

    I (initially) very excited by the promise of Muse is a Web site design process 'free-form '; and I felt 'better' on investment in software that had the support of an international company like Adobe, long a leader in the development of creative applications that allows users to evolve their visual content that they had ideas inside the head of brewing well enough.

    BUT I had a headache after the landing of building-out/adapt one other prototypes of page -I develop in Photoshop then build in (a very old version of) Dreamweaver - within the Muse now. SEE Imaging Services in Phoenix, Arizona: Photo editing, concept art and Lightroom training (Currently only the 'editing' and 'Skunkworks' Dreamweaver-built prototypes are powered and the link to the Company of Lightroom Phoenix works as well. And please NOTE: these pages work very well in multiple desktop browsers, as well on my fone chip so to load quickly even with WiFi a little lame on Chrome for Android.)

    - I'm thinking that each landing in MM-dot-com page will have a different 'look' that each gallery covers distinctly different content of imagery. It is my hope (from everything I read, all the promotional content, I looked on Muse - in particular the most recent update) I was going to find a more responsive and intuitive application to help me in creating pages to current content that I change my prototypes to achieve this goal.

    - It has always been my intention to keep my 'simple' sites and to build the navigation between the pages to be intuitive for the visitor; all animations - mainly rollovers, same rollover events complex (once again for Office display) as I've built here > The Book - chapters: roads, landscape, "Americana", Essays, links and more. Explore. intelligible, not wearing not too much like Candy for the eyes. My target 'public' is the other 'creative', busy people ready to explore, but not become overloaded on "cookie crumbs" in order to see what has prepared a website designer 'visionary' too clever-by-half. Nobody is going to find the patience for this.

    Now - all that said, here's the gist of my post:

    - In a couple of my galleries, it will be important for me to show the 'before' and 'after' versions of an image. (Exclusively Office days bearings worked very well, not so today with touch screens.)

    - So on a couple of separate pages image-the extension, I'm building, I thought using one of "before - after' widgets built by the community of people craft extensions to add content to Muse of coding." In this case, I used "WidgetsForMuse script. (It is quite functional. It's simple. It works as I would like to only it.)

    - HOWEVER, then the widget performs its function perfectly full screen in my desktop browsers that I reduce the viewport to simulate '1024', '786' and small breakpoints that the widget is unable to continue to operate. (Once again, please NOTE: have I not continued to experience a number any other strange events [cross-browser] as I did the other, different [really very "tame"] setting page designs in the efforts of my last month to understand how Muse 'works' so instead of bring this example to the first WidgetsForMuse people, I feel more like there is a problem-oriented Muse more and) ", as such maybe someone else has experienced anything like what I see with my work here.)

    I included a link to this short vid "unregistered" I posted on my Youtube channel for you guys show what I'm running in > problems with Widget - YouTube

    I can certainly describe, explain and post additional-screenshots, maybe another short screen cap of vid how Muse makes my creations page illustrating how Muse seems ' does not not his promise "in future discussions.

    Thanks (in advance) for your suggestions and perspective. mm

    I have the final solution ready to try here:

    Please resize the browser through all the breakpoints 1248/1024/680/480 to see how it works.

    The Widget will be updated Monday (widgetsformuse.com)

    You are able to use as many different 'before - after widgets' as you want on a single page.

    You can leave 'fully sensitive' or set the width at each breakpoint.

    Hope you like it.

  • Help Popup not rendered HTML based on the referenced element.

    I have a named item & P104_GENDER on a page that references a hidden item, which is calculated using a calculation that uses a database function to retrieve data to help for the item and fill in the hidden element.

    So for this article, is the source of help & P104_GENDER_HELP. & P104_GENDER_HELP is filled with "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female' according to the debugging session.


    When I click on the label to display the context-sensitive Help window, it displays: "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

    Apex 3.X, the HTML would render correctly and it would display:

    Please enter a sex. Possible values are:
    -Male
    -Female

    But in Apex 4.0, it makes just the text as if it had no HTML implementation involved form, i.e. "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

    However, if I put the source directly for help on the question "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female", without reference to the hidden item, it renders properly in HTML format.

    I tried to change my label template to use javascript:popupfieldhelpclassic instead of the javascript:popupfieldhelp function, but I get the same wrong result.

    When I looked at the source that is generated in the pop-up window when you reference an element hidden, is to convert the < and >, symbols of "& lt" and "& gt" respectively, which means it does reference the text from the element hidden in the form of literal text and convert anything that resembles HTML in plain text instead of treat it only as HTML. I can see why this would be useful for some people, but it's not so useful to me, especially since he is used to the opposite effect.

    They have both have in common, is that they use the wwv_flow_item_help.show_help function. I guess that the culprit lies in this encapsulated code.

    Anyone has an idea on how to work around this problem so that text coming from referenced items analyzed and presented in HTML format instead of literal text?

    Thank you very much.

    Published by: user12021046 on December 15, 2011 13:51
    Changed for good formatting HTML :-)

    Ah, now I understand!

    So I think the problem is, when you click the label, he calls a procedure that returns the text of help via AJAX. In my view, this procedure escapes html tags, and from what I can tell, there is no setting to disable. :( Even if you load classic help, these tags are also escaped. There may be tweaks that I don't know, but I looked into the security of the shared components section, but nada.

    So a possible solution?

    If you look at the label, you'll see that it links to the following function:

    function popupFieldHelp(b,a){
         if(!$x("pScreenReaderMode")){
              apex.jQuery.getJSON("wwv_flow_item_help.show_help?p_item_id="+b+"&p_session="+a+"&p_output_format=JSON",
              function(c){
                   var d=apex.jQuery("#apex_popup_field_help");
                   if(d.length===0){d=apex.jQuery('
    '+c.helpText+"
    "); d.dialog({title:c.title,bgiframe:true,width:500,height:350,show:"drop",hide:"drop"}) } else{ d.html(c.helpText).dialog("option","title",c.title).dialog("open") } }) }else{ popupFieldHelpClassic(b,a) } return }

    A quick and dirty solution would be to replace the escape with their html tags characters so that it is rendered correctly

    that is, add the following:

                   c.helpText = c.helpText.replace(/</g, '<');
                   c.helpText = c.helpText.replace(/>/g, '>');
    

    -These forums are not keep what I write here, I'm sure you can understand what im speak well.

    Of course, change the label template to point to your custom function.

    The other solution I was going to suggest was to write your own application process that gets you some JSON - Martin D'Souza has written a blog on the use of the apex_util.json_from_sql; which is what you would probably use a query such as:

    select label, item_help_text
    from apex_application_page_items
    where item_id = apex_application.g_x01
    

    The problem is the text of the done element refers to another page, so it would return to the value chain e.g. & P12_ITEM. of course it wouldn't be to hard to get around.

    for example, select replace (item_help_text, '&' | apex_application.g_x02 |'.) (', v (apex_application.g_x02)) item_help_text
    of apex_application_page_items
    where item_id = apex_application.g_x01

    (not tested)

    and then as a quick primer to a way of doing AJAX

    1. create a htmldb_Get object: helpText var = new htmldb_Get (null, null, "APPLICATION_PROCESS = nom_processus");

    Where nom_processus is the name of an application process that you create

    2. Add the necessary parameters

    helpText.addParam ("x 01', 'itemId')
    helpText.addParam ("x 02', 'P12_ITEM')

    This is to add temporary variables that can be reference via apex_application.g_f0x; the alternative is that you can add paremeters State session with

    helpText.add ('nom_element', 'ITEM_VALUE') and get sent when you call the object's get() function.

    3. get the JSON and parse
    obj = JSON.parse (helpText.get ());

    Then create the http://jqueryui.com/demos/dialog/ for the help dialog box

    ..

    Well I hope that gives you some ideas / a starting point.

  • How can I get the proxy box Preview in the navigator Panel to move outside of the canvas?

    After years using CS2, I just upgraded to CS5.5.  With CS2, I could navigate the photo mode view full screen as the angle of the photo was at the center of the screen.  With CS5.5, I have not been able to do.  Am I missing something?  Is this possible with CS5.5?

    Don't know if that's what you're looking for, but in the interface edition/preferences/it's options to open in tabs or as a document.

  • Drive Blu - ray BDX1200 play is not all content - sometimes!

    Hello

    Sorry if this is in the wrong section of the forum, but there is no Blu - ray section.

    I have a UK model BDX1200 Blu - ray that I bought there is a little less than 2 years.
    Recently purchased 2 Blu - ray discs, I found that he would play not all content.

    The player seems to be stuck loading the content with a black screen and generally sound as the drive is being spun over and over again and cannot be read.
    I have to power off the power at the wall outlet to get the drive working again.

    Specifically, I couldn't play most of the peculiarities of The Avengers, although I could get some of them to play by power cycling the player, and the actual film played end.

    In addition, I couldn't play the Hobbit film, although I have power rolled several times, and the disc plays on the machine of a friend. I just tried and the film plays without problem, it's an intermittent thing.

    I checked the firmware updates, but I already have the latest version.

    Anyone has any suggestions, or do you think it is a failure? TIA.

    Hello

    > Also, I couldn't play the Hobbit film, although I have power rolled several times, and the disc plays on the machine of a friend. I just tried and the film plays without problem, it's an intermittent thing.

    Well, I put t think its firmware problem, because the same disc worked properly after reattempt.

    Maybe it s a question of laser lenses? I had some problems with my camera of player playing DVD discs, because the laser lens was dirty. I used special CD/DVD cleaning kit to clean the lens of the laser. Just an idea that you know...

  • BitmapData.draw and allowDomain

    This post in the documentation Adobe for BitmapData.draw sums up my situation:

    Quote:
    "If you control both areas in a cross-domain situation, you can use System.security.allowDomain to permit BitmapData.draw to work on several areas. Say that domain A is a BitmapData.draw call, and domain B is where the media was loaded. If domain B media are a SWF file, it can call System.security.allowDomain ("domainA.com"), and then the domain A SWF can call BitmapData.draw. »
  • Files referenced is not showing is not on another PC after the publication

    Hi all, I have questions get referenced files and folders in my project after the publication of the draft in an .exe file. I inserted the buttons that success, are to open the files within my slides but after compilation and move the exe files and code files in the same folder on a different pc buttons do not open files outside of the computer on which it was initially published. Pls what can I do?

    Hello

    The way simplest to specify a relative path must avoid any navigation you can to find any file that you are linking and simply type the file name in the dialog box. Once you have done this, you just check that the file is present alongside the Captivate movie so that during playback, it can find the file.

    I think that most people do a corresponding error when they use the dialog box to find and select the file they establish between. When you do this, Captivate conscientiously inserts the path to the file on your own hard drive. This means that the file will be stored the the exact location using the same drive letter on PC the end-user for things to work in the end.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • HTTP 404 page not found error! on the tabs

    Hi all

    I have a page with several tabs. When the user navigates from one tab to another tab (using the set of standard tab) report interactive, I get the error HTTP 404 page not found error.

    The tabs are as follows.

    Homepage #1
    varlist page #2
    page criteria #7
    dynamic report page #10
    interactive report #15 page

    I can move on by selecting the tabs but when I'm in the interactive report tab and select one of the other tabs I get error HTTP 404 page not found error...


    Someone can help me.

    Thank you/kumar

    Published by: kumar73 on May 5, 2010 14:45

    Published by: kumar73 on May 5, 2010 14:46

    Hello

    Go edit point.
    In the section appears, there is attribute region. This selection list you select in witch region element is displayed.

    I've defined at some elements in your application to "temp area" so those who are not rendered.
    Don't forget that you can not for example the value and relate to positions that are not rendered. These elements the type of step is no longer

    This could help you find this attribute point I mean
    http://download.Oracle.com/docs/CD/E14373_01/AppDev.32/e11838/UI.htm#sthref1464

    Sorry I'm bad at explaining things

    BR, Jari

  • Content of UpdatePanel is not rendered in Firefox 42 after second partial publication

    I'm using Firefox 42 (Code works great in IE9, 10, 11, and Chrome).

    Consider three DropDownLists dependent within an ASP.net UpdatePanel. A, B, C

    When I change A, the values of B are met properly. I'll then to change B, C values are not met.

    Partial publication occurs, I can see the fill C codebehind correctly, but the changes are not made in the user interface.

    I then continued to do another test.

    I changed the values of B and C properly completed. Then I went and changed, the values of B did not update.

    Which led to the conclusion that the problem is rendered content during the second partial publication.

    Someone has an idea what is the cause?

    Just in case someone encounters this problem.

    Problem was a bug in AjaxControlToolkit AsyncFileUpload component which related only to Firefox. update the Toolbox to the latest version of fix the problem.

    DevExpress Ajax Control Toolkit

  • Security sandbox violation: BitmapData.draw (video)

    Background:
    Video files on the amazon S3 service.
    Each compartment of S3 (file/URL) that contains videos also have a crossdomain.xml policy file.
    My main server running MySQL dB and data-services that communicate with the Flash/Flex client and are deployed on another host/server environment.

    The SWF also used this "area" (where are deployed Data-Services and Db).

    The application is generally a variety of virtual editing and manipulation of video and multimedia content on media projects.

    Now to a module, I take a BitImage of the videos using BitmapData.draw () snapshots using the video (flash.media.Video instance) as the source for the draw randomly.

    Everything is fine when I'm currently running/debugging locally (for example, the SWF file was made in the Flex builder environment) However, when I make I get an error "security sandbox Violation".
    The individual:
    > > > > > > >
    SecurityError: Error #2122: security sandbox violation: BitmapData.draw: URL http:// < host > AppWrapper.swf cannot access the url http:// < amazon S3 > / < name of the video file > .flv. A policy file is required, but the checkPolicyFile flag was not established when this media was loaded.
    at flash.display::BitmapData/draw()
    at as_classes::FlxVideo/takeSnapshot()
    at components.popups::NewFootagePopup/takeImage()
    at components.popups::NewFootagePopup/__imageButton_click()
    < < < < < <
    Reading and Googling autour, I understand that I must create a LoaderContext, set his loaderContext.checkPolicyFile = true; and attach it to the Loader object that is responsible for the video.
    However, I can find no relevant objects that I can associate it with for example:

    flash.media.Video isn't a loader object
    Netsream (flash.net.NetStream) that only the 'game' is not a nor the flash.net.NetConnection object and which is also involved.

    I tried various other related security setting as the allowDomain (.) and others but nothing is.

    Thank you anyone with ideas/tips/pointers


    Thank you

    Yoav

    Problem solved. (bad me)
    NetStream class a checkPolicyFile property!
    The value is false, and all is well!
    (the docs specifically states:)
    Set this property to true when you load a video file from outside the domain of the calling SWF file, and you use the BitmapData.Draw (pixel) method - access the video on. If you call BitmapData.draw () without setting the checkPolicyFile property to true at loading time, you may get a SecurityError exception because the required policy file has not been downloaded.)

  • Mail 10.0 in macOS Sierra not rendered HTML

    Hello

    Sierra installation went flawless. Mail that I normally get displayed as HTML does NOT appear in HTML format, and there is not a button load remote content. Previous mail received El Capitan and 9.3 mail always display and work properly in Mail 10.0 (it displays the content "Remote Load" button). I look at the raw source of Amazon and PayPal and the headers mime drive ins are all the same. So far, four sites, that I normally get HTML mail, 10 Mail will NOT be rendered in HTML.

    Note: Mail-> Preferences-> "Load remote content in messages" on or off makes no difference.

    Anyone else having this problem? It's boring get raw HTML.

    Thanks in advance for any help.

    Best regards.

    This seems to be associated with some mail files. I can take validly rendered HTML of the Inbox and manually move (drag) the file and is no longer makes but appears in raw HTML. Placing the message in the Inbox was still raw and not rendered HTML display. Remove the mailbox and then recreate it makes no difference. I had formerly imported mail before and it associated with maybe 'archived mail"even if these mailboxes are not empty / delete all ~/Library/Mail plist files does nothing to solve the problem.

    Who wrote 10 Mail should have enough information to explain this. I have a fix. It's stupid and reconstruction of the mailboxes does nothing to fix.

Maybe you are looking for