ActionScript 3.0 :: Communicate With PHP File Every Few Seconds?

Aug 15, 2011

I am trying to make a real time communication for a flash file with php so if there is a change on the php the data are refreshed on the flash automatically.

I have a function that loads the php data in flash, how can I repeat that so it checks if the data have changed every, 5 seconds or so?

Also, how can I create a function that will do something when the data changes? So let's say the data is 20, if the file communicates with php and sees that data have changed to 25, how can I tell flash to play a movieclip or whatever?

View 8 Replies


Similar Posts:


Flex 4 :: Communicate This With A File Aspx?

Dec 16, 2010

I'd like to know if it's possible to communicate flex 4 with a file .aspx..

My problem is.. I'm trying to export a datagrid to excel and both parts are right, except because they are not communicating.. When I open with Visual Studio the url is = localhostcasawsExportExcel and when I open with flex the url is localhost:8080casaExportExcel.

View 1 Replies

ActionScript 2.0 :: Communicate With The External Swf File?

Dec 1, 2008

how to communicate with the external swf file.

Its really very important for my project.

Clients are going to give me a big project on this basis only.

If I am able to do it really I will get the project.

View 4 Replies

ActionScript 2.0 :: Way To Communicate From Timeline In Flash9 To External .as File?

Jan 7, 2007

is there a way to communicate (transfer variables) from the timeline in flash9 to an external .as file? ive tried making a movieclip symbol in flash and making a external class file for it(and then linked the 2 together) but when i try to get code from the first frame in the timeline to work with variables in the actionscript class file, it doesnt work.specificly what im trying to accomplish is a menu that i can access to change variables while my movie is playing.

View 5 Replies

ActionScript 3.0 :: Add Event Listener From External Swf File So That It Can Communicate With Main Swf?

Jan 3, 2011

i have a mp3 playlist which loads externally into my main timeline into an empty container movie clip...When user clicks play button on playlist i want some animation to happen in my main swf... So if i add an Eventlistener on my play_btn... how will Flash understand that button was clicked?

View 1 Replies

ActionScript 2.0 :: Make Flash 'communicate' With Notepad File To Store Information?

Jun 17, 2003

i want to make a discussion/message board. but a very very simple one. no username, password.. just a board where people can wite one or two lines. thats all.its very hard to find one out there. i think if i can manipulate a guestbook files, i can make a simple discussion board. The problem is that i dont understand how to make flash 'communicate' with notepad file to store information like how they did in guestbook. this is link to one of flash message board i found, but it has too many section - like kirupa forum. i dont have any ideas to make it as simple as i want. i dont understand the AS

View 2 Replies

ActionScript 2.0 :: Call Every 60 Seconds To A PHP File Too Much?

Apr 28, 2008

I have a movie that I need to update every 60 seconds, calling a PHP file, which provides update server time/date, and (on-the-fly updated) air times for an online video. Is every 60 seconds too CPU intensive?

View 2 Replies

ActionScript 2.0 :: Playing Last X Seconds Of A Mp3 File?

Apr 18, 2012

I have been trying to figure out how to play the last x seconds of a mp3 file depending on a variable. I could not find any examples/tutorials that are close to what I need.

The thing is, I have an animation that lasts 9 seconds (this is a variable), I want the sound file to last 9 seconds as well.

View 3 Replies

Actionscript 3 :: Get How Many Video (in Seconds) Is Buffered From MP4 File

Jul 7, 2010

I can get which part of file in bytes is loaded using netstream.bytesLoaded,netstream.bytesTotal, I can get the current playing position using netstream.time. But I want to know how many seconds of video are already loaded (not the length of buffer, which remains constant).

View 1 Replies

ActionScript 3.0 :: Getting Minutes/Seconds Of Streaming Mp3 File

Sep 14, 2009

I have been searching and trying different methods to locate how to calculate minutes and seconds of an audio file that has been loaded within my public class. Does anyone know how to get seconds/minutes with a loaded sound object? I can easily do it with video, but it seems a bit harder to find info on calculating sound object length in minutes and seconds.

Currently, my class:Loads the mp3 file Contains pause/play, mute/unmute buttons and they function beautifully A scrub bar - this is the piece I am currently working on. I want to add a current time and total time (minutes/seconds)Scrub bar contains progress area bar - already built and functioning

