ActionScript 3.0 :: Make Query To Server Repeatedly?
Jun 29, 2009
In my mxml code, I want to use a code snippet to query about the status of a work running at the server end. For example, the work is to calculate the product of two number.[code]...
View 0 Replies
Similar Posts:
Nov 28, 2011
I am having a server[url]... in which there is an flv file in one of the folder (http:url...)and on this server only, FMS is also installed (http:url...). I want to stream the flv file by using the FMS server, so I want to know that whether this flv file can be streamed directly from the same location where it is presently now or I have to add the file in the application folder (vod) of FMS.which path to follow for video streaming using the FMS server.
View 7 Replies
Apr 10, 2012
How can i make a SQL query from actionscript? and render all the results
View 3 Replies
Apr 16, 2010
I'm trying to run a sqlite query in flex to count the total number of records I believe its working fine but I just can't figure out how to display the results - all I get back is [object Object].
private function overviewOne():void{
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = sqlConn;
stmt.text = "SELECT COUNT(user_id) FROM tbl_user WHERE status_status ='Away'";
[code]....
So how do I make a reference to the COUNT(user_id)?
(flash.data::SQLResult)#0
complete = true
data = (Array)#1
[code]....
View 1 Replies
Jan 9, 2008
Basically, I have created a short exercise for an elearning programme that requires the user to drag and drop an object to a number of predetermined places - some of which are correct, some of which are incorrect places. Therefore, on release of the button, the object will either be placed in the correct position, or else return back to its starting place.This is my current code in AS 2.0:
on(press){
startDrag(this,false,0,0,400-this._width/2,450-this._height);
}
[code].....
View 1 Replies
Jan 22, 2003
I'm been having a bit of problem with Flash 4 and text variables. This is what I want to do: I have a blank title that I want people to complete: The (something) of the (something) (something) where people select words from lists to complete the title. I also want it to be centred on a mock book cover. The problem is that I can't work out how to make the whole title into one variable, which I can them place on the cover. Going by the tutorials I've seen, it should be something like:
[Code]...
View 5 Replies
Aug 26, 2010
I am successfully Passing HTTP Query String to Flash Query String.
Resuming:
inside html
Code:
' <EMBED src="Film1.swf'+document.location.search+'"
'+
inside as3
[Code].....
Then Film1.swf can't grab no more the userName parameter.
View 4 Replies
Aug 26, 2010
I am successfully Passing HTTP Query String to Flash Query String.Resuming:inside html
HTML Code:
' <EMBED src="Film1.swf'+document.location.search+'"
'+
[code].....
View 1 Replies
May 12, 2009
I've been using it fine - until the last month - I've completely uninstalled it - and reinstalled it. I was having this problem before I upgraded to 10.5.6... thought upgrading the OS may work - it hasn't. I'm on a MacBook Pro
View 6 Replies
Jun 26, 2006
I'm trying to animate entirely in AS for the first time. (Woo!) I'm using the Tween class, with the very convenient Tween.onMotionFinished to invoke my next animation. But once I get pretty far into it, it starts to look like this:
[code]...
I've found that, when applying a tween to a function, I am unable to refer to that tween (specifically, onMotionFinished) from outside of it. This works okay but leaves me with some rather ugly ActionScript!
View 4 Replies
May 31, 2010
I'm trying to make a loader class that will spit back MovieClip data from the Loader. If another class/function requests the same data (Rather, the same file), rather than making a new loader and re-loading it, I was hoping to just have it return the same MovieClip. This all works to some extent, but the problem I'm having is this - Because the new request is adding the MovieClip, it's taking it away from the old one.
I tried making a copy when the request is made, but the image is generally not loaded then, and because the copies aren't updated, most of the images are empty when everything requests it.So basically what I'm hoping you can guide me towards is a sort of... C++ pointer-esque thing, something that could point to the MovieClip data without actually taking it away from everything else. I've messed with AS3 for a while, but can't find anything like that. Or any other method that would let multiple MovieClips reference a single "original" movie clip, reference-style.
View 2 Replies
Nov 25, 2009
Here's my end goal: I want to display commercials on a screen at my wife's bakery. The script should load one commercial, play it, then unload it, randomly load another, and so on. I am completely new to as3 and have unsuccessfully been following several online tutorials. My first attempt had code in each commercial file (swf), that randomly called up another commercial, which in turn called up another file, and so on--but this became a memory hog and crashed the program after a few minutes.
Since then I have created one main swf file that loads an xml file, which holds all the information for the commercials. However, when the swf commercials are loaded according to the xml file, they don't play properly: when the first commercial finishes playing, the next one is already partially done. Obviously it started playing earlier. The swfs should unload and load the next according to a timer, with the length of the timer being different for each swf according to the xml data.
Even with this, the first swf didn't always stop when it should. My code is getting complicated and the display looks sloppy. Would it be better to convert the swf to flv and create an flv player that has 'continuous play' and 'shuffle' features? Would it be better to convert each swf into movieclips and put them all into one swf? (I like the manageability of using an external xml file; I will be adding and removing commercials frequently and want to keep this as simple as possible.)
View 6 Replies
Jul 6, 2010
I've got a large(at least I assume it's large, ~200meg) flash file I'm working with that upon saving, it goes into the dreaded "(Not Responding)" mode. Is this a symptom of being such a large file? It's image intensive--I can try reducing the image quality--or is there something else I'm missing?I'm on a toshiba laptop, using the latest version of windows.
View 3 Replies
Nov 20, 2011
Well first off here is my script so far on the page[url]...
Using Pastie to keep amount of text on thread low to make things easier to read.
Here are the errors I get everytime I try to debug or Test Movie[code]...
View 1 Replies
Oct 10, 2009
Here is my class, but when I rollover the button, especially near the edge of the button the sound plays continuously. I have tried to set up a boolean variable and set it true after the sound plays and false on mouse out and only play when false, but that didn't work either... I was thinking about setting up a timer to handle it, but I wanted to make sure there wasn't something simpler I was missing first.
[Code]....
View 2 Replies
Mar 2, 2010
I have a container Canvas named "cnvList" which contains another component horizontal list "hlist". When i hover the mouse over "cnvList", it should display the current mouse position relative to the container cnvList. I have used cnvList.contentMouseX for this. But it should repeatedly track the mouse position repeatedly even when the mouse is not movedk. Can anyone suggest me with code how it can be done?
View 2 Replies
Feb 13, 2011
I developed a website using flash with Actionscript 3. I included a music as a background for the website and the music will loaded when the site loaded. But the problem that when I click buttons to move between pages(frames) then go and click button_01 the music will play again so I will have music playing more than one time in the background and the sound_btn will not work any more so even I click sound_btn the music will not stop. The code I'm using is listed down. What I should modify to not allow the music play more than one time in the background while moving from one page(frame) to another.
stop();
//number that is redefined when the pause button is hit
var pausePoint:Number = 0.00;
//a true or false value that is used to check whether the sound is currently playing
var isPlaying:Boolean;
[Code] .....
View 1 Replies
Oct 13, 2011
I've made a custom video player in as3. Everything works, but once a video has loaded and played through completely, if the user replays the video it continuously fires the NetStream.Buffer.Flush event until the video stops playing again (by either ending or by the user hitting pause). It doesn't seem to effect anything negatively, but I would rather not have an event continuously firing in the background like that. I can't find any documentation of this happening online anywhere. Is this normal behavior for a NetStream that has fully loaded?
View 1 Replies
Nov 23, 2010
Working on the following site [URL] On the "What we Do" page (one click to the right) each company logo is linked using the Action Script 2 below. Only the "Zipfizz" button works though. The rest of the buttons only work very rarely. I made a stock button from a white box then turned the opacity to 0. Put one over every logo with the proper dimensions and gave them the right instance names. If you click the logo repeatedly in different areas the link will sometimes work. Anyone have an idea what's going on? I not very familiar with AS2, only AS3 but the site was built by another designer awhile ago.
[Code]...
View 1 Replies
Nov 20, 2011
Well first off here is my script so far on the page:
[URL]
Using Pastie to keep amount of text on thread low to make things easier to read.
Here are the errors I get everytime I try to debug or Test Movie:
[URL]
Also maybe if you can help a bit with it heres the check list that this is graded on. Also no I am not trying to make you guys do my work for me its just he gave us this project but I have been at work (17) and unable to finish it at all. Please help I dont want a bad GPA this ending semester.[URL]
View 1 Replies
Oct 19, 2005
i need some code to automatically scroll a movieclip from right to left repeatedly based on the width, as it pulls in images with xml.
View 14 Replies
Jan 14, 2008
how do I script a movieclip to repeatedly fade/move/scale from x to z back to x to z again and again..I've tried onEnterFrame with ..if statements and whatnot but with no luck.[code]
View 2 Replies
Aug 19, 2010
I'm attempting to make it so that when a person fails to fill in blank textboxes in another app that someone else made and I have nothing to do with but affects the XML node Path, my flash file will look instead at DefaultPath if it can't load whatever is in Path..
Here is the sample XML
Code:
<abatch>
<Title>Title!</Title>
<Path>/content/main/broken/path</Path>
[code]....
Is the code I've been trying to use but it won't do what I want. I keep getting this error:
VideoError: 1000: Unable to make connection to server or to find FLV on server
The XML is being properly loaded. Everything else is working. I just need to know that when something is blank it will look at the DefaultPath. I don't seem to be able to get it to do that.
View 4 Replies
Jun 15, 2007
I've spent a lot of time in the past couple of weeks learning Flash. I developed a Flash (swf) file that plays a Flash video (flv) with cue points. It all works very nicely locally, but when I put it on the server and try to access the html file, the Flash control is white (nothing visible) and a popup error message comes up with this error.I've looked all over the web (including non-English sites), tried playing with all the Publish settings I could think of (version check, local/network access, omit trace, enable debugging) and tried adding error handling code to the swf file itself. I've also tried changing the path for the flv file to be relative, absolute and somewhere in between, but nothing works.Does anybody know what can cause this error?
VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/play()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback
[code]....
View 10 Replies
Feb 1, 2010
i am developing video chat system , one side is model, another sider is customer. Now i want that model sider stream sended to FMS, and then FMS make two streams, that the one stream is regular, the other stream is compressed. the compressed stream is just for administrator, so it should be small.
View 1 Replies
Jul 21, 2011
I managed to make a local streaming (connection) to the server,by seting the FME at rtmp://localhost(or my IP)/live.But now i want to make a non local streaming.
View 2 Replies
Sep 29, 2009
i have coded my first xml gallery, it loads jpgs and swf files.the swf files have each a video component on stage that controls the related FLV file.Testing the gallery locally I had no problem at all, but when uploaded to the server the jpgs works fine while the swf files (containing the videos) keep trhowing this error:
VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/stop()
at fl.video::FLVPlayback/stop()[code]....
View 3 Replies
Jul 22, 2010
the chat client application is created using adobe AIR, the application should be able to do communication sims like Google Talk and AIM does. If it is impossible is there any other solution to do that?
View 2 Replies
Nov 19, 2009
First off I am new to flash, actionscript, java script, ..., and I need server side to interact with a database. I have developed the below code that through trace statements seems to work, but when I try to access variable(s) they are still in their initial state. The trace statements in "Results.onResult = function(result)" are called and printed out to the Administration console. In main.asc there is an interval that checks the variable(s) and prints trace statement. app.MyDataManager.initCalled is always false. I'm not sure if this is the right terminology, but the call back from the web service seems to be in different memory or scope.What am I missing here. I know the function setInterval(...) you have to pass this. But I have been unable to find an equivalent for WebService. Is it possible to do what I'm trying to do?
//######################################################
// DataManager.asc
//-------------------------------------------------------------------- -------------------
[code]....
View 1 Replies
Sep 1, 2010
I need to have scrub thumbs for video player load and unload repeatedly. Something isn't getting cleared. Every time the thumbs are removed, there's a slight increase in the cpu baseline - something is piling up in memory.
[Code]...
View 4 Replies