Flex :: Asynchronously Poll A File Using A Flash Timer Without Blocking The UI?

Jun 26, 2009

I have a flex application that repeatedly polls a remote XML file to detect changes, but I've found that once the file hits a certain size, the poll blocks the UI and makes the page unresponsive for a short time.

Is there any way to ensure that the call made to the server or the event from the flash.utils.Timer class runs asynchronously to the main UI thread?

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Make A Poll System In Flash Which Grabs Data From A PHP Generated Xml File

Apr 20, 2004

I've been using Flash for a while now but have just started using Flash Combined with XML. I'm trying to make a poll system in flash which grabs data from a PHP generated xml file. This is the contents of the xml file at the moment.

[Code]....

View 1 Replies

Flex :: Load Components Asynchronously?

Oct 3, 2011

I have a flex application that shows information gathered from different external services by using rest api. Some of them are resource intensive, take longer to response.

View 1 Replies

Flex To Poll The Keyboard?

Nov 7, 2011

I'd like to tell if a certain key is being held down around the startup of my AIR (desktop) application, and I'd like to tell if a specific key (ALT in this case) is being held down. Unfortunately, flex seems to be so event based that there is no way poll the keyboard directly. Can anyone verify this?

I know that it's possible to take the keyboard events and keep track manually. However, this won't work if the user presses the key right before startup, so it isn't a solution for my specific problem.

View 2 Replies

Flex :: LocalConnection AsyncError : Dispatched When An Exception Is Thrown Asynchronously?

Nov 6, 2010

I'm working on implementing communication between an Adobe AIR app and a browser Flash object, and the LocalConnection documentation mentions an asyncError as a potential event:

asyncError: Dispatched when an exception is thrown asynchronously — that is, from native asynchronous code.

However, that's the only documentation I can find on it. Does anyone know what this error actually means? I've searched around but couldn't find any reference -- most sample code I found does an addEventListener() for the asyncError but doesn't give any clue as to what it means or when it could occur (i.e. if it could occur when sending or when recieving).The Adobe documentation page also lists potential events for each method, but asyncError isn't listed under any specific method, only for the general class.

View 1 Replies

Actionscript 3 :: Update Data Inside A Scroller Asynchronously In Flex?

Nov 22, 2011

I am adding data inside a VGroup dynamically using Action Script. Each data is an instance of a custom component. So when the number of item is more, It take time to load, which look bad.

Is there any way, we can load data to it, asynchronously or is there any way, so that more data can be added inside a scroller only when the scroll bar reaches to the end ( as it happens in Android or IPhone).?

View 1 Replies

Flash :: Can Swf Be Downloaded Asynchronously

Jan 25, 2012

I'm starting a project that will build a flash file with quite complex capabilities. I expect the size of the swf/swc files will be quite big. In order not to slow down the page download, can I build the swf file so only immediately needed components are loaded with the page and other later-stage components can be silently loaded in the background?

View 1 Replies

ActionScript 3.0 :: PHP To Flash Asynchronously

Jan 31, 2010

I have a Flash application that exchanges data with php scripts. Problem is, I can SEND updates, not receive.Example:

- user drags an object to another area
- flash sends this action to a php script using URLLoader
- the server acknowledges the action and returns an "ok" message with the same URLLoader

Now if the server wants to send a message, like "there's an update available", or "your friend has logged in", how is this supposed to happen?I believe an always-open socket is out of question, because the server will have to handle too many users at once and the section might be indefinitely long. I'm not so sure about the Flash client constantly pinging the server.So, what's the best way to send data from PHP to Flash asynchronously?

View 11 Replies

ActionScript 2.0 :: Making A Flash Poll Using ASP?

Oct 30, 2006

I am currently looking for a tutorial that will explain how to build a flash poll. This is for a website I�m working on. However, the server is not PHP friendly. Thus, I am looking for a Flash poll ASP tutorial.

View 1 Replies

ActionScript 2.0 :: Good Links To Flash Poll?

Jan 30, 2010

Has anyone any good links to an flash poll tutorials?

I have looked at one on Activeden,One that shows a percentage of votes preferably

View 0 Replies

ActionScript 2.0 :: Make A Voting Poll With Flash Mx?

Apr 5, 2004

i would like to make a voting poll with flash mx, how can i do it ?

View 2 Replies

Flash :: Comet-style Long-Poll In AIR Using URLStream

Sep 26, 2011

I'm attempting to connect to an existing Comet-style long-poll service using an AIR app. The service expects a client to make a GET request with a Connection: Keep-Alive header. This request will remain open for long periods of time so that the server can push data through. In my app, the connection is terminated with an IOError after 30 seconds.

