Actionscript 3 :: SMIL File Xml Isn't E4x Friendly?
May 10, 2011
I'm loading in a smil file (follows the xml format) and it won't let me select properties via name (eg. xml.body) instead I can only access the data by xml.child(0).I've tried xml.child('body'), but still nothing. Anyone know a quick workaround? I would like to be able to access xml.head.(@name=='rtmpPlaybackbase') and the XMLList xml.body.switch.video.[code]
View 1 Replies
Similar Posts:
May 20, 2010
When I place the .swf, smil and http files on the FMS server the SMIL stream test sample works fine
But When I move the files to my web server I get Connection error. This is the same issue discussed in [URL].. I added a 'base' variable but it did not work for me. The SMIL file has the correct path to the sample files and FMS server <meta base="rtmp://200.200.200.23/vod/" />
I am able to stream files from my html file on my webserver not the FMS server by pointing to the FMS server at rtmp://200.200.200.23/vod/mp4:sample1_1500kbps.f4v Is this a domain security setting? If so, where do I change it? If not How do I get FMS to stream SMIL files without installing a webserver with FMS?
View 1 Replies
Aug 6, 2010
I want to be able to stream a live video using Flash Media Live Encoder 3 using two options of 300 kbps and 150 kbps.I want to give users a choice of stream quality depending on their available bandwidth to maintain the live feed.I have set it up so that the Bit Rates are 300 and 150 and tick marks on: 1 and 2my FMS URL is correctin the Stream: box I have written: test1;test2The SMIL file has the following:
<smil> <head> <meta base="rtmp://live" /> <body> <switch>
<video src="mp4:test1.f4v" system-bitrate="150000"/>
[code].....
View 3 Replies
May 10, 2011
I'm loading in a smil file (follows the xml format) and it won't let me select properties via name (eg. xml.body) instead I can only access the data by xml.child(0). I've tried xml.child('body'), but still nothing. Anyone know a quick workaround? I would like to be able to access xml.head.(@name=='rtmpPlaybackbase') and the XMLList xml.body.switch.video
The smil xml is this:
Code:
<smil xmlns="http://www.w3.org/2001/SMIL20/Language">
<head>
<meta name="title" content="myStream"/>
[code]....
View 2 Replies
Jun 16, 2010
I am NOT able to play dynamicStream.smil in Flash 8.0 player ? What seems to be wrong ? Can anyone help me out ?
I have the following installed on my machine
1)Win XP
2)Flash Server 3.5
3)Macromedia Flash Professional 8 (30 days trial version.)
I am able to run Flash Server 3.5 and am successful in playing dynamicStream.smil and sample2_1000kbps.f4v from videoplayer.html when launched in IE browser.
I copy and paste "rtmp:/vod/mp4:sample2_1000kbps.f4v" in IE browser. It prompts me to open any media player. When QuickTime player is chosen, it plays the video. However, when I try to play the same in Flash 8 player (client), it gives me an error "A sharing violation" has occured.
Also when I try to play either "dynamicStream.smil " OR "sample2_1000kbps.f4v" from Flash Media player 8.0, by navigation to "C:Program FilesAdobeFlash Media Server 3.5webrootvod" directory of Flash Server 3.5, I get "An unexpected format" error.
Is it possible to play this dynamicStream.smil, streamed from server 3.5 in Flash 8 player ?
View 1 Replies
Apr 22, 2009
I have a video player with a playlist written with AS3, along with an .XML settings file to edit the playlist. I can successfully play rtmp:/ streams from my FMS server on the video player. I would like to use dynamic streaming using the dynamicStream.smil file with my existing video player/playlist. Lastly, I have been unsuccessful taking the snippet code from the FMS, Dynamic Streaming sample page, and using it within an HTML document. I assumed all I would need to change were the paths to where the rtmp:// video file, .smil, and the video player files were located on the FMS.
Using: Linux, FMS 3.5, CS4
View 36 Replies
Sep 15, 2009
I have a video player working just fine with one video, steaming and using dynamic stream switching on a flash media server.Now I want to have more videos.I want to start using SMIL files for the dynamic switching list for each video.If you do not know what a SMIL file is you probably can not help.
Anyway how do I point to a SMIl file instead of just listing the streams.here is how I do my list at the moment
var dsi:DynamicStreamItem = new DynamicStreamItem();dsi.addStream( "mp4:GeneralReel_512x375_BR300_CBR_A96_Prog_1KFPS.f4v", 300 );dsi.addStream( "mp4:GeneralReel_512x375_BR600_CBR_A96_Prog_1KFPS.f4v", 600 );dsi.addStream(
[Code]...
View 2 Replies
Jan 7, 2010
Is there some ways to develop a SEO friendly flash site? I read in an article that flash sites are not SEO friendly one.
View 2 Replies
Nov 18, 2011
My 2D game has a simple snow effect, but I would like to improve the framerate performance during this effect.I animate 500 sprites with a particle system, using a white 2x2 .gif image.I animate to whole pixel values only.I turn off smoothing and image compression.I don't rotate or scale.No calculations, just modifying the sprite's x values every frame.I've heard some people discuss bitmap caching.
View 0 Replies
Feb 25, 2011
So I'm making a drawing app that uses flash. I want to be able to export my drawing into an illustrator friendly format.
I'm thinking I will need to record the shapes drawn with a "history" and then export those either via text/xml/bytearray.
View 2 Replies
Nov 9, 2004
I created a scrolling text box loading an external file, and I added 2 buttons with this code:
[code]...
The problem with this code is that you have to click a lot to see the text, because it goes line by line.how to edit this code to make it easier for user to scroll down and up?
View 4 Replies
Dec 19, 2009
I know how to load external text files in AS3 but I want the user to be able to do it from within my excited swf file. The obvious way to do this is to load the text file using a string from a dynamic text field (e.g: "myfile/myTextFeild.txt") but i want it to be more user friendly.If you click file open in Microsoft word, for example, you get the user friendly open box where you can find the file you want to load by browsing through your hard-drive.
View 1 Replies
Sep 11, 2010
I've made a Flash site and I want it to be optimized for search engine.What I need is, for every query on Google for this organization name I want respective Flash page to be displayed.
View 1 Replies
Jan 27, 2012
We're currently developing a flex web app and our build situation is far from ideal. At present we're (as in individual developers) just building using FlashBuilder and deploying manually. The programmers are currently screaming bloody murder for two reasons, though:The lack of CI is like going back to the stone ageWe don't much care for FlashBuilder(Note: We're only using FlashBuilder because it was the easiest way to set up a flex project in conjunction with Away3d and get it building / rendering correctly -- it's a stopgap solution).As a predominately .NET development shop, we're used to doing continuous integration as well as continuous deployment. Ideally, we'd like to get something comparable to this for our flash projects without tying ourselves to a particular IDE.
Requirements:
The build process must be:
.. runnable via the commandline
.. runnable on both developer and CI build machines (and certainly not requiring an IDE!)
.. preferably as IDE-independent as possible (pragmatism will kick in though; if this causes a lot of friction we'll just pick one).
.. able to run on Windows (we develop using Windows)
We don't mind a touch of duplication or a few manual steps (e.g. tarting up the build scripts if we add a new project via an IDE, or generating one configuration from another if tools exist), but the less duplication / maintenance required the better.
View 3 Replies
Nov 2, 2004
i need a basic form that maybe has 4 variables and then once submitted will write to an xml file.
i understand how to display the xml, but i need a client friendly form to write to it.
View 1 Replies
Sep 15, 2006
I have a project that I'm working on where I want to allow a user to control some text formatting for a Flash interactive via external XML. They want to create links and bold text in paragraphs and such.Create dynamic text field on the stageGo to library, create font symbol for HelveticaNeue fontSet dynamic text field on stage to font symbol for Helvetica Neue Turn on embedding for dynamic text fieldSet HTML formatting to true on dynamic text fieldWrite out ActionScript for filling dynamic text field e.g. <b>THIS FIELD:</b> + someVariableFromXMLPublish movieBold text disappears.What am I doing wrong here? I need to make sure font symbols are present and dynamic text fields are set to embedded fonts to ensure PC/Mac font display for dynamic content for oddball non-standard fonts.Why doesn't this work? When I create the font symbol and set it to bold, STILL doesn't work.
View 7 Replies
Sep 2, 2011
I have been googling for hours and have not yet found a solution to this problem.currently, I retrive the data from the twitter xml fileeverything works fine, my date format shows this: Fri Aug 12 03:25:40 +0000 2011But I want it to show this: 17 days agohere's my flash as3 code:
var myXMLLoader:URLLoader = new URLLoader();
//myXMLLoader.load(new URLRequest("http://twitter.com/statuses/user_timeline.xml?screen_name=arunshourie"));
[code].....
View 1 Replies
Oct 18, 2011
I've found a problem with Flash when trying to parse external SMIL XML files in Flash. The xmlns declaration seems to break Flash. With this:
[Code]...
View 5 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Feb 4, 2010
I am trying to write a class file using a .as file instead of writing code into the script tab of a .fla file.When I write stage.addChild(img); I get an error that stage is null. When I take out stage, and just write addChild(img); the code runs fine, but nothing appears on stage. Do I need to do something to set a stage active?
Is this because I don't have a Main class? My class is named after the file and I don't have a file named Main.Here is the code. As it is, it runs and I get the two trace outputs, but no graphic on my screen.
package { import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Loader; import flash.events.*; import flash.net.*; public class HelloWorldImage extends Sprite { private var background:DisplayObject, foreground:DisplayObject; private var url:String = "hw_jpg.jpg"; private var loader:Loader = new Loader( ); public function
[code].....
View 7 Replies
Jun 11, 2011
Which is preferred and why: keeping the AS in the Flash file itself, or linking to the .as with the Flash file. I've seen both done. Is it just a matter of preference?
View 4 Replies
Nov 15, 2009
I am sending out a standalone player that uses an xml driven image gallery. I need to prevent changes to the xml file to stop images being added to the gallery. I can can password protect the xml file to prevent changes, but I also wondered if there was a way to validate the authenticity of the xml file from within Flash to prevent the entire file being replaced?
View 3 Replies
Sep 23, 2010
I have created a booklet in InDesign cs4 that includes page turn transitions. I have saved it as a SWF file and it works perfectly on my PC with the ability to sweep through the page turns. My issue is now, what type of file can I export the SWF file to so that I can view it on an iPad and am still able to have the page curls?
View 3 Replies
Apr 19, 2010
I want to write the bulk of data into xml file ,the data coming from the backend(mysql) using cgi by httpservice, read the xml file and bind it into list. can anyone send the sample code for this?
View 1 Replies
Apr 28, 2011
I have a application developed in flex deployed on server. In the application data is filled by user and saved in cookies so as to be available even when the user closes the application. However if new version of application is released the user can still access the older version saved in the cahe. How can it be assured that whenever a new version of application is released the application is loaded from the server and not from the cache and at the same time data saved in the older version (in cookies) can also be accessed in the new version.
View 2 Replies
May 9, 2011
I'm having some problems inserting my ammap into my webpage. I've read through the documentation and it isn't helping. The map works with if I use the .html file in my original folder but all the paths are relative and I'm trying to make this work in an ASP.NET MVC project using visual studio. It's rather tough to explain the problem since I don't know what's wrong (no javascript or flash debugger).Here is the code that embeds the ammap:
<script type="text/javascript" src="../../Content/AlcoholAndWar/WarStuff/ammap/swfobject.js"></script>
<div id="flashcontent">
[code]....
View 1 Replies
Jan 13, 2012
Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
View 2 Replies
Aug 20, 2009
The template is built under Flash and has .swf, .fla and html files and was setup on an html background. To make things look nice I decided to use an XML web template as a background to his template. The problem starts from there.The XML web template allows us to add our own SWF files, so I decided to add the swf file of my friend's template.
The swf file was set to "noscale" and when I imported it into the web template it didn't fit properly. So I took the "noscale" off from the actionscript and imported it again. Even then the scaling of the swf file was not correct.As soon as you load the file, it scales towards the left and not center.My question is how can I write a code within the fla file so that when the swf file is loaded it automatically centers itself?2nd question is how can I setup the dimensions of the file as in terms of height and width of the file without getting it cropped. I tried to set it up from 840x610 to 650x430 however the swf content got chopped off (even with noscale off).
View 2 Replies
Jul 21, 2010
I need to find a way to detect keystrokes when the flash file is not selected and send that information to an .swf file. The file would be stored locally (not on the internet).
View 3 Replies
Jul 27, 2011
i have banner with 5 images fad in fade out effecti need to load images & test from external file " text file or xml file " with keeping fade effects on imagesall ways i know can't keep fading effect on images so
View 4 Replies