View 9 Replies

ActionScript 2.0 :: Populate MCs With XML File, Then Change Value Every 30 Seconds?

Nov 11, 2005

XML:
<adList>
<ads>

[code].....

View 3 Replies

Android :: Getting Data In Seconds, Want To Calculate Hours, Minutes & Seconds

Jan 25, 2012

I'm getting a data which contains a certain number.

I need to find how many hours, minutes and seconds it stands for.

for example:

I'm getting the number 248 which means:

00 hours : 04 minutes : 08 seconds

View 3 Replies

ActionScript 2.0 :: Flash Counts Down Faster Than Seconds . How To Get It To Seconds

Jun 10, 2010

When i use time varaible and then minus the time. Ive noticed that flash does not count down in seconds, but the speed of light. My maths are not very strong so how can i get flash to count in seconds

var time =60;
sprite.onEnterframe = function(){
time -=1; ( this counts faster than seconds)
}

View 5 Replies

ActionScript 2.0 :: Start A Sound At X Seconds And Stop At X Seconds?

Jun 10, 2007

I'm trying to figure out how I can make the sound file that I load into Flash start at x seconds and end at x+30 seconds.So basically, I just want a 30 second sample to play starting at a specific time position. Does anyone have any advice on how to do this or have links to somewhere I can read up on it?

View 4 Replies

Actionscript 3 :: Convert Seconds To Minutes And Seconds

Apr 2, 2012

I'm working with the youtube API and I'm getting the current time on the video as seconds.What I want to do is to convert them into this: MM:SS.I've tried to google and try different things by myself but nothing seemed to work and be efficient.

View 4 Replies

ActionScript 2.0 :: Convert Seconds To Minutes:Seconds?

May 23, 2006

I am currently using the following code to display the secconds of a FLV being played:
ActionScript Code:time_txt.text = Math.round(_root.video_mc.videoZ.playheadTime*100)/100;I need to change this to display MM:SS (minutes:seconds) rather than just seconds and decimals.The javascript people here at work suggested something like this:

