ActionScript 3.0 :: Load Video Based On URL Parameter?
Nov 20, 2009
So I downloaded this as3flvplayer script, but it hasn't been updated in over a year and has no documentation. It is based off loading the video from XML, but I would like to change it to where I can specify a URL parameter instead.
I'm in the process of including a 1 minute .flv into a flash doc. I don't want to stream the video since i want the video to load almost instantly and do not have any room for streaming progress bars also i can't use flash8 and to get video to stream in flash 6 is a pain.
What i have planned to do now was slice up the 1 minute video into 6/ 10sec clips. Put each clip in a seperate external movie which will range from 50-100kb each in kb's. I want to preload the first video and then play it, then in the background load external video2 while external 1 is playing. then play external 2 at the end of external video1 and do the same for the rest of the videos. Its a lot more work but i think this way i can reduce load time and have the video play almost straight away.
What do you guys think? is there a easy way to do it and achieve the same results or should i continue with my concept above, and if i do what i have planned is there any code that you can direct me too that will load a movie / hide it and play when called for?
I would like to build an xml based scroll or purchase one already done, that I can modify the code to look for a unique xml file based on a parameter in the cookie. What would be the best way to go about doing this? Is this even possible? The filename would be unique for each individual user.
Code: var run:Boolean; var jump:Boolean; if (run && jump){ // }
is flash smart enough to flag the if statement as false based on the first parameter? or will it still process both booleans, even though it is known the if statement must return false based on the "run" Boolean alone. just wondering if its a waste of processing, although trivial at this level.
I have a situation where I have a List showing a queue of Upload Objects:
[Code]...
I would like to create three different views of the List: One showing All uploads in the queue Another showing only the Upload items with Upload.type == "Update" and another showing only the items with Upload.type == "Create". Another example of this would be on an email inbox, where we could filter "All, unread, or read". I realise I could just create three different lists, one for each view of the list (maybe I'm just being picky) but I was wondering: Is there is any easy way to conditionally select the items to display from a DataProvider based on a parameter (for example type =="Upload") so I don't have to juggle three separate ArrayCollections about?
It's a way to load external swf's with a parameter, like loading them from HTML in form: mymovie.swf?settingsfile=mysettings.xml? Loaded without parameters it works fine, but i tried to load them via URLRequest("mymovie.swf?settingsfile=mysettings.xm l") and i get an error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I have found out that one can use an extra parameter in the embedding in order to load another xml other than the default xml file:<embed src="veppa_photo_album2.swf?xml=path/to/custom.xml" ....</embed>I was wondering how i can read this xml file in flash.
when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time
I want to create something similar to "Karrine Cast" on http://www.karrine.com/home/ - something where I can record myself on web cam every week and then upload it and display it in flash. Without having to open up flash and render it into FLV, then import it, do coding etc change my move etc. Something simple, quick and easy to be able to display videos. Is there a tutorial or some sort of premade code that would allow me to do this?
I'm wanting to create a xml based video playlist like the one on the link below. I've searched Flashkit and the web and found a few things, but nothing really close in operation or that I could use.
I have to create dynamic content based on content uploaded to site and I need to know best tools for this.In a nutshell. User uploads images. Images embeded into existing video and animated. New video produced for download So far I have looked at Flash Media Server, Flex etc but not sure what the best tool is for the server side production of content. I know I can produce the custom MXML and AS files based on content uploaded and using the Flex SDK I can render these into a SWF. What I don't know is if There are limiatations to this in the context of what I want to achieve For instance can a product like Flash Media Server do something similar.Transcoding is also required hence the interest in FMS.
I have an embedded video (can't be a separate FLV) named videoMC and I need to move the playhead back and forth by moving scrubberMC horizontally on the stage. Lets say videoMC has 300 frames, I would like this to dynamically calculate based on the total number of frames in videoMC rather than just using 300 as a number, in case the video's duration changes.In mimicking a regular video player I want to have a line graphic indicating the total length of the movie so I need to be able to constrain all scrubberMC movement to that area.
I was curious if it's possible to load a certain SWF file based on the URL that is viewing file. Basically it's an embedded file, so I would think that it'd need to be in the actionscript.
I make my base swf in which I load external swf's. In my base swf I have mp3 player. Everything works fine until I need to load external Video gallery or mmedija.swf. In video gallery I have
I want to load a set of cuepoints into my flv player, I have 5 flvs and I want a particular set of cues to load depending on which flv is currently playing,
I wanna make a swf movie which changes according to the page that published. I have a wordpress page and it has different (8 languages). On each language page my swf looks the same... I want that it changes in each language page for example it calls a behavior on and it calls another action oni tried this code:
function getURLhttp() { var urlPath = ExternalInterface.call("window.location.href.toStr ing"); urlActions();
I need to load dynamiclly video in flex video player on the web,I'm using standard video player component,when page load a want to load a video in it.I'm not flex programmer
My problem seems fairly simple, however, due to my limited experience with Flash I'm having some difficulty with it. Anyway, here is my problem: i'm trying to use a Photo Gallery written in Flash. The source files for it could be found in the link below:
[Code]...
it's just so strange that merely calling the .swf from the same directory in a different Flash project is totally making this application, useless. As I mentioned earlier, I'm a beginner or less, at Flash, so please bear with me if my problem seems dumb. Nevertheless, my deepest gratitude for anyone that can help me out with this problem.