ActionScript 2.0 :: Importing Swf's - Get The Swf's To Play When I Click On The Different Buttons?

Sep 3, 2008

I just finished with the "Transitions between external SWF's" tutorial" with Actionscript 2.0. I am working within a flash template and I'm using the premade flash buttons to call the swf's.When I click on a button, any button, the repesctive swf plays just fine, however, when I click on a different button it does not load the different swf and the previous swf keeps playing. The swf's are XML driven for the content.
I made sure that each button script has the correct swf as well.Also, I have only one movie clip created for the container with an instance of "container".get the swf's to play when I click on the different buttons.

View 12 Replies


Similar Posts:


ActionScript 3.0 :: Click Buttons To Play Movie?

May 10, 2011

I am trying to make buttons that play a movie then go to the page.

I want you to be able to click on the button (bottle) and then the motion tween play out and then when its finished direct you to the desired page.

I posted the code above that I used to get the button to play out on click, but I cannot get the code right to get it to redirect to a different page or url right after the movie plays?

View 9 Replies

Actionscript 3.0 :: When Click Button1 And Play Video1 All The Buttons Should Be Hidden?

May 11, 2010

" I have 3 different video in (layer "content) each video in different frame(Video1 in frame 1),(video2 in frame10),(video 3 in frame 20) ..Also, i have 3 different buttons in "buttons layer" ( button1, when click, it play video1) (button2, when click, it play video2), (button3, when click, it play video3)...what i need when i click button1 and play video1 all the buttons should be hidden... when the video finish playing it should be appear again... same thing for button2 when i click it and play video2 all the buttons will be hidden until the video finish playing .this is my code

