ActionScript 3.0 :: 2D SpaceShooter - Title Screen Play Button

Apr 17, 2010

I'm trying to make a 2D SpaceShooter for my Flash Class and so far i have the Game working. All I need to add is a menu screen where it says to hit play and a play agian button when you lose. I'm working on my menu screen right now and I get an annoying error saying

ScreenTitle.as,Line7
1084:Syntax error:expecting identifier before right brace {

Here is the code:
package {
import flash.events.MouseEvent;
import flash.events.Event;
public class ScreenTitle extends {
public static const PLAY:String = "";
public function ScreenTitle() {
play_mc.buttonMode = true;
play_mc.addEventListener(MouseEvent.CLICK, clickPlay);
} public function clickPlay(e:MouseEvent) {
dispatchEvent(new Event(PLAY));
}}}

View 7 Replies


Similar Posts:


ActionScript 3.0 :: TypeError: Error #1009 At SpaceShooter/::addEnemy() At SpaceShooter$iinit()?

Jan 24, 2009

I keep getting this error. Code: TypeError: Error #1009: Cannot access a property or method of a null object reference. at SpaceShooter/::addEnemy() at SpaceShooter$iinit() It is caused by this function: ActionScript Code:

[Code]....

The error means that i'm referencing to something that isn't there but how can that be? I created it at the top

View 2 Replies

IDE :: How To Make A Title Screen

Oct 27, 2009

I'm making an interactive video and the title screen isn't working. Instead of waiting to start until the play button is hit the video just plays the 1 frame screen and startsThis is what I have:

play_btn.addEventListener(MouseEvent.CLICK, clickPlay);
function clickPlay(event:MouseEvent):void
{

[code].....

View 3 Replies

ActionScript 3.0 :: Create Play Button On Screen That Dissappears?

Apr 25, 2009

I am trying to create a code to have a "play" button on the middle of the screen that disappears after clicking and at the same time have a play/pause/runtime toolbar on bottom that appears only oh hover. My video is in .swf and .flv and can be converted to whatever's necessary for FLash CS4. There is a downloadable file "example" on this board (http:url....)which accomplishes exactly what I'm searching for.I couldn't attach the example file to this message as Adobe blocks some of their own file types.(don't know why)I tried to embed my video into this code but have failed.

View 4 Replies

Professional :: Make The FLV Video Screen A Play Button?

Sep 10, 2011

The video imported and plays fine with the provided skins.  However I want to display the video online with the same Play control as many YouTube videos - a Play button shown in the center of the video screen area.  Right now I have the video player controls that I selected during import and they are at the bottom.  These skin controls work but I'd like to let the user just click on the screen to start the playback.

View 3 Replies

Flash :: Animation In An Android App Used In The Title Screen - Options?

Apr 2, 2012

Let me first state that I am no programmer, so this may seem like a stupid question. I have done all kinds of searching on this question, and answers seem far-and-wide, and have only left me more confused. I am currently accepting bids for the development of an Android app version of our graphic novel: [URL] One of the issues/problems from my requirements document that has been raised more than once by bidders is about the Flash animation [URL] that I want to be used in the title screen, and how that will be implemented in the app. The initial programmer that I was working with had real problems with and was never able to get it to work. I know that in order to use the swf file as-is, Flash needs to be installed on the devices, and that is not an Android standard. So I want to know what options there are to be able to include this.

A couple bidders have suggested that the animation be converted to video. And although they claim that they could still make it work correctly, I worry about losing the looping that is built into the animation. Can the animation be converted to or re-created with Java? Should I be looking into using FLash Builder and/or Adobe AIR? We will eventually be porting this app for Apple iPads as well, so if there is an option that woks for both Android and iOS, that would be better.

View 1 Replies

ActionScript 2.0 :: Making Flash Slideshow / Title Screen?

Jul 22, 2008

I've made a slideshow with externally loading text and images. How can I make it so after the title screen flashes off, the first thing is the first photo/caption without having to click on the next button?

View 2 Replies

Professional :: Make A Big Screen PLAY Button For FLV Which Will Fade Away After The Movie Starts?

Feb 2, 2012

I wanted to make play button. Kind of this huge one in the middle of the screen as users used to see on YouTube.Here is the code for it which seems to work:

play_btn.addEventListener(MouseEvent.CLICK, onClick_Play);function onClick_Play(event:MouseEvent) :void {
SWF_flv2.play();

[code].....

View 3 Replies

Professional :: Create A Flash Animation In Which A Text Title Fades In To The Screen

Feb 3, 2010

I am trying to create a flash animation in which a text title fades in to the screen. I created the text, converted it to a symbol, then tried to create a motion tween in which I could tweak the alpha values of the text object. However when I try to create the keyframe, the popup that comes up has the Color option greyed out (which is where I believe the alpha setting lives).

View 1 Replies

ActionScript 2.0 :: LoadVars() - Text File Loads Properly And Displays The Title Of The Mp3, But It Won't Play The Mp3?

Oct 22, 2005

I have on one file (player1.fla), a movie that plays MP3s from an array, which I specify in that movie. The code for that works just fine.I've duplicated the file and renamed it to a different one (player2.fla) so I could load the MP3s from a variable (array) on a text file. This way, to add more songs, all I would have to do is update the text file.

I changed the code around a tiny bit in the "player2.fla" file to accomodate for loading a text file, but nothing more.*My Problem* The text file loads properly and displays the Title of the mp3, but it won't play the mp3.The text file looks something like this: (just an example)

Code:
&songs=song1.mp3, song2.mp3, song3.mp3
&songTitles=my song1, my newer song, the third song

My script is very similar to this: (shortened; just an example)

Code:
lv = new LoadVars();
lv.onLoad = function() {[code]......

View 3 Replies

ActionScript 2.0 :: Projector - Change The Icon And The Title In The Title Bar?

Apr 11, 2006

is it possible to change the icon and the title in the title bar? are there any opensource or low cost ways (prehaps software with a education licence) to change the apperance of the projector window.. like for example itunes, breaks out of windows xp standard UI

View 2 Replies

ActionScript 3.0 :: Loading Image Title To Title?

May 5, 2011

how can i load large image? i used a Zoomify for solve this problem but there are another problem that i don't like to use it. can i do it in as3? like loading image title to title?

View 2 Replies

ActionScript 3.0 :: Add A Title To Button In Flash?

Apr 12, 2012

I have a button in flash and a action layer with the following script:
  
button1.addEventListener(MouseEvent.CLICK,clickHandler);
function clickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest("http://mortimerhall.99k.org/homepage.htm"),"_self");
}
 
Now I would like to have a title when user move mouse over a button eg "Click To Enter". I tried this code in a new layer but it doesn't work:
 
on (rollOver) {
text = "hello";
}
on (rollOut) {
text = "";
}

View 10 Replies

Professional :: Play At Full Screen When Play .swf Files Using Web Browser

Jan 14, 2010

So i've made my .swf files. The only thing is they all play at full screen when i play them using my web browser. I need them to play at 548 x 408. when i open the .fla and go to properties it says the size IS at 548 x 410 but it can't be if its playing full screen.

View 2 Replies

Flex :: Adding Link Text Or Button To Panel Header Along With Title?

Oct 7, 2009

I have a panel in my application. My requirement is, I also require a link, that is "Help options" to appear in the panel's header. In the left, we will have the Panel's title and in the right corner, I need this link. Is that possible?

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

ActionScript 2.0 :: Page Title - When Click On One Of The Menu Items, Page Title Should Change?

Nov 6, 2010

I'm trying to edit a Flash file, that get it's data from and XML file.Now when you click on one of the menu items, the page + page title should change, but somehow the page title remains the same. (at least for the first 3 menu items) But when you go to the last menu item and then back to one of the first 3 menu items, the correct page title is shown.I'm no flash / AS expert, so I can't really find out what the problem is, but it seems like it has something to do with this function

Code:
_root.getCurrentText(thisText0, _parent.num);

View 4 Replies

ActionScript 3.0 :: Display A FLVPlayback Full Screen The Same As When Click On The Full Screen Component Button?

Sep 17, 2008

I wnat to display a FLVPlayback full screen the same as when you click on the Full Screen component button.

function goFullScreen():void {
vidPlayer.enterFullScreenDisplayState();
}
var vidPlayer:FLVPlayback;

[code]....

View 1 Replies

ActionScript 3.0 :: Mp3 Title List - Stop Button Should Move From Song To Song When Playing?

Aug 19, 2009

I have a list of mp3-songs, when song 1 is clicked it gets streamed, a stop-button appears, if this Btn is clicked, this Btn disappears as it should - but if user forgets to click for stopping sound and clicks song 2, stopBtn 1 remains and the new stopBtn 2 also appears. there should be only one stopBtn, the one next to the song is playing.

I would like to move the stopBtn and I have tried several approaches move; graphics.moveTo; if(stopButton !=null) {removeChild (stopButton)}; I packed the var stopButton:Sprite in the header and so on.

Code:
SoundMixer.stopAll();
import flash.display.Sprite;[code]..........

View 0 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 2.0 :: CS3 Getting An FLV To Play Full Screen?

Oct 8, 2009

I have a a flash site that has a flv video gallery in it. I created a button to make the flv go full screen using this code.

PHP Code:

function goScaledFullScreen(){
var screenRectangle:Rectangle = new Rectangle();
screenRectangle.x = -103;
screenRectangle.y = -70;

[Code].....

It kind of works. It make the movie full screen but the control bar gets stretched and distorted as if they are rasterized.

View 1 Replies

ActionScript 2.0 :: Getting A FLV To Play Full Screen?

Oct 8, 2009

I have a a flash site that has a flv video gallery in it. I created a button to make the flv go full screen using this code.

[Code]....

It kind of works. It make the movie full screen but the control bar gets stretched and distorted as if they are rasterized.

View 1 Replies

ActionScript 2.0 :: Clicking A Button - Select A Button On The Screen And Then A Movieclip Plays?

Nov 24, 2006

I have many buttons (symbols). This is what I want it to do: -Select a button on the screen, and then a movieclip plays. - If the user selects any OTHER button on screen, a message box displays a message.

View 2 Replies

ActionScript 2.0 :: [F5] Button [renamed] - When Click On The Menu Button A Image Will Popup In The Ipod Screen

Jan 1, 2007

i new to actionscript and am not sure where to begin so i will explin what i would like to do. i have a myspace site that i have created a div overlay with...<a [URL] now what i would like to do is use actionscript so when you click on the menu button a image wil pop up in the ipod screen and when u click the play button something else will pop up

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

ActionScript 3.0 :: Can't Play FLVs In Full Screen?

Dec 8, 2008

I have a presentation that runs fine when its being playednormally, but when I try to get it to go into full screen mode witha button click it goes black and won't load the videos.Somehow in the past I was able to see the errors, but now Ican't get the same error to pop up.

View 1 Replies

Play A SWF And Screen Capture It In A Headless Environment?

Mar 26, 2010

Is there a way to play a SWF and screen capture it in a headless environment?

View 1 Replies

Flash :: Play Video In Full Screen?

Dec 28, 2010

I am building an website and i want this website to have an video in the background. I have done the part where the flash is behind everything but i can not play this video in fullscreen. How can i play flv video on fullscreen with actionscript2.0. I dont need a button for this video to go fullscreen it simply needs to start on fullscreen.

View 2 Replies

ActionScript 3.0 :: Convert .mp4 To .flv With Center Screen Play Arrow?

Dec 12, 2011

This has to be simple to do, but I can't find instruction to do it. My .mp4 file is 480x270 pixel, and the clip is about 12 seconds long.

View 1 Replies







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