My width of the Image is not displayed

Why I am not able to know the width of the image?

Error

"TypeError: Error #1009: cannot access a property or method of a null object reference."
to Show / displayImage)
"to Show$ iinit ().

public void displayImage (imgPath:String, imgWidth:Number, imgHeigt:Number, imgXPos:Number, imgYPos:Number)
{
var request: URLRequest = new URLRequest (imgPath);
var loader: Loader = new Loader();
Loader.Load (request);
Loader.x = imgXPos;
Loader.y = imgYPos;

addChild (loader);
trace (Loader.Content.Width);

}

so...

ReferenceError: Error #1069: property not found on flash.display.LoaderInfo width and there is no default value.
to MethodInfo - 2)

function onLoad(eve:Event) {}
trace (Eve.Target.Width);
}

Eve.Target refers to the contentLoaderInfo... you should draw something like, trace (eve.target.loader.width)... and NOT with capital w

--------------

TypeError: Error #1009: cannot access a property or method of a null object reference.
to ShowImg / displayImage)
to ShowImg$ iinit)

loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onLoad);
               
function onLoad(eve:Event) {}
trace (Eve.Target.Width);
}
               
addChild (loader);
trace (Loader.Content.Width);

... loader.content - contains an object that was loaded by the load method and probably is still set to null at this point, so you cannot call the width on the subject property...

-------------

reorganize everything a little lines, and it should work

function onLoad(eve:Event) {}
trace (Eve.Target.Loader.Width);

addChild (eve.target.loader);
}

Tags: Adobe Animate

