ActionScript 3.0 :: Some Embedded Data Contains Invalid Data (Related To Error #2136)

Dec 16, 2009

I have a problem with creating instances from classes created from embedded data taken from an external .swf which has loaded into its library various images exported to ActionScript as BitmapData.What confounds me is that, of 22 images that I'm loading, 14 of them work fine and can be instantiated and displayed to the screen in a test program. The rest of them throw Error #2136, "The SWF file contains invalid data."I'm using Flash CS4 with Flex 3.4.

-----
Attached is a .zip of a few files:
library_tester.fla - contains the code for testing the library
Assets/GridGame/grid_Library.fla - contains the library

[code]....

Right now, the code in library_tester hits the error when it attempts to create Logo after creating two other variables set onto the stage.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Runtime Error #2136 'The SWF File At %1 Contains Invalid Data'?

Dec 16, 2009

I am getting runtime error #2136 'The SWF file at %1 contains invalid data' (I know, %1 is a reference to the file producing the error) All I did was change some button graphics to movie clip types and have solved all the type mismatch and other syntax errors. This is a file I have been working on and posting about. This is getting annoying. What would be causing this type of error??

View 8 Replies

ActionScript 3.0 :: Error #2136: The SWF File MyGame.swf Contains Invalid Data

Apr 26, 2010

I have two classes. One is my Document Class, and another extends my Document Class. It doesn't work, and gives me this error "Error #2136: The SWF file MyGame.swf contains invalid data."

View 4 Replies

Actionscript :: Get Error #2136, "The SWF File Contains Invalid Data"?

Dec 22, 2010

I built a little game in the spare time.I've a DocumentClass and four other classes. Once I realized I could not restart the game when finished playing, I thought I should create a new instance of the main class (DocumentClass) to launch it again.The problem is that, by doing so, I get Error #2136,"The SWF file contains invalid data". What happens?

View 1 Replies

ActionScript 3.0 :: Unable To Get Game To Restart - Invalid Data Error

Feb 6, 2010

I am trying to make a game like the escape game you might have seen on the internet. I have got all the movement pretty much sorted its just I cannot get the game to restart. I am relatively new the AS3 so bear with me on this. I have a Main class, an enemy class, a player class and a button class. The button class creates the restart button and from the main class, when certain conditions are met, an event listener is added to this button instance to say "on click... do this...". I do not no what to put to make it reset the game however. I have tried to clear all the objects when the game is over but I cannot get the game to restart on click. I figured if I can just add a new Main class instance then the game would be reset but I cannot seem to do it...

Main.as
package Game{
import flash.display.Sprite;
import flash.display.Stage;
import flash.events.*;
import flash.utils.Timer;
import flash.text.TextField;
[Code] .....

This is where I figured I needed to create a new instance of the main class but it just won't work. It comes up with an invalid data error in the output panel. By this point in the program, practically every object has been removed from the stage and display list and the game is over and is ready to be reset...

View 8 Replies

ActionScript 2.0 :: Swf With External Data To Swf With Embedded Data

Aug 7, 2011

Is there a solution to export the swf that contains external data (images and xml data) to new swf that would have that data embedded?

View 9 Replies

Xml :: Object Not Throwing Exception If Invalid Data Is Given?

Feb 24, 2011

I remember darkly that the XML class in AS3 would throw an exception if you tried to give it data in it's constructor that was not a valid XML string. But now I got a case where the XML happily takes every kind of data no matter it's valid XML or not...

var xml:XML;
try
{[code]...

... doesn't throw any exception. qname seems not to be null. WTH?

View 2 Replies

ActionScript 3.0 :: Object Class To Store MovieClip And Related Data?

Jun 17, 2010

I'm trying to create a game and have come across something that I have never really played with and am not sure if it is what I need to use in this instance or if it's as powerful of a resource as I am hoping.I have a movieClip that is an animated man. I can move him around my stage by clicking on him and then clicking where I want him to go. But I'm eventually going to need to store information about him. Such as his x and y position on the stage, attributes about him that are custom to my game.Real Quick: The man represents an army and when the user clicks on him, I want to display things like, Military Units in this army, number of men remaining in each unit, experience and so on. If you have ever played any of the "Total War" games you will know what I'm talking about.

View 1 Replies

Flash - AS3: Invalid Bitmap - Error #2015: Invalid BitmapData

Sep 23, 2011

I am trying to run the following function where car is a movieclip:

[Code]....

View 1 Replies

ActionScript 3.0 :: Document Class Error #2136

Dec 22, 2010

in Flash CS3 I've this DocumentClass:
 
package {    import flash.display.MovieClip;    public class DocumentClass extends MovieClip {
public function DocumentClass() {            trace("document class created");        }    }}
 
This actually works, but I want to have the possibility to re-instance the DocumentClass (because I want to restart a game and the Main class is the DocumentClass).In the first frame I have:
 
import flash.events.MouseEvent;
btn.addEventListener(MouseEvent.MOUSE_DOWN, restart);function restart(evt:MouseEvent){    var d = new DocumentClass();}
But this code (I simplified my situation, but the result is the same) throws an error:
Error: Error #2136: The SWF file  file:///E|/Documents%20and%20Settings/Pepper/My%20Documents/FlashDeve lopment/PepperGame.swf  contains invalid data at DocumentClass/restart()/frame1()
 
What can I do to restart my game by calling the DocumentClass point of entry? Is this possibile?

View 4 Replies

ActionScript 3.0 :: Error #2136 When Making New Object

Feb 7, 2008

I just want to use some variables out of another class, but when i make a new instances using the code from the error-class i get this error:[code]
this last class Game2 is used as document class.

View 2 Replies

ActionScript 3.0 :: Line In A Character Class But Getting Error #2136?

Sep 3, 2009

I created something that'll allow me to have a character and walk with it, but I did this all in the document class. And because this is going to be more complicated I wanted to move that to a Character class. So I did this:

[code]...

Now the issue is when is on the line in my character class that calls the new Character(); Because when I comment it out, I don't get it anymore.I get this error: Error: Error #2136: The SWF file ..../vs.swf contains invalid data.at VelunaStory()I don't think it's anything inside the Character class because I tried commenting out all the functionality so it's just a shell of a class and I still get this error.

View 7 Replies

Data Integration :: Projector Embedded Swf Xml?

Jul 7, 2006

We have developed a projector application which dynamically loads swf's. One of these swf's calls an external site for stock quote information. The swf functions properly when run in IE. However, when it is called by our executable, we do not get the data expected. (undefined)We have looked at the security settings options and have not found any results.

View 1 Replies

Professional :: Hit Test Error :ArgumentError: Error #2015: Invalid BitmapData?

Oct 23, 2011

Code:
 
addEventListener(Event.ENTER_FRAME, Pixel_Perfect);
function Pixel_Perfect(e:Event):void
{[code]....

Enemy1 is a class is that makes a difference

I didn't write this code as i am not this advanced yet but really needed this script, this script normally works but now i am recieving errors
 
Error: ArgumentError: Error #2015: Invalid BitmapData.
    at flash.display::BitmapData/ctor()
    at flash.display::BitmapData()
    at IceMountain_fla::MainTimeline/Pixel_Perfect()

View 23 Replies

ActionScript 2.0 :: Loading XML Data Embedded In PHP In Flash List Component?

Apr 11, 2009

I'm trying to load xml data embeded in php into a listbox component. I have a piece of code that just loads the xml but does not display it in the list box

<code>
var yourXML:XML = new XML();
yourXML.ignoreWhite = true;
yourXML.onLoad = function(success:Boolean) {

[Code]....

View 8 Replies

Flash :: Data Integration - Localhost - URL Page With An Embedded SWF File?

Aug 8, 2006

I can't figure this out. When I test a URL page with an embedded SWF file (using [URL]) I cannot get the embedded SWF to play more than one or two frames. However, if I upload this same flash-embedded html page, and test it on the WWW, then it seesm to play without a glitch.

View 1 Replies

Flash :: Data Integration :: CFML / Read Number Using Embedded HTML

Jun 10, 2006

Ok, heres whats going on - I have a CFML Tag that displays a number from my Database. I want to get flash to be able to read this number using embedded HTML. However, I can't find a tutorial in Google I may be searching for the wrong thing.

View 1 Replies

Sql :: Casue Of SQLite Error: 'Error #3132: Data Type Mismatch' In Adobe AIR

Oct 20, 2011

"SELECT * FROM locations JOIN section_has_location ON locations.location_id = section_has_location.location_id WHERE section_has_location.chapter_id =2 AND section_has_location.section_id=2"

I get the error:

SQLError: 'Error #3132: Data type mismatch.', details:'could not convert text value to numeric value.', operation:'execute', detailID:'2300'

[Code]...

How do I fix the query as to not cause the error? update: I exported all the data, and imported into a new clean database. This seems to have solved that error.

View 1 Replies

ActionScript 3.0 :: Error #2032: Stream Error While Sending Data From Flash

Sep 22, 2009

I am trying to send data from Flash to .Net through POST. When I send a normal String variable, it works fine. But when I try to send an XML as string, it shows me: Error #2032: Stream Error, error.

View 4 Replies

ActionScript 3.0 :: AIR+SQLite3 And Error ''SQLError: 'Error #3132: Data Type Mismatch',details:'',operation:'execute'"?

Feb 15, 2011

SQLError: 'Error #3132: Data type mismatch',details:'',operation:'execute'this only happens in certain situations, this is how you can reproduce it:CREATE TABLE [table_a] ([id] INTEGER  NOT NULL PRIMARY KEY,[name] VARCHAR(256) NOT NULL,[address_id] INTEGER DEFAULT '-1' NULL);CREATE TABLE [table_b] ([id] INTEGER NOT NULL PRIMARY KEY,[town] VARCHAR(256) NOT NULL);CREATE TABLE [table_c] ([id] INTEGE  NOT NULL PRIMARY KEY AUTOINCREMENT,[phone_number] VARCHAR(256) DEFAULT 'Not Set' NOT NULL,[person_id] INTEGER DEFAULT '-1' NOT NULL);

View 2 Replies

ActionScript 2.0 :: Output Error Related With It

Jan 24, 2009

I want to know what this error means and how ca i fix it[code]...

View 1 Replies

IDE :: Invalid BitmapData Error #2015

May 4, 2010

I'm getting an Invalid BitmapData Error #2015 at flash.display::BitmapData$iinit() that points to the line of code below where a BitmapData object is created. I am using this function to create only a few hundred Item objects, each of which is only 166 px by 96 px in size so I don't believe that the problem has to do with running out of memory. I also used system.totalMemory to trace memory consumption but it showed that only a few tens of megabytes were used when the error occurred. I have tried setting the BitmapData and Bitmap objects to null because that was a solution I found on another site. That didn't work. I tried dispose(). The error occurs intermittently, sometimes after running my app a few times and sometimes when I first load it. I am not refreshing my browser over and over in order to run the app. I cannot figure out the exact sequence of events that leads to this error. In earlier versions of my app, I was able to successfully use the exact same function (minus the lines where the BitmapData and Bitmap objects are set to null).

public function cloneItem(item:Item):Item {
var itemClone:Item = new Item(item.ID, item.name, item.bpCost, item.bcCost, item.quantity);
var tempBitmap:Bitmap;

[code]....

View 1 Replies

Media Server :: Getting Error Related To FMSAdmin.exe

Apr 15, 2011

We got in below message in the eventViewer. "Faulting applicaion FMSAdmin.exe, version 2.0.5.88, faulting module unknown, version 0.0.0.0, fault address 0x00d1bee0."

View 2 Replies

Media Server :: Getting Error Related To FMSAdmin.exe?

Jul 12, 2011

We got in below message in the eventViewer. "Faulting applicaion FMSAdmin.exe, version 2.0.5.88, faulting module unknown, version 0.0.0.0, fault address 0x00d1bee0."

View 2 Replies

ActionScript 3.0 :: Error #2015: Invalid BitmapData

May 12, 2010

I am writing a slideshow that takes a random image from a media RSS feed and creates a bitmap and adds it to the stage in a random position on the stage so that each new image lays on top of the last. The actionscipt works fine, but after a time, the computer runs out of memory and I get a ArgumentError: Error #2015: Invalid BitmapData. error.
 
My thought was, instead of adding child on top of child, I would just add the new image to the original bitmap or perhaps a copy of the bitmap and swap from old to new with each newly added image. Is this a possible solution and can anyone help with some code ideas? All the examples of BitmapData.draw() show only addig one object at a time per bitmap. I don't know if it is possible to add/merge/combine bitmaps.

View 2 Replies

Actionscript 3 :: Invalid BitMapdata Error #2015?

Dec 31, 2009

private static var tileDir:String;

[Code]...

tileImage is valid, I've used the variable in the code below and it works. But above doesnt. Don't know why.

[Code]...

View 1 Replies

Actionscript 3 :: Error #2004: One Of The Parameters Is Invalid

Apr 3, 2011

I have the following code which loads a sound, 'test.mp3', and then lowers its pitch, also slowing it down. The sound plays correctly at the lower pitch but at the end of the sample, I get this error: 'RangeError: Error #2004: One of the parameters is invalid.'. What am I doing wrong and how can I fix this problem?

[Code]...

View 2 Replies

ActionScript 3.0 :: Error #2015: Invalid BitmapData?

Jan 24, 2011

I'm getting the Error #2015: Invalid BitmapData. in this function. It works until I add too many images around 40 then I get the error:

ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData/clone()
at PictureViewer_fla::MainTimeline/setupThumbs()

[code]......

View 9 Replies

Actionscript 3.0 :: Invalid BitmapData Error #2015

May 2, 2010

I'm getting an Invalid BitmapData Error #2015 at flash.display::BitmapData$iinit() that points to the line of code below where a BitmapData object is created. I am using this function to create only a few hundred Item objects, each of which is only 166 px by 96 px in size so I don't believe that the problem has to do with running out of memory. I also used system.totalMemory to trace memory consumption but it showed that only a few tens of megabytes were used when the error occurred. I have tried setting the BitmapData and Bitmap objects to null because that was a solution I found on another site. That didn't work. I tried dispose(). The error occurs intermittently, sometimes after running my app a few times and sometimes when I first load it. I am not refreshing my browser over and over in order to run the app. I cannot figure out the exact sequence of events that leads to this error. In earlier versions of my app, I was able to successfully use the exact same function (minus the lines where the BitmapData and Bitmap objects are set to null).

public function cloneItem(item:Item):Item {
var itemClone:Item = new Item(item.ID, item.name, item.bpCost, item.bcCost, item.quantity);
var tempBitmap:Bitmap;

[Code].....

View 4 Replies

Flash :: ArgumentError: Error #2015: Invalid BitmapData?

Jan 9, 2010

I am having problems loading a bitmapData. I am getting the following error

Engine Init //trace
loadimage//trace
ArgumentError: Error #2015: Invalid BitmapData.

[code].....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved