Actionscript 3 :: Increase The Buffer In Virtualized Flex 4 Layouts?
Oct 12, 2010
Virtualized Layouts are nice, but I find that they often feel a bit "chunky" due to the "tightness" of the virtual range. This could be improved by increasing the range - one or two steps ahead (and behind) would often be enough to improve the "responsiveness" of the list, especially when external resources (like images) need to be loaded.
View 1 Replies
Similar Posts:
Nov 3, 2009
As the piece of music I use on the intro page to my site has become quite lengthy, I decided to stream it rather than imbed the file. I used (AS2):
var mySound:Sound= new Sound();
mySound.loadSound("melange.mp3" , true);
mySound.onLoad = function() {
mySound.start();
}
Which worked fine, the only problem being that after a certain amount of time (which varies depending on computer, bandwidth etc.) the tune will stop and then immediately start again from the top. After this, it will play back fine every time I load the page, until I empty the cache, turn off the computer, etc.
All this leads me to believe that I have a problem to do with buffering. Im thinking that if there was a line of code to override the default buffer size, I might be home free.
View 1 Replies
Jul 6, 2010
I'm just finished my first month of getting to grips with flex. All of my projects so far have be very small fixed sized containers with everything in the application resting in an absolute position.The next up and coming project is going to require a more dynamic layout and need some advice.The app will consist of 3 container (not sure what ones to use yet)
Container 1Will be the entire width of the app and a quater of its height.
Container 2Will be beneath Container 1. It will be half the width of the app and 3 quaters of its height.
Container 3 will be the same as container 2.
I want to be able to collapse each container and have the other containers respond to this.For example, I would like to collapse container 1 so that container 2 and 3 go from 3 quaters height to 100% height.
If I collapse container 2 conatainer 1 remains the same but container 3 goes from half thes apps width to 100% of the width.
View 1 Replies
Aug 9, 2010
[Flex 4] Float left or right in layouts or containers?i have a main container, that is dynamic, 100% width, and in it there are 3 components. one should be floating to left, to right and the other will be centered. how do i do that?
View 3 Replies
Sep 6, 2011
I have a general Flash question. I have got 2 .SWF wrappers (Playbook and Android,that work perfectly) that takes any .SWF file and wraps it up as an application. I'm hoping to make 1 application and have it run on both the Blackberry Playbook and any Android device.Technically everything is perfect but the problem I am having is with the layout.For example if an object is placed at x= 512 y=400 then it looks great on the Playbook but that looks horrible on an Android screen thats not 1024x800px. What I want to be able to do is something like (x=DeviceWidth/2), (y= DeviceHeight/2) so that it resizes and repositions itself automatically. An example of where I need to change the code is shown belowbt1.tween("_y", 400, 0.5, "easeOutBack");
View 1 Replies
Jul 17, 2011
Suppose you have a view, which contains three control A, B and C. The control A and B are in a HGroup, which itself is inside a VGroup with C.
Based on user interaction, I'd like to re-arrange the controls to new layouts. For example all three inside a VGroup. Or for example a layout, which hides A and B and maximizes C in size.
While I could hand-write the code, I'd like to use something like a layout template. A template, which contains placeholders for A, B and C. Give the current view, I'd like to pass the new template and the view should rearrange.
View 1 Replies
Aug 19, 2011
How can I increase the _height property of a window without increase the height of the title and the bar at the top of the window ?
I want only to increase the part of the window where I put textFields and buttons.
View 6 Replies
Jan 27, 2010
Live streaming and a buffer on a NetStream do not mix. Why? The docs don't say you can't do this.The playback gets hosed. Buffer is supposed to fill to what you set it to before playing. Instead though, about half the time, the player starts playing right away and disregards the buffer time you've set. Then you get caught in short buffering and rebuffering cycles that degrades the playback experience.
Give it a shot yourself. Here is the simplest of live streaming video players. No frills. Just connect it to your live stream by changing the defaultURL string and stream name in the ns.play() statement.
Run it in Flex debug mode. It will check and print the ns.bufferLength property every second. The buffer is set to 20 secs currently. Last time I ran it, I never made it above 2 seconds in the buffer. Player started playing right away instead of buffering the full 20 secs first. Sometimes you get to the full 20 and sometimes not.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="init()">
<mx:Script>
[code]....
View 2 Replies
Apr 5, 2012
I am having an issue with sockets where the data I'm sending is getting truncated on the client side (Flash/Flex). The data that is sent by my server is full and in tact, but flash does not wait the appropriate amount of time before firing an event saying to read the data. This results in the data not getting fully read and (as such) I can't parse the object out of it after that. We are exploring the possibility of stripping the object into smaller chunks, but the idea is for it to be as lightweight as possible so we would much rather get it to work the way it's supposed to than patch in a temporary solution.I'm not entirely sure if referring to it as the receive 'buffer' is correct, as some computers are able to receive all of the data and others are having it truncated (which means the buffer is adequate but flash isn't waiting the appropriate amount of time to dispatch the event for whatever the reason).
View 1 Replies
Jun 9, 2011
I have a simple TextArea
[Code]..
Everything works as expected, but the undo buffer is reset / stops at the point that a tab was inserted.Is there a way to ensure that the undo buffer remains in tact even with the tab inserted
View 1 Replies
Jan 9, 2011
I was working on a project, copying and pasting a large amount of frames and objects when Flash CS4 would not let me save, the message was something like "cannot save due to an unknown error" so I closed it and opened again, and the following error popus came up repeatedly:
1) "The following panel layout is missing or could not be read:/Users/(my name)/Library/Application Support/Adobe Flash CS4/en/Configuration/Workspace/Animator.xml
The application will not have have a correct layout. Please load one from Windows - > Workspace."
2) " XML parsinfg fatal error: Invalid document structure lone: 1, files: Users/(my name)/Library/Application Support/Adobe Flash CS4/en/Configuration/Workspace/Animator.xml"
I looked for the file and it's actually in the folder.I've uninstalled and reinstalled Flash CS4 twice, and the entire Creative Suite once already, none of this has solved the issue.
View 2 Replies
May 18, 2003
I want to use the same movieclips (some are button movieclips) but be able to have a function lay them out at runtime in two (or more) layouts. Just the _x and _y position like in this example:I'd like to layout the mcs with just actionscript. So it can be hardwired into the movie's script with parameters A yielding layout A, et cetera.
something like this:
Code:
boxOne_mc._x = 100;
boxOne_mc._y = 100;
boxTwo_mc._x = 200;
[code]....
but all wrapped up in one function.
View 14 Replies
Sep 25, 2009
I have an odd one;If I run my app in FF, then @ is given by Shift+2 (as per US keyboard layout).If I run my app in IE, then @ is given by Shift+' (as per UK keyboard layout).My keyboard is set to UK layout.
View 1 Replies
Feb 25, 2010
Recently i worked in a project where i used 5 radio button to select a page number. Now the clients wants a big radio button. how can i increase the size of radio button in flex?
View 1 Replies
May 4, 2010
I'm creating a custom preloader for a Flex app and have noticed the following behavior: when loading, the progress bar goes to 100%, then down then back up, and so on until the app is finished loading.When I put a trace in the dowloadprogress listener, I see that while the app is loading, both bytesLoaded and bytesTotal increase, but not necessarily at the same time.[code]Why does bytesTotal change during load?
View 2 Replies
Oct 26, 2011
I just added columnWidthRatio: 1; to my mx|ColumnChart to fatten up my columns a little. But now, there's no space between the X axis and columns, and between the columns themselves, so how do I increase this space?
View 1 Replies
Mar 11, 2010
I am using the AutoComplete component in my Flex website. Everything is fine, but there is one issue. If I type something in the text area, and the items that are searched are alot, i want to increase the height of the dropdown box.
Below is the code to my autocomplete
<auto:AutoComplete borderStyle="none" id="txt_global_search"
textAlign="left" prompt="Search Content"
dataProvider="{global_search_list}"
allowEditingNewValues="true" allowMultipleSelection="true" allowNewValues="true"
backspaceAction="remove"
[Code] .....
View 1 Replies
Oct 7, 2009
I have a panel inside which I have a datagrid and a button. The functionality is that when I click the button, an row gets added to the data grid. I have described the pane height and width in %. But as the number of rows in the data grid increase, due to fixed panel height, a scroll bar appears in the data grid. But I want the panel height to increase dynamically as I increase the data grid rows.This is my flex code:
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;[code].........
View 3 Replies
Mar 26, 2010
I'm using Flash Builder 4 Beta 2. I have it connecting to a PHP service. The way I set this up was using the wizard, so I didn't actually write the code to connect to it.[code]...
One of the functions that I'm calling fetches users from a MySQL database. There are about 30,000 users right now. The service seems to timeout when fetching more than around 22,000 rows, I get the "Channel Disconnected before an acknowledgement was received" error. If I call the PHP script from a browser, it fetches them all with no problems at all, however. I have tried increasing the timeout in the PHP script (which didn't work), but obviously this isn't the problem since the browser is able to pull them up with no problems.
View 1 Replies
Jun 3, 2010
i have one value in text box(eg:1200) once i drag the HSlider from left to right text box value to increase 1200+150 for each intrevel.if right to left has to decres 150 as same.
View 2 Replies
Aug 25, 2011
I need to be able to output some large xml strings, and they are getting cutoff.
View 2 Replies
Nov 23, 2009
I'm trying to get my main class to resize to the browser window size. I'm listening on the stage to Event.RESIZE, updating my width/height to match the stageWidth/stageHeight, and drawing a rectangle to show me how big it is. When I resize, it flashes between a small and big size every other time the event fires. The width and height are correct in both cases, but in the "small" case, everything is in a small box.
[Code]...
View 2 Replies
Mar 29, 2010
I am trying to increase the height of container with increase in the number of contents inside the container. Like in my case i m using tileList inside tabNavigator , when I put contents inside the tileList, the height of tileList does not increase beyond vertical height of the viewport. It puts scrollbar on the container. I want to increase the height of an flex container with increase in the contents and introduce scrollbar on the browser with increase in contents in the flex container.
View 3 Replies
Aug 3, 2011
I have recently started working with Mahjong game. But being not so experienced developer. I am just confuse about many aspects of it. So if anyone could throw some light on it. I have to build the game where there could be different number of tiles on screen. 32, 48, 64 , 80, 96, 112 and so on Now I have questions regarding the levels of blocks in this game. I mean the layouts of the game should be predefined or they should be dynamically created? Also I wanted to know how the surface of enable and disable symbols are created?
View 2 Replies
Nov 19, 2009
I have employed two different methods to embed an flv movie in webpage, but both result in studdering because the movie catches up to the buffer. I can't figure out what is wrong... is the frame of 30fps rate too high? is my method of embedding the files and playback wrong? Or is it just a function of the viewer's internet speed?
Method 1:
Dreamweaver > Insert Flash Video
FLV size: 13,428kb
Play time: 2:31
[code].....
View 3 Replies
Oct 14, 2007
I'm trying to figure out how to REMOVE any buffer on video. So imagine it like this. You have a live stream set up on a server, and a flash app plays that live stream. I need it to use rtsp as well.does anyone know how this is done in flash? or a way in flash to view/show live feeds?
Similar to using VLC Player, and upening up a rtsp feed, it plays in the player. I need that exactly, or very close to using flash.
View 0 Replies
Oct 27, 2009
i've a very strange problem with a NetStream Buffer only in Internet Explorer (flash player version 10,0,32,18). When I connect to a netstream I use this:
var videoOpe:Video=new Video();
var stream="name live stream";
var nsOpe = new NetStream(nc); //nc is an active netConnection
nsOpe.bufferTime=1;
nsOpe.client=this;
[Code]...
View 1 Replies
Apr 8, 2010
I'm trying to make a preloader for the buffer for a 19MB video. I can trace everything, but the math won't do.
Preloading the video itself is no problem. But what I want is to make a xx% preloader for the buffer of this video.[code]...
View 4 Replies
Jul 27, 2009
I would like to show a spinning circle at the start of the video letting people know it is loading until such times as say one third of the video has loaded....then i want to play the video. Once the video starts playing i would like the spinning circle to show again while the video buffers again if the user has a slow internet connection.
View 1 Replies
Jul 20, 2010
I have built a video gallery. All videos are stored on a video hosting server. Throughout my timeline, I have various FLVPlayers mapped to their relevant video. The videos are generally from 45 mins to 1 hr 15 mins in length. I am finding that the video doesn't start to play until a player has been sitting there for 5-7 mins. I am assuming this has something to do with the buffer timeframes HOWEVER, when I attempt to access the same MP4's through Google Chrome, they start playing within 10 seconds.
There is no actionscript refering to the videos or onClip handlers. The video players are there and simply refer to URL of the video it should be playing.
View 7 Replies