Similar Questions

  • I get emails with pictures and when I send them to others. they open them but the images are not displayed. The photos are there when I send them. Thank you

    I get emails with pictures and when I send them to others. they open
    their place but the images are not displayed. The photos are there when I send a
    them. Thank you

    Make sure that your security software (antivirus) is not blocking attachments.

  • Impossible to change the wallpaper, the location of the image does not display images.

    Original title: photo location not display images

    I'm trying to access my pictures folder and select a background for my office. But when I search for the location of the image and select the folder of the screen does not display images, even if the pictures are present in the folder. The screen shows only 'solid colors.
    I moved to the location of my pictures, sounds and video to another folder. Then, the default folders are different.
    In Explorer when I just click on the photos forlder ther is a location tab saying my it's the default folder.
    One last thing.
    If I go to explore and navigate to the folder my pictures, right click on a picture and select 'Set as wallpaper', then it displays the content and the folder.

    Any ideas?
    James

    I got it working again.
    And that's a good reason to not mess with the registry.
    I have used a tweak registry to hide the libraries in the Explorer navigation pane. Once I've restored it Windows seems to have found the files for my photos. I then re - hid libraries and everything seems to work ok.

    James

  • The images are not display with html content in browserfield

    Hi friends, I am display local html content in the browserfield. It is are display fine but pictures are not display is also local resources stored in the project. I use jde 5.0. Whats to display pictures.

    After so much, I solved it and the images are displayed correctly. I had the habit now of base64 class and image data are passed to the base64 format.

  • texts of the image is not displayed for w376g

    can't see the photos sent to the mobile phone from a touch lg using virgin. says the downloaded but only displays a red x instead of pic. I have tracfone and it's the only one who do not appear.

    Garfield

    Your screen is limited to see photos of lower pixel... 400 x 600 for example. If someone sends you a 5megapixel photo as well as phone screen takes a 1.3Megapixel picture, all see you is a red x as it is to adults.

    Try to have the pic sent in a lower resolution. It must then be veiwable.

    Let us know if a reference to a smaller resolution photo works, thank you.

    Poko

  • Windows Media Player 12 - Video DVD plays but the images are not displayed

    I have a DVD that we created with Adobe Encore.  It has a mixture of video and still images to a timeline.  I play this back on a new computer Windows 7 with Windows Media Player 12.  The DVD plays back fine until it reaches the fixed image on the timeline.  At that time the reading shows just the last frame of the video to the video portion.  The audio continues, but it does not show the image.  We tried multiple image formats, and nothing seems to work (.jpg, .tiff, .psd).  The video is very good reading but with CyberLink DVD player and on a standard TV/DVD player.

    Any thoughts?
    Guy

    Hi Guywestermeyer,

    Check to see if the following is useful.

    Method 1:

    Run the troubleshooter in Windows Media Player Settings and check if that helps.

    Method 2: You can try to download the required Codecs. Refer to this article for more information on Codecs.
    http://Windows.Microsoft.com/en-us/Windows7/codecs-frequently-asked-questions

    See also:
    Information on the types of media files that supports Windows Media Player

     
    Hope this information helps.
  • BBM Bbm surveys on the iPhone display of the image is not displayed

    Help! I'm the only one having problems, no one can see my display picture, I deleted the application about 10 times and it still does not work help please!

    Hello Swaggerdiva

    Welcome to http://supportforums.blackberry.com

    This problem is presented in some teams both Android and iOS
    Should be corrected in the next updates.

    You still see that the good and important use BBM4ALL.

    Kind regards.

    • Answer you like me? You want to THANK? Click
    • If it was the SOLUTION click on "accept as Solution!

    #4LL   #ichooseBlackBerry10 @Gutijose14

  • Thumbnail of the image is not displayed properly

    We never saw it?  I know how to get around him, but I would avoid that it happen.  Thank you!

    Do a disk cleanup and disable only the thumbnails. Next time you access images, it will take to generate stamps again and hopefully that will solve the problem.

    I hope this helps!

    ~ Dylan

  • My images are not displayed in firefox download browser - icons only

    Images on my computer - when downloading images to other web applications - the images are not - displayed only the icons. It is a loss of real time that I often need to open another file management program to see the image and write the name of see in the window firefox image upload eyebrows.

    Do any of these help:

  • Images are not displayed but the cargo space

    Images are not displayed on any service.  There is no empty box with a red X in the upper left.  Any space where the image should be.  This includes backgrounds and individual images.  Even the buttons to link and change the font on this application do not appear to like what any other contours then.

    Example: Facebook blue border of the Web page do not show, nor making photos into albums.  It is the same with Internet Explorer and Mozilla.

    In windows mail images also do not load and are left with empty space.  This became annoying when links are included in the images.

    Wasn't internet Explorer or whatever it is in the same direction.  It has also affected Mozilla Firefox and it affected things offline as well.

    I actually thought things on my own by poking around.  It proved that under the "accessibility" Menu background images have been disabled for display by a person of limited view.  It had been activated, and it turned out she had a far greater effect disabling more than background.

  • sidebar on the desktop are not displayed images of only a red cross

    sidebar on the desktop are not displayed images of only a red cross

    Take a look at the following:

    Sidebar Gadget not working not properly
    Note: look for responses from the veebull
    and president of the DNA
    http://social.technet.Microsoft.com/forums/en/itprovistadesktopui/thread/5d734cdb-757f-4801-8f28-3cca36ccf7ba

    How can I restore windows sidebar
    http://support.Microsoft.com/?kbid=963010

    How to fix broken sidebar
    http://www.howtogeek.com/HOWTO/Windows-Vista/how-to-repair-your-crashed-or-hanging-Vista-Sidebar/

  • I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I had created a slideshow of practice and the background image was not displayed as an image in itself. How to

    I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I have created a slideshow of practice and the background image was not displayed as an image in itself. How to make it behave?

    Another approach, perhaps a little more elegant (?). Create a collection that includes images for the slideshow. Include the background image in the collection. Drag the background image in the Panel to designate. Then, remove this image from the collection and create the slide show. I just tried and it works, too.

  • Reinstall Photoshop CS5.5 - on opening a file image, the program will not display the image.

    Just reinstall Photoshop CS5.5 of CD on Mac. On the opening of an image file, the program will not display the image. Thumbnails of the image appear in the layers window, but not the main window - ideas?

    Join the Discussion of Photoshop discussion

  • I noticed that some jpeg (RGB) images are not display in Internet Explorer 11, but they present very well in other browsers. In addition, the images used to display properly in Internet Explorer. No idea what is happening?

    I noticed that some jpeg images are not display in Internet Explorer 11, but they display well in other browsers. I checked they are RGB images, because apparently some people accidentally use the CMYK format. IE is configured to display the images - I checked that also. The images used to display properly in Internet Explorer, and the images have not been changed on the server. The content was created using Dreamweaver CS6 and Photoshop CS6.

    I tried to view the page on other computers running IE, and they also have this problem.

    Any idea of what could be causing this to happen?

    Thanks for looking in this people!

    I discovered that prevented a few images to display in IE 11, while other images show. The culprit was Adblock Plus for Internet Explorer. Once, I disabled the software Adblock Plus missing images showed once again. Interestingly, I discovered that I could cause the same effect in other browsers using Adblock software. There is either a bug in the software of Adblock, or fluid network of Adobe system, which caused some legitimate images should be blocked. Whatever it is, they do not play well together right now. All images are stored on the same domain, and none of them related off site, so it's pretty weird that they have been blocked...

    Anyway, the mystery is solved! I know people like to see a conclusion to these things as much as possible, so I'll mark this as resolved issue.

  • Image is not displayed in the shape of the APEX with utility function APEX

    Dear experts, APEX,

    As I am new to oracle apex development. I just created the basic employee information form where I download the picture of the employee. Photography is transferred, but it does not display correctly. I already spoke of the sample database application to display the image. Also, I followed the same steps it is used to display the image of the product for this application. I am still unable to get the result. I receive after release:


    < img src = "" apex_util.get_blob_file? a = 35682 & s = 101496289174102 & p = 15 & d = 10639237623242912156 & i = 10639236703270912154 & p_pk1 = 21 & p_pk2 = & p_ck = FCA12832591A1C706D76FDD589E551A2 "/ >"

    Please help me elders to solve this problem. How to view the image using this utility.

    mehpandya wrote:

    I saw more HTML code after inspecting the two applications.

    1 example of application of database:

    In this application, the product image is downloaded and displayed correctly, and the following code is rendered in the HTML source code.

    2 example of Application HRMS - which I created for learning.

    In this application, the photo of the employee is transferred, but it is not displayed correctly. Here's how to code is rendered in the HTML code.

    ""< img src = "apex_util.get_blob_file? a = 35682 & s = 100541516379272 & p = 15 & d = 10639237623242912156 & i = 10639236703270912154 & p_pk1 = 21 & p_pk2 = & p_ck = 31A8328E0F5754D7CBD0FC0C6313B38A" "/ >"

    That is why, in my application code is not perfectly rendered and syntax is not over.

    the following characters are rendered like this. : & lt, & quot, & gt, & amp.

    So, is this the reason for not displaying the image?

    Yes.

    To get a displayed item to render in HTML, in the definition section Security value escape special characters notitem.

    For a column of the report, ensure that the column attribute text to display as report is report Standard column rather than the default display text (escape special characters).

    Use a part of the Image display and declarative BLOB support instead of this manual method clumsy.

    -----

    Please read the FAQ and the forum threads sticky (if you haven't already done so.

    You will get a faster, more effective response to your questions including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)
  • Region/item (s)

    The APEX documentation is here.

Maybe you are looking for

  • Setting the indents on Pages

    Anyone know how to fix the dashes on Pages?

  • Cannot access Firefox shows the missing profile or inaccessible is there an easy solution?

    cannot access Firefox shows the missing profile or unreachable is there a solution I'm not a computer expert

  • Installed update then my device will not register!

    I just installed my iTunes (in Britain) was last updated earlier in the day and I noticed that my IPod no longer appears in my ITunes at all. I ran the diagnostic function and he claims there is no connected device. I moved and then the button help t

  • can you alias primary email addresses

    Recently, I thought that I had a hack in my account, so I changed my e-mail address and password. I thought this would be my main address, but whenever I have send an email that I have to change the address of my alias. Is it possible to change the a

  • DVD plays not

    WIN XP Home SP3 - not quite fully patched/updated. I did a clean install over the weekend, and the installed media player was v9. I've updated to 11.0.5721.5145.  When I try to play a DVD, I said that I need a DVD decoder.  I don't remember ever doin