ActionScript 1/2 :: The Class Or Interface 'BitmapData' Could Not Be Loaded: Compiler Error?
Apr 1, 2012I'm getting the compiler errorThe Class or interface 'BitmapData' could not be loaded. (actionscript 2.0)
View 1 RepliesI'm getting the compiler errorThe Class or interface 'BitmapData' could not be loaded. (actionscript 2.0)
View 1 RepliesI'm using Flash 8, with this code in the first frame:
import flash.display.BitmapData;
rissa._x=Stage.width/2;
rissa._y=Stage.height/2;[code].....
When I publish the file, I'm getting the following error message in the Output panel:
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 7: The class or interface 'BitmapData.loadBitmap' could not be loaded.
var plaid:BitmapData.loadBitmap("plaid");
Total ActionScript Errors: 1 Reported Errors: 1
i purchased a "prebuilt" flash shopping cart from dreamline studio, and am having some issues. I was wondering if anyone has used one or could maybe give me some help. their package includes a folder structure and in it there is a main "cart.fla" file. When i open that in flash and try to play/publish i get the following error:
The class or interface 'it.sephiroth.XML2Object' could not be loaded.
It is apparently linking to an .AS file as it shows the location as:
mycode.as, line 7 (and also line 105) same error.
stop();
button1_btn.addEventListener(MouseEvent.CLICK, showimage1);
function showimage1(event:MouseEvent):void {
gotoAndStop(1);
}
This is my script (with more buttons done the same) to have the user click a button and a new photo appears, but the movie just runs continuously. I get an error message saying "The class or interface 'MouseEvent' could not be loaded.
i am writing script for a preloader and when i come to compile the script for testing i recive this error message: The class or interface 'Event' could not be loaded.
View 1 RepliesI want to create a basic drawing utility as a part of my project. Since the drawing needs to be saved I wanted to convert it to a bitmap. I searched for help on google and found this example.
However since the rest of my program is programmed in AS2, I'm getting errors these errors:
Quote:
The class or interface 'flash.display.Sprite' could not be loaded. // source: var canvas:Sprite = new Image();
The class or interface 'flash.utils.ByteArray' could not be loaded. // source: var bytes:ByteArray;
The class or interface 'flash.display.Shape' could not be loaded. // source: var child:Shape = new Shape();
[code]...
There are 77 classes in my project and around 30 of them are linked to MovieClips. If I do a size report it says that my Actionscript classes are 110296 bytes.
I am having a mysterious problem. I have a MovieClip, and I would like to link a class to it in the library.
But I get the following error:
The class or interface 'gui.screens.game.ContinueGame' could not be loaded.
The class at the moment is empty (see code below), although I have tried renaming, deleting and recreating it a few times.
Code:
class gui.screens.game.ContinueGame extends MovieClip {
public function ContinueGame() {
}
}
I have also tried linking the class to other MovieClips that have been successfully linked other classes before - which didn't work.I have tried linking other classes I have used before to the MovieClip - which worked. So the problem lies with the linking of the specific class. Since I have tried renaming it, I'm wondering if there is you can only link a certain number of classes or something. Or I am missing something obvious and will kick myself when I find it.
I have made a movie is as2 and now I have download a file that is made in as3 and this one give this error: "the class or interface 'mouseevent' could not be loaded"I still wan't to use as2 because I used to it and my question is how can I change this code below that it will work in as2.
function submitScore(event:MouseEvent):void {
import fl.events.ComponentEvent;
myButton.addEventListener(ComponentEvent.BUTTON_DO WN, onClick);
function onClick(evt:Event){
trace("Sign Up!");
}
This in my book (flash CS4) but I have the version flash 8, and I got this message "The class or interface 'Event' could not be loaded".
I'm trying to publish a swf with Flash CS3.
I have one .fla file and two .as files. I think my problem is I don't know how to set the path for the action scripts. All three files are in the same directory
The files:
dtd.fla
TransformItem.as
TransformManager.as
The error: The class or interface 'gs.TransformManager' could not be loaded.
dtd.fla code appears to have an appropriate import: import gs.TransformManager; var manager_obj = new TransformManager([], onTransformEvent, true, false, false, false, false, true, true);
TransformManager.as code appears to have an appropriate import: import gs.TransformItem;
here happened an error
error:
interface 'Sprite' could not be loaded.
var symb1:Sprite = new Sprite();
I'm doing a simple link code. I've tried many diferrent ways to do this but this error keeps comming up saying The class or interface could not be loaded...
home_btn.addEventListener(MouseEvent.CLICK, gotoURL);
function gotoURL(event:MouseEvent):Void{
navigateToURL(new URLRequest("my site"));}
This is the most recent method I've tried in doing this. I've tried changing the publishing settings of the document to and from Action Script 3.0- using an import command. But thats too complicated.
Attachments: Flashfla.fla.zip (767.8 K)
I got the error message below when I try to put them onto my own flash file, The source codes work well by themselves.The class or interface 'URLLoader' could not be loaded.The class or interface 'URLRequest' could not be loaded.
View 1 RepliesI have an older site that is coded in AS2(I can't get it to AS3 sorry) I found this script online that allows for mouse scrolling. It is in AS3 and I can't figure out what Event replaced in AS2. I'm sure there are much better AS programmers than me that could tell me off the bat. I'm just trying to get this converted to AS2.
var verticalCenter:Number = stage.stageHeight / 2;
var limit:Number = stage.stageHeight - content_mc.height;
var speed:Number = 0.1;
[Code]....
I am currently doing this gallery with prev and next button.But i got this error message.."The class or interface of MouseEvent could not be loaded." [code]
View 1 RepliesThe class or interface 'it.sephiroth.XML2Object' could not be loaded?? I did the installation of extension and adobe extension manager confirmed installation to be successful and yet I cant
[Code]...
I am getting an error with RegExp class at my flash document. I am using an Action Script 2.0 at my document. Is RegExp class is not supported in AS1/AS2 ?
My code is as follows
function validateEmailAddress(emailString:String):Boolean {
var myRegEx:RegExp = /(w|[_.-])+@((w|-)+.)+w{2,4}+/;
var myResult:Object = myRegEx.exec(emailString);
if(myResult == null) {return false;}return true;
} if(validateEmailAddress(email) == false) {
contacterror = "Error ! Please Enter Valid Email Address";}
If RegExp not supported in ActionScript 2.0 then how to validate email address at ActionScript 2.0 ?
I am using the following script to animate a navigation button, but am getting this Compiler error message: The class or interface 'flash.events.MouseEvent' could not be loaded.
nav01_mc.buttonMode = true;
nav02_mc.buttonMode = true;
nav03_mc.buttonMode = true;
nav04_mc.buttonMode = true;
[Code].....
I keep getting this error when I try to implement an interface:"Interface method bar in namespace Foo not implemented by class Test".As far as I know, I've correctly added all methods from the interface.[code]I'm using mxmlc.exe to compile in the flex sdk.
View 2 Repliesi have incuded an AS file in my fla. But is gives an error ball.as: Line 73: ActionScript 2.0 class scripts may only define class or interface constructs.
[Code]...
I am trying to rebuild "Pixelator" class writen by Eric Hallander, becouse I need it for my personal site, and orginal class doesn't give me all that I need. I thought I have everythig right scripted but after compilate debuger gives me an error:
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData$iinit()
at tmk::Pixelate/::pixelateOut()
This is code of my MainClass - calling a Pixelation effect:
Code:
package src {
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.display.Bitmap;
import flash.display.BitmapData;
import tmk.Pixelate;
[Code] .....
I am trying to use the reflect class from "http://pixelfumes.blogspot.com/2007/03/reflection-class-v3-with-source .html" but I keep getting this error:
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at Reflect()
at Site_fla::GalleryPage_29/loadThumbs()
at Site_fla::GalleryPage_29/sortXML()
[Code]...
btw, first I used assigned thumbContainer as the mc argument (outside the loadThumbs() function) and it worked but not exactly what I wanted... because I thought it is supposed to update when the movieclip is animated but it actually didn't... when I use a scroller, only the thumbs that are first loaded to the stage get the reflection..
I am currently new in ActionScript and I am creating an Interface and Class where class implements Interface.I have created Interface and Class both in src/com folder. Here is the code what I did till now.
[Code]...
I'm coding an AS3 web app which needs to access the webcam. The webcam code works fine apart from my initial attempt to detect whether a webcam is plugged into the pc. I'm trying to use Camera.isSupported as specified in the Adobe docs but I get a compiler error telling me 1119: Access of possibly undefined property isSupported through a reference with static type Class. BriefingScreen.as /ADAPT_PSA/src line 147 Flex Problem I can get around this by compiling without strict checking but this seems a little clumsy...
View 1 RepliesIn my current flash project I keep getting this error in my output panel: Code:TypeError: Error #1010: A term is undefined and has no properties.at main_flash_fla::Acoustic_1/moveImage()at main_flash_fla::Acoustic_1/on2() However, It does not seem to effect the movie when I test it. All it has really accomplished is to annoy me by always popping up in my output panel.
Heres my question: Why does it choose to show up in my output as an error rather than my compiler error panel? Also, what then is the difference between an error in output vs compiler?
[Code]...
I am working on a full browser flash site and just realized the coding was as3. I really need this to work with AS2 and I am a noob at flash. I have figured it out mostly except I keep getting one error. "The class or interface 'flash.events.Event' could not be loaded." Here is the script:
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
[code]......
I am having an issue with using BitmapData.draw(stage). I am getting the following error:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C|/Documents%20and%20Settings/bla...bla...bla.swf cannot access null. No policy files granted access. Here is a portion of my code:
var bd:BitmapData = new BitmapData(2800, 2100); bd.draw(stage);//this is where the error happens All of the files referenced (.xml/.jpg/.swf) are located in the same local folder as the main .swf. How do I get around this error? The main objective is to print the stage using PrintJob(). I am using Flash Professional CS5.5 and publishing to Flash 10.0/10.1. Let me know if I need to supply any more info.
I'm making an animation in Flash CS4 and I have absolutely no actionscript in my project. At some point I added a new layer called "actions" and typed a simple piece of code in a keyframe (stop) but then I changed my mind and deleted it. But even though now there is no code in my project I still get a very annoying compiler errors window, every time I test my movie. What should I do to get rid of it?
View 1 Repliesfinding the error here. Its for my loading bar at the begging of my flash movie
View 2 RepliesSo I've been trying to build a kind of 'weapon generator' using Actionscript 3.0.Yesterday, after creating a large bunch of movieclips, I decided to create a seperate scene where everything would be generated.The way I have it set up is by having each part cycled through a button click (forward and backwards with code to handle just that)The different weapon parts are:StockReciever
Handle
Trigger
Magazine
[code]......