ActionScript 1/2 :: Unable To Get The Date From Server?
Nov 28, 2010
How can I make this AS script work with the php script below?
server = new LoadVars();
server.onLoad = function(ok){
if (!ok) return trace("Unable to get the date from server");
counter.onEnterFrame = countdown;
counter._visible = true;
this.time = Number(this.time)*1000
[Code]...
View 7 Replies
Similar Posts:
Jul 16, 2011
I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.
[Code]...
View 9 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
Jun 11, 2010
Some users are unable to access any of our video content, getting a Server Not Found error.We have our FMS configured to use ports 1935, 433, 80. Our firewall is allowing RTMP traffic to each of these ports. Is there something more I can do from my end to make sure users can access our FMS?
View 1 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
Dec 2, 2009
Do you know any way to compare a date to a range of date using the Date class in as2.
For example i want to know a given day (11-12-2009) is among the start and end date of a given range (11-01-2009 to 11-20-2009).
View 5 Replies
Jan 29, 2011
Is there a way to get the date from the server other than some kind of hideous php?
View 1 Replies
Mar 19, 2007
I have successfully managed to follow and implement the flash date countdown timer tutorial given here: [URL]
However I need to get the time from my server rather than the client so that everyone see's the same time and nobody can view the rest of the movie before the deadline has been reached.
Instructions are given to get the tiome from the server using PHP, however our website runs on asp.net so i cannot use this PHP script.
I know I can call the date from my server on an aspx page with:
<% dteDate = Now %>
<%=dteDate %>
Which displays as:
19/03/2007 12:40:29
Is it possible to pull that into the countdown? If so where do I need to start?
View 4 Replies
Feb 24, 2011
My app needs to fetch the current date and I don't want it to come from the computer's clock. I've searched [URL] and other sites for APIs, but have come short so far. Is there a web service somewhere or any other dedicated server where I could fetch today's date from using AS3?
View 1 Replies
Jan 5, 2011
My FMS client is calling a function (simplified) which gets the offset time in milliseconds of an flv file.According to the docs for creationTime, it should return a Date object containing the time the file was created.I cannot access any properties of the date object in the server script.
Client.prototype.listFiles = function( folderName ) {
var testFile = new File('/streams/folder/fileName.flv');
trace("creationTime: " + testFile.creationTime);
[code].....
View 2 Replies
May 17, 2011
I have an application that reads in an external XML file, parses out the pieces, displays them, and then allows the user to edit them. I would like to have a save button that the user can press that would save any changes to a new XML document somewhere on the server (any file location that I specify).I've been looking around online, and can't find any examples... all I can find is that this ability wasn't available until flash v.10.Another option i was considering was to create an XML variable, create it's value, and then somehow forward the user to a coldfusion page where I could then create a file.
View 1 Replies
Mar 27, 2008
I am making a countdown ticker that would get the current server date & time and then calculate the remaining time from a target date.
I am using a PHP file to output the current server date & time. Then I use the Flash's loadvars function to get the result and format it as a Date field. However, when I trace for remaining days using targetDate-serverDate, I get NaN as the result.
Below is the code for my flash script as well as the php script.
Flash Code:
Code:
onClipEvent (load) {
myVars = new LoadVars();
// call the load method to load my php page
[Code].....
View 7 Replies
Oct 18, 2010
I have downloaded a Countdown SWF file from the Internet. It is working fine with the Computers which have Internet Connection. But not working without Internet connection because of the following line of code in XML file:When I opened the webpage using the above code, it shows time in a typical digits:Monday, October 18, 2010 9:12:52 PM in my System -shows in Web browser like : time=1287425579How to modify the code so that I can use my System time to work with Countdown without Internet ConnectionThe following is the path from where I have downloaded the Countdown file:[URL]
View 1 Replies
Jan 31, 2010
I have a GUI in flex. I am getting the value of the server date from the servlet to the .mxml file. I want to show the date and time dynamically changing. How can I do that in flex?
View 1 Replies
May 16, 2007
I used the kirupa drawing tutorial to create a simple doodle application.[code]I really need a way to save the doodle created to a server and then reload it at a later date. It could either be as a file or as data that meant it could be redrawn.I've looked into exporting as a bitmap but the methods seem very complex and also slow/relatively large file sizes (it is only a simple doodle application!!!)url...but it doesn't even seem to be working on the site. I had a look at the code but couldn't really get to the bottom of how it worked.Is there no easy way to save a movieclip out as an swf file dynamically?
View 1 Replies
Jun 17, 2010
i have fms installed on a server, say server1. my flash files (swf) which allows user to record audio is on server 2. in the swf file, the connection is set as follows: nc.connect("rtmp://server1/test");
im able to view flash videos on server2 which streams from server1. however, i cannot upload any recording to the above directory. does the recording goes to the application or webroot folder? do i need to set any authentication to connect to server1(fms) from server2(swf)??
View 1 Replies
Jul 28, 2010
have an error in the publication of a Live (Webcam) to a CDN (Level3).when "ns.publish (STREAM_NAME 'live')" 'it is returned an error"NetStream.Record.NoAccess 'Thank you to those who use AS3 application to connect to their CDN (Akamai, Level3 ...) oftell me if they encounter a problem.I use the same code has always been to publish a Live (Webcam) to serversstreaming (FMS RED5, etc ...) and can be summarized as follows:nc = new NetConnection ()nc.connect (HOST_URL)../..ns = new NetStream (nc)ns.publish (MON_STREAM 'live') this works on all versions FMS 2.5, 3.0, 3.5, etc. ..Since a migration of my FMS version 2.5 to 3.5 this code does not work anymore!the worst is that Flash Media Encoder (FME 3.0) it is operating properly.So is there a feature to broadcast a live publishing point on a CDN (LEVEL3)?The CDN turning on the fact that if it works with FME is that it is the code that raisesproblem ... without more information.The FMS version uses "special" of FMS, but until now I had no worries!In general the user CDN use hardware encoders ...
View 4 Replies
Jan 27, 2011
I have been trying to get my live feed up and running for friends but they are unale to view it. I have FMS 4 with FMLE 3.2 on Win7. Under the fms url i have 'rtmp://localhost/live' and Stream name is 'livestream' I can view the stream just fine from my computer on which i am running both FMS and FMLE. but when i put the html file on my website, my friends just see the empty swfplayer. You can view it at[URL]. I was trying to figure out what the problem was so i copied the swf code 6 times with different settings but nothing worked. on my computer, only the first swf player works and im guessing that is because its localhost.
View 2 Replies
Apr 16, 2004
I am an intermediate actionscripter and I am attempting to make a flash picture gallery for my sister. I want to make it so that the flash movie looks in the image directory of her server and then gets the names of those folders and displays each one of them in a separate movie clip in the flash movie. Then if the user clicked on one of those generated movie clips, it would display the pictures in that corresponding folder on the server.r?
View 1 Replies
Mar 24, 2011
I'm trying to record video from the users webcam and play it back at a later date.
I call
[Code]...
However, when I look at the FMS Admin Console at the streams in app/_definst_, their types are either "NetStream" or "Live". If they were being saved wouldn't they say "Stored"? After I close the application doing the recording, the "NetStream" type stream disappears, and after a while all the "Live" typed streams are gone too. Nothing is saved.
I have no idea what is happening. I don't know if it's a problem with my AS3 code not closing the recording properly or if I'm doing something else wrong, or maybe somethgin isn't right in the FMS?
View 1 Replies
Sep 19, 2008
When I downloaded a developer edition from Flash Media Server page (11 Oct 2011). I tried to follow the setup instruction in readme.htm which comes in the zip of Linux version.I logged in to terminal as root user and call './installFMS' and then the terminal show me:
ERROR: Your operating system is not supported by the Adobe Flash Media Server installer.
Does it mean Flash Media Server Developer Edition cannot work on OS X Lion (10.7)?
View 3 Replies
Sep 2, 2010
I am trying to develop a server-side application(splitterApp) using FMS 3.5.2 which would accept an incoming stream from 3rd Party encoders and publish the stream using FCPublish method to an application(edgeApp) on our edge servers. The splitterApp contains 3 classes for performing the activity. So whenever a incoming stream is received by the splitterApp, the main.asc would create an object of type IncomingStream() and push into unPublished array. A timer based job then picks the unpublished stream from the array and invokes StreamController.PublishStream(). The StreamController.PublishStream() method then creates a new PublishedStream() initialised with incoming stream. The method thereafter calls PublishedStream.PublishStream() to initiate net connection to the edge server application(edgeApp). After successful net connection, I call "this.publish_connection.call ("FCPublish", null,this.thisStream.stream.name)".
The edgeApp accepts the publish and therefore performs:
[Code].....
View 2 Replies
Sep 7, 2010
I carefully read forums for phpmyadmin before posting here and none really had the answer. I am able to install phpmyadmin on stand alone versions of Apache, but unable to do so on the FMS version. I previously read this post [URL] and it doesn't seem to answer the question although it looks like part of the question may have been answered offline. The problem is that phpmyadmin installs and I know that PHP is running fine because I can run a couple of test scripts with no problem. However, when I go to login to phpmyadmin, I get the dialog box asking me "do you want to open or save this file" and the script itself never executes. I checked the the server log, and here's what's going on:
[Code]...
Based on the post noted above, I'm assuming this may have something to do with either POST variables or maybe proxying unknown requests, however the forum post didn't appear to resolve the problem. I also posted to that thread, but I wasn't sure it was still being monitored.
View 3 Replies
Oct 11, 2011
When I downloaded a developer edition from Flash Media Server page (11 Oct 2011). I tried to follow the setup instruction in readme.htm which comes in the zip of Linux version.
I logged in to terminal as root user and call './installFMS' and then the terminal show me:
ERROR: Your operating system is not supported by the Adobe Flash Media Server installer.
Does it mean Flash Media Server Developer Edition cannot work on OS X Lion (10.7)?
View 1 Replies
Nov 11, 2011
I have been reading about Flash VOIP capabilities. I wonder if flash i able directly to connect to VOIP server ex. Asterisk [URL].. or do I need The Adobe Flash Media Server?
I would be grateful for info on this, also any links to info how to build VOIP client using Flash would be very be useful.
View 0 Replies
Aug 11, 2010
I am developing video chat application. I am able to play published video stream. But I am unable to hear sound which is published along with the video. The video is visible but sound is not comming.What is going wrong.
View 7 Replies
Sep 2, 2010
We installed FMS on a new server - a cloud environment - and set the fms.ini for the correct dedicated IP but we're unable to see the start screen or access any videos.where the IP would need to be added to point to the wwwroot directory?
View 2 Replies
May 26, 2011
In raw format stream data are divided into many files named "segments". How can I configure the size of this files? I want to make them twice smaller.
View 1 Replies
Oct 17, 2011
Are there an updated set of Flash UI Components for working with FMS 4.5? I'm not able to locate an extension or even a legacy set of components.
The older component set
had:
ConnectorChatWhiteboardLoginOthers...
View 4 Replies