ActionScript 3.0 :: Appendbytes With Larger Memory Consumption?
May 13, 2011
when i user appendbytes, my memory consumption become too Larger, how can i reduce it. i tried to close the netStream and seek(0) and appendBytesAction, it's not usef.
I'd like to learn how to create a java web service that can be consumed by a web tier, which is constituted of java and flex. What books can help me learn how to create a java web service and consume it via java & flex?Should I look to build a web service from scratch or from frameworks like: XFire, Axis, CXF, Spring Web Services, etc.?If using a framework is recommended, which of the above or any others makes the most sense to learn/use?
EDIT:Both the java AND flex components of the web tier need to independently access the web service. For example, the flex component helps the user create & save a spreadsheet; the java component retrieves the spreadsheet data and displays it accordingly.
Hopefully this is a straight forward question but as far as resources when compiling a flash project is flash more cpu dependent or gpu dependent? Trying to spec out a machine and need to determine what flash is going to use more.
I am trying to play a mp4 video file with netstream.appendbytes method. But the video downloading. When I load a flv video file, the player play the flv video but when I am trying a mp4 video file, don't loading. flv works, but mp4 don't works.
My code is import flash.net.URLRequest; import flash.net.URLStream; import flash.events.ProgressEvent; import flash.events.Event; import flash.utils.ByteArray; [Code] .....
i am trying to play a mp4 video file with netstream.appendbytes method. but the video down't loading. when i am load a flv video file, the player play the flv video but when i am trying a mp4 video file, don't loading. flv works, but mp4 don't works.my code is
I have a simple flv player which connects to a CDN which can take header byte range requests if a user wants to skip through a flv without the need for the flv to be 100% loaded.I am using a third party http librabry to add the range header to the request.My code plays the flv but when I try to skip to 30 seconds into the video it just freezes. I beleive the cdn does return the file as i can trace through the bytes and the header has the content-range repsonse (below).[code]
I am using NetStream.appendBytes() to play a local video (no server involved) in Adobe AIR. I would like to use BitmapData.draw() to take a picture of the video output, but I am getting this error:
This is only sample code use for an explanation. The error would happen when calling the getImage method while the video is playing. The error mentions a policy file not found. Since the file is loaded locally there isn't really a place to put a policy file. Is there a policy setting somewhere that needs to be set or is the BitmapData.draw feature just not available when using appendBytes?
I have a problem with my video player, I'm doing the video display through a seekbar appendBytes and I have but I can not make the video go to a certain point of view when I click on seekbar. I found that the problem is in how I view the video, which is the appendBytes.
the tips: Error #2123: Security sandbox violation: BitmapData.draw: cannot access null. No policy files granted access.
Here is some sample code
[Code]...
This is only sample code use for an explanation. The error would happen when calling the getImage method while the video is playing. The error mentions a policy file not found. Since the file is loaded locally there isn't really a place to put a policy file. Is there a policy setting somewhere that needs to be set or is the BitmapData.draw feature just not available when using appendBytes? It is a local flv file, not an ramp stream from a server.
I am trying to figure out how to use http dynamic streaming with flash 10.1 but I can't get the basic functions working. What is the syntax for using appendbytes with a video file?
I have a bit trouble with LoaderMax memory occupy, i have a queue, and i am keep loading images depend on user's action. if they click load more and it keep load, but i would like to clean the memory which been occupied by the previous queue (i have remove all the children been added by the loading previously). is there a way i can do it? the behavior like this.
I have an FPS monitor running and notice that I am getting choppiness here and there, bringing my game from 40 to 27 fps and back and forth at certain stages. I have an idea of where it is happening, but do not know for sure. I looked up quite a few memory monitors but haven't found anything decent yet. Is there a memory monitor that allows you to see the memory leaked and find its location? If not, how about just he memory leaked?
We are having a little problem implementing bandwidth detection with FMS, for some reason when enable it, bandwidth consumption spikes significantly I am wondering why? and if there a white paper somewhere that would talk about how properly implement this feature.
I'm making an isometric game and I need to know which takes less memory for scrolling, making everything invisible that you can't see? Like if(!this.base.hitTest(worldHitter))this._visible = false; Or would it be better to remove the movieclips unseen and then reattach them when i should see them?
I have a netConnection connected to a Flash Media Server. I am trying to use the new appendBytes function from Flash Player 10.1 to stream a local FLV file to FMS. I'm having issues however... Documentation I get online
function playFile(data:ByteArray):void { // data is bytearray data from an already loaded FileReference object[code]....
However, I'm getting an error with the appendBytesAction and appendBytes. The error is: Error #2004: One of the parameters is invalid....TypeError: Error #2004: One of the parameters is invalid.
I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference.Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of the application.
i know there is a code that determines which of two values is larger and returns the larger value.i cannot seem to find it in the actionscript help.i know you can do it with
[code]...
but there is an easier way and i cannot find the file that i used it in previuosly.
I am trying to use Actionscript and movie clips. I get my script to work but my thumbnail does not enlarge when clicked. It stays the same size. Here is the script that I am using:
[Code]...
The thumbnail moves where it is supposed but does not get any larger. I have been working on this for 2 days now and have almost lost my mind!
I have opted to use the UILoader component to load external .swf's of my images. The problems I am running into are that: one, the UIloader does not seem to be loading at all some of the time
and two, I cannot have a UILoader that is larger than the dimensions I am loading the image into.
For the first problem, is there a way to put a progress bar that specifically targets the UIloader so I can make sure that it is actually loading? I've been looking for a tutorial for this, but have yet to find one that explains the code and what it does, making it difficult to customize.
For the second problem, is there any workaround for this, or are the dimensions of the loaded .swf limited to the dimensions of the base .swf?
Anyway, I have a 2037px wide flash movie that I purposely made that wide so that it would take up just about any screen.
What I'm trying to do is simply center it and basically hide the overflow on smaller screens when the movie appears on the end user's monitor. I can't get it to center, however, as it always just wants to align to the left. I don't want to use the 100% feature because that distorts the movie.
I've tried using the "overflow: hidden; text-align: center;" CSS feature, to no avail. Is there a way in CSS to make this work? Do I need to use javascript or something? If so, which script do I use?
...to print a chart displayed in the user's browser as part of a full-screen Flash application. This works fine if the browser window is larger than the available print job page size. However when the browser window is smaller, the print out is clipped. How do i resolve this? Is there an object I can add my Sprite to that will not get clipped by the bounds of the browser window?
The size of the original MC is 300 x 200. Using the above code how can I convert it to a bitmap 5 times larger as the original MC? (the original MC is a vector drawing)
The more I work with this program, the more weird stuff I encounter. I set up my .fla file as 700 x 400. I've been putting stuff on the stage and adding tweens, then when I test the movie, part of the stage image is cut off. I turned on the ruler, and found that the top of my stage is aligned at X 0.00 and Y -44.50. I drew a box the size of the entire stage, and its position is X 0.00 and Y -44.50, and the dimensions are 700 x 469. Can anyone tell me why my stage is larger than 700 x 400, and how to get the top left corner of the stage to be aligned at X 0.00 and Y 0.00?
I have a Flash project in Actionscript 3 that came out to about 75kb when rendered as a .swf file using Flash CS4. After exporting the same project in CS5 with the same settings, the .swf file is about 150kb.
Is there any way to make a stage larger than 2880x2880?i'm working on a game,and i want to build a big level,where the player and move and discover,and the current stage size just isnt big enough.The background is not moving just my player,so the level has to be pretty big to explore...
I'm working on a web banner campaign, which as you probably know involves strict file size limits -- an extra 1 or 2k here or there can mean the difference between an ad being accepted or rejected by publishers. What I've been finding is that that files published from Flash CS4 are about 10% bigger than the exact same documents published via Flash CS3. Is this a documented bug with Flash CS4? Is it just not ready for primetime, as far as producing banners goes? I'm using AS 2.0, targeting Flash Player 8; I've deselected the option to include XMP metadata, and checked the Compress Movie checkbox. Using the new (slightly awkward) Motion Tweens or using the old-style Classic Tweens doesn't seem to make a difference.
One interesting tidbit: I'm using TweenLite and one easing class, which should add around 5k to my file. However, in CS4, the size report says that I've got 17k of ActionScript classes included. What's weird about that is that if I comment out the import statements, size report now says I have 5k of ActionScript 2.0 classes - but my file size doesn't drop by a corresponding amount (it only decreases by about 5k). Very odd.
Relative newcomer to Flash, and I have (what should be) a simple question: how does one go about making the CS3 checkbox component larger? I'm not talking about the bounding box (checkbox + label); I'm talking about the checkbox itself. I've looked all over the place, and I'm stunned that this doesn't appear to be as easy as I thought.
I have sprites with dynamically created children: combo-boxes, buttons, and textfields. The number of children is variable and they're positioned vertically one under the other. If a sprite contains textfields only, its height corresponds to the joint height of all children + the spaces between them. In the case of sprites containing combo-boxes and buttons however, the sprite height is larger.
I may be on the wrong track here, but it seems that what is responsible is the object bounds. E.g. if my button height is 25 and getBounds returns 100, the sprite's height is larger by 75 pixels.The sprites are loaded into a scroll-pane, and depending on their size, the vertical bar is visible (or not). Obviously the above results in situations where a scroll-bar appears even though the entire contents of the sprite is visible, or one scrolls down to an empty space...Is there a way around this problem? Can object bounds be re-sized as well or can I overwrite this '100' value somewhere in Flash itself?