Get Streaming Info From A XML File?
Apr 2, 2010
I am using Adobe Flash Media Streaming Server 3.5 but I can't find any output file (fx a xml file) that I can pull out info from and use on my website via a PHP or ASP script. It could be nice - in the website - to retrieve info like "online users attending", "running / streaming state" (online or offline) and other relevant info about the streaming, so I on the website can display how many that are online when a webtv event is streaming.
View 19 Replies
Similar Posts:
Dec 2, 2010
Created an mp3 player that works fine, but i need the track name, artist name, track timer, to be shown aswell?and i dont have a clue how do go about doing this.
View 2 Replies
Jun 24, 2010
I have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...
Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........
also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.
View 1 Replies
Sep 23, 2009
Is it possible for a swf to get info from an XML file that is placed in a different domain? And if it is, how can I do it?
View 3 Replies
Sep 9, 2006
If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?
View 2 Replies
Jul 15, 2011
what i need to do is getting the Browser URL. problem is i only have access of FLA file. the SWF file is displayed in an iframe and that iframe will be displayed in some remote server. e.g.
www[dot]parent[dot]com this is the container page of which im trying to get the URL.
www[dot]child[dot]com this is the page that will be displayed inside the parent page iframe and my SWF file will be in in that page.
is there any way i may get php referrer ($_SERVER['HTTP_REFERRER']) info into the FLV file?
View 3 Replies
May 18, 2009
how to determine swf publish date/time stamp from within the swf?
I have a template fla used to build apps (in AS3) and would like to know some info about when it was published.
I initially thought it would be in the loaderInfo but it doesn't have the date/time stamp of when it was published (or at least not that I could find)
View 2 Replies
Apr 23, 2009
I'm trying to read bmp fille byte by byte and then redraw it. For that I made a .fla file for veiwing and .as file for coding. I just started coding and made import to the follwing files in this scenario and I get errors while debugging.
Code:- package
{
import flash.filesystem.File;[code]....
Error Message:-
1172: Definition flash.filesystem:File could not be found.1172: Definition flash.filesystem:FileMode could not be found.1172: Definition flash.filesystem:FileStream could not be found.5000: The class 'FileStreamLive' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
I've seen many samples on filestreaming but all were using the mxml scripting that I don't know
View 3 Replies
May 18, 2008
I want to integrate following php-file into my Flash-movie, but something still does not work.
Following error message appears:
"This XML file does not appear to have any style information associated with it. The document tree is shown below."
View 1 Replies
Jul 15, 2010
I need to create an application where user can add multiple text boxes in the canvas and export it to image, user will also have the access to save it for future use they can edit it for which i need to store the canvas information to XML file.how can i send the textbox info to XML file so that I can save it?My main problem is to send the canvas info from flash, I have a feature of adding text box dynamically so when someone save the application i need to send the info of all the textbox from flash is there any way to find out the total no of textbox in the canvas and get the info of it to send it out of flash.
View 1 Replies
Jan 30, 2009
I'm making a yearbook for my school and I have A LOT of information to be shown on it (in case you were wondering, its a digital year book lol). Theres a certain page that has all the headshots of all the students, and when the picture is clicked, a new scene opens with the information on the student (along with fancy opening animations). Firstly, is that the easiest way to do it, or can i have an overlapping MC that appears over the pictures, fading out or blurring the background, then click an X to shrink and fade out and unblur the background...Secondly, is there a way to create a template thingo for this MC or scene so that it can automatically read data from an xml or text file and place it in the appropriate position for that name. For example-the text would look like this
"bob_bio"
pic:"C:~~obphoto.jpeg"
Info-
[code].....
View 1 Replies
Mar 4, 2011
Below, I will copy the code I am using and I have placed to .fla file and images online, but I cannot place the link here (don't have enough posts yet), so ask me if you want.he script runs perfectly and loads its parameters from the "hardcodedXML" variable. This way, however, whenever the images and their information need to be changed, someone with knowledge of flash and AS will need to open the sourcecode and alter the "hardcodedXML".I am currently assigned to make a renewed website for my employers and would like to enable them (no knowledge of flash or AS whatsoever) to edit the contents of the scroll box. The easiest way for "dummies" is to have a .txt file in the same directory, that contains the stuff that is put in the "hardcodedXML" right now.My actual question/problem: how can I create a txt file that is read by the script, to store the string in "hardcodedXML" (the current string that is hard coded looks like "<photos>...</photos>".I've tried searching Google, but didn't come up with anything.
ActionScript Code:
import fl.data.DataProvider;
import fl.events.ListEvent;
[code].....
View 1 Replies
Aug 4, 2008
I created an mp3 player but i have problems in getting info from XML file (song duration)
[Code]....
I'm new to the action script and problems about creating functions after preload() function i call for firstsong(). I have firstsong(), prevsong() and nexsong() functions and timebar() function that is called in each firstsong(), prevsong() and nexsong() functions. In problems about streaming audio this can't work for me and i come up with an idea that to add each songs time as seconds on XML.
View 3 Replies
Jan 28, 2009
I am currently trying to modify a hangman game I found on here (URL...). I'm not very good at actionscript and hopefully this will be a good exercise to learn more - I really want to learn how to make games. I have seen hangman games that include clues for words, but the only games I can find that I can read the source in don't have a clue field, and pull the words from an external .txt file. Is there a way of also pulling phrases to be as clues from these files? I could just create another .txt file and make it a new variable, but of course I would have the problem of it not matching the word. I hope i made sense.
View 6 Replies
May 3, 2006
I'm using a xml file to upload info to a flash app. For the xml I used utf-8 encoding but I'm having a problem the "&" symbol isn't displaying rigth.
View 4 Replies
Mar 2, 2012
I want to upload file and get some information from server at the same time. I have the code:
file.addEventListener(Event.COMPLETE, function():void {
trace("complete 1"); });
file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, function():void {
trace("complete 2"); });
When the returning data is not empty, I see:
complete 1
complete 2
But when the returning data is empty, I see:
complete 1
How can I understand that file uploading is compete absolutely even if received data is empty?
View 11 Replies
Jun 23, 2009
my page contains a Loader to load the different parts of the site as swf but i also have a little intro, witch ist a .flv file. i knwo i can�t load a .flv file in the loader class so i can put it into a swf an load it this way. the thing ist, after the intro is completed my page should get the info to change
1. a var which will change the proberties of the loader
2. the color of the Header/Footer
3. initialize a little x tweening with the body
is there a way to get the onLoadComplete info out of the swf witch contains the flv file or do i have to change the loader to a flvplayback component and afterwards back to a loader
and if i have to do so - how do i implement the flvplayback component into my .as file -i tried it and i always get the message, that he cant find the class.
View 1 Replies
Jul 12, 2011
I have a submit button created in an Actionscript file. I want to send data when user clicks the submit button(never mind how the data is sent-I just need to check the event listeners). I tried placing an event listener for the button in the AS file like so: I'm getting an error about undefined method,blahblah so I tried going through the main timeline. Go to frame 146(labeled "this"). myform creates instance of class formtest; subbtn is the name of the button created in the formtest.as file. how the heck do I remove this form when user exits frame?
View 2 Replies
Jan 31, 2004
if i have a a database how can i get info from it show up in a flash document in a dyanamic text box
View 3 Replies
Nov 27, 2006
I'm trying to populate an array with info loaded in from an xml file. I've got the xml loading fine and I can trace everything but cannot seem to access the info outside of the function...here's my code:
Code:
myXML.onLoad = function(success) {
if (success) {
populateNav(myXML);
} else {
[Code]...
My trace inside of the populateNav function works great...all the info is there and image_path returns all of my...image paths. So my XML is fine...what I can't seem to do is pass that info outside of the populateNav function. My imageholder trace returns undefined. I think it's got something to do with the fact that the imageholder trace is being performed before the xml is fully loaded...not sure what to do about that though.
View 2 Replies
Jul 22, 2009
So I've created an interactive map that loads info in from a csv file and displays that information on 120 cities with a radius around each city.The cities have been manually placed on the map and the data is sent to them from a custom function.The problem I'm having is with the RollOver effect on the radius as some of my cities end up underneath the other ones as the radius grow and subtract through a timeline.I'm just wondering of the best way to give each city a set depth and then arrange the depth order within a set number of depths.Should I attempt to put all the cities in an array that way I can check the size of each city in the array and order the depth = to the value of the radius size.
View 2 Replies
Jan 19, 2004
I am using loadVars with the send method to send my contact info to a php file. This works fine but when I press the submit button the browser goes to the email.php file. How do i prevent it from opening that file in the browser window?
Heres the [AS]
lv = new LoadVars();
lv.name = name;
lv.company = company;
lv.phone = phone;
lv.email = email;
lv.message = message;
lv.send("email.php", "POST");
}
[/AS]
View 2 Replies
Jan 31, 2004
if i have a a database how can i get info from it show up in a flash document in a dyanamic text box
View 3 Replies
Mar 10, 2008
I have a dynamic text instance in Flash named dynamic_txt and I want it to display information from a php file. What command allows me to do this? Here is the code:
PHP
<?php print "dynamo_txt=DYNAMIC"; ?>
ActionScript (2.0)
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
//Here is Where I want the command that will allow Dynamo_TXT to display the String // From the PHP File
};
my_lv.load("cars.php");
View 2 Replies
Nov 10, 2009
I am trying to create a news rotator that pulls info and images from an XML file.I made something similar a while back which pulled just the headlines which worked great and I am trying to adapt this same idea to a current project. pull all the info from the XML and push them into separate arrays based on the type of information it is. ie title, description, image etc.From there I have a function which is supposed to display the all of the info and another which cycles through it based on a timer.Like I said before, this worked great with just the headlines, but when trying to add images its getting thrown off. The function which intends to parse the data and pushing it into separate arrays.
Code:
function onLoaded(evt:Event):void {
xml = new XML(evt.target.data);
var il:XMLList = xml.channel.item;
[code]....
I'm aware that it has something to do with either how the info for the images is being parsed (or not), and/or how I am going about displaying it.I was able to write a separate function which displayed one image as intended, but then wouldn't cycle through as the news changed.
View 1 Replies
Aug 31, 2009
I'm trying componentize one of the pieces of UI in an AIR application that I'm developing in Flex. In this example, I want to display file information on a single line (which has an icon, some text/link and the size).
My code looks like this (component is called FileDisplay):
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="[URL]"><mx:Script>
<![CDATA[
public function set iconType(source:String):void {
this.ficon.source = source;
[Code] .....
However, when I do this, I get an error: Error #1009: Cannot access a property or method of a null object reference. This is because the child components of the FileDisplay are null (or at least they show up that way in the debugger). Am I supposed to be waiting for events indicating the child components were created? For now I can manually do everything in ActionScript in my main app (create a Canvas and add children to it) but how to separate the code more cleanly.
View 4 Replies
Jun 30, 2004
the situation | an instance of the DateChooser component reads an xml file which houses info for homework assignments and their due dates. if there is a due date, make sure that date is highlighted on the DateChooser component. from what i've been told, the xml file stores urls which will tell if there is s/thing due on a particular date. the xml file | very simple, has an <activity> element with a 'date' attribute, i.e.
[Code]...
my remaining questions | What needs to happen as soon as the xml file is loaded? i.e. do i call a function which parses the xml data and puts it into an array? then the DateChooser component iterates thru the array looking for boolean values noting if there is an activity or not and if so, on which day. if it finds one, it sets its highlight property to true for that particular day. i'm setting up the xml file correctly.
View 11 Replies
Nov 30, 2010
I'm trying to make a program that grabs info from a text file then uses the info in the file to assign where certain balls will rotate (eventually I'll configure it to looking like dots rotating around an invisible sphere)Now, I can do these two things separately, load info from a file and make blue balls rotate around given points... but I've been tripping up hard on making them work together, and I think my problem is in how I handle the events and events listeners to work with the code, you'll need to start a new flash AS3 file Then on the stage create a circle with the oval tool convert the circle to a symbol named "BlueCircle" and name the linkage class as "BlueCircle" then paste this code...
Code:
var longLatLoader:URLLoader = new URLLoader();
longLatLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
longLatLoader.addEventListener(Event.COMPLETE, onLoaded);[code]....
View 3 Replies
Apr 8, 2011
Is it possible to play the video (mp4) in real time using some flash player? What I mean by in real-time is that player would receive data on the fly, not from alredy saved file but e.g. php script (which sends appropriate content-type header) THAT IS DOWNLOADING AND 'ECHO-ing' THE FILE AT THE TIME PLAYER PLAYS IT - like e.g. some kind of live stream.
View 3 Replies
Jan 12, 2007
I'm using the "load streaming mp3 file" behavior, as seen below.
Code:
on (release) {
//Load Streaming mp3 behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
I need to add a loader of some form to it tho. My plan is to have an MC with 2 frames. One with the word "Loading" in it and the other blank. The idea being, if the track is still loading it goes to the loading frame, otherwise to the blank frame. I've already added
Code:
_parent.mp3Loader.gotoAndStop("on");
To the above, to make the loader active.
I was thinking of having something like the following, to turn the loader off.
Code:
if(tune1.loaded) {
_root.mp3Loader.gotoAndStop("off");
trace("song loaded");
}
but that doesn't work...
View 8 Replies