Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8036481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:38:06+00:00 2026-06-05T02:38:06+00:00

The simplest graffiti app. The code works fine on the desktop and on Android.

  • 0

The simplest graffiti app. The code works fine on the desktop and on Android. If i try to do the same on iOS (tested on a real device – iPad 2), i get this error: ArgumentError: Error # 2015: Invalid BitmapData.

In principle, it is clear why the error – the size of BitmapData is the huge.

Why it happens? And why only on iOS?

private var maskLine:Sprite = new Sprite();
stage.addEventListener(MouseEvent.MOUSE_MOVE,onMove);
stage.addEventListener(MouseEvent.MOUSE_DOWN,onDown);
stage.addEventListener(MouseEvent.MOUSE_UP,onUp);

protected function onDown(ev:MouseEvent):void {
maskLine.graphics.lineStyle(20, 0x33CC00, 1);
maskLine.graphics.moveTo(mouseX, mouseY);
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
}
protected function onUp(ev:MouseEvent):void {
    stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
}

protected function onMove(ev:MouseEvent):void {
    maskLine.graphics.lineTo(mouseX, mouseY);
}

Save in bitmap code:

        maskLine.filters = [new BlurFilter(4, 4, 1)];
        trace (Capabilities.screenResolutionX + '   ' + Capabilities.screenResolutionY + '  ' + maskLine.width + '   ' + maskLine.height);
    //768    1024    107374182.35    107374182.35
// Here is get error
        var bmpd:BitmapData = new BitmapData(maskLine.width, maskLine.height, true, 0x000000);
        bmpd.draw(maskLine);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:38:08+00:00Added an answer on June 5, 2026 at 2:38 am

    As requested here is the answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Simplest code for array intersection in JavaScript I am writing an app
I try to do simplest listView. I create layout: <TextView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/history_menu_item android:layout_width=wrap_content android:layout_height=match_parent
I am looking for simplest blogger template that i can make with simple code.
I wrote the simplest WYSIWYG in js/jquery: http://jsfiddle.net/XnSWF/ Works perfectly (eg. set to write
In its simplest form, my app displays 10 UIImageViews, each containing an image. Even
Simplest explanation I can produce: In my .NET1.1 web app I create a file
Simplest fool proof(?) method to check for string object I've seen. Tested with many
The simplest code is the best asker: #include <vector> #include <algorithm> using namespace std;
The simplest way to launch a web browser from within a blackberry app is:
What would be the simplest ruby code to sort this table so that on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.