as3 - rewrite this line?

Out of context: Reply #12

  • Started
  • Last post
  • 20 Responses
  • maximillion_0

    or more classes. thats quite bloated as is.

    by reading the bulkloader class comments you need to provide the url (as a string) to the method getBitmap('you url here'). it will then return a bitmap object that has been loaded from that url. You dont need to typecast it as you did originally is "as Bitmap"

    however you define largeImage as a video object:
    private var largeImage:Video;

    if you want a bitmap then cast it as one:

    private var largeImage:Bitmap

    largeImage = largeImageLoader.getBitmap('your image url here');

    I cant see a method that returns a video object in yr bulk uploader class so you might need to be more specific about what yr trying to do

View thread