ActionScript 2.0 :: When Play With Stand Alone SWF File It's Not Playing Flv File
Aug 27, 2009
i'm trying to play flv file using programming but problem it's only work with only html file.when i play with stand alone SWF File it's not playing flv file? what should i do to run as a stand alone application do i've to desing into Adobe AIR ?
While developing an application (for KIOSK) using Actionscript I am facing the trouble to store xml data in that machine. What is the way to save xml file using actionscript?
How can i publish this so it becomes a stand alone file,and give it a custom icon?Actually, it doesn't have to be completely stand alone. As long as they have flash player installed.
I would like to open a separate swf file from with in flash, but by default, it opens the swf in a browser. I would like this file to open in a stand alone player not in the browser.How can I achive this? Right now I'm using the getURL() action. Is there a separate function for opening a file at a specified filepath?
i've got Flash installed and i use it to create a fancy thing. a .swf. A regular swf.When i open the swf straight from a folder, it opens in "Flash Player".not in any browser.When I send the swf to my boss, or anyone that does not have the Flash Application installed, it doesn't quite work right.They DO have the latest browser flash player plugins installed and it works if they drag the swf into the browser.BUT how can we get it to play stand alone, the same as I can do. It seems you could download the Flash Player for the desktop.
I have recently been having problems with my swf file. When i export it by hitting "command enter" it seems to export fine. But then I realized that when i exit flash and click to view the swf it opens up in flash instead of the flash player as it normally does. The other implications of this is that when I send the swf file to someone who doesn't have flash (but is able to play swf files) they are not able to open the files because it wants to open up in flash.The file is a simple web banner that is limited to 40kb.
PREVIOUS POST WITH SIMILAR PROBLEM "Postby Haungo on Wed Jul 07, 2010 3:28 pm
OK.. so, i've got Flash installed and i use it to create a fancy thing. a .swf A regular swf. When i open the swf straight from a folder, it opens in "Flash Player".. .. not in any browser.When I send the swf to my boss, or anyone that does not have the Flash Application installed, it doesn't quite work right. They DO have the latest browser flash player plugins installed.. . and it works if they drag the swf into the browser. BUT how can we get it to play stand alone, the same as I can do.
It seems you could download the Flash Player for the desktop.. but where? how ?
REPLY "Postby Eye for Video on Sun Jul 11, 2010 12:23 pm
Look into creating a Flash "Projector" file. It's an exe, executable file and can self-contain the player you need to play the Flash without opening the browser.In the "Publish" setings, check the projector box. Here's a link to one tutorial but their are lots more, Google "Flash Projector files"[URL]
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.
I have a problem that I have not found a syntax error or logic error to explain. It appears to be an obscure problem related to playing a sound file and graphic positioning in the same file. My next step is to look for any known bugs. I have posted the file at. URL] When the page loads you will see a list of selections. Do not click any of the html Play buttons In the graphic arrow pointing to the right is the play button click it and a default file will start. Click the pause button (which will be green while the selection plays) Then click the play button again. The knob that moves while the song plays, will begin moving from the position it was at the time pause was clicked.
Click the stop button (arrow facing left with vertical line at tip) Choose a selection from the html list by clicking the Play button next to it. Then click the play button in the player display. The title of selection will appear in the title area. repeat the original steps (play, pause, play) This time the knob that moves while song plays, snaps back to the start and moves from start, rather than from the pausedposition.
i have a button that when it is pressed plays and loads an external flv file. this part works fine but directly after the flv video is finnished i want to load in an swf file. does some one have an idea how to do this? first show flv and then load swf? this is the code as it looks now..
I will try to be as clear as I can. I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.I am loading an external swf file that has all of the controls on it via this code:
// Set up the Mouse to use a listener var mouseListener = new Object(); Mouse.addListener(mouseListener);
I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.
I am loading an external swf file that has all of the controls on it via this code:
// Set up the Mouse to use a listener var mouseListener = new Object(); Mouse.addListener(mouseListener);
[Code]....
I am doing this so I can rollover the viewing window and have it appear. I cannot get any code to work to control the timeline (which is broken down into sections with individual MC's in each section.
What I am looking for is the code to apply to the buttons on the external swf file that has the controls to control the playing of the movie.
I have a flash file that is 1.5mb in size. As it takes about 6 minutes for someone on dialup to load this file, I have created a smaller swf file and loaded the larger one from it but I don't want the larger one to begin to play until it's fully downloaded. How do I set this up? I have set up the action script 2 as follows: loadMovieNum("top2.swf", 0);
I would like to attach a sound to a .fla file that starts to play when the file is opened. I have created a button and would like to be able to use this button for a visitor to the site to mute the sound. So, I'm trying to accomplish two things, first attach a .wav file, then get the mute button to work.
I am having some problems showing my videos in flash after moving it anywhere besides my computer.
I published my flash file once as a exe. file and sent it to another computer, where it all worked but my videos, which didn't show up at all.
I also published them as SWF files, then put them up on my free website (where i don't have access to the ftp) and the videos still aren't there.
The videos will play fine in an SWF file on my computer, but i am assuming when they are away from the videos, they don't have a source to access them.
I also tried sending the videos along with the SWF files when sending to other computers and it still doesn't work.
I now have a free hosted website (with wix.com if that makes any difference) with my flash work on, but no videos. I even tried to embed a youtube video into the scenes the videos are meant to appear, and put the videos on youtube, then i discovered you can't put that sort of HTML into flash.
how to show the videos on these sort of website, or even better, how to keep them in original file when sending them, so they show on other computers.
I have some animation (programmatic, I'm NOT using keyframed animation in timeline), and some music I want to play in the background. Once the music file reaches the end (about 30 seconds long), I want to trigger the end of the animation functions.I figure I could either use an actionscript timer to trigger the end of the animation or a keyframe with actionscript that is placed on the timeline near the end of the song but these methods assume knowledge about the duration of the wave file. If I changed the framerate or updated the external wave file, these triggers would possibly no longer sync upIs there some sort of event listener or other detection method for an audio file to signal it has finished playing? Or maybe there is a way to get the duration of the audio file to use in the timer
I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:
var url:String = <some http url>; connect_nc = new NetConnection(); connect_nc.connect(null);
I want to list about ten videoclips (all mov-files) on my webpage and when i put my mouse over a clip it should start playing - when i remove the mouse from the clip, it stops. My idea was to use a swf-file that i can trigger using a URL like this: preview.swf?path=movies/movie1.mov
1. How do make my swf-file aware of the URL and then play the right file?
2. When the mouse is not over any videoclip i would like have the first frame of the mov-file shown - is this possible or do i need to make screenshots from all the mov-files then?
I have a slash template that I will be inserting video into, the template is set up for a .flv file ? what would I change in Dreamweaver or Coda to edit this file so that it can play video with a .swf file instead of a .flv file? here is the template
but how do you play a .swf file in a .swf file? Would it be better if I were have it as an external or embeded? Would it require AS or would it be able to play just fine without it?
I have to play a sound file and show the progress of the sound file being played. I am using import flash.media.Sound; import flash.media.SoundChannel; But the PROGRESS event gives theprogress of loading of file. I want to know of much of the song has been played and how much more is left.
I am trying to make a swf with one FLV playback player and 6 buttons. I've got 6 different videofiles that I want to have linked to this swf. Some of the videos are quit large.When starting the Swf, the first video has to start, after playing it, it has to stop. Then you must be able to choose which video to play by clicking one of the buttons. I don't want to have small thumbnails of the video, just plain and simple buttons.I have to have all my files, both fla, swf and xml files in the same directory (I cannot have them stored in different folders, since I have to upload this to a cms system which has limited upload properties).
I've tried to find the right script on the internet, I'm not very good at scripting myselve, actually rather poor educated there.It seems to me that I have to make an xml file with a list of all my videos, I have my default swf ready, with a FLVplayback and buttons.Now there's just the coding part....
I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?
I have created fla file in cs4 which is 1 minute long.
However when I try to export it as an avi only the last fifteen seconds of the video actually play. The avi is still 1 minute long but the first 45 seconds is just a white screen.
I'm only converting it to an avi so that i can subsequently convert it to an flv and put it into a player on my site.
Does an FLV need an accompanying javaScript file in order to play within an HTML page? How do you generate this or get a hold of this javaScript file if that is the case? I'm told you do not actually publish the file in order to get it to play / work.
So far, I have the FLV, the HTML page (where it's been inserted), the "skin" SWF and the movie in SWF also.
I am fairly new to Flash and working with MX 2004 with Flash 2. I have tried several methods to play an external .FLV file. Some ideas from this forum and some from the Flash help system. Either I don't understand them and/or I am not implementing them correctly but nothing has worked. I have read of an FLVPlayback component and my system has a MediaPlayback component in the Component window. I have also seen yards of actionscript to play such files. Can anyone supply me with a basic/simple method, with code/example or buttons-to-push if necessary, to have an .SWF play an external .FLV via my MX 2004 system?
I am using Dreamweaver CS$ version 10 and have embedded a flash video on a web page but it is not playing/showingwhen I put it on a test page it works, but not when I place it in my production page.
I am trying to create a flash file out of a .flv movie to behave similar to what you can see in [url]ca.gov[/url]. The nice thing about the flash in ca.gov is that before the whole movie loads the flash starts playing it. You can easily see this if you have httpfox or httpwatch installed on your browser [URL] that loads only the flash). The file [URL] loads first and loads [URL] while playing it.
I'd like to create a similar .swf from my .flv file. I use Adobe Flash to publish the .flv file into .swf but what I see in my page is that it loads the whole movie (.flv) file before playing it.
What I am wondering is how I can create my .swf so it starts playing the .flv file while it is loading it. I understand that the movie file I'm using is of type .flv and the one on ca.gov is of type .f4v; but as far as I understand this shouldn't be why it's not working the way I want.
Also, it would be ideal for me to detect the bandwidth of the user and let the flash loads different versions of the .flv file based on the user's bandwidth.
I have a flash file developed by an ex-colleague, to load and play a flash file, however after moving the website to OVH server, the mp3 stopped playing[code]...
I have a "movie player" that plays flv files using the code below (videoToPlay is the name of the file to play and is just a string). I want to use the same setup to play an mp3 file also.I tried using mySound = new Sound(); and then mySound.attachNetStream(ns);, but it gives me this error: 1061: Call to a possibly undefined method attachNetStream through a reference with static type flash.media:Sound.
stop();var pausePoint:Number = 0.00;var isPlaying:Boolean; var soundChannel:SoundChannel = new SoundChannel();var sound:Sound = new Sound(new URLRequest("Sounds/Music_File_2.mp3"));
[Code]...
I am trying to play the .mp3 file called "Music_File_2.mp3" the music file is in a folder called "Sounds" 2buttons called Play_btn and Stop_btn plays and stops the music. Once the music playing if i click on the play button the music will pause.
Everything works fine when i launch the program though "Flash Player 10". but when i right click and open the .swf file with Internet explorer the whol project works fine, but the sounds would not play.