Is this an undocumented limitation of URLStream? A restriction on adl (I've only been running my app through adl)?

The server does not send any "keep-alive" messages to the client but, unfortunately this is not something i have control over.

Update

To test this, I've set up a stripped-down version using a little php script (linked by leggetter below) and am hitting it from a simple AIR app. I'm finding that my connections are closed after 30 seconds whether I use URLStream or URLLoader. the PHP:

<?php
set_time_limit(0);
sleep(40);

[Code]....

If i adjust the initial sleep time in the php script to anything over 30 seconds, the IOError event is triggered. If I lower the sleep time, but the request continues adding data past 30 seconds, the onComplete event is called, but _urlLoader.data is empty.

The only way this process completely successfully is if the entire thing is over before 30 seconds elapses.

View 1 Replies

Java :: Non-blocking Io In Flash?

Feb 28, 2010

is there non-blocking io in flash? I need it for my live chat project.what thing need if i make a live chat with the web cam in java.

View 1 Replies

Javascript Blocking Flash Content

Oct 21, 2010

I'm working on a simple website for A level ICT and am having some difficulties. My site has a javascript based drop down menu, as well as two .swf files embedded. When the drop down buttons in the menu are scrolled over, the .swf files disappear.index1.jpg is a screenshot of the page normally, index2.jpg is a screenshot when the menu link is scrolled over.I am also having difficulties with flash working with java on another page, the same .swf files do not fade into the background like the rest of the page when images are enlarged in a javascript gallery within the page. gallery.jpg shows this.

View 2 Replies

Flash :: Blocking Clicks In An External SWF?

Apr 11, 2012

I have a first SWF, the interface, which loads external SWFs, the pages, throughattachMovie. The pages themselves contain clickable buttons. What I am trying to do is enable and disable the buttons on the pages, without altering the code of the pages. I can only change the contents of the interface.I have tried using a blocker, a movieclip with :

onrelease = function() {};
onpress = function() {};
useHandCursor = false;

[code]....

View 1 Replies

Chrome IFrame Blocking Out Flash

Aug 4, 2010

An image says a thousand words:URL...A flash object in a CKEditor dialog is being blocked by the IFrame element. This only happens on Chrome. I have tried changing the z-index, that didn't work at all.

View 1 Replies

ActionScript 3.0 :: Loading Images Asynchronously?

Feb 3, 2012

I am trying to write a class, which loads multiple images asynchronously. Can anyone help me to write a image loader class which loads multiple images. My doubt is that do i need to create different instances for Loader and URLRequest for each images? How this is managing efficiently.

View 3 Replies

ActionScript 1/2 :: Embedding Flash Blocking Content?

Mar 17, 2010

I just finished creating/testing and uploading a flash file to my media server. However because I wanted it to stay a constant size and centred on peoples screens I embedded the flash file into an html page using dreamweaver. Everything still worked fine except for one function. My contact movie clip (mail_mc) had a getURL function ("mailto:etcetc");

View 1 Replies

Creating A Live Poll?

Jul 14, 2009

I need to create a website that has only one question on it, and then displays the poll results automatically after a user makes a selection, showing the overall results updated in real timepoint me in the right direction on where to get started with this.I imagine I will need some php and possibly mysql to make this guy go.

View 5 Replies

ActionScript 3.0 :: Loading Large Content Asynchronously

Aug 20, 2010

I have made an application which loads large pictures and videos (1920*1080 px).

- Picture component is a swf movie that I load with a Loader and feed him with the path of the picture I need

- Video component is a custom actionscript class that uses Video class.

Before to create any of these components, I display an animated sprite (a wheel to suggest a current loading). Then I create this component and load the content. When the content is loaded, then I add it to the display list and remove the wheel sprite.As these actions take a while, the wheel is visible for 1 to 2 seconds. My problem is that during this loading operation (by a Loader or Instantiation), the animated Sprite is not running properly and smoothly, like if Flash was loading the pictures and videos synchronously.Is there a way to make an animated sprite running properly while I am loading a swf or loading a video through the instantiation of a class, means running something asynchronously?

View 2 Replies

Flash - Timer Object With TimerEvent.TIMER Event Globally Accessible To All Objects?

Feb 16, 2012

I am working on a very simple game in Flash. I want to make all the animations framerate agnostic, so that I can change the framerate without affecting the flow and speed of the game.I read somewhere that if you want to do that, you simply create a Timer object and attach an event listener to this timer.

What if I have many objects that have to listen to the same timer? See the code to understand what I am trying to do. At this stage nothing breaks, but the event does not fire.Here is the Main class, the one that runs on swf execution:

public class Main extends MovieClip {
private static var _stage:Stage;
private static var _timer:Timer;

[code]....

View 1 Replies

Media Server :: Blocking Of Downloading Flash Videos

Aug 2, 2011

i am wondering how do i block people from downloading my flash videos?is it in the HTML code or a server setting??

View 12 Replies

Flash :: Graphic Added Over Button Is Blocking MouseEvent?

Oct 29, 2009

I have a couple of buttons that slide up and down, when in the up state I add an X graphic to symbolize a a close button. However the X graphic seems to be blocking my button action.I have an example in the movie I've been working on >> here <<.There are 2 movies here, the big one if you click either blue tab you will see what I'm talking about, X button shows up, but clicking over the X area will not drop the button down. You have to click on blue button area to drop the button back down.Now I've made a smaller test movie adding the X button basically the same way and if you will notice it works fine (will animate to the right even if you click over the X graphic)Here is my code in the Big movie (I hid the tween code so it won't be so long):

function handleButtonClick(event:MouseEvent):void {
var button:MovieClip=event.target as MovieClip;
var id:Number=Number(button.name.split("button")[1]);

[code]....

View 1 Replies

Flash :: Javascript - Detect Weather A User Has Any Sort Of Flash Blocking Plugin Installed?

Feb 3, 2010

I'm wondering wether there's a Javascript way to detect wether a user has any sort of flash blocking plugin installed so i can accommodate these users properly. For example, I use 'click to flash', but sites that use SiFR to render text are littered with "click to flash" buttons, which is getting very annoying. I don't use SiFR in my designs for this reason. But if I could spot wether there's a flash blocking plugin installed, I would simply not call the SiFR function.

View 1 Replies

Javascript :: Flash - Implement Blocking Modal Dialog In With DHTML?

Dec 21, 2010

I have a website with a flash image viewer. Once user clicks on flash button, I need to give a confirmation modal dialog before saving the file and if user clicks on OK only I have to pop file download dialog. Confirmation dialog with in flash is not an option for me. So I have to invoke JS function to pop a confirmation.Within the site, a custom DHTML confirmation modal dialog is used and it has two JS callback functions one for "OK" and the other for "Cancel" button click event handers. I have to use this modal dialog for this need.With Flash player 10 security features, it is unable to pop flash file download dialog via JavaScript

View 1 Replies

ActionScript 2.0 :: Stop Blocking The Active X Control For A Flash Movie In IE?

Feb 6, 2007

How do you get the information bar to stop blocking the active X control for a flash movie in IE.when I am in fire fox, it just starts the flash movie. Right in the HTML page. But with IE, the info bar at the top pops up, and blocks my flash movie.Then you have to click on it, and say that you want to activate the active X on the page. Is there anyway to stop this from happening. I remember, using IE, that not all flash is blocked, just the stuff that I make.

View 7 Replies

ActionScript 3.0 :: Get Poll/Evaluation Quiz Template?

Nov 14, 2011

I have decided of using AS3 on my Evaluation Quiz because only AS3 supports saving pdf file. I need this feature for reports/tracking.
The question now is where can I get Poll/Evaluation Quiz Template?

View 2 Replies

Actionscript 3 :: FlexSDK, Blocking Mouse Wheel Scrolling When It's Over Flash Stage?

Jan 14, 2012

I searched for this a lot, but I couldn't find a solution for this 'bug' as it's called here:click on first flash, and use mouse wheel, then click on second flash and use mouse wheel again. Now You know perfectly what 'bug' I mean.The thing is, I believe this bug can be solved WITHOUT externalinterface. This chat is made with AS 3:pen 'codebox', hold ENTER to make a hundred of lines or so, and then test your mouse wheel.It doesn't use any externalinterface technique (both obviously as it's Kongregate, and confirmed by author), just mx.component.textArea that itself implements the scrolling nicely.I couldn't achieve that with even.preventDefault or stopPropagation.

View 1 Replies

ActionScript 3.0 :: Delegate Heavy Computations To Be Handled Asynchronously (on The User's Machine)?

Aug 20, 2010

Is it possible to delegate heavy computations to be handled asynchronously (on the user's machine)? When it's done, I could just fire an event, catch the new data, and update. I have played with this for lesser operations, by just setting up a que and only handle a few operations per frame; but is there another method? That feels like a heavy handed workaround, and it won't scale with faster/slower machines. IE: 12 operations per frame works fine on the test machine, but my machine can handle more, but won't do it because it's hard coded.

View 2 Replies

ActionScript 3.0 :: Voting Poll Using PHP & MySQL >>TypeError: Error #2007: Parameter Text Must Be Non-null?

Dec 13, 2010

I am getting this back:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()

[code]....

View 1 Replies







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