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.
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.
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?
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.
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.
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.
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?
Basically I have a sales presentation showing on a screen in various offices where I work. These show daily sales figures that can change as and when somebody makes a sale. I have an swf loading data from an XML file into slides and everything works great apart from if the XML file changes at the moment I need to force a refresh (manually). I'd like to make it so that if the file changes it automatically reflects in the swf. So far my research has pointed me to AS3 Socket Communication but I haven't been sucessful in finding a relevant tutorial.My code is below,
For a project, I'm making an interactive side scroller.You move the character with the arrow keys and press the space bar to interact with things.So far, I followed DexNote's tutorial on YouTube.I thought that I would make the interactable objects as buttons, while the mouse focus would be on the character and when you press the space bar it make a mouse click in that area.The trouble I'm having now is that I don't know how to make the space bar trigger the "interactions."
I want to generate large text files, basically 4 columns, several thousand rows, of numbers. Making an array with all this info in it occurs farily quickly, it's getting it to a displayable format that takes a really long time. Right now I use something like this:
I did this AS2 code in Flash CS4 and have a little trouble with it.[code]It works like I want it to in Flash 7 and looks like this, but when I change the publish settings into Flash 8/9/10, the code looks like this.How do I make the code work on all AS2 Flash versions?
I own CS4 design premium and very familiar with Photoshop and illustrator but NOT flash Pro. I want to make a HD 1080i HDTV 2-d technical video animation and wish to know if Flash is a good tool for this. This video would be used for corporate tradeshows on an hdtv. Specifically I want to combine pictures and overlay 2-d animated arrows, text balloons etc to make a 2-d technical animation of how a product line works. I need to have keyframed pans and zooms with this also. All this needs to be converted to 1920x1080P 29fps HDTV MP4. I own and proficient at Vegas Video 9 PRO NLE which can convert a variety of avi to mp4. My questions are.. Is adobe cs4 flash PRO able to do this with my other software?
I was sent an swf ad for my website and when I mouseover it I get the click hand symbol but when I click a page loads with an error saying that the page cannot be found.
I tried to place an a href tag around the entire swf file but I get the same error. Is there a way to fix this without having the flash file?
what im trying to do is make an interactive webssite 100% out of flash.on one of the pages in that website i would like to have one of my custom youtube players that youtube lets you make and gives you an embed code for.problem is that it is an HTML embed code.ive tried everything to get this to work and the best i could do was get the player to work in an independant .swf file but whenever i try to incorporate it into a page in my website and load it in a browser i get a security error saying that i cant let flash access youtube and i have tried everyway on google to get around that with no luck.
I have a map of the UK with all the counties and i was wondering how I would go about making a rollover flash movie. I specifically need it to highlight the county when the mouse is over that county and a little box to appear with the county name in it. Like an ALT tag I dont want someone to tell me exactly how to do it just some tips on how i would go about this. Is there an image mapping tool in Flash. Or how would i go about marking out the coordinates for each of these areas.
I'm doing some cartoons for random clients, and they're going to need to look slick on HD televisions (1080). Is there a specific size I should design the flash movie at before hand? Right now I'm designing them at 1280 x 720, but when I burn the movie to a DVD and watch it, there is just a little but of pixel distortion during some of the movement (ex. you can notice some of the outlines looking odd as they move pixel from pixel). I'm wondering if this has to do with the size I set the stage at in Flash, or if it shouldn't even matter since it's mostly all vector art.
I want to make a road in flash. You got a road with white stripes on it but it aint moving. I want the stripes to come at you to make it like you are driving the road.Its not a straigt road but diagonal and dissapearing at the eind of the horizon.Does someone know how I can make this like it is real? It has to loop over and over again.
I'm jew to Flash and I'm trying to make an animated button in Flash CS5 that has the ability to turn music on/off. I've followed different tutorials, and right now I'm trying to use an animated movie clip with an "invisible" button over it. I want the animation to swap frames when the button is clicked, and I also want the music to toggle on/off when the button is clicked.For example:When the button is pressed, the animation switches to say "press to turn off music" and the music turns on.But so far, the button isn't working, and the animation won't stop switching frames even when I enter the "stop();" code.Does anyone have any idea how to make it so that the button works together with the animation and music?
I want to make this effect in my website where there are books on shelf and when you click on one say the "About" book it comes off of the shelf and flips open onto the screen and shows the text written in the book on what my website is about. Im not really sure on how to go about this. I dont want a application where you have to flip the pages or whatever i want it to be a static page but it just flips open like a book.
I'm currently working on a new game using flash CS5. The game is really a simple quiz game.Basically I have written up an xml file with dreamweaver andI want flash to search for the Child element and return the Subchild.
<items> <Question>Legato is the musical term for what</Question>
I've been studying and using actionscript exclusively for too long, that I don't even know how to import a regular image into Flash and create a ready-made sprite that I can use in my APIs. What are the steps to create a sprite from an image asset in the library?
I have to make a animation for my school. My cencept: Make 4 Pictures from a person's head and wire them together to a cube.Then i want to import this into Adobe flash professional cs5.
My Question:Is this possible? If not, are there any other rudiments to solve my problem?
i would like to replicate this action with CSS/Javascript only. (I need it to work on ipad/iphone)
I have searched around, but all I can find is flyout menus, and no reference to dimming the pictures. (mine will have 6 instead of 2 this one has).[URL]..