ActionScript 3.0 :: Loss Of Reference Of Singleton?

Jun 28, 2011

What is the possibility of a singleton reference to be lost. Well I created a swf singletonpara a store containing some sound features of the software that I created and it's one time or another error saying that the reference is null

View 5 Replies


Similar Posts:


ActionScript 3.0 :: WMV To FLV Without Quality Loss?

Jan 28, 2009

is there anyway to convert a WMV movie to a FLV file with out loosing video quality ?

View 1 Replies

ActionScript 3.0 :: FPS Loss With Fade?

Sep 16, 2010

In my game I am making, when the character dies, I call a MC with a 1.5 second fade. It goes from alpha 1 to alpha 0 within the 1.5 seconds. It drops the FPS drastically from 40 FPS to average of 15 FPS. what I could use instead, so I don't lose FPS?

View 1 Replies

ActionScript 1/2 :: Profit And Loss Calculator

Dec 20, 2011

I'm trying to get a Profit and Loss calculator working in ActionScript 2.The red text in the yellow highlighted cells is what the user can change. They click a calculate button and the number of total value for lemons * Unit cost is supposed to be updated.[code]When the calculate button is pressed

View 2 Replies

Actionscript 3 :: Pausing On Loss Of Focus?

Jun 4, 2011

I'm working on a Flash mobile game. If the app loses focus (a call comes in for example) I need the game timer to stop until focus is restored. Here is my current code but I'm getting a "Argument count mismatch error" onDeactivate(). Expected 0, got 1.

Here is the related code, I think:

addEventListener(Event.ACTIVATE, onActivate);
addEventListener(Event.DEACTIVATE,onDeactivate);
public function onActivate():void {

[Code].....

I'm getting the error when testing in flash and I close the window.

View 1 Replies

ActionScript 1/2 :: Import Video From .mov - .flv - Audio Loss?

Jun 16, 2009

I have 3 .mov files I am trying to import to the stage.  Each time I bring them in all goes well.  When I test my swf they lose the last 25%~ of the audio no matter what codec I use audiobitrate etc. 

View 1 Replies

Split DVR F4v File Without Loss Clients From Broadcast?

Feb 3, 2010

We have implement a DVR solution, but a problem remain how can I split DVR f4v file without loss clients from broadcast?

It's possible to split file if reach a limit such as 40Gb and create a new file without cuts in broadcast?

View 1 Replies

Professional :: Loss Of Bold Text In Cs5 From A Cs3 File?

Jul 6, 2010

I opened up a file that was created in cs3 flash with cs5 flash and we have some text that is bold in our actionscript code. now when i load that file with cs5 the bold text drop's out of bold and is just plain text. Does anyone know if there is a quick fix for this because what was there before the <b></b> is not working now.

View 1 Replies

Actionscript 3 :: Catching Memory Loss In Flash?

Apr 14, 2011

It seems to mee that my app eats too much memory. Is there a way to control memory usage in flash? Amount of movie clips in memory? amount of textfields?

View 3 Replies

Actionscript 3 :: Duplicating A PNG Image Causes Loss Of Transparency

Nov 10, 2011

I am using LoaderMax to load an external PNG and display it in many places so I use the following code to duplicate the image:

[Code]....

View 2 Replies

Flash :: Packet Loss Calculate In Flex

Feb 21, 2012

How I can calculate packet loss from Flex.

View 1 Replies

Flash :: Packet Loss Calculate In Flex?

Feb 21, 2012

How I can calculate packet loss from Flex.

View 1 Replies

ActionScript 3.0 :: Motion Tween Pic Resolution Loss

Jan 29, 2009

I have a pic that I want to use a simple motion tween for where I scale the pic and move it slightly. My problem is that scaling the pic inside of flash makes the resolution of my pic very crappy. Is there any way to use a motion tween and scale my pic without losing the resolution and without having to import the pic frame by frame from photoshop?

View 1 Replies

ActionScript 3.0 :: Strange Vector Loss Of Data

Mar 4, 2011

I tried to write a function that inserts values into a Vector. After writing my first function, I started to notice some strange results. Sometimes, the Vector appeared to lose values for no reason. My original code looked like this:

[Code]...

View 0 Replies

Professional :: 3D Tween Causes A Loss In Visual Quality Of The Movieclip?

Apr 15, 2010

Has anyone noticed how the 3D tween causes a loss in visual quality of the movieclip?  For example, if I have text within a movieclip, and then put a 3D tween on that movieclip, the text becomes almost blurry (even when the tween is complete).  Then if I take the 3D tween off the movieclip, the text goes back to being perfectly clear.  It's not just text though; its any content with a 3D tween on it; text is just the most noticable.  Is anyone else dealing with this?
 
Is there something that I'm missing, like a quality setting on 3D tweens?
 
P.S. there aren't any blur filters on the movieclip.  I checked

View 3 Replies

Flex :: Loss Of Image Quality When Zooming In Mobile Application?

Jul 11, 2011

i have a mobile application that i am creating in Adobe Flex (Flash Builder 4), and i am trying to create a zoom function. The one i have works, but the point is to be able to more easily read words that are in the image (the images are .jpg files). The images are 2550x3300 originally, but as soon as you zoom, the image quality reduces drastically, and nothing is readable.

[Code]...

View 2 Replies

Media Server :: Detect Packet Loss Or Other Quality Metrics For Inbound Streams?

Aug 5, 2011

So we're trying to come up with a way to automatically assess the "quality" of streams published to an FMS. So far, I've come down to 3 different statistics:

* Round-trip ping time to client (using the Client.ping() method and Client.getStats().ping_rtt.

* A home-grown jitter calculation that compares the deviation between wallclock and media time for an inbound stream, e.g., I get N+/-M seconds of media over a period of N seconds of wallclock time. How big is M on average? (uses Stream.time and Date.getTime()).

* How much packet loss are we getting?

For this third metric, I have the client sending up period reports containing tuples of <media_time, cum_bytes_sent>, where media_time is provided by NetStream.time and cum_bytes_sent is provided by NetStreamInfo.byteCount. I'm then comparing these samples to a similar set of samples obtained on the server via Stream.time and Client.getStats().bytes_in. Unfortunately, these two data sources do not seem to be measuring exactly the same thing. While they are close to each other, the received bandwidth (e.g., measured by the server) always seems to exceed the sent bandwidth (measured by the client) by a small amount (e.g., 0.5% to 2%) on a clean network.
 
The goal of this whole exercise is to enable to server to automatically detect when a client is having problems (either network or local CPU). Among other things, this will trigger us to tell the client to try sending a lower-bitrate stream.

So, my questions:
 
* Is there a method for me to reliably calculate (or obtain) a packet loss factor?  With something like RTP, I could simply look for holes in sequence numbers, but I don't see any APIs that would give me that sort of information via FMS (our inbound streams are usually RTMFP).

* If there isn't a way for me to get a clean packet loss factor, is there another quality metric I should be looking at?

View 12 Replies

Actionscript 3 :: Maintaining Textarea UIscrollbar Position On Loss Of Focus In Flash Embed

Oct 18, 2010

I'm using Flash CS4. Everything functions as it should when CS4 previews the swf after compiling it. However, after embedding the flash item in a webpage, if the textArea loses focus within the flash piece, the textarea's built-in UIscrollbar resets to the very top. Here's the kicker: if I add a FOCUS_OUT event listener to the textArea to store the current scrollbar value, I find that the scrollbar value has been reset to minimum even before the FOCUS_OUT event is triggered! WTF? I think this is occurring because the textArea's htmlText propery is dynamically populated. Adobe AIR has advanced methods for handing HTML, but not simple AS3, oh no. How obnoxious. What can be done?

View 1 Replies

ActionScript 3.0 :: Self Instantiation In A Singleton

Nov 3, 2010

I am looking at the singleton design pattern and trying to really understand what is going on here. But I have some questions that it would seem my logic and/or the way I am reading this is wrong. Take the following code for example

[Code]...

View 8 Replies

Actionscript 3 :: Why To Use Singleton Pattern

Sep 26, 2010

I can't understand why should I even use the Singleton pattern in ActionScript 3. Can anyone explain me this? Maybe I just don't understand the purpose of it. I mean how it differs from other patterns? How it works? I checked the PureMVC source and it's full of Singletons. Why are they using them in the View, Module, Controller?

View 2 Replies

ActionScript 3.0 :: Using Singleton In A Sub-class?

Oct 30, 2009

In the Singleton design pattern you can throw a runtime error if the instance has already been created. But this doesn't work when your singleton class extends another class and has to call super() in its constructor, because (for some reason) you cannot call super() if you've already called throw(), or in fact, you cannot compile code that has a potential call to throw() (for example, in an IF statement) that comes BEFORE that call to super().

View 4 Replies

Actionscript :: Singleton Class In Flex?

Aug 21, 2009

I have a doubt,.... How would you create a Singleton class in Flex...

Is there any convention like the class name should eb Singleton or it should extend any other class.

How many Singleton class can a project have?

Can anyone say the real time usage of a Singleton class?

I am planning to keep my components label texts in a Singleton class... Is it a good approach.

View 4 Replies

ActionScript 3 :: How To Get Stage Dimensions Without Using Singleton

Feb 18, 2011

I have a few classes in my project which aren't display objects, but they need to know about the stage of my project (stage.stageWidth, stage.stageHeight). Is there a simple way to pass this information along to my classes without using a Singleton or passing these items in as parameters into the constructor??

View 3 Replies

AS3 :: Flash Singleton Conflicts And Order

Apr 11, 2011

If multiple instances of a singleton are trying to update the same property simultaneously, will there be any conflicts? How does AS3 handle the order?Flash is currently single-threaded.. will the write order be an issue when it becomes multi-threaded?

View 3 Replies

Actionscript 3 ::purpose Of A ModelLocator Singleton?

Sep 26, 2011

The use I have for it is for storing user credentials, and calling a transfer object that functions as a sort of "cache" for the current session in all of the flex modules.

Thinking about objects that have to be present in every module. Is there any alternative to a singleton instance for this?

View 1 Replies

Inspect A Singleton In The Flex Debugger?

May 28, 2009

I'm storing my model data in a Singleton called ModelLocator. This is pretty common...

Can I look at this data in the debugger?

[Edited - Title changed]

View 1 Replies

ActionScript 3.0 :: Define A Singleton Object?

Dec 4, 2010

How can I define my own global function which will be accessible throughout the whole package or better, program? Alternatively, how can I define a singleton object? Should I use static?

View 3 Replies

ActionScript 3.0 :: Singleton From Library Item?

Aug 4, 2011

I'm trying to do singleton movieclip from library, but can't get it work, how should I proceed?[code]1136: Incorrect number of arguments.Expected 1.And it is refering to the MyMovieClip.as file, to the line where I have "_myMovie = new MyMovie();".

View 6 Replies

ActionScript 3.0 :: Share One Singleton Class Between 2 Swf

Jan 23, 2012

I'm trying to load swf from 127.0.0.1 into my main.swf with Flash Pro

Both swfs have Singlenton class

How to make it that loaded swf use Singlenton of main.swf ?

I did
ActionScript Code:
var lc:LoaderContext = new LoaderContext();
lc.applicationDomain = ApplicationDomain.currentDomain;
myLoader.load( new URLRequest("http/127.0.0.1/loaded.swf"),lc);

anyway I have 2 different Singlenton classes one comes with loaded.swf another in main.swf and variables not shared

is any way I can merge this values?

View 5 Replies

ActionScript 2.0 :: Using Singleton Design Pattern?

Feb 19, 2007

a little foggy on passing variables to the Constructor from a Singleton instance. Could someone enlighten?

From timeline:

Code:
var c:Calculator = Calculator.getInstance(5,20,30);

[Code]...

View 1 Replies







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