ActionScript 1/2 :: Reset A Flash Video Each Time They Log On
Oct 11, 2010
I am working in AS2 and I am wondering if someone knows how to make a video so it doesn't reset everytime the user logs in - it just remembers where they are and what they already clicked.I created a video that will be uploaded in a learning management system.Students can click on movie clips and make them disappear.What I would like to have happen is have the flash video remember which movie clips the student already clicked (and made disappear) so that the next time they log in the movie clips that should be invisable remain invisable (rather than starting over)Basically, it is like a little game, once saved you do not need to start at the beginning every time you go back to it.....it remembers where you left off.
View 5 Replies
Similar Posts:
Aug 27, 2010
I am working on a site that has a clock but it displays in military time, is there a way to change it to regular time. The following is the Action script:
[Code]...
View 8 Replies
Aug 11, 2010
I have animation in Scene1 and I have button that launches the user to a video in Scene 2. In Scene2 I have the following actionscript to play the video:
var nc:NetConnection = new NetConnection();
nc.connect (null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo (ns);
[Code]..
View 15 Replies
Jan 20, 2010
I am new to flash and I'm trying to do a button. This button should play a short video clip when I would go mouse over it. On Mouse Out, the video should stop and reset.
View 5 Replies
Jul 6, 2009
I've loaded a video into the FLVPlayback component and I'm looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like "00:12/00:50".
Right now I'm defining the video by the components inspector but I'm eventually hoping to define this bit by actionscript as well.
View 6 Replies
Jan 27, 2010
How do i reset netStream.time for a streaming .flv that was intiatied on the server side? It just keeps incrementing on me even after the streaming .flv is done playing.
View 4 Replies
Apr 15, 2007
The code show's the movieclip "nav" when "bg_inv" is clicked, and fades it out when 5 seconds have passed. What I want to achieve is this:When I click a button inside "nav" called "next_btn" the delay needs to be reset, so that "nav" doesn't fade out until five seconds have passed since I clicked the button.
Code:
nav._visible = false;
import mx.transitions.Tween;
import mx.transitions.easing.*;
[code]....
View 1 Replies
Dec 28, 2010
I have a problem with reseting time of displaying a picture when user click button to next/previous picture.
ActionScript Code:
stop();
time = setInterval(nextpicture, 7000);
[code].....
View 3 Replies
Mar 5, 2009
Having a little issue here with TIMER, basically I am looking for the timeline to advance 1 frame after 3 seconds, OR on MouseEvent.CLICK advance to next frame (before the 3 seconds it up). Which would then reset the TIMER. So, on CLICK go to next frame, OR wait 3 seconds and go to next frame (while having the TIMER reset both times). So...
Wait 3, (timer resets) wait 3, (timer resets) CLICK, (timer resets) CLICK, (timer resets) CLICK, (timer resets) wait 3, (timer resets)wait 3, (timer resets)CLICK, (timer resets)CLICK... You get the idea.My issue is the timeline, over time the TIMER time doubles, it doesn't reset... I am sure this is pretty basic and I am over thinking.
[code]...
View 3 Replies
Sep 16, 2010
In my flash program I have everything on one frame. In the actionscript on that frame, I made a variable called currentButton and set it to the first button, to keep track of which button is currently pressed. In the click function this variable is changed to whatever button was clicked.Now, I didn't think this would work, because seeing that the one frame is being played over and over, (there's no stop() command in there) I thought currentButton would keep being reset every frame. To my surprise, it worked just fine. Not that I'm complaining, but I'd like to know why it's doing that. Shouldn't all the code on the frame be done every time the frame is played, including the part that sets currentButton to button1?
View 4 Replies
Aug 30, 2011
I chose a color of the video component skin, in the "custom" variety. Now each and every skin has become like that. Can anyone tell me how to reset the colors for this item? I have even reinstalled the product!
View 10 Replies
Jul 13, 2010
Just new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...
[CODE]...
View 2 Replies
Apr 13, 2011
I have an issue with adding a reset button to my drag and drop movie clips.The problem is, if a student drags a movie clip to a wrong location on the SWF file I want them to be able to hit a reset button that would take them the same SWF that they opened and what would showup would a clear page for them to restart their drag and drop exercise.I know how to make the button for this just want the proper action script to be able for user to start over with no movie clip symbols on the page.
View 3 Replies
Feb 22, 2011
Here is the situation : When a user watches the full duration of a video, I would like to add a new row to the database. For example, if there is a video of 100 MB with a duration of 2 hours and the user watches the full video add a new row, else do nothing. I am using JW player and js.
View 1 Replies
May 13, 2010
I have a video playing on my page. I want to show and hide some div's when the video reaches a certain point. Lets say hide something on 10th second and show it again on 20th second.I can easily do it in HTML5 with video tag and currentTime attribute but for IE I have to create the same functionality and I think with flash based videos (from YouTube or something like that).Is there a way to detect the current time of a video playing on my website, embeded from YouTube, Metacafe or any other video sharing site?I know I could detect it in flash and make it run some JavaScript function but I don't have flash nor have the skills to do it in AS3.
View 2 Replies
Apr 4, 2011
I just want to know, howto add time duration and time ellapse on a flash video player.
View 1 Replies
Aug 30, 2011
I'm trying to sync video with content. I can use cuepoints in Flash CS5 for that, or I can use FLVplayercaptions to sync video with caption. Is there a way to know the current time of playback?
View 1 Replies
Jul 22, 2010
Does flash provide an api to deal with remote stream like IP camera does?
View 2 Replies
Dec 28, 2010
reset in google yields only its use for timers.However I have code bg.reset() which I suppose puts the background back to the beginning of its timeline.
View 3 Replies
Jun 14, 2010
I realize this is probably an old thread, but does anyone have an actionscript example of how to create a custom start and stop time for a Flash video? In other words I'd like to be able to "bracket" the play time of a Flash video with custom start and stop times rather than start at the beginning and end at the end.
View 1 Replies
May 1, 2010
i embed a video in my html page and i want to hide div after complete the video. and a specific time.my video time is 12 sec.
I am using this function
$('#fvideo').fadeOut(12000);
and html code.
<div id="fvideo" class="video">
flash video
</div>
UPDATE
actually what i want is that
flash video fadeOut time should start after buffering completely.
or is there any way to fadeout that div( containing flash video) after buffering and running(once) successfully.
View 2 Replies
Nov 22, 2011
I'd like to play load/play one movie and show text at a specific times. In the Movie there is a scene where a board is shown. I'd like to show some text on the board when it appears. That's why I'd like to how to know when you reached a certain point.
Also about loading the video. I read there a several ways of loading a movie. What would be the best way in your opinion to load it in this situation.
1)Can this be done with the FLVPlayer component or through another way?
2) How to show a text at a specific time. Is there a function that I can use.
View 1 Replies
Dec 15, 2009
I have recently created my own flash site and have added videos on it through creating my buttons. The videos are working fine, however when I click to another page the video is still playing. I'm really pulling my hair out over how to get the video to stop every time I naviagte around my site.
View 2 Replies
Jun 21, 2011
I created a flash video player. Could any one show me how to seek unloaded time in flash video player?
View 1 Replies
Dec 5, 2010
How to get timestamp with milliseconds or better nanoseconds of currently playing video?
View 1 Replies
Sep 17, 2011
Has anyone seen a Flash video player out there that will load and play two videos at the same time, such as for comparing videos? A potential client is looking for something along the lines of this. I've not been able to locate anything out there,and I'm wondering if there's a usability reason for this...Obviously, you wouldn't want the audio playing for both at the same time, and the bandwidth issue for something like this might be a concern too. My feeling is that you wouldn't want to restrict a user to just playing both videos at once, but give them the option to play them separately or at the same time, with controls for each audio and playback.
View 1 Replies
Sep 27, 2011
Is it possible (in AS2 or AS3) to have a button that starts a video as well as an MC at the same time? The idea being that the video will play alongside a movieclip that contains animated quotes from the dialog of the video, so syncing would be critical to.
View 1 Replies
Aug 13, 2009
Is their a way to determine the height and width of your flv f4v file after you dynamically load it?
Couldn't find any properties in the loader or netstreaminfo that I could grab the info from.
View 3 Replies
May 10, 2011
Hi guys, can anyone tell me how to solve this error? 1046: Type was not found or was not a compile-time constant: Video. 1046: Type was not found or was not a compile-time constant: Camera. 1046: Type was not found or was not a compile-time constant: ByteArray.
[Code]...
View 1 Replies
Nov 21, 2011
I just created a basic flash file to play a video on my web page and it's taking several minutes to load before it starts playback. I'm using progressive downlaod and the file is in *.mov format and is 84MB in size. At first that seemed large to me for web play back, but I thought it could handle it since I thought the way progressive download works is that it would start playing the first frame right away and progressively play other frames as they download. However, this seems to be downloading the whole file first (or a major part of it) before starting any playback at all.
Is there some kind of setting I'm missing or is my understanding of the download incorrect and the file size is too large? Some vitals: I'm using Flash Pro CS5 - To create my flash file, I used the standard import video wizard and selected the a file that is "on my computer" and "load external video with playback component" and then, I selected one of the standard skins.- To deploy the vidoe on my webiste I have three files:
1) swf file containing the FLV component
2) the swf file related to skin
3) the actual video (84MB, mov file) - Web page includes/embeds reference to swf file
View 12 Replies