ActionScript 3.0 :: XML Show Only A Part Of The Parsed Timestamp
Jun 30, 2009
The XML is listed as so (only a snippet of coarse):
[Code]...
now when parsing the DepartureDate="2009-06-30 15:00" the entire date is displayed, as should be. How can I set up my AS3 to only display the 15:00? The parsed path to the xml node is as follows:
i would like to know if there is a way to hide only a part of a movieclip in flash. (i am not talking about putting a jpeg or a png over it to hide it xD)
I wonder if it is possible to show only the top part of a movie for some scenes? I have set the movie size to 800x1200, but would only like to see the top 800x600 in the browser window for some scenes (the reason for this is that one scene might have very little content, while other scenes could have a lot). Is that possible? I guess that either it's impossible or it's dead simple...
i want to show filter on part of drawing . and i m working in flash . My problem is i m making a drawing application in which i have to make a airbrush with blur effect . i am using SVG format to save that data to server . But i dont know how to save blur effect in SVG file format . For SVG to Swf how to implement it
I want when user roll over on my image it shows a part of big image of the same picture i known its possible in flash but how i don't Known ?? here is the link of the live example the site use the same technique in flash click here
I'm trying to get the current unix timestamp in AS3 via:
var date:Date = new Date(); var unix:int = date.time; trace(unix);
For some reason I get:
2775219874
But when I use time() in PHP around the same time, I get:
1321330282
I don't understand? I could of course request the timestamp from PHP via URLLoader, but I'd rather get it working properly without needing this if possible.
I'm recording a lot of live streams for archiving purposes. Is it possible to somehow (programmaticly) get the timestamp of a certain point of such record?
I am trying to retrieve an XML file off the internet, parse it, and return a value from it, all from one function using Actionscript 3.0.[code]...
and then I just return the variable "text". However, the compiler complains when I try doing this. How can I return the value found in the onXMLLoaded function to the caller of the getValue function?
I'm importing an XML file with 3 elements into Flash CS3 (AS 3.0) and when I trace the results, I get everything in the XML file parsed nicely and cleanly. Now, I have a dynamic textfield that I set equal to the parsed results, instead of a trace, but when I do it, the textfield only outputs 1 node. I have the textfield set to multiline and it still only returns 1 node. Here is my xml file:
I have a timestamp in the form "1239315541" and I need to convert it to a readable date.How can I do that ? Is there a function that I can use ?(I am using Flash 8 and ActionScript 2.0.)
I posted a discussion earlier on a video stream not playing past a certain time. I ran FLVCheck on the video and it came back saying there is a backward timestamp in the video. I recompressed it from the uncompressed video (AVI) and I got the same error again in the exact same place.
The error has to be in the uncompressed file, but I don't know how to fix it. Recompressing obviously doesn't help. Anyone know how to fix a 'Backward timestamp'?
I need to upload an image (byte array) and its timestamp to server which has jsp/servlet. But having trouble to transmit both in the same request.
In actionscript, I use URLRequest and URLLoader and upload the image without problem, however, I don't know how to upload the timestamp in the same request. I tried to build a ByteArray to contain both timestamp and the image, but I couldn't convert the Date.getTime() to byte[] correctly. The only function in ByteArray to input 8 bytes is writeDouble, but it doesn't embed the time correctly.
I have a video, it's 3:11 but it will only play until 2:41 then it will stop...... but when I fast forward to 2:42 or 2:43 it will play till the end..... how do I fix this file so it will work..... what do I do.
1. When using Stream.time in actionscript server side, sometimes it returns the same timestamp. why it is returning the same output and any solution for the same.
2. When I am unpublishig the stream then re-publishing the unpublished stream timestamp does not get to reset to 0. I want to restart with 0 timestamp.
I'm trying to add timestamp to the xml file address if the swf wil be loaded from the web server but it gives me a null object reference error depending on if there is timestamp() function call or not.
Here's my code that doesn't work as I was expecting: ActionScript Code: //... public function init():void { try { xmlLoader = new URLLoader(); xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioError); [Code].....
When I load just addresses without the timestamp xmlLoader.load(new URLRequest(address)); it outputs everything I was already expecting when the timsetamp function call where involved, (as I was testing some considerable errors). Code: Class LoadXML/ address: start.xml Class LoadXML/ address: play.xml Class LoadXML/ address: end.xml Class LoadXML/ io error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: file:///E|/flash/as3/projectName/lib/work/end.xml"]
In one of my Flash-applications the users can save sales they do, and one important thing is the date for the sale and the user have to have the possibility to select the date he want's to. Therefore I got three drop-down-meny to registrate the date of the sale: one for day, one for month and one for year. Is there any way I can convert these three into a Unix Timestamp? (I save the data via PHP intro MySql-database).
I have a AS3 script that parses the iTunes Library XML file and converts it into something better looking and usable. The script works good and the nicely formed xml is traced out in the output window. But i would like to export it to an independent XML file instead of the output window.
I've traditionally all my as3 code in one included .as file, not as packages / class files, but I'm trying to make that transition. I'm a little confused about how to pass information back and forth among class files though. For example, what I'm trying to make is a sort of node diagram where clicking on a certain node will sprout out its child nodes, and clicking on a child node will sprout out its children, etc. I have a main class, Main.as, which I was going to make parse an XML document and store an array of all the relevant data for each node (things like a title, link, etc). Then I have a class file called Node.as which actually builds the node, adds it to the stage, and sets up its listeners and the motion tweens.
My question is - if all the information for the nodes is stored in Main.as, but the click handling is done in Node.as, how does Node.as know what attributes to assign to each added node (i.e., how does it access the array from Main.as to assign properties to the clips created)?[code]...
I'm creating a trivia game with two different categories. The player can choose one category, or the other, or both together. The way I have it is three different xml files (code below). Is there a way for the third option (both categories) to parse the first two xml files together so I don't need to create the third xml which is just a combination of the first two?[code]...
I'm tryin to fiind the time elapsed from a Unix Timestamp.
[Code]... So it's still returning the time from 1/1/1970.... Any way to make it return something like this: Mon Jan 02 01 1:2:35 GMT-0800 0000 or something like that so I can get the days, hours, minutes, and seconds elapsed.
I'm trying to build a system that live-streams video and audio captured by android phones. Video and auido are captured on the android side using MediaRecorder, and then pushed directly to a server written in python. Clients should access this live feed using their browser, so the I implemented the streaming part of the system using flash. Right now both video and audio content appear on the client side, but the problem is that they are out of sync. I'm sure this is caused by wrong timestamp values in flash (currently I increment ts by 60ms for a frame of video, but clearly this value should be variable).
The audio is encoded into amr on the android phone, so I know exactly each frame of amr is 20ms. However, this is not the case with video, which is encoded into H.264. To synchronized them together, I would have to know exactly how many millisecs each frame of H.264 lasts, so that I can timestamp them later when delivering content using flash. My question is is this kind of information available in NAL units of H.264?
I have created an AS3 FLA where I am parsing and displaying RSS text. I have traced the parsed text and displayed the text into dynamic text boxes on the stage no problem. However the line breaks in the traced text show up on stage as well. How does one strip out the <p> or </r> tags from the text to make the text one nice long line that will wrap using the length of the text box as it's parameters?
i am developing a flash application for ios using new cs5.5, when i'm choosing setting options for Air for ios, i'm getting this error,"Application descriptor file can not be parsed" This is my descriptor file content.when it is creating after choosing setting option Air for ios.
Is there a way to make a url clickable from a parsed xml file? I pull in an xml file from the php script and then display the data in a dynamic text field. I want to have the hyperlinks be about the be linked.[code]...
I have seen lots of different things about recording live streams (maybe too much, pieces everywhere but no one good source for the answers), but not what I am looking for...I want to setup recording of live streams on FMIS 3.5 where the file is named the stream name plus a timestamp (something like streamname-yyyymmddHHMMSS: myteststream-20090928101015).The people who use our site tend to start/stop several times (we are dealing with events that have breaks) and I want to be able to combine all the files with the same name into one big file on the server side afterwards using some utilities.I cannot find a tutorial that walks you through the different functions, the differences between them, and how recording is setup/works.
I've got my XML file loaded and parsing correctly with a trace statement.
I want to have each text identified as marketLocation1, marketLocation2, etc up to 150 and I wanted to use a 'for loop' to place the value of that XML node into each labeled text field, and each individual text field is buried inside a button so that the button displays on mouseover an associated XML fields data. Each button would also be corresponding labeled market_1, market_2, etc.
Meaning, I mouse over a dot on a map (button) and it pulls up a statistics balloon about that location specific to our companies needs. I'm a total AS3 noob, so I'm not sure if I can preload the data for that button into it's specific text fields.
I have markets divided up into regions. I have the base map, which when you click each region goes to a new labeled scene on the root timeline. The scene shows a closeup version of the region. On that region are the dots for the markets. Each dot would have an up state and over state (displaying the pop-up balloon with data) etc.
I'm working on the first 'button' as the initial test and what I want to do is make is that i can use a For loop to cut down on the code, using the variable i in place of the "1,2,3..."
The first button, market_1 is in a labeled scene SERegion on the main timeline. While the code I'm using to parse all the fields is in frame 1.
When I try to place the value of marketLocation located inside the button market_1, I am trying to do this when I parse the data
When i compile, i get the error 1119: Access of possibly undefined property marketLocation through a reference with static type flash.display:SimpleButton
MarketLocation is also in just the Over state of the button.