Professional :: SharedObject Class - Movie Start At A Particular Frame After The Initial Visit To It?
Jul 27, 2010
I don't have quite a good enough grasp on AS3 just yet, but I'm getting there.I have a movie that has an intro to it. It also has buttons that take them to subsequent pages.Once they go back, I'd like the intro portion of the movie to not play. In other words, I'd like it to start at a particular frame after the initial visit to it.I think this can be done with Local Shared Objects,
View 2 Replies
Similar Posts:
Aug 8, 2011
I have created a simple audio player to play continuously even if the page is refresh it will play continuously.This is my code to store audio position in flash Temp memory
MySharedObject.data.audioPos = mySndChannel.position;
MySharedObject.flush();
MyProblem,When the player starts the sndPosition is null, so it was not playing. If I set some value, when I am refreshing it will not continue from the last position. How can I set the initial position to play from the start?
View 1 Replies
Nov 18, 2010
I have a Flash animation that loads a quick animation and then on a button click loads and external swf while at the same time moves the playhead on the timeline to frame 2 so that it has a blank stage to play on. The external swf then loads and plays. At the end of the external swf's animation I would like it to unload and then return to frame one of the containing movie. I am assuming that on the last frame of the external swf I should be putting some actionscript that will unload the movie and then talk to the initial containing flash telling it to return to frame 1.
The main swf button that loads the external swf is using a code snippet from the AS3 CS5 library and looks like this...
[Code]....
It is also using gotoAndStop(2); for the same button.
So to unload the external swf and return would I use something like... this.unload(gotoAndStop(1));
View 3 Replies
Dec 3, 2009
I'm currently making an animation which will eventually exceed the 16,000 frame limit (don't ask haha), so, short of making two movies and having to just start up the next one, what is the code for loading a movie? I presume they need to be in the same directory? So basically all I want is on the last frame of the movie the code executes and the second movie file opens up and starts. I guess I'd want the current movie to close, too.
View 1 Replies
Oct 15, 2007
I have an MP3 player that i want to put on my site, I would like to have the first song be played randomly so it dosent grow stale.
Here is the A.S. i'm using.
Code:
var musicFolderName:String = "music/";
var curTrackNum:Number = 0;
var curPlaybackPos:Number;
[Code]......
View 4 Replies
Nov 29, 2010
So I made a ridiculously long Flash animation, but now I have to break down to certain parts. It's all made in one scene.
My question is can I start the playhead on a frame other than frame 1. Say frame 595, I've tried gotoAndPlay(595);, but to no avail. I've searched for a good 2 hours on this too. Is something so simple not possible in Flash?
View 1 Replies
Jan 25, 2011
I have tried gotoAndStop and gotoAndPlay, but both somehow disable other actions I have setup on the timeline, like on the website I'm making, 3 buttons, "Home / About / Info" it disables buttons from switching frames, very odd.
View 3 Replies
Aug 8, 2009
somehow I miraculously created a Flash movie and successfully uploaded it to a blog
here is the blog, the flash video is in the left column, top:
[URL]
you will see that the first frame of the movie is actually all white, with a logo/banner across the top
all I would like to do is skip over, or delete? those few frames in the beginning, and have the flash video display and start the movie from a different frame.
this is taking me DAYS to figure out....hours that I am not getting paid for....my client's video guy never returns her calls, and so I, the lowly graphics designer, am trying to figure this out.
SURELY there must be a simple way to tell the video:
"hey....skip over the first ____ frames, and start the video at frame 5______ (or whatever).
I'm in Flash CS3 and I know NOTHING about Flash and very very little about code
View 2 Replies
Sep 8, 2010
how you properly start a movie on a frame other than frame1. The simplest answer is to enter gotoAndPlay(2) in the actions panel of frame 1, however when I do that and embed it into a website, the movie starts on a randomly-selected frame every time I strike the refresh button in a browser.
I'm using Flash CS4 and obviously ActionScript 2. I'm embedding the SWF into an HTML document using Dreamweaver CS4. Standard code -- no modifications to whatever Dreamweaver throws in there to embed flash, other than I have the wmode set to Transparent and am Publishing the SWF accordingly. Could this be interfering somehow?
Is there a way via HTML I can have the movie start at a specific frame rather than upload another instance of the same SWF? I have multiple pages that all need the same flash but playing at different frames per page, and I'd rather not upload multiple instances of the SWF to achieve this. Then again, if it's the only way, I'll have at it.
View 2 Replies
Jul 17, 2009
i'm now doing a flash slide show of more thant 5 minute ...and i' now to 1.5 mitnute ...
And ofthen I generate the swf to see wath it's will done ... but each time I have to wait 1 minute to see the part I need.
I need script or something who will get the frame 1000 directly at the begening of the slide show...
View 1 Replies
Feb 15, 2011
I created the movie below with 4 movie clips.
[URL]
I would like to make my movie open with Tab 1 already pressed down, but for the movie to otherwise function normally. I've tried using an aclip.onEnterFrame function on scene 1, but it doesn't seem to work.
View 4 Replies
Sep 11, 2010
I have a web site that will have five sections. Let's call them 1,2,3,4,5. Section 1 starts on frame 100, 2 on 200, etc. Can I make an HTML link that can start the flash movie at the beginning of a certain section? Such as play "myflashmovie.swf and start on frame 200" so that the viewer will start on section 2?
Another way I was thinking of doing it was to create the five sections in five different flash movies. Then import those flash movies into one container flash movie but vary the order to whatever I want the viewer to start with. Then I would have five different html links. Each link would have a different section as the starting movie. Such as 1.html would play a container flash movie with section 1 at the beginning, 5.html would play a container flash movie with section 5 at the beginning, etc. My question here is could the five separate movies within the container movie make references to the other movies? Such as if someone was in movie 1 and it has link to movie 4, how would I note in the flash movie when user clicks here, go to movie 4?
View 6 Replies
May 21, 2011
What i need is a code that forexample is placed on the first frame of my movie. Also i have there a stop(); code. What i need is on random time intervals, the movie to start playing from FRAME 2. Those intervals to be restricted maximum for 2-3 minutes. I mean for example not to wait an hour or so for the function to be executed.
View 3 Replies
Mar 21, 2011
I know how to do this in AS2, but not AS3: how do I start my movie on frame 3 instead of frame 1?
View 3 Replies
Apr 26, 2009
I have a problem when I try do to my flash movie starts at frame 20 when playing.
In the timeline, I have some stop() function at frame 5, 10, 15...
And at frame 1, I put this action gotoAndPlay(15) for starting the flash from frame 15 When I play on my PC (local), it's ok, but when i upload to internet and play, it stops at frame 5 (where i put the stop action)
make to flash movie start at the special frame.
View 1 Replies
Nov 24, 2009
I have a toggle to mute and unmute sound in this movie. If sound is on and refresh with SharedObject sound plays again. Also I can toggle between the sound before refresh. The issue: when selecting mute then refresh, the movie plays back muted but the ability to un-mute is no longer available (at least not before another refresh).
Problem: toggle to mute then refresh of browser. Mute is fine but no ability to toggle back to sound.
Code:
var my_snd_obj:Sound = new Sound();
my_snd_obj.start(0,1);
my_snd_obj.attachSound("my_audio");
[Code]....
View 1 Replies
Jan 13, 2010
in CS3, and preferably Actionscript 2.0, to make a mouse over a button action that would go to a specific scene and frame, depending on the button? I have 5 buttons, and ould like, on rollover only...no click/down, to have the playhead go to a different scene and start playing from a specific frame #. Or do I have to do the click/down action?
View 7 Replies
Dec 30, 2009
I'm new to flash and action script 2, and I am trying to load an external movie and have it start at frame 3. It's the start at frame 3 that I'm having trouble with. The following code does not work:
[Code]...
View 1 Replies
Sep 11, 2010
I have a web site that will have five sections. Let's call them 1,2,3,4,5. Section 1 starts on frame 100, 2 on 200, etc. Can I make an HTML link that can start the flash movie at the beginning of a certain section? Such as play "myflashmovie.swf and start on frame 200" so that the viewer will start on section 2?
Another way I was thinking of doing it was to create the five sections in five different flash movies. Then import those flash movies into one container flash movie but vary the order to whatever I want the viewer to start with. Then I would have five different html links. Each link would have a different section as the starting movie. Such as 1.html would play a container flash movie with section 1 at the beginning, 5.html would play a container flash movie with section 5 at the beginning, etc. My question here is could the five separate movies within the container movie make references to the other movies? Such as if someone was in movie 1 and it has link to movie 4, how would I note in the flash movie when user clicks here, go to movie 4?
View 1 Replies
Jan 26, 2004
I'm building a quite large flash movie with hundreds of movieclips (with their own preloaders) with approx 150 frames in the _root timeline. But I've until now never been very confident with preloaders, and that is causing me hairloss.
Once the user enter the site, I want a preloader to come up, but I want to use actionscript to start playing frame 2 once frame 2 content is loaded, not start playing frame 2 once the WHOLE movie is loaded.
I use the below code for simple preloading with no feedback of progress, however it loads the whole movie before it start playback of frame 2:
if (_framesloaded>=_totalframes) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
View 2 Replies
Jan 26, 2004
I'm building a quite large flash movie with hundreds of movieclips (with their own preloaders) with approx 150 frames in the _root timeline. But I've until now never been very confident with preloaders, and that is causing me hairloss.
Once the user enter the site, I want a preloader to come up, but I want to use actionscript to start playing frame 2 once frame 2 content is loaded, not start playing frame 2 once the WHOLE movie is loaded.
I use the below code for simple preloading with no feedback of progress, however it loads the whole movie before it start playback of frame 2:
if (_framesloaded>=_totalframes) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
View 2 Replies
Jun 3, 2010
I have a short movie which consists of 6 MCs. What I would like to be able to do is to start the movie on a random clip and then proceed as usual playing each consecutive MC. The movie then loops back round to frame 2 thus avoiding the random selector code which sits on the first frame of the movie.I have tried three different solutions of AS, two of which I got from a 2008 posting on this site from CBadger and although all versions work in Safari and v1 & 3 work in Google Chrome on the Mac. None of them work in Firefox on a Mac (the 1st version displays but doesn't randomise and v2 & v3 don't display at all) and I have not yet tested them on a PC.Here is the code that I have used for each version on the first frame in the root:
Array.prototype.shuffle = function() {
for (var ivar = this.length-1; ivar>=0; ivar--) {
var p = random(ivar+1);
[code]....
View 4 Replies
Sep 9, 2009
How do I insert a start button on the first frame of a movie clip that will then disappear after the movie starts playing?
View 2 Replies
Oct 10, 2007
I have a flash movie completed but now I want to only have the flash play in it's entirety one time during the visit of the site. How and where do I insert any code to make it only play once per visit?
View 4 Replies
Sep 27, 2011
I have a website that consists of 3 pages - About, Services, Contacts (every page is a separate html file). I have the same flash movie embed to every page (animated header intro). I want flash intro to play once and then stop. User can browser through these 3 pages, but flash shouldn't play anymore. Only if user closes the whole website (a browser, or a tab) the flash should refresh, and after user enters the website again it will play again once and stop.
View 1 Replies
Apr 19, 2011
I have a Flash 8 site that plays music in the background. When I click on one of the menu choices, the timeline jumps to another frame where the selected page is. Once at that page, I want the background music to stop and the page's music to start. Here is what I have:
Attached to frame 1:
var s:Sound=new Sound(); // to initialize a sound instances
then attached to each page keyframe:
stopAllSounds();
s.attachSound("thelinkageidofthesoundthatcorrespondstothispage");
s.start();
When the timeline jumps to the page frame, the background music stops but the page's music doesn't start.
View 5 Replies
Apr 24, 2011
I'm trying to broaden my horizons with it and so I'm trying to do an update of a quiz program my employer has. Everything has worked well, except for the timer. The button that starts the game has two options, "study" or "exam"; if the study is selected, there is no countdown, just the score keeper. If the exam option is selected, the timer is show (counting up). But, press "Start" and while the quiz begins, the timer, in either case, does not.
I'm going to post the actionscript for the timer that was already there, as well as the start button. I'm hoping someone can explain how this timer is supposed to work and why it's not; and where the disconnect lies in pressing the start button and making it run.The timer is embedded in a movie clip, with two dynamic text boxes, that are for some have no instance name; and actionscript spread out over several frames.Frame 1:
Minutes = "00";
Seconds = "00";
Centiseconds = "00";
[code]....
View 8 Replies
Oct 3, 2011
I copied my actions from frame 3 to frame 4 and frame 4's class doesn't work when frame 3's class works fine and normal, here is the source code:
Frame 3:
stop();
var rowNum:int = 10;
for (var i:int=0; i<rowNum; i++)[code]....
View 7 Replies
Oct 4, 2010
How to do this? I'm very new to flash.
View 3 Replies
Sep 19, 2011
I am new to AS3 and am trying to work out how to stop a movie clip from playing on mouse click. At the moment I have created a movieclip which plays when the user clicks it, but I now want to be able to stop the movieclip if the user clicks on it again. At the moment I have the following code:
stop();bigTree_mc.addEventListener(MouseEvent.CLICK, onClickplayAnimation);
function onClickplayAnimation(event:MouseEvent):void { bigTree_mc.play(); }
The tree animation plays fine, but i want to be able to stop it if the user clicks it again.
View 2 Replies