ActionScript 1/2 :: Shared Object Causing Flash Application To Crash?

Jan 31, 2004

I have a couple of static functions (one shown below) that can be called from multiple instances; there is a problem because of a shared object I am using.My tracing shows that the application is in this function or the converse function addRec when my application is crashing.
 
public static var currentRecs:Array;
private static function removeRec(recName:String) {        trace("Removing record "+ recName + " from currentRecs");        for (var item in currentRecs) {            if (currentRecs[item] == recName) {                currentRecs.splice(item, 1);                trace("Finished recording " + recName + " currentRecs = " + currentRecs.length);            }        }    }
 
In another class I have this statement where I set the value of some date in my shared object. I have to comment the following lone of code out in order for the application not to crash after a short while:
 
so.data.rArray = currentRecs;// the culprit I see the first trace in the removeRec function but then nothing. I expect to see the second trace indicating that the array of current recordings taking place (currentRecs) has been cut back by one.
 
Originally my function was not static and my application crashed very quickly. By making the function static the situation improved insofar as it took longer for the application to crash.Flash seems to be very particular about the way it handles shared objects.

View 1 Replies


Similar Posts:


ActionScript 1/2 :: Shared Object Causing Flash Application To Crash

May 26, 2009

I have a couple of static functions (one shown below) that can be called from multiple instances; there is a problem because of a shared object I am using.
 
My tracing shows that the application is in this function or the converse function addRec when my application is crashing.
 
[Code]....
 
In another class I have this statement where I set the value of some date in my shared object. I have to comment the following lone of code out in order for the application not to crash after a short while:
 
so.data.rArray = currentRecs;          // the culprit I see the first trace in the removeRec function but then nothing. I expect to see the second trace indicating that the array of current recordings taking place (currentRecs) has been cut back by one.
 
Originally my function was not static and my application crashed very quickly. By making the function static the situation improved insofar as it took longer for the application to crash. Flash seems to be very particular about the way it handles shared objects.

View 5 Replies

Flex :: Flash Player 10.1 Crash On Shared Object Access

Jun 14, 2010

since updating my Flash Player plugin from 10 to 10.1, I'm seeing a weird crash when accessing shared objects. Flex Builder's debugger pops up and prints a stack trace like this:

undefined
at flash.net::SharedObject$/getLocal()
at my.code::MyClass$/load()[/my/path/to/my/MyClass.as:27]
(...)

This happens when calling SharedObject.getLocal("someString") for the second time for the same string, though it doesn't always crash. When using another browser on the same machine (not configured as the preferred debugging browser in Flex Builder), Flash Player remains silent. The code is wrapped in a try/catch(Error) block which does not catch this error. I'm using Flex SDK 3.5 and Flex Builder 3 on Mac OS X 10.6.3.

View 4 Replies

Font Causing Flash Crash On One Machine Only?

Mar 21, 2012

I have an issue whereby a new font (FFF Forward variant) installed on some machines works perfectly in flash (cs5.5) but on one machine causes an instant crash when the Type Tool is used.I know the font is the core of the problem but am unsure why it works on some flash installations (same versions) and not others?

I have tried every conceivable way of uninstalling/installing the font (even cmd prompt and safe mode!)I have flushed preferences files (obv inc typesupport folder)I have re-installed flash!I have even tried copying the prefs files from one of the working installations to the troublesome machine.I have run font verification and repair tools (nexus font, font creator, font val, font doctor, font lab...)No joy, still crashing

View 1 Replies

Flex :: Why SWF Causing Flash Player To Crash

Aug 6, 2009

I've got a flex-based swf, which is loading an AS 2-based swf and then, negotiating further activity via a LocalConnection. From time to time, the AS 2-swf can request that the flex-based swf load a movie. I've arranged this via on(release){} functions. The AS 2-swf, I'm making in Swish Max. In Swish, when I set the on (release) on a text field, (to invoke .send() on my localconnection), it works splendidly. However, when I attempt to perform the same calls for an on(release) attached to a movieclip, it actually causes the Flash player, and even the browser plugin to crash. In fact, the browser (IE) crashes as well. I checked the debug trace that ie asked me to send to microsoft at the last IE crash, and i noticed a StackOverflow exception embedded deep in the trace, but I couldn't determine its source.

View 5 Replies

ActionScript 3.0 :: New Sound Causing Flash To Crash?

