ActionScript 3.0 :: Designed An E-card - Add A "Play Again" Button?

Dec 1, 2009

I've designed an E-card and decided to add a "Play again?" button. Addmittedly with a lot of help from the Net and drawing on my basic coding skills I have managed to get the ActionScript nearly complete and the compiler is only unhappy with one line. I have just spent ages trying to find the correct but of code but time has beaten me for tonight. Here's what I've got so far:

import flash.display.MovieClip;import flash.events.IEventDispatcher;stop();replay_btn.addEventListener(MouseEvent.CLICK,replay_ecard);function replay_ecard(event:MouseEvent):void {}replay_btn.gotoAndPlay();

It's not happy with the "replay_btn" in the final line and I also need to re-enter the Scene and Frame variables. I would like the playhead to return to Scene 1 : Frame 1.

View 2 Replies


Similar Posts:


Play HTTP Live Streaming Video Within Flash Platform Designed For IOS?

Sep 9, 2011

We're using HTTP live streaming service designed for Apple's iOS devices. It's working well with iOS devices currently.

Source video fragments are stored in server formatted in H.264 and with MPEG2(.ts) container. Is there a way to play these video in Flash platform?

[Code]...

View 2 Replies

Java :: Print Photo ID Card To A Plastic Card Printer From Website?

Oct 28, 2010

printing directly to a Photo ID Card printer in a web browser?I have a web application that manages user data, photo, and so forth. I'd like to add a Print ID Card feature to it. The web application is a single page javascript application that talks to a RESTful web service via JSON. I'd like to display what the printed card will look like on both the front and back for approval before the user clicks the print button.

Generate front and back JPG or PNG images to print on the server, send them to the client for display and approval, and then somehow send the images to the printer.Use javascript with SVG or Canvas to display the card to print in the UI for approval, then somehow send the SVG/canvas data to the printer.Generate a PDF and print the PDF to the printer.Use Flash to display and print Use a Java applet to display and print Something else?

View 3 Replies

Linux :: Play Youtube Videos And Programmatically Direct Firefox's Audio Out To A Particular Sound Card?

Jan 20, 2012

I want to play youtube videos and programmatically direct firefox's audio out to a particular sound card.

Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1059: Sample format non available
Available formats:[code]....

The command-line suggests that it worked, but audio came out of hw:0,0 (the default).Do I need to make my own plugin? Or do I need to force alsa to take 44100Hz?I refuse to use pulse since the memory leak bug makes it crash often.

View 1 Replies

ActionScript 2.0 :: Presses A Certain Button A Random Card (movie Clip) Will Appear?

Dec 31, 2009

i'm making a small flash program. whenever the user presses a certain button a random card (movie clip) will appear. i'm sure how to do this, however i think it also involves using a function?

View 7 Replies

Designed Some Thing Within Adobe Illustrator(vector Images)?

Feb 6, 2010

I have designed some thing within adobe illustrator(vector images), and my project im doing for myself is being able to add these vector images in, and be able to modify them, colours, add stuff to them and so on. I've seen things done on the net before with these used, but can't seem to find any tutorials regarding this.

View 1 Replies

ActionScript 3.0 :: Move The Designed Chain Continuously On Stage?

Jun 19, 2011

I draw a designed chain in the middle of my stage (the width of designed chain is exactly the same of my stage width). I want this designed chain to be moved continuously (From right to left) as long as the .swf file is playing.

I am using Actionscript 3. The designed chain movie name is Chain_mc.

View 3 Replies

ActionScript 2.0 :: Button That Triggers The Function AddToBet On A Card Game And Doesn't Allow The Textfileds To Show Any Larger Number?

Feb 18, 2009

I have a button that triggers the function addToBet on a card game and doesn't allow the textfileds to show any larger number but I can't top the clips with the coins I'm trying to attach. The function showBet keeps running.

