ActionScript 2.0 :: Load An FLV After First One Has Played
Dec 10, 2009I have figured out how to load an FLV after the first one has played. Unfortunately, I can't get the next movie to load.[code]
View 1 RepliesI have figured out how to load an FLV after the first one has played. Unfortunately, I can't get the next movie to load.[code]
View 1 RepliesI create FLVs and F4Vs and then use CS4 to create an SWF to stream them. Everything works well from my hard drive. I upload all the files to a server, the skin appears, but a green animated bar just scrolls endlessly - which I believe means the FLV/F4V is not loading. I try this on about 5 different servers and get the same problem on each - so I'm not sure I can call my hosting service and request "changing the mime-type" will solve the problem.
The path to the video appears to be relative - that is, I can copy my exported files to any folder on my local drive and the video plays. Its just when I upload it that it stops working.
[Code]...
I've created a website which uses a flash header incorporating the navigation. Each time a user loads a new page, the header replays.Is it possible for a bit of script to detect if the header has played and not play it again on every page load?
View 1 RepliesI have a mc on 'scene 2.9' which i want to play out in full and then automatically redirect (without a button link) user to 'scene 3'.
View 2 RepliesI need to get the broswer information dynamically is it possible to know what broswer in which the flash is played by using AS3?
View 3 RepliesI need to know how to make video play only once because code below is put on 102frame and when i go back i go to 50frame and video starts over again... I need video to play only once... no matter what...here is the code i put for video...Code:var nc2:NetConnection =
[Code]...
what is currMovie??? how does it work in a sense? is it directing to the currnet MC being played? can it (or should it) be replaced with a MC instance name?
View 5 RepliesIs there some code that I can use to detect whether a frame has already been played? What I'd like to do is detect yes or no, then jump to a specific frame depending on the condition.
View 11 RepliesI imported Embaded Movie to Flash (that won't be on my TimeLine to save space), and i m using the FLVPlayBack to run it.
My problem is that the player plays the movie too fast for displaying.
Is there a way i can slow down the movie?
I need to know how to make video play only once because code below is put on 102frame and when i go back i go to 50frame and video starts over again... I need video to play only once... no matter what...here is the code i put for video...
Code:
var nc2:NetConnection = new NetConnection();
nc2.connect(null);
[code].....
I've uploaded a video produced by Camtasia, but it's not played at all! Have a look: [URL] You see that the video is being downloaded, but not played.
The player is ARPlayer 1.7. The video is a mp4 file.
The file is perfectly played on a local computer, but after uploading to ftp stops being played. I don't why...
P.S. It's interesting that if I make simply an swf-video file, it's played good: [URL]. But I don't like this option, because the swf-video is 30MB vs 5MB of the mp4-video.
I have 2 frames in an "enemy" movieclip, and frame 1 contains a movieclip with an idle animation, and frame 2 contains a movieclip with a throwing animation. I want it to play the throwing animation, and then go back to the idle animation. But all things I tried always make it loop. I tried around with if currentframes = totalframes and gotoAndStop etc but it doesn't want to work. I have my code in an actionscriptfile, however I also tried putting code on frames and it doesn't work.
View 3 RepliesI am going to be revamping a required annual intranet training session for employees. For the first time, we are interested in including a video instead of having employees page through html screens/jsps.However, we need some sort of accountability. For example, we previously required that employees answer a multiple choice question correctly every few screens. No record was kept of attempts to answer; the application simply wouldn't proceed until the correct answer was selected.For the purposes of using the video, we'd simply like to verify that the video played thru (no fast forward).I've been perusing the different Events available and don't see exactly what I was hoping for.What would be the best approach to this? Should I disable the drag bar/fast forwarding and include code that checks to see if the video stopped and the buffer is empty?
View 2 RepliesI am creating a quiz in flash using AS 3.0 I need the order of the questions to be in a random order which I have worked out how to do.I now need to make it so the questions are shown only one, I've tried looking on the internet but I've not been able to find anything that a: helps and b:
[Code]...
I have taken an absolutedly positioned element on the page and have inserted a flash swf in it. The problem is, that the links behind the flash movie does not work. I want the flash movie to disappear and totally unload after it finishes playing.
View 1 RepliesI have followed a tutorial and made a little piece of music start when you click home. The problem is that if you go elsewhere and go back to home the music is starting again and two songs is played at the same time.
The code i've used is:
ActionScript Code:
var sndMusic = new Sound();
sndMusic.attachSound("mySound");
sndMusic.start();
I have a multiple choice quiz that needs to have a sound played with each response. So if the user selects the correct response, they get the ding sound. If the user selects the incorrect answer they get a buzzer sound.
[Code]...
Is it possible to be sure that the swf is being shown to the user? That is, it's not in a different tab of the browser or the user hasn't scrolled the window yet to see the swf.Recently, I was using the commonly-used script checking out the current fps of the swf. I was listening to the ENTER_FRAME event and counting them, so every second I was able to get the fps. And it turned out, that when the swf was hidden in a non-active tab, the fps was like 1 or 2 in some browsers (e.g. Firefox). Now this is some way to determine the "activity", but is there a simpler solution, like a dedicated variable?
View 7 RepliesI want so code to see if it plays 60 fps (that is my settings) in a movie that must have much power, also, I want to write out for example: it plays 45 fps/60 fps. Is there any way to do this?
View 2 RepliesWould it be a wise idea to delete tween objects once they have played?
Say I have one function that moves an MC across the stage to the right and another which moves the same MC back to the left. Should I remove each tween after it has reached the target?
Code:
function moveRight():Void{
var tweener:Tween = new Tween(MC, "_x", Strong.easeOut, 0, 500, 2, true);
tweener.onMotionFinished = function():Void{
delete tweener;
}
}
after you load a swf in a movieclip, is there a way to trigger an event at the end of the swf that has been played?
View 4 RepliesCame across this great code for a simple mp3 player with audio spectrum on another site.Works and looks great.Thing is, I have multiple players .swf on a single .html page. When one mp3 is playing all the other player's audio spectrums are triggered as well. Having a hard time figuring out how to trigger only the spectrum for the mp3 being played.
Code:
// spectrum constants
const SPECTRUM_HEIGHT:int[code]......
I imported Embaded Movie to Flash (that won't be on my TimeLine to save space), and i m using the FLVPlayBack to run it. My problem is that the player plays the movie too fast for displaying. Is there a way i can slow down the movie?
View 2 RepliesI want so code to see if it plays 60 fps (that is my settings) in a movie that must have much power, also, I want to write out for example: it plays 45 fps/60 fps.
View 2 RepliesI have a Music controller, but i want the song to start automatic when the flashfile is loaded. The script is:
var song:Song = new Song();
var myChannel:SoundChannel = new SoundChannel();
var soundVol:SoundTransform = new SoundTransform();
[code].....
I just started using CS4. I have one problem with audio played from timeline in multiple scenes. The first 2 sceense work fine but the 3rd one has problem. The audio would pick up the last brief second of the audio before the current one and then plays the current audio. The pick up includes the last second of the last audio of the previous scene or the clip from the current scene.
If I copy all the frames in the problem scene into a new file, audio plays perfectly.
Have anyone seen something like this and what is the cure?
I am loading the external movie, "1.swf" into my main stage. Is there a way that once "1.swf" has loaded, I can trace its timeline and when the playhead reaches the last frame, trigger an action? (load "2.swf").
"1.swf" was created by a 3rd party and I do not have the source files, so I have no way of adding actionscipt to it.
I have a Games website named and I would like to add a possibility to take a screenshot of the played game.For example, a player made a record on Crush the castle game and want to save a screenshot of this or why not send it to us to be a on record tab.Other exemple, for girl games, you would like to save or send a picture of your dress girl game.
View 1 RepliesAs stated in the title, when played, the game I am creating flashes from Scene 1 to Scene 2 very quickly over and over again. It only has two scenes, and it says that there are no errors. Because it flashes so quickly, it doesn't allow the player to do anything but possibly get a seziure from the constant flashing.
View 11 RepliesI am using Flash Live Media Encoder 3.2 to stream live ADUIO ( without clicking on video check box) since I am streaming Radio news only. The server is at When I choose to Save File As, it came out a .flv , and can't play back, eventhough its a 129MB file. But if I chose the video check box which straming with video , it came out fine.
View 1 Replies