Mar 10, 2010

adding this in my class (i name it CGame)

Code:
var ns = new mysound();
ns.play(0,1);

makes flash cs4 crash. But not if it added to timeline/stage.I tried making new class with different name, then adding the code, and it works.So it just fails on CGame.

View 1 Replies

ActionScript 3.0 :: 10b.ocx Error Causing Browser To Crash

Apr 24, 2009

Environment: I am using Flash CS3 and targettting my application for Flash Player 9, I have installed Flash Player 10 on my machine. I am getting a flash player 10b.ocx error, which causes into crash of the browser. I am loading a bunch of images in this application. (20-30 at a time). using Loader class.

I have three questions: Is it the flash player error causing the browser to crash or something in my code is wrong?what possibly can go wrong in AS3 code to cause this error if it is not a flash player error?What could be the possible resolution for the same?

View 11 Replies

ActionScript 3.0 :: FileReference.save() Causing Crash?

May 16, 2011

I'm currently using the FileReference class to allow users of my program to save and load files from their PC. I'm currently trying to get the save function to work (I'll do load later) and it all seems to be working perfectly but while testing it (locally) it crashes Flash Player every time it saves.
 
The code is pretty simple just now (this is contained in an event handler which triggers when the save button is pressed):

var levelData:String = GetLevelData();var outputFileName:String = "NewLevel.txt";
saveFile = new FileReference();
saveFile.addEventListener(Event.COMPLETE, SaveCompleteHandler);
saveFile.addEventListener(IOErrorEvent.IO_ERROR, SaveIOErrorHandler);
saveFile.save(levelData, outputFileName);

And it all works fine - the NewLevel.txt file appears where I want it to and contains the correct data. But as soon as this has completed Flash Player quits and I get the 'Flash Player Quit Unexpectadly' message. There are no errors in the output from my code. The SaveCompleteHandler function has been called and the SaveIOErrorHandler function has not.

Could this be a bug in Flash player? I'm using a Mac and have encountered a few bugs with the Mac version so I wouldn't be surprised if this was another one.

View 1 Replies

Javascript :: As3 ExternalInterface.call Causing Browser Crash

Sep 14, 2011

I've written an html page that is using some javascript to hide and display a flash movie object. It all works fine until I try to exit from the tab, and when that happens the entire browser will crash with not so much as an error text box.

Flash Code

if(ExternalInterface.available)
ExternalInterface.call('hideTimeline');

Javascript code

function showTimelineFirstPlay()
{
var timeline = document.createElement('span');

[Code].....

View 1 Replies

Professional :: Adobe Download Manager Won't Uninstall - Causing Blue Screen Crash?

Jun 6, 2010

Brand new PC, Windows 7, worked fine for couple of days until I installed Flash Player 10 Active X - now the operating system continually crashes around after 5 mins each time I reboot.Error message"problem starting C:ProgramFiles(x86)NOSingetPlus_Helper.dllthe specified module could not be found"Having search the web, which suggested a possible problem with Flash Player 10 installation, I removed this downloaded this file: uninstall_flash_player.exe  and ran to uninsall), but Adobe Download Manager is still in the list - trying to uninstall the DLM just gives the same error message as above.

View 3 Replies

Media Server :: Make Text Chat Application Using Shared Object?

Jan 21, 2010

I'm trying to make text chat application using shared object. I'm using api Shared.getRemote("so",m_nc,true); to make the data persistent. It makes the file with extension fso. I want to save the chat history in notepad for further reference, and also load that data as per requirement.

View 1 Replies

Media Server :: Main.asc TypeError Trying To Set A Shared Object Property In Application.onConnect?

Sep 30, 2009

Basically trying to update a "userlist" shared object everytime someone connects.Administration console live log reads:"Sending error message: ...main.asc: line 12: TypeError: this.usersSO has no properties"

I'm connected ok.  Here's the server code  Doesn't like "usersSO.setProperty()" call:
application.onAppStart = function(){ this.uniqueID=1; this.users = new Object();  this.usersSo = SharedObject.get("userlist", false); }

[code].....

View 2 Replies

ActionScript 3.0 :: AIR Shared Object Shared Between Flash & AIR?

Mar 13, 2009

I created a very simple experiment to attempt to access the same shared object in Flash Player and AIR.

A Flash SWF creates a local shared object.

A AIR application (being tested from CS3 or installed) opens the same shared object.

The data does not persist. Is this theoretically possible?

View 1 Replies

Professional :: Flash Player 10.2.159.1 Standalone Application CRASH With High Graphical Processing

Apr 16, 2011

Flash Player  10.2.153.1and  Flash Player  10.2.159.1 are crashing my standalone application. Later with  version 10.1 the application run ok, never crashes but was taking more than  90% CPU. The  new Flash Player solve the problem of resources, and drop down CPU to  30%, but  the application crashes always after a while, unespectly, or if I open the window of other application.
 
In  the other hand when I disable the harware acceleration at the swf  settings, the application goes crazy and start to make rapid flashes, and frame rate goes down to 8. [URL]. Right click on the Flash logo, Settings,then UNcheck the hardware acceleration in Display Settings.)
 
