ActionScript 3.0 :: Have Ads Radomly Play Before People Watch A Video?
Dec 26, 2010
I'm wanting to have ads radomly play before people watch a video on my site.Is there a way to write the script for this and place it in the xml or do I have to something differently.I already have the video up on our site. So I'm just not sure how I "connect" the actionscript and xml that way it plays the commercial before the video.Do I have to build a new player and everything to do this? I've never built a player before, so if I don't have to, I'd rather not.
We are a Wireless ISP and we have portal page at a local airport. We offer free wifi there because of sponsorship. We would like the page to have a 30 sec movie on it that people have to watch in order to get online. I have 2 ideas on how to do this. 1. watch the movie and when movie is over automatically call to our login script and then log the user in through our network device. 2. have a get online button grayed out until the movie is over after the movie is over button becomes clickable and then the button after clicked calls to the script that logs my users in through my device.
I want to make a flash form where the viewer/user can watch a video clip of their choice (from a drop-down control or something else if there's a better way). I've found myself totally unable to find our how to do this. I mean, frankly, I don't even know what kind of file to start from the "New..." form at the beginning of Flash (CS 3.0, btw)!
I know how to create a Flash Player and link it to a single video. What I envision is that after the page comes up, with a single player component (initially empty), the user chooses a video from the drop-down list and that video starts playing in the player. What kind of file should I be starting with? {I kinda assume I'll be making an SWF to put on a web page.} Where on earth do I learn how to get the simplest things (e.g., button clicks, etc.) to work?
I want to create a video chat application between 2 people and I want to record the dialouge between the two people to one audio file, so both of then can play back the dialouge at a later time.
The stop button plays as expected. The play/pause button plays as expected. The issue is when you press pause which will cause the play button to appear, then press stop. the video automatically plays and it shouldn't. I have bolded the control button script for convenience.
Why does my swf's skin referenced by a simple component FLA work locally but NOT live? There's no AS3 in the component FLA. It's just a one-layer component referenced to the the FLV. When I test locally, IN FLASH CS4 ONLY, and click on "Animalia - Verse From the Zoo" the FLV and skin load and the video (source FLV - "Sequence01.flv") plays. But the same thing live only loads the swf for the FLV file area but NO SKIN. Try it yourself, please:Has anyone had this problem and knows the solution? All files are in the SAME FOLDER on the web server. I've tried every URL and path combination I can think of on the website. I've tried referencing the whole URL.
Yet whatever path combination I try, either nothing happens, or I just get the FLV box but no skin. Which is what's happening now. Publish settings are set to Flash Player 10 for all files. And I've tried the component SWF WITH and WITHOUT the fl.video package (import fl.video.*. No difference. Why does the skin load and play locally but not live? It's all AS3. No AS2. And it does not seem to be a "publish settings" issue as far as I can see. The relevant code in my API is:
var AnimalFLVLoader:Loader = new Loader(); AnimalFLVLoader.contentLoaderInfo.addEventListener (MouseEvent.MOUSE_DOWN,fAnimaliaVOn); Animalia2.addEventListener(MouseEvent.MOUSE_DOWN, fAnimaliaVOn);
I have a project where I am bringing in one video with a cue point at the very end with the name of "End." I'm trying to have the next video play when the first video reaches that cue point. I keep getting this error: 1046: Type was not found or was not a compile-time constant: MetadataEvent. Here is the relevant code I believe:
I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.
I was wondering how I can delay (2 seconds) a video to play in a Flash Video Player? I know one way is for me to add blank frames but I would like to know some other options.
I have created my first flash video and wish to allow the visitors to play the movie themselves instead of having the movie play automatically also have a stop or pause button too.
I want to play smooth streaming video from IIS using the flash video player like e.g. jw flash player instead of silverlight player?Which video format should I use in this case? Can flash then play e.g a video via smooth streming encoded with microsoft encoder?Do you know some alternative video players, that combines flash and silverlight functionality (selected per java script) to use with flash and silverlight?
I have 1 flv with only 12 seconds of audio. another flv that is 10 seconds with only video another flv that is 2 seconds with only video Lets assume both video files are as long as my audio file. Which actionscript commands should I look further into to: 1. play audio simultaneously with video 2. play the 2 second video smoothly/seamlessly after the 10 second video is over as if it were a 12 second vide 3. if my audio or video were mp3/wma instead of flv would I run into trouble 4. I imagine a flash media server would be mandatory if my videos were other formats like avi/mpg and had to encode on the fly
I need to play the 3 video files in a video player. The files should execute one after the other in the flash video player and the files will be allocated dynamically from database.
I want to play FLV video in a flash video player, and at the end of the buffering I want to access the data (video data, or buffered file) so I can manipulate it. For exemple in a ByteArray format so I can save it to local disk... With the NetStream and NetConnection I can play the video without problem, but I can't find a way to access the data. using the URLStream, I can download the video file [URL], and I can access the data I want but I can't play it?
Is there a way to play the URLStream, or to get data from the NetStream?
Or may be, I can access the cache of the browser to get the bufferd data played by NetStream?
I just updated to CS5 - I'm working on a custom video player. It works fine embedded in a web page both locally and on the network. It works fine in the debug player. However, when I test it in the authoring player I get a NetStream.Play.StreamNotFound error and no video. I have tried setting the Local Playback Security publish settings to both local and network - doesn't find the video either way.
It used to run fine in CS4 in the authoring environment.
im getting really frustrated because i can not watch any of the NHL videos on [url]......i have the latest FLASH plugin but i just get a black screen when trying to view a video. Im running vista.
How can I 'watch' for changes in the _width, scroll, maxscroll properties other than onEnterFrame / setInterval etc. Btw. I tryed <object>.watch but found this in the AS ref:
"Generally, predefined ActionScript properties, such as _x, _y, _width, and _height, are getter/setter properties and cannot be watched with Object.watch(). "
Why do I need this? Im making a dynamic textfield with a scrollbar that will display loaded text, but here's the catch. The site is on a single frame, and has a button that uses a resizeTo() function (a Flash extension) on the textfield and changes it's _width value. So thats why I need to update these values for the scrollbar to be accurate.
i'm Creating a Game and Watch style game. Now with these games the everything works off keyframes so I've been trying to create a character that spawns in(he will first flash in over a couple of key frames, then on labeled keyframes are animations of him holding objects), then depending on a chance it will spawn either 1 or the other power up. Then you can go up to him and collect the item, he will disappear. here is some code for the idea i have for spawning, but how can i then call upon random outcomes between the two options that are 'labeled' inside the class. basical four keyframes of him flashing then four of him with a jug labeles "oil" then four of him with food labled "kabab". is it possible?
i want to know if it is possible to play a video via flash player, when the video is located on different server's mysql. for example: i want to play video on [URL] which(video) is located in [URL] mysql