bet = 1;
function addToBet() {
bet ++;

[code]....

View 2 Replies

ActionScript 2.0 :: Add A Play Button, So The Gallery Would Play The Pictures OnRelease Of The Button At Interval?

Jun 23, 2006

I'm building a photogallery base on this tutorial http:[url]....I'm trying to add a play button, so the gallery would play the pictures onRelease of the button at interval of 3s.It's not working. my code is:

playBTN.onPress = function() {
this._alpha = 50;
setInterval(this, "nextImage", 3000, 1);[code]....

View 5 Replies

IDE :: Designed A Cylinder Shape In Flash - The Edges Of Cylinders Are Coming Out And Also They Are Looking Blur?

Sep 10, 2009

I have designed a cylinder shape in flash. The edges of cylinders are coming out and also they are looking blur. But the interesting thing is when I see the cylinder on 300% it is clear and lines are not blurred.

View 3 Replies

ActionScript 3.0 :: Click Button, "flip" Card To Show Next Image?

Oct 10, 2009

I can't sort out what's wrong with my code (see below). Basically, I have two mc and two buttons in the library. One movieclip linked to "Card" class and has multiple frames with images in it. The other mc is empty and linked to "CardObject" class. The goal through button clicks, user can keep flipping the card and getting new image each time (or prevBtn to go back to prev frame).OOP is new to me, I've done mostly timeline animations and simple coding right on the timeline, so excuse the mess LOL

public class CardObject extends MovieClip {
//add variables for card and buttons
public var thisCard:Card = new Card();

[code].....

View 1 Replies

ActionScript 3.0 :: Game That Populates User-designed Cards Into The Game Using An External Xml File

Apr 24, 2011

I'm making a game that populates user-designed cards into the game using an external xml file. My main class loads the xml file and then calls to the "Card" class, which wants to use the xml file. I've tried using this.parent and it just gives me a null object reference error. This is what I have so far: Main.as

[Code]...

View 2 Replies

ActionScript 3.0 :: Play Multiple Videos (all On Xml File) To Play On Button Action?

Jul 14, 2011

I am trying to make a swf with one FLV playback player and 6 buttons. I've got 6 different videofiles that I want to have linked to this swf. Some of the videos are quit large.When starting the Swf, the first video has to start, after playing it, it has to stop. Then you must be able to choose which video to play by clicking one of the buttons. I don't want to have small thumbnails of the video, just plain and simple buttons.I have to have all my files, both fla, swf and xml files in the same directory (I cannot have them stored in different folders, since I have to upload this to a cms system which has limited upload properties).
 
I've tried to find the right script on the internet, I'm not very good at scripting myselve, actually rather poor educated there.It seems to me that I have to make an xml file with a list of all my videos, I have my default swf ready, with a FLVplayback and buttons.Now there's just the coding part....

View 1 Replies

ActionScript 3.0 :: Play / Stop Button - Current Audio File To Play The Next One

Feb 27, 2012

I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?

[Code]...

View 1 Replies

ActionScript 1/2 :: Button Sounds In Play Scenes But Not In Play Movie

Oct 11, 2009

I have five different scenes all including three different buttons. When I test the buttons in "play scene" - all buttons sounds correctly in all scenes. But when I play movie, there is sound only with one button (the same button in every scene). I have looked for differences, but this button seem to have all the same parameters as the others.

View 10 Replies

Professional :: When Press On The Button The Stars Will Be Flying From The Button And The Sound Will Play?

Jan 29, 2011

i'm designing a website in flash8... now i have created some buttons, and i want that when i click on the button stars will fly from them and there will be a sound... i have already created the animation of the stars seperatly and it's in the library, i have also the sound file.... i just can't remember how to put everything together.... when i'll press on the button the stars will be flying from the button and the sound will play?

View 3 Replies

ActionScript 1/2 :: Button Doesn't Play Unless Hold Down The Mouse Button?

Apr 26, 2009

I created flash buttons for a website and imported them into dreamweaver, put the site up and everythings working finee, EXCEPT, the mouse down feature of my button doesn't play all the way unless you hole down the mouse button. My mouse over feature works fine.

View 1 Replies

Actionscript 2.0 :: Multiple Mp3 Players - Stop Button , Pause Button When Choose A Song The Previously That Play Will Be Muted

May 8, 2010

i started with a Multiple mp3 players project and i more complicated with that - as you see in the picture i try to do that when click on the play button for every song this switch the song that selected -first preloading + percentage the mp3 file and after play it immediately and of course there is stop button, pause button when choose a song the previously that play will be muted

View 4 Replies

Professional :: Play/stop Button Change Into One Button?

Mar 9, 2010

I have two buttons for paly and stop movie.

It is possible to only use ONE button ...
 
EXample
When click PLAY , stop btn is on
When click Stop, Play btn is on.
 
My file: [URL]

View 1 Replies

Actionscript 2.0 :: Way To Have Play-button Change Into Pause Button

Feb 18, 2009

I finished the Flash Video Basics Tutorials, but I'd like the video not to start playing straight away. I also want it to stop playing when it's finished and not start over again.Is there also an easy way to have the play-button change into pause button, when the video is paused?

View 14 Replies

ActionScript 2.0 :: Play Button Out Label When Another Button Clicked?

May 2, 2006

Pretend a button is selected - when that button is selected it goes to the active frame which shows that the button is selected. When you click another button it currently resets itself - BUT - I want it to go to and play frame "mouse_out" and than reset itself. Below is the code I am currently working wtih:

[Code]...

View 6 Replies

Play Music In Flash Player By Clicking Play Button Which Is In The Webpage (outside Flash)

Feb 14, 2012

I want to play the music file in flash player (which is embedded obviously) by clicking the play button which is in the web page (not in flash player).

View 2 Replies

ActionScript 2.0 :: Bar - Play And Stop Button To Play And Stop Frames In A Flash Movie

Dec 1, 2004

give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck

View 2 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

Put Some Graphics On Front Of Card?

Dec 3, 2009

I just made my first flash game. A memory game, But I cant figure out how to put some graphics on the front of the card. And make it take the pictures from a image folder. and make it look ok ?

View 1 Replies

ActionScript 3.0 :: Play The "out" Transition Than Unload The Current Swf Than Play The In Transition Than Load The Swf Of The Button That Was Clicked

Oct 11, 2009

i have looked everywhere for a tutorial on this - i have tried writing, and re-writing codes....i just cant get it. is there any tutorial i overlooked? here is what im looking to do - NO SHORTCUTS: have my main file that loads the buttons, my external swf container, my intro animations, and my swf "out" and "in" animations when a button is clicked i want it to point me to specific frame labels. i will have an "out" and "in" frame label and which will be the locations of the transitional starting points i want it to play the "out" transition, than unload the current swf, than play the in transition, than load the swf of the button that was clicked i want the animations to all be done using frame labels all within the MAIN swf file.... i have had no luck doing this....and i do NOT like the tween class....

View 10 Replies

Card Game - Unable To Get Scores To Add

May 20, 2011

I'm having difficulty getting a scoring system on a card game to work properly.

View 2 Replies

Professional :: Flip Card And Drag It Around

Jul 17, 2010

I'm trying to make a basic card game where I can flip the cards and also drag them around. Here's the code for card.as, the file that's controlling my cards.

package{ import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Card extends MovieClip { private var _type:*;
public function Card() { this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, onClick);
} private function onClick(event:MouseEvent):void { this.play();
} public function setType(type:*):void { _type = type;
loader_mc.addChild(_type); }}}
 
I've been trying to add draggability to the card, but I'm not sure how to do it. Do I need a separate ".as" file to control it? Or, do I build it right into this file? If so, how would I do that? I tried making a separate ".as" file but then my basic card flipping code doesn't work.

View 2 Replies

ActionScript 1/2 :: Random Card Draws

Dec 26, 2010

There's something I'm trying to make but I just can't seem to figure it out. I want to make something that allows a person to build a deck of cards from multiple sets of cards. I also want a button that can be clicked to randomly choose a card from the created deck. For example: lets say there are four sets of thirteen cards (hearts, diamonds, spades, and clubs). The user can select which of the four sets will be included in the deck. Once the sets are chosen the user can click a button and one card will be chosen from the selected sets. What is the best way to handle something like this? Is there a tutorial that explains how to do something like this?

View 3 Replies

AS2 :: Handle Missing Sound Card

Feb 25, 2010

In my AS2 Flash game, I play a number of sound files and wait for the "onSoundComplete" message/function before proceeding.The problem is if there is no sound card in the system (or it is disabled in device manager) - everything acts like it is working (no errors, onLoad handler gets "true") - but the sound never actually gets played, and as such, my event never gets triggered.I had planned on dealing with this by hooking into my sound code, and if I detect no sound card, just kick off a timer to wait a few seconds before manually firing the "onSoundComplete" function.The only problem is that I can't reliably find a way to determine if there is a sound card in the system! AS3 seems to handle this quite nicely by passing back a NULL soundchannel - unfortunately I am stuck in AS2.0

View 1 Replies







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