I'm  on a Mac Mini Core 2 Duo with Mac OS X 10.6.7 (the last Snow Leopard  these days). The graphical card is Nvidia GeForce 9400M.
 
I  did test the application at a Mac Book Pro core i5, Mac OS X 10.6.7,   graphica card Nvidia GeForce GT 330M and the application is more  stable but finally crashes too.
 
Finally if I export my application  with GPU Hardware acceleration at Publish Settings, my application  crashes almost inmediatly after I open it in each of the computers.
 
My guess is that the new Flash Version is using my graphical proccesor in a corrupted way.

View 6 Replies

Flex :: Add Detailed Remote Crash Reporting To Air Application?

Mar 1, 2010

I will be releasing my Air/Flex application soon, but I am pretty sure there are a couple of bugs that may pop up on the various platforms that Air is available for. So I was wondering if there is a way to implement a mechanism, that would send an error report, logging where the error happened, to a remote server each time an app crashes? This way I might catch errors that otherwise would go unnoticed.

View 1 Replies

Android :: Debug A Crash With A Flex/AIR Mobile Application?

Sep 12, 2011

I have a flex app using the 4.5.1 sdk and AIR 2.7 running on an Android 3.2 tablet. During use, I can get it to crash fairly regularly. It's usually when I'm rapidly scrolling around in a List control. I can't seem to find the cause.

The application will just suddenly close. It happens in both debug and release builds.

When in debug mode, it just disconnects from the debugger and doesn't give me any useful information.

I'm at a loss on how to debug this. What are some techniques I can use?

I found the "adb logcat" command. Relevant info from the log below, unfortunately it doesn't mean much to me.

[Code].....

View 2 Replies

IDE :: How To Flash Shared Object

Jun 24, 2009

Can I use Flash Shared Object to pass information between two different SWF files on two different pages within the same website?I know it can if the SWF files are the same. But what if they are different Flash object with different SWF files?

View 7 Replies

Shared Object In Flash For Stats?

Aug 23, 2009

I have a gane that uses shared object and keeps note of highscores and users names. So - if that is possible then I can set up teaching courses on standalone pcs can't I? ie: Databses I have in access can go in XML and the recording of position in course and results of tests can also be recorded using Shared object.Is that a good way of going about things OR should the whole thing go over to AIR and its sqlite system?

View 3 Replies

Actionscript 3 :: Loading External .swf File In Air Application Causing Looping Constructor

Apr 19, 2011

I'm building an Air application (straight AS3 no flex) that embeds and displays a .swf file. [code]Not only does this not add the .swf file to the display list like I want it to but it seems to run over and over again. "hello" fills up the output window from the trace statement like it's running every frame.The code loads a .jpg just fine so it must be a problem specific to flash files. I would think I would get some kind of security error if there was a conflict not this strange looping constructor. Does anybody have any ideas what is causing this behavior?So I think what was happening is that because both flash files shared the same application domain and they both had "Main.as" as the main class file it was running the constructor over and over again.I've updated my code above to show my unsuccessful attempts to load the external .swf with a different application domain.

View 1 Replies

ActionScript 3.0 :: Sockets - Flash Application And Windows Application Works For String Buffer But Not For Object?

May 6, 2011

I want adobe sockets to send "customized" class object to a server socket(WinSock2). I used socket.writeObject(myClassObj). Actually My flash application and windows application works for string buffer but not for object.

Code:
//Flash
var buffer:String = "God Bless Us";
socket.writeUTFBytes(buffer);

