Creating Button That Links To An External Frame To Play Sample Of Movie
I have got the video sample to play within the main frame of the site, however I would prefer the user clicks on a view sample button to which a new window appears, plays the movie then closes. Does anyone know the best way to open a new window to achieve this?Do I need to create another html shell to hold the movie file, or can it be done from flash?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-06-2005, 11:28 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
HELP Creating Play Intro Button, Should I Use On(release) GotoAndPlay (frame); ?
ok, i have three scenes one
called requirements for my requirements page which includes the buttons enter site and play intro.
next is my preloader scene which has my preloader
and finally the third scene is the movie called scene1
thus three scenes
#1 requirements
#2 loader
#3 scene1 << which is the movie
what action script should i put on the button..to cut to scene 2 to load and then play the movie.
[play intro button] << what action script do i add to this.
i have tried this on(release){gotoAndPlay,loader(1))};
help
Creating A Simple Flash Movie With Poster Frame And Play/Pause Buttons
I have the .flv file and now I want to create a video player with play/pause buttons nad a poster frame.
I posted this over at the Adobe forums yesterday, but haven't had any response so I thought I would try here.
It's been over a year since I played with Flash last, and I have completely forgotten everything I learned.
I have a .flv file which I want to play on my website. It should display a poster frame when the page load, and not autoplay the movie. It should have the play button I made in photoshop sitting on top of the poster frame. When pressed, the movie should start playing and the button should be shifted for the pause button I made in PS (it should work just like the play/pause button in iTunes). When the movie has finished playing, it should jump back to the poster frame.
I have tried using the flvplayback component and also played around with just embedding the flv directly and inserting a play and pause button from the common library, but I can't seem to get it to work. With the flvplayback component I have managed most of it apart from using my own buttons and getting the poster frame to work (which apparently has to be done with Action script).
As I said, I know nearly nothing about this and it might just be a problem of me not knowing what terms to put into Google.
Any help/links appreciated.
Code To Play Another Frame When A External Movie Is Finished
okay, i have an audio player. it plays the swf files externally fine. i just want it to automatically go to another frame (where script for the next track is) after that audio swf is done playing.
there's has to be a simple line of code to do this... does anyone know??
K-Fresh
Movie Clip Button: Cannot Play A Frame Label
I am making a simple web site for a friend, and everything is running peachy keen up to now. But this web page is not only something my friend asked me to do, but a learning experiance for myself. My problem is as follows:
The web page I created requires me to use a movie clip as a button, however I am not educated enouph to make the MC button able to play a specific frame label. However the script works when I place it in an ordinary, boring button. Here is the current script that doesn't work, and thank you for your time.
on (release) {
if (Proc = False) {
if (CurrentSection != "Home") {
}
}
gotoAndPlay("Home");
}
Edit: The MC button works when I make it go to an external web page through the gotourl thingy.
How Do I Make A Button In A MC Go To And Play A Frame Label In The Main Movie?
Basically I'm making a MC symbol that contains a bunch of moving buttons. On the buttons I put the action:
on (release) {
gotoAndPlay("Scene 1", "pow");
}
where "pow" is the frame label I want the movie to go to. On this frame is a stop action.
If I just drag out an instance of the button it seems to work fine, but the buttons that are "inside" the MC don't work.
What am I overlooking?
Thanks,
Jonny
Help:make Button Play Frame From Seperate Movie Symbol
I am trying to make an animation for my TEE Physics class as we are going to do a report & talk on something. For some strange reasons I chose airconditionares
so the intro to this animation is of side on view of an airconditionare (really scabby looking) with what is meant to be ribbons hanging off it. in the center is a "controller" basically a square with airconditionre control written on it and a button saying "on"
all of the ribbons are copies of a movie symbol and i want to make it so that when the on button is pressed then the ribbon movie symbols will go to frame 2 and start fluttering in the breeze.
My problem is that my limited knowlede of scripting animations is makes it so that i have no idea how to do this
I've tried searching for help but can't find any.
thnx in advance for any help I get
Problem Getting A Button From A Movie Clip To Play A Frame In Main Scene
I am at a stumbling block and need help!!
I have created a animation that is a scrollbar full of buttons as a separate clip, the prob is that when I set the action from the button of that clip to the main scene, the action doesn't happen.
Please help! you can reach me by aim or e-mail and I will send you the fla to help me debug, thanks!!
Creating Links For My External Xml Buttons
can someone help me, i need to know how to create a link. I have buttons in my site and the graphics are being called into the flash movie through the use of an external xml file. Heres a look at what ive got below for XML, i think its in this file i should be putting the link and cant seem to find out/figure out what i should be doing. Please help me, i really want to get moving on this little project.
<icons>
<icon image="icon1.png" tooltip="Wildlife" />
<icon image="icon2.png" tooltip="Landscapes" />
<icon image="icon3.png" tooltip="Architecture" />
<icon image="icon4.png" tooltip="Experimental" />
<icon image="icon5.png" tooltip="Seascapes" />
<icon image="icon6.png" tooltip="Macro" />
</icons>
heres a link to my page ive created, i simply want to make the pictures clickable to links of my choosing.
http://www.stirlingcreative.com/photos.html
If the flash file is required you can download the source from my site at the follwoing address:
http://www.stirlingcreative.com/icons.fla
if that doesnt work, maybe decompile it with soThink or something. Hope someone has some answers to help me?
Creating Multiple External Links For One SWF File
Hello,
Does anyone know how I can manually link my .swf banner to specified links without having to edit the actual .fla file each time creating a totally new banner?
Here is my problem in more detail:
I have a bunch of affiliates who use the same exact flash banner that I created, but they all have to link to a different URL. My problem is that, whenver I have to update the banner, I then need to change the .fla file, and then create about 100 new banners to replace the old banners... this it quite time consuming and very irritating!
I'm wondering if there is a way to just link a .swf file, the way anyone would by just adding a link to a .gif banner, ie:
<a href="http://www.linkname.com"><img src="imagefile.gif"></a>
is there a way i can do it like this:
<a href="http://www.linkname.com"><img src="imagefile.swf"></a>
i know this way does NOT work.. but is there some way like this that I can use to link the same banner to different URL's?
My goal is to have ONE .swf banner for ALL my affiliates... but each one to have its own link...
if anyone knows of a way this can be done, that would be great! Please let me know..
thanks
angelyssa
Linking Button To External Movie, Then Frame
Hi guys just wandered if anyone could help me with the following, I am creating a website for a company as a favour.
On one of the pages I have a movie that shows many types of engineering, such as cnc milling, press tools, injection mould tools bla bla, When a user clicks on a button the movie goes to the specific frame within that movie, ie click on cnc milling it scrolls to the cnc milling part and displays the picture and text for that.
Now the problem is I also want this menu bar on other pages of the website so that if the user was on the home page, they could click on a cnc milling button, it would then navigate to the correct webpage with the movie on, then move to the correct frame on the movie with the cnc milling stuff on it.
I hope this makes sence, many thanks for any suggestions.
Matt
Helpneed Script 4 Play Button To Play From Current Frame
This must be simple but I cant work it out. I have a video in a movie clip and want to assign a play button wich continues from the current frame if you pause the movieclip, instead of starting from the beggining!!!
I thought it'd be something like
on(release) {
_root.myvideomovie.gotoAndPlay(nextFrame);
}
but obviously not!
Hope thats not so stupid it shouldve been in the newbies section, ok it probably should've been but it is actionscript!
Trying To Make Movie Play Frame X To Frame Y Then Switch To Frame Z..
Hello,
I was hoping someone could help me out with an issue I'm having. I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.
I'm halfway to accomplishing this.
Here is what i used
Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
gotoAndPlay("Home2",1);
}
}
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.
Upon clicking the navigation button it plays the above scenes.
However it doesn't change scenes to scene "Home2".
Thank you in advance for all your replies.
Looping Scenes To Go From First Frame To Last Frame And Rollover Button Play
I'm trying to figure out:
a) how to loop a scene to go from the first frame to the last to the second last etc
WHILE
b) having the scene play either forwards or backwards (as above) while the user has their mouse over a button but making the scene pause when the users mouse isn't over the button.
can anyone help me????
Creating Links Inside Lee's Movie Buttons?
Hi,
Having some trouble linking to the buttons I have now created following Lee's 'creating animated buttons' tutorial. Looks great but no good if I can't link to them. I tried some onMouseDown commands with getURL but just comes up with an adobe warning that an SWF file is trying to communicate with the net enabled location. I'm probably writing it wrong so anyone's help would be appreciated.
Cheers,
Graeme
I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.
-Thanks
Button Links To Earlier Frame
ok im used to flash 5, now i have to use mx.
i just want a button to take it back to frame 1 of the scene. So i have a button, i make an action with this script:
on(release) {
gotoAndPlay(1);
}
and i get the error:
**Error** Scene=Scene 1, layer=rwd, frame=40:Line 1: Mouse events are permitted only for button instances
on(release) {
huh? the symbol is definately is a button.
Cant Get Frame In Main Timeline To Play Frame In Movie Clip
Hi all,
Ok, I want a section of a movieclip to play up until a certain frame on the main, or _root timeline. Then I want a different section of the same movie clip to play. Now I have the movie clip all set up all fine and dandy, yet I cant get it to the frames or 'section' it is playing when it reaches the apropriate frame. I have the following code on the _root timeline frame.
Code:
gotoAndPlay("stop");
(I have a frame label "stop" where it should be) Is this the right code I should be using? It has worked in the past, but it has been in between an on (something) event/action (not quite sure of the correct termanology there)
Please help.
Audio Sample Play In Mx
hi all, i have heard that you can load MP3's into a swf ? if this is true how does one do it and will the song start playing while it is being loaded ???
thanks
protocol
On Release, Play Frame, Then Play Movie?
I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).
Thanks for the help.
On Release, Play Frame, Then Play Movie?
I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).
Thanks for the help.
Creating Rollover Play Button
i have a movie, and want the user to be able to just rollover the video and a transparent play button slide up, is there an easy way of acheiving this?
Creating Play/Pause Button..
I am trying to create a pause button that is also a play button when it is pressed.. I thought this was a set visible and set invisible, but I got lost in the translation somewhere and I couldn't figure it out.
If you take a look at the FLA I have created to seperate buttons for the play/pause. I want them to be in the same place and when you click pause, the play button will appear, and vise - versa.
Thank you for any help guys.. this place is life saving.
Jason
Button Links To MC Specific Single Frame
I know this is in here somewhere but having trouble locating it.
I have simple site building completly with flash8Pro
1 layer will have buttons to navigate
2 layer will be MC with 5 frames each with different text to be called by one of the navigation buttons.
MC is named "Site-Text"
how do i action script my buttons to called a single frame
5 buttons, 5 frames. you get the picture.
I am really new to flash so any help is greatly apprechiated.
thx,
george
Flash Button Links To Another Frame In VISTA
Hey, I use some standard flash buttons from Dreamweaver to navigate. I have two frames in this web. The buttons are in frame "A" and refer to a target in frame "B". This worked perfectly fine, even with IE 7 in Windows XP it still works. But in Windows VISTA every button opens a new browser windows.
Windows VISTA, IE 7, Dreamweaver 8, running the web on my HD
Thanks in advance.
Sky
External Swf Then Play This Frame
Okay, heres whats going on:
i have an external swf playing as an intro in frame 1. nothing is playing....
heres what i want it to do:
play the swf intro in frame 1. when done, go to frame 3 and play the rest...
SIMPLE! I JUST CANT GET IT TO WORK. the fla is attached... Thanks.
Creating Play Button For Flash Video
Hey,
i have a page where there is a video in swf format, as soon as the page opens(loads) that video starts. But i dont want that, i want it in such a way that only if people feel to see video they will need to click on play button and then the video will start loading, as in youtube.
Is there any way to do that?
Thanks,
Mahtab
Play External Swf At Specific Frame
using flash mx2004, i am building a website for a photographer, so it's image heavy. i have split each link into a seperate swf file to speed up loading time, which is fine, however on the 'home' swf file, i begin with an animated preloader. i am looking for help on the home button on each separate swf file. what can i do to load the swf file at a specific frame label (rather than frame 1-which is the preloader)?
Controlling A Movie With Links In Another Frame
I have recently designed a site for a client which has not yet launched commercially. The layout involves two frames: a navigation frame (top) and a content frame (bottom). The flash movie resides in the top navigation frame and displays buttons that allow the user to access the five major sections of the site. When the user selects a button in the navigation movie, the content frame loads the appropriate page while the movie goes to and plays the approriate frames to introduce that section of the site. This process works flawlessly and creates a very nice user interface. Because I want the site properly indexed by the major search engines, all five links contained within the flash menu can also be found at the bottom of each content page. However, if the user selects the links at the bottom of the content page instead of form within the navigation movie, the content frame changes, but the flash movie remains unchanged. This causes the navigation movie to display incorrectly according to the current content area.
Is there a way to make the flash movie, inside the navigation frame, goto and play the appropriate frames when a link is selected from within the content frame?
Any help would be greatly appreciated!
Thanks.
Preload External .swf And Play At Specific Frame
here is my problem for all you flash guru out there.
i have this main movie that has a background music loop, which i saved as a separated .swf file, that plays through all scenes in the main movie with out interruption. (user has the option to turn it on/off)
i have a preloader scene that only check, i guess the root level but not level 1 where i set the external .swf file. i am sure there's a way to check the completion of both level 0 and 1 of the movie before the it jumps to the very next scene, can someone tell me? also, i don't want the movie to load or music to play right after the .swf file is loaded. instead, i want it to play at a specific frame of the next scene. so is there a way i can "store" the loaded .swf file and play it when the movie process to the desired frame?
thanks in advance for your time!
Load External Swf And Goto And Play Certain Frame?
Hello there,
Just wondering if anyone could help me, what im trying to do is load an external swf file into a "base" file but play a certain frame number or label in the external file.
I have a file called base.swf file which is level0
In base.swf i have nothing but 1 frame with the following AS code:
loadMovie("top.swf", 2);
This works fine and loads and plays top.swf, but how can i load top.swf and play a certain frame label or number as soon as its loaded. Ive tried the following which does work but i hope it kinda explains what i want to do.
loadMovieNum("top.swf", 2);
tellTarget (_level2) {
gotoAndPlay("MyFrameLabel");
}
This kinda thing seems pretty simple but ive searched the internet but cant find the code.
Cheers
Button To Play Next Frame
I have a few buttons contained within an MC that are assigned to play designated frames in the _root, main scene.
example :
on (release) {
_root.gotoAndPlay("2");
}
Simple.
OK. Now, I would like to know how to assign action to each button to play frame 21, after the initial animation that started in frame 2, continued and stopped on frame 20, then plays frame 21 after the same or different button is pressed.
example:
Click on button (A) to start on frame 2, plays animation. Animation continues and stops on 20. The next button (B) is pressed, original animation of button (A) moves away and then button (B)'s animation initiates forward and stops.
This would mean that if I were to click on button (D), then button (B)'s animation would move away and then button (D)'s animation would initiate its animation. etc, etc...
Each button pressed should move the original animation away and then continue to procede with its own animation, without bias.
Each button will be assigned to play an animation on different key frames: (A) starts on frame 2, (B) starts on frame 30, etc...
Does this make sense? Please help!
HELP Links 3 Lvls Deep Works Only On One Particular Frame In A Scrolling Movie...
go to ashworld.com- cool huh!?
i have a flash problem thats been terrorizing me for 6 months now. i have a scrolling movie that i created by making a movie within it follow itsefl to a certain point and then jump back to the 2nd frame to get a smooth scroll. that part works, and i have a button that stops and plays the movie. fine.
the problem is, the movie that is being scrolled (2 graphics made up of a set of 5 buttons each, next to each other to make the scroll trick work). are supposed to linkl to an outside html page. i found some script that works for that- after 5 months anyways.
but now, the problem is that the button links(3 lvls down in the movie its contained in) only work in that first frame which is shown. when the buttons scrolls a small distance, it deactivates,and the link doesnt work anymore. AARRGGHH!!!
I made sure that every button in every frame in the scrolling movie has the same geturl script- but it still doesnt link unless its in the exact position in which it starts!
to say im frustrated is an undestatement.
Go To And Play Frame Button Problem.
HI I've created a movie that has a list of buttons that are used to change the frame of a movie clip, but there seems to be a bug. The buttons that have the following actions.
on (release) {
tellTarget ("screenshots") {
gotoAndPlay (7);
}
}
This seems to work however, if I click on the same button again it will take me to frame 8, on a third click it returns to 7. Basically toggling between the two frames. Any ideas as to why it would be doing this and how I could stop it.
TIA
Nikki
[MX] Non-button Scrolling To Play In Frame
Hello, The last time I asked a question here I got such good advice that I thought maybe I could get alittle more =).
So the problem here is I've created a buttonless scrolling movie. I got it off the tutorial here called 'non-button scroller'.
I tried it independant of the website i'm creating and it works amazingly.
However, when i tried to impliment it into the actual site, there is a bit of a problem. After clicking the button to go the the frame with the non-button scroller, it doesnt seem to work, it just looks like a graphic without any scrolling features at all.
I was wondering if there was any kind of actionscript needed in order to make the button work just as if it was on its own movie.
Currently, the behaviour is that of a movie clip. I've changed it to a button but the masking doesn't seem to work after doing that.
Thanks for any help,
Ed
Help With Movie With External URL Links
Sorry but I am a total newbie>
I have a 4 frame movie imported into one layer and want to specify a different URL to be opened in a separate window for each frame. So I have made each frame a keyframe and added from the behaviors a geturl event for each frame. When this is published it loops the movie and opens a new browser window for every frame for every loop, resulting in dozens of browser windows. How can I make this a mouse clickable event so only when I click on a frame will the new browser window launch?
I am trying to use onrelease, but I am not sure how this should work as I can't find a good example.
[MX] Updating Button Links From External Text File
Hi,
I've figured out how to update text in a flash file using variables in an external text file but what i really need to do is update links within buttons.
I not sure how a variable will drop in. e.g how do i use a variable to change "mainnav.swf".
++++++
on (release) {
loadMovieNum("mainnav.swf", 5);
loadMovieNum("bg.swf", 2);
}
++++
Trig One Movie To Play When Another Movie Enter Specific Frame?
[FLASH MX]
Very annoying problem. Why it is so I don’t know. Very short description of my problem:
What I want to do is to trig movie called “big” to start play when another movie that is playing on the stage is finished (or enter specific frame number).
1.Movie “little” enter (or cross) the frame 100
2.Movie “big” starts playing from label “port”
I don’t think that this is a big problem, but I can manage to put the right script. It said that “this script is only for button instances” or something like that.
Please help…
Regards,
STill
A Movie In A Movie Goto Play Frame Wont Work
I have a movie that when click to link it goes to a frame number and play a submovie. With in this sub movie there's another link that should take back to the original movie (scene1) and plays a certain frame i.e. on release gotoplay scene1 frame(50) but this didnt work. It just keeps reloading my submovie when clicking on my link. Help and thanks in advance.
|