ActionScript 2.0 :: Jump To Url And Trigger A Movie?
Nov 14, 2005I use the get URL in my as.file ... but is there that I also cantrigger the movie in the url ... eg: if it got a label
View 1 RepliesI use the get URL in my as.file ... but is there that I also cantrigger the movie in the url ... eg: if it got a label
View 1 RepliesWe're making a viral video which is going to be distributed as FLV movie file free for download and redistribution.
I don't know much about flash yet but I can imagine FLV is just some sort of special flash application which can also include arbitrary code.
Is it possible to track how many times that movie file has been played by letting the FLV file perform a server-callback when playback begins?
I am brand new to scripting in Flash, and was hoping I could get some help on a question. I have an animation that is 300 frames long. The first 100 frames are an animated 'ad' (for lack of a better term), the second 100 frames are a different ad, and the third 100 frames are the last ad. This can be viewed straight from beginning to end (and is intended to loop if no action is taken), but I would also like to add some functionality to the animation, so that people can jump forward to the next ad, or back to the previous ad (hitting back from the first ad would take them to the third ad, and vice versa.)
[Code]...
This does not turn up any errors when I test the movie, but the functionality does not work. Am I anywhere near a working script, or am I attempting this in a completely wrong way?
I have three buttons all in a movie clip called 'container'.
I am loading variable into container from a text file and doing a test to see which button is the correct one. At the moment that is all working fine, when the correct button is pressed I output "yes" using the trace command.
I want to however jump to another movie entirely called 'Succ' when the correct button is pressed and jump to a movie called 'Fail' otherwise.
Each button has the following code attached to it
on (press) {
if (this.p1) {
trace("yes");
gotoAndPlay("Scene 1", "Succ");
[Code]....
I have created a layer called 'Movies' at the Scene 1 level and on the sixth frame I have inserted a keyframe and called the frame 'Succ'. I have my successfull movie here, which is what I am trying to jump to when my correct button is clicked.
I made movie, which has TWO Scene. In Scene 1 I placed link in 4th level of the movie like
Main Movie >
sub movie 1 >
sub movie 2 >
sub movie 3 >
sub movie 4 > (here is the link on movie)
Now I want to jump on Scene 2 frame 1. How can I do this?
I want to Jump a Movie Clip When I pressed a Control Key. What will be the code.
View 3 RepliesI need a AS to make a movie jump to a random Fram
View 3 Repliesbasically i have a container which I am loading in swfs, when you click on a specific button I want the loaded swf to jump to a specific frame.
I am using actionscript 2 at the moment this is the code on my buttons...
on (release) {
container.loadMovie("lindy_black_swatch.swf");
}
im been trying to make a stationary movie clip do a jump move to the top, slowing down, and then comming back down (like a ball being thrown vertically up) within a given number of frames, ie 10 frames.
Also i would want to add a horizontal vector quantity whereby if a key is pressed (ie left) then it would move horizontally left while still in jump mode.
Does an actionscript like this exist?
I have many buttons in a few movie files, i need to select a few of these buttons and store them in an array so i use....
var twocolourbuttons:Array = ["mybutton1", "mybutton23", "mybutton34"];
I then need to show a movie file if the button that has been clicked on is in the array. so something like...
if e.target.name is in the array show the movie twocolor.visible = true;
i then need to go to a certain frame of the movie, depending upon where the button is found in the array. So if the button is at position three of the array, i need to jump to keyframe 3 of my movie.
I have a HTML stageholder, this calls a "mainMenu.swf" which essentially controls my site. This "mainMenu.swf" has three buttons: intro, portfolio and contact which are all individual movies. So far, all good... When I have clicked into the portfolio section a 3x3 grid loads with nine buttons, one of these buttons loads a preview page for four movies, when I load one of these movies it plays fine. What is the path to get the loadMovie command to jump back to the 3x3 grid page from this movie? Basically, what is the command to jump up a directory when using loadMovie?
[Code]....
Is there an SWF player with a slider control, play and Stop, total play time; so you can jump to different sections in an SWF movie without having to watch it from beginning to end?
View 1 Replieshow to jump to a certain frame number / frame label inside a movie clip on the main time line (ROOT) from ANOTHER movie clip elsewhere. Any ideas?
View 1 RepliesI just have a button and a movie clip (MenuUp) and i want the button to be able to make the movie clip jump to different frames...
[Code]...
I'm using a template provided by the kind folks at [URL]. I have done a lot of changes to the template (and I still have more cosmetic ones to go) but I like the way it is set up.
I have a portfolio page where I would like to display videos. The page is currently set up to show images and their descriptions with the click of a thumbnail. I would like it to show movies and their description with the click of the thumbnail.
I created the flash video player, I have not gone into the xml playlist though. Is there a way instead to have user trigger the movies to play in the video player with the click of a thumbnail?
Also, when users click another thumbnail ( to see another movie) or exit this page entirely to go to another flash page on my website, is there a command so the movie will stop playing when they do something else?
Here's my link if you want to see what I'm talking about: [URL] (Click on the "Wedding Portfolio" Tab to go to the page I'm working on)
I'm also attaching my fla file if that helps! (Whoops, it's too big to upload to the forum -- 3.5meg) You might be able to download it at this link: [URL]
Is there an event type which fires whenever the Flash movie is 'exited' or 'destroyed' like by going to another webpage in the browser?
It may seem like a meaningless thing to want to do, since the user won't see the event, but I'm trying to make a number of soundChannels stop when the user leaves my movie.
Normally this would happen when the webpage is exited anyway, but I'm working with a weird Flash E-Magazine where for some reason it's possible to leaf through individual SWF pages without the soundChannels stopping when you change pages. I don't have any control over the 'leafing' function, only the individual SWF pages, so I need to be able to have each page 'listen' for when it's being exited, and stop all sounds playing on it.
I have a button on the right side of my screen. When I click it I want a full screen menu system to come in from the right hand side and stay in place until another button is clicked.I have all the parts built, but I don't know how to use buttons properly. The only tutorials I've found are the ones that tell you how to show or hide something, or how to change the appearance of the button.
View 1 RepliesI have a problem with a flash movie, that is initated below a div element with z-index: 2000;. I have a onMouseDown event, on the div - which is triggering fine, and I have $(divelement).hover(functionIn(),functionOut()) attached. (The onClick event is captured by the underlying flash regardless of z-index)
In FF and IE9 this is all working as expected, but in IE8 the functionOut() and functionIn() is triggered on every pixel! What's a good way to fix this?
Possible to add some sort of pixel boundaries based on the element size and position to aid .hover() ?
I've imported my animations into a single projector using loadmovie.When the external animations finish playing how do i get the main projector to recognise that the animation has finished and move onto the next scene ?
View 1 RepliesI'm trying to do something that seems simple, but I've been looking all over for the right information and I can't seem to find it.I've got an input text field and various movieclips. On the click of a button or hitting "enter", i am able to trace what is typed into the input text field.I want certain inputted numbers to trigger movie clip events (gotoAndStop, etc).
View 2 RepliesI need to show and hide multiple DIV layers by clicking on buttons inside an embedded flash movie. I looked around and the closest I got was this tutorial here:
[URL]
but the problem is I need 10 buttons to each show one layer while hiding the other ones. For example, I click button 1, layer 1 shows, then I click on button 5, layer 1 is hidden and layer 5 shows etc.
How can the above code be split so instead of showing all DIV layers at once, it shows one and hides the rest??
I have an application done in flash- on the main Scene Level, everything has only one frame but I have MCs and the like that are triggered by actionscript.There are quite a few nested functions on the main actions layer as well as an "onEnterFrame" function that reloads XML data in the background, etc... but that is not the problem.
The problem is, that at one point, I am calling a few MCs that kind of close up a section of the page like blinds- and then I want a text to appear ontop of that now closed area... but if I just write...
Code:
_root.TimelineFader.BlendeT1.gotoAndPlay(2);
_root.TimelineFader.BlendeT2.gotoAndPlay(2);
_root.TextAboveTimeline.theMessage_txt._visible = true;
...it all happens simultaneously, of course.I guess I could check for "BlendeT1"'s (or T2's) current frame (since it's an MC)... but how do I wait while that MC runs / until it reached a certain frame? How can I keep the rest of the actionscript in the main function from continuing?
how do i make a button trigger a movie clip that targets specific coords? I'm building a map and when a button is click it goes to a defined point. right now it jumps to the coords, but i'd much rather it smoothly move instead. the other thing is that i would like it to move from whatever point it is currently at.
View 11 RepliesI need to create a script that will jump to a certain frame in the scene when a movie cilp reaches its last frame. Putting a goto... within the MC itself doesn't work. I assume that I need to create a listener of some sort....I haven't been able to find what I need in any documentation (and I'm even been looking through AS dictionaries going back to Flash 4).
View 1 RepliesI have an FLV video that I am attempting to loop. I have tried various methods, but all of them cause the video to have a slight "jump" when the movie is looped. I can't seem to get this to go away... See the following link: [URL] Here is what I have tried:
- Using JWPlayer
- Using Flash embed method
- Using an SWF to display the FLV Currently, in the link above, I have an SWF displaying the FLV. But, I am willing to try anything.
I have a movie with 4 or 5 scenes. How can i make the movie jump from scene 1 to another scene by clicking on a button?
View 5 RepliesI have this code written for a game im making, but the problem is that the function 'jump' is only run when the mouse is clicked over the movie clip "grape1"
Code:
var MyArray = new Array
this.addEventListener(Event.ENTER_FRAME, keepRunning);
this.addEventListener(MouseEvent.CLICK, jump);[code]...
I have a movie clip with a button, clicking on it goes to another scene. When in the other scene, i want to be able to click another button and go back to the original scene and have the movie clip be at the frame where I left it, or any other that I specify.
View 2 RepliesThe button tells the playhead to jump to the next frame with this code:
on (press){nextFrame ();} Where can I put a "+ 2" in there to make it jump 3 frames ahead?
I have imported an 8 minute long video in flash. This video has 5 parts say part1, part2.... I have created 5 buttons on top of video that should by clicking, take the user to a particular time in video..... I dont know the code I should use on these buttons..... Also when no button is clicked the whole video will play in its entirety What i learn from some tutorials on net is that i need to use cue points.... while importing the video I have created 5 cue points in time... they are all labeled.
View 5 Replies