ActionScript Code:
function strPad(str, places, pad, side) {
while (length(str) < places) {

[code].....

View 9 Replies

Professional :: Make External Loaded .SWF File Smoothly Disappear After 15 Seconds?

Nov 23, 2010

How can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:

[Code]....

I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.

View 2 Replies

ActionScript 2.0 :: Minutes And Seconds From Seconds?

May 9, 2008

I have a video player and trying to make a time indicator of minute and seconds.

View 3 Replies

ActionScript 3.0 :: Video Playback - 60 Seconds Video To Start Playing After 40 Seconds Have Been Downloaded

Jul 19, 2010

1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.

2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)

View 2 Replies

ActionScript 3.0 :: WAV File - New Sound.extract() Function To Get Two Seconds Of A Sound Into A ByteArray

Nov 11, 2009

I'm having some trouble getting the following code to work - trying to use the new Sound.extract() function to get two seconds of a Sound into a ByteArray, and then create a new bytearray with a WAV header, and then output the file. The resulting 'test.wav' file sounds very wrong although slightly recognisable? I think I may have some of the WAV header settings may be wrong but I'm not quite sure what's the matter and after a long time scratching

[Code]...

View 5 Replies

ActionScript 3.0 :: Communicate To C/C++ Dll Or Lib?

May 25, 2010

We are developing a Flash application based on Windows CE 6.0 R3 and the application is intended to work with Adobe flash plug in available in WinCE R3 Internet Explorer. Application need to communicate with middleware libraries written in C/C++. Flash screens uses Action Script 3.0. We would like to know how a Flash application (Action script program) can communicate with a native (C/C++) dll/lib?

View 1 Replies

C++ :: Communicate Between It And Flash?

Mar 18, 2011

Is there any way I can have an integration between Flash AS and C++? Let's say I have created a socket using C++ and multi-casting it to several ip addresses.

On one of the IPs I am running a Flash client. Can I receive the Multicast message (sent by MFC/C++ application) through my Flash application.

Or at least can I develop a Flash plugin (menu item) using C++?

View 1 Replies

Actionscript 2.0 :: Communicate From One SWF To Another?

Feb 18, 2009

The Flash site I am building includes an FLV video which is embedded into a SWF (SWF1),which contains the video control components. SWF1 is in turn loaded into another SWF (SWF2) after SWF2 is launched. After I leave the part of SWF2 which contains the video, the video and audio continue to play. You can still hear the audio after you have moved away from the SWF1 video.The SWF1 video is part of a set of mostly PNG images that slide like a slide show along the X axis. When I hit the forward arrow, the SWF1 video slides out to the left and a loaded PNG image slides in from the right and into view. But you still hear the audio from SWF1 and the video continues to play.All of the loaded SWF video (there are three total) and PNG images are loaded into the same movie clip.Question: How can I tell the FLV video embedded in SWF1 to stop playing once SWF1 has moved out of view? I would like SWF2 to tell SWF1 to stop the video.

View 2 Replies

ActionScript 3.0 :: Communicate Between AS3 And Embedded AS2?

Feb 28, 2009

I'm working on a game where the the engine is made in AS3, yet the interface is made in AS2. Basically I am embedding the GUI as a AS2 .swf into my main AS3 .swf. I want the AS2 GUI to be able to communicate with it's parent. Small Interface calls like Pause, Unpause, Upgrade.I tried to use External Interface, but I can't seem to get it to work. I know it's made for Javascript, but I thought that it would work just as well with AS2 to AS3.I'm able to edit the Interface file and have the FLA for it. It'd just be a real pain converting it... It'd take way to long to convert the FLA to AS3, talking weeks here, it's rather large.

View 3 Replies

ActionScript 3.0 :: LocalConnection - Communicate From One SWF To Another

Apr 23, 2009

I'm having a little issue with LocalConnection - trying to communicate from one SWF to another. From my main SWF I've loaded an external SWF of same dimensions ( effectively replacing the main SWF). What I wanted was then to re-load the main SWF, but rather than have the main SWF play from the start, I wanted to go to a specific frame instead (I used a frame label called "myMarker"). Thought LocalConnection was the way to go to achieve this. Gave it a shot and it all works well locally BUT when uploaded to server it doesn't work, but throws the following error:-

[Code]..

View 1 Replies

ActionScript 3.0 :: How To Communicate With Embedded SWF

Mar 12, 2009

I have a large.swf that loads small.swf during the runtime. How do I call a function in small.swf from large.swf and vice-versa?

View 4 Replies

How To Communicate Between 2 SWFs In Separate PCs

Aug 5, 2009

I was able to use LocalConnection to have 2 swfs communicating when both sitting in the same PC, or upload those on to the server and accessing those from the same PC. Is there any way to do this between two PCs, one PC running send.swf, controlling another PC running receive.swf? I checked adobe site for LocalConnection and it looks like this only works within one client PC.

View 2 Replies

Get Flash To Communicate With A Database?

Dec 18, 2009

I have written a flash program using AS3 which allows the user to build a picture of a product using a variety of options displayed in checkboxes. Very simply these checkboxes either make a layer visible or invisible in my flash movie and certain choices may change the list of options. This information is currently being supplied by XML. Once the user has built his product, I would like to be able to save his choices in a SQL Server database and also be able to download his options again at a later date and view these choices at the manufacturing plant.

So far I have tried using asp.net to write to the database and have got the information to the asp.net program by using the querystring, however there may be up to 50 options which does make a querystring rather unwieldy. Also I cannot seem to send back information from the asp.net page to my actionscript.Can anyone tell me how to do this or give me an example? I am supposing that I use the response.write function in asp.net but what command in AS3?I looked into the possibility of using a webservice but see that AS3 no longer supports this as all the functionality is in Flex. I have read about Flex but still do not understand whether

View 1 Replies

ActionScript 3.0 :: Can't Communicate Between Classes

Oct 30, 2010

I'm new to as3 programming and I'm trying to communicate between two classes to get the player coordinates for a game from one class to another class. I tried using a getter and a setter and calling a class public function that returns the value.[code]...

View 3 Replies

C# :: Flex To Communicate With C# Backend?

Jul 9, 2009

What is the best way for flex frontend to communicate with backend writted in C#? The only communication channel in HTTP, so no custom sockets.I used SOAP in the past, but am concerned about performance since the large overhead of xml, and this application I'm currently working on will be pretty data intensive.Anything that supports easy setup and transparent marshaling/unmarshaling is OK.Is there something as BlazeDS for .net?

View 2 Replies







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