// WinSock2
iResult = recv(ClientSock, recvbuf, recvbuflen, 0);

Is there anything I must do before writeObject() is used.?

View 3 Replies

Flash :: Local Shared Object Path?

May 10, 2011

I have a Flash.exe projector that stores data in a Shared Object. Anything works fine if I launch it from my desktop. The Flash.exe will be recorded and used from a CD-rom. Will the path of the Shared Object change? Say, will it try to record itself on the cd?!

View 1 Replies

Access An Existing Flash Shared Object?

Oct 31, 2011

I am trying to access a flash shared object using sharedObject.getLocal("sharedObjectName"); But, it always creates a new object and doesn't locate the existing object, then I searched the location where it saves the object and I got this location from the internet c:/Documents and Settings/username/Application Data/Macromedia/Flash Player/#SharedObjects But, I could not get this directory in my windows XP. access my shared object which is residing in my flash media serverapplication folder..

View 1 Replies

ActionScript 3.0 :: Shared Object Using A Flash Server?

Jul 31, 2011

At the moment I'm developing something in which I need to have a server of some sort store and send Shared Objects. When I was looking into it the API said that you would use something like a flash media server. Well the student price for that is about 1300$ so I can't do that. Is there a way for me to create a server in actionscript using socket connections (or something). To send and receive shared objects? I haven't started on this yet I'm just looking ahead into what I'm going to need.

View 2 Replies

ActionScript 2.0 :: Removing A Shared Object Outside Of Flash?

Feb 13, 2007

How can I find a shared object file that flash uses to store data? I want to remove it manually.

View 2 Replies

ActionScript 2.0 :: Flash Shared Object (Remember Me) Box

Aug 21, 2007

I have a working shared object. The visitor types a password into an input text field and hits go. The next time they go to the log-in it pulls the shared object out and prepopulates the input text field. How can I add a "checkbox" (Remember Me) option to the process. I'd like the visitor to have the option of whether or not they want to be remembered.

My current code looks like this:
On frame 1 Actions Keyfame:
pw_babytalk = SharedObject.getLocal('babytalk');
if (pw_babytalk.data.pword != undefined) {
password_txt.text = pw_babytalk.data.pword;
}
stop();

View 1 Replies

Flex :: Adobe Air: Drag Application Crash - Error #3200: Cannot Perform Operation On Closed Window

Nov 23, 2009

Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with:

[Code]....

View 1 Replies

Flash :: Editing .sol-files (LSO / Local Shared Object)

Jan 18, 2011

I am looking for a way to edit .sol-files (LSO/Local Shared Object). I have tried searching quite a bit, but I have not been able to find any program that can edit AS3-files properly. Is there a solution for me out there?

View 4 Replies

Flash :: Dictionary In Sync With A Local Shared Object?

Mar 22, 2011

In one of the classes in my Flex application I have a dictionary, which is periodically updated from other parts of the application. It contains some sort of user preferences and I want to keep it in sync with a local shared object - the dictionary needs to be read during the class initialization and saved to the local storage when an element is changed, added or deleted.

The "Dictionary" object inherits only "Object" and does not have a change event - like the "collectionChange" in ArrayCollection. So I can't sync the dictionary just by listening for an event and manipulating the shared object in the event handler. The other possible solution would be to make the dictionary private and manipulate it using special methods in my class. Something like:

public function setValue(key:String, value:String):void
public function getValue(key:String):String
public function delValue(key:String):void

But using bindings will become a real nightmare and I will have to make changes in many other parts of the application.

View 2 Replies

Flash :: Accessing Shared Object Data Without Reloading Swf

Jun 24, 2011

I'm wondering if it's possible to access a shared object's data (once it's been changed) without reloading the swf. Specifically, I have two swfs: one changes the data in the so and lets the second swf "know" via a localconnection. I have a function in the second swf that fires via the local connection.[code]This function looks for the new value however it doesn't show the updated value in my textfield unless I refresh the browser. Thoughts?

View 1 Replies

ActionScript 2.0 :: Can 2 Flash Movies Read The Same Shared Object?

Feb 13, 2004

My problem is that i have a flash movie with has a link to another flash movie. I want both of them to read from the same shared object. I know it violates the funda of shared objects. Is there some way of doin this.Both these movies run from a Tomcat Web server within the same domain.

View 2 Replies







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