Code: Select allvideo_button1.addEventListener(MouseEvent.CLICK,clickListener1);
function clickListener1(event:MouseEvent):void {
[code].............

View 2 Replies

ActionScript 2.0 :: CS3 Movieclip Button - Click To Play, Click To Stop?

Jun 21, 2010

I am building a flash interface and I would like a menu where it is hidden to begin with (just a tab). You click the tab to expand it, and click again to collapse it. I've made a movieclip with animation of the menu opening up and closing, but I can't seem to work out how I'd go about making the movieclip open and close properly.

View 4 Replies

ActionScript 1/2 :: Click Button To Play And Click To Reverse?

Nov 12, 2009

I have a test button i would like to have play a movie where a graphic expands. Once stopped, I would like to be able to click that same button and have the graphic go backwards. I would prefer to have timeline reverse, rather than lengthen the timeline of the mc because then i have to line up the start and end, and if one changes, i have to remember to change the other.

btn_test.onRelease = function(){  if (_root.adinstance._currentframe != 1) {  while(_root.adinstance._currentframe != 1) {  _root.adinstance.prevFrame();  else {    _root.adinstance.play();  }}

[code].....

View 3 Replies

ActionScript 2.0 :: Click To Play Then Click To Rewind?

Apr 14, 2011

I'm having some problems with the code below. It may be something small that I am just not seeing. I basically have a drop down window and a button named btn1. The first click makes it pull down on the main stage, the second returns it to frame #1 by rewinding the movie. Well... It only works once, I need it to work multiple times, so I am missing something.

ActionScript Code:
on (release){
if (this._currentframe == 1) {
this.play();

[Code]...

View 1 Replies

ActionScript 2.0 :: Buttons Within Movie Clip - Sub-menu Won't Stay Open In Order To Click On Buttons In It

Jul 25, 2007

I am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?

[Code]....

View 2 Replies

ActionScript 3.0 :: Importing Swfs - Music Doesnt Play?

Aug 7, 2009

I made a music Player swf and it works properly by itself.I recently tried to load it into my main FLA for my website by using Import to Library,and then I dragged it from there into my canvas.For whatever reason, upon rendering it does not work at all, it shows up but none of the functions work and the music doesnt play.Also I tried doing it like this:

I made a preloader that would load the Swf and it actually worked and the functions were all there,however there were 2 problems.First problem was that I did not know how to control where it loaded so it was over my main text and not in the right area.Second problem, for whatever reason the preloader would re run and load the SWF again everytime a function went off (like clicking on one of the buttons or rolling over something that had a color tween) which resulted in it loading like a bunch of the same swf and being a problem.

View 2 Replies

ActionScript 3.0 :: SwapChildren - Swap The Buttons When CLICK Or ROLL_OVER Buttons

Mar 8, 2010

I have 4 buttons , one container and one background movieClip as the attached file shows. Well.. at the Gallery movieclip displayList I add the other three BLACK buttons like this:

[Code]...

Everything I need consist on swap the buttons when i CLICK or ROLL_OVER those buttons, how do I do on thats circunstance? With a container and a background at the same displaylist.

View 2 Replies

ActionScript 2.0 :: Script Importing XML And Making Buttons Link?

Feb 9, 2009

I am pretty rusty when it comes to action script. I am using CS3 and want to have an XML file that has the links likeimported into the flash so when a button is clicked it will go there...I have looked at numerous examples but all are too complicated for what i want to do.I will pay someone via paypal if they want to do this quick fix for me... I can send the file... should be strait forward for someone knowing waht they are doing

View 3 Replies

ActionScript 3.0 :: Document Class On Stage - Importing Buttons?

Jun 13, 2009

I have drawn buttons on my stage. They all set to export for as3. I then made a class for buttons

package{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.system.fscommand;
public class Buttons extends MovieClip{
public function Buttons(){
[Code] .....

And then I put in my document class ; import Buttons; nothing happens and no errors...

View 14 Replies

ActionScript 3.0 :: Importing Dynamic Text With Buttons And A Scrollbar

Oct 20, 2009

I have a file where I am importing dynamic text with buttons and a scrollbar. Everything pulls in and is working fine except... I have one document where the dynamic text that is pulled in is short and really doesn't need to scroll. It appears fine but say you click one of the buttons or scrollbar by accident or curiosity. The movie just starts vibrating... it doesn't like thst the text is short. I don't want to take the stuff out because the info will always change and some days it may need buttons soma days not.

View 8 Replies

ActionScript 2.0 :: Importing And The Jungle - Play An External Swf Inside A Movie Clip?

Sep 23, 2009

It's been asked something like a million times and will probably continue to be asked long as there remains one Newbie on the planet. It is: How does one play an external swf inside a movie clip? But before the reader does an eye-roll-yawn, maybe just maybe it's not as simple as that��at least not to me�� there's more.... For stage simplicity's in this play lets get the characters straight. Lets call the external mc MC Orangutang and the main 'Big Movie where we want that Orangutang to perform [MC Buffalo. First, Buffalo is not a button but is a brief mc animation.

Second, Orangutang is not alone. There are two other MCs that also need to ride the buffalo. Call them what you will; but they are short little MCs that must all come riding onto the stage on the back of MC Buffalo. Third, I have the idea (or maybe its an obsession that) that it is a Flash-Wise idea to have all their aerobatics performed inside of an Empty Movie Clip. Hence, the Circus wold ideally run like this: Click on the MC Buffalo and it plays it short skit, then immediately imports or whatever we want to call it, the three jungle friends at which point all of them are now visible sharing the same stage and obediently waiting for a user to rollover/click on one of them.

All the jungle creatures perform annoyingly perfect when on their own (outside the Big movie Buffalo) but the very second we attempt to bring anyone of those recalcitrant beasts into the movie theater it's poof and he/she/it/they vanish without even a dirty little foot print on stage. I'm embarrassed to confess that I have spent (feels like wasted) weeks, yes weeks hoping to do this on my own but no joy! So, I now turn to the Geniuses.

View 0 Replies

Flash :: IDE - Wordpress - Lightbox 2 - Importing The Links For Each Of The Thumbnail Buttons From A .txt File

Mar 19, 2010

i've designed a strip of thumbnails in flash to go in a Wordpress site i'm working on, which when clicked need to open up images and videos using Lightbox 2. (Lightbox is already setup and working.) The problem is that i'm importing the links for each of the thumbnail buttons from a .txt file which works like this:

[Code]...

View 5 Replies

IDE :: Play Music File Once Only On Click Of Play Button Until Music Stops

May 1, 2009

Using Macromedia Flash Professional 8.

I have a website banner made in Flash. I have added a music file to it and Play and Stop buttons. I also have a Replay button to replay the banner animation once it stops.

I have put the music on a separate frame so that it will not play automatically when the banner loads. I have made the Play button direct to the frame the music is located at so that when clicked, it will go to that frame and play the music file.

The problem I am currently having is that if I click the Play button more than once, it will play the music file again on top of the current play-through.

So if I click Play, the music will play. Then if I click it again, the music will play again, but on top of the first instance of the music, so two instances of it will now be playing and it sounds horrible.

I would like to make it so that if you click Play when the music is playing, it will not play the music again until the music has stopped.

View 6 Replies

Professional :: Photo Import Vs Result - Difference Between Importing To The Stage And Importing To The Library

Mar 24, 2010

I am importing a picture in flash and i found out that there is a difference between importing to the stage, and importing to the library... [URL] I've placed both picture close of each other and if you look closely, you'll notice that one of them is losing some resolution. Both picture come from the same file, a png. The picture imported to the stage is sharper than the one imported to the library. is there a way to import that picture to the library without losing any resolution?

View 5 Replies

ActionScript 2.0 :: How To Play On Click

Sep 27, 2010

So I got my animation ready, now I just want to export it as Flash movie, and make it play on click. How do I do this

View 7 Replies

ActionScript 3.0 :: Getting Some Nav Bar Buttons Click-able?

Apr 28, 2010

having trouble getting some nav bar buttons click-able. two of the nav buttons have submenues that hold two buttons each. these are the one that won't click.

my code checks out but for some reason i can't get those buttons to work.

[Code]...

View 2 Replies

ActionScript 2.0 :: One Click - Two Buttons?

Mar 13, 2012

I have a movie clip on the stage which contains buttons and actions for various things. This works fine on its own...I have another button on the top level that does other things... This works fine on its own...What I need to do though is have a button over a button eg. When I press the button on the stage the single click actions both the button on the stage and the buttons in the movie clip.I know you can�t have two buttons on top of each other on the stage, so how can I achieve this through AS2.I click on one button and a click is replicated on the other button.

View 0 Replies

Play And Stop Movie On A Key Click?

Apr 7, 2009

I just want to play and stop my movie on a key click.I don't want to have the drop menu open and have the user click 'play'. Isn't there some way they can just press any key and the animation will progress forward?

View 4 Replies

ActionScript 2.0 :: F8 : How To Disable Right Click-play

Oct 12, 2010

I have included the following code to disable the "right click-play" by the players to jump the scenes.

Code:
MENU = new ContextMenu();
MENU.hideBuiltInItems();

However, this code is not functioning.

View 4 Replies

ActionScript 3.0 :: Play An MP3 When You Click A Button?

Nov 25, 2010

I want to be able to play a mp3 when the user clicks the button.

I am a true newbie, and I saw another post explaining it, but I didn't get it. I tried but it went to a error 1046! [code]...

View 2 Replies

ActionScript 2.0 :: How To Play Animation On Click

Aug 22, 2006

I got my animation ready, now I just want to export it as Flash movie, and make it play on click. How do I do this?

View 2 Replies

ActionScript 3.0 :: Play Moviclip On Click?

Feb 18, 2011

i am trying to develop a small interactive game using as3.i need to play a movieclip when i 'll click on button. Anybody knows simple way for that.I'm trying this way: i have created a class for that movieclip, then i have created a object of that and then i m tring to call that object in this way.

var geese:geese01=new geese01();
trace("object created");
geese1.addEventListener(MouseEvent.CLICK, onPlayClick);

[code]....

View 1 Replies

ActionScript 2.0 :: Play A Sound On Click?

Mar 26, 2004

how do i play a sound on press?

View 3 Replies

ActionScript 1/2 :: Click Buttons Twice To Work

May 24, 2009

The buttons are contained in a movie clip.When you click the button, it starts the movie clip and makes the page "flip".Problem is, if i click back to page 1 and go back to page 2, it now takes two button clicks to start the movie clip.I put this action in the button where "page2" is the instance name of the movieclip:[code]

View 12 Replies

Professional :: Buttons.click On Top Of Another Button?

Sep 4, 2010

I have a flash game where a mallot will move with the mouse and when clicked, activate a button on the mallot using "onRelease". When the button on the mallet is clicked it doesn't activate the "onRelease" of the button under the mallet's current position.

View 1 Replies

Actionscript 3.0 :: Disabling Buttons After Click?

Jul 21, 2009

I've created a gallery to play some FLV videos and after getting the thumbnail buttons to go and play on specific frame labels, I now need to disable the button that was clicked and have it re enabled when I click on a different button. Here is my code so far:

stop();
btn01.addEventListener(MouseEvent.CLICK, navigate);
btn02.addEventListener(MouseEvent.CLICK, navigate);
btn03.addEventListener(MouseEvent.CLICK, navigate);

[Code]....

View 5 Replies

ActionScript 1/2 :: Play And Stop MovieClip On Click

Jul 11, 2009

I need to add ac2 to a movie clip. When the movie clip is clicked on I want it to play and when it is clicked again that it will stop. This is the code that I have on the button already -
onClipEvent(enterFrame) {
this._rotation += 5}

View 15 Replies

ActionScript 1/2 :: Swap Image - On Click Go To And Play

Nov 21, 2009

I'm a beginner in flash actionscript. I want to basically swap images using actionscript. So if you click on a thumbnail, the main big image will change corresponding to the thumbnail being clicked. I don't want to use a simple on click go to and play actionscript... I'll try to paint a picture of what I'm trying to achieve.

There is a background image, middle ground and foreground image... people will have a selection of thumbnails to chose from to change these images (so they are creating their own big picture) Once the user clicks on a thumbnail for the background, the main image will change corresponding to the thumbnail.. and the same for middleground image and foreground image. I can acheive this in director using lingo but I am required to use flash and actionscript.

View 12 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved