ActionScript 3.0 :: Making Two MCs Work At Once

May 4, 2009

In Actionscript 3.0 I want to make two timeline animation happen at the same time. I can't seem to get it to work.

Do I need another eventlisetner and function to perform this extra animation or can i nest it in the function that is already there?

Here is my code:

Quote:

stop();
close_btn.addEventListener(MouseEvent.MOUSE_DOWN, closehandler);
function closehandler(evt:MouseEvent):void {
gotoAndPlay("closeHere");

[Code]....

View 15 Replies


Similar Posts:


Actionscript 2.0 :: Making Function Work?

Mar 16, 2010

The Function is:
Code: Select allfunction Click_Die () {
this.gotoAndStop(die111+die11+die113);

[code].....

View 3 Replies

ActionScript 2.0 :: Making Actions Work Inside Of A MC?

Mar 24, 2009

how I can make a certain code that works on the time line, work when placed inside of a MC? I know my question is too vague but my code is huge and if I post it it's going to be more difficult than if I can just get the logic and change the code my self.

View 12 Replies

ActionScript 3.0 :: Can't Get My Roots To Work On Game I Am Making

Oct 23, 2009

I heard that the .roots don't work anymore on AS3.

I am following this old tutorial, and cant get the scoring to work.[url]...

View 5 Replies

ActionScript 3.0 :: Making Bitmap From Video Does Not Work Right

Aug 4, 2010

In my current project I need to create a bitmap from the last frame of a video. For this I use:
Code:
var _vidBitmapData = new BitmapData(video.width, video.height, false, 0x0000ff);
_vidBitmapData.draw(video);
var bmp:Bitmap=new Bitmap(_vidBitmapData)

This works like a fairy in wonderland if I create the video with dimensions matching the stream:
Like
Code:
video =new Video(1280,800)

However, when I change the Video's size on receiving the onMetaData Event according to the actual streams width and height properties, the capture i get from _vidBitmapData.draw is still in the dimensions of how I created the Video. So if I do
Code:
video =new Video(10,10)
and then
private function onMetaData(metadata:Object):void {
video.width=metadata.width;
video.height=metadata.height;
}
I get a nice display of the video.

However when doing the
Code:
var _vidBitmapData = new BitmapData(video.width, video.height, false, 0x0000ff);
_vidBitmapData.draw(video);
var bmp:Bitmap=new Bitmap(_vidBitmapData)
I get a 10 x10 px image....

View 4 Replies

Professional :: Making A Back Button Work?

May 18, 2011

Flash CS5 on Windows 7 I have a problem with a project I am creating. I have created 3 buttons which when clicked open other movieclips for each button. On each of the movieclips that the buttons send them to, all have a back button to return them back to the original view.
 
This back button works fine apart from once they are back at the original view, the 3 buttons stop working.

View 4 Replies

Flash :: Making A Specific Package Work?

Jun 13, 2011

I'd really like to use this package in Flash as3:[URL]... I've copied the source and saved it as a file called MP3Loop.as. In the same folder I have a .fla with some code in it like this:

var looper:MP3Loop = new MP3Loop(); So far as I can see this should be all I need to have a play with the package, but it doesn't seem to work. Instead I get this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference. at MP3Loop/initUI() at MP3Loop() at loop_test_fla::MainTimeline/frame1()

[Code]...

View 1 Replies

ActionScript 3.0 :: Making An Imported CustomClass Work?

Feb 4, 2012

There are enough examples on the internet to learn how to make your own Class, here's an example of what I did, it is saved as a seperate *.as-File:[code]The Idea is that I can add a bunch of descriptions (for multiple persons) to an holder array, which allows me to do more with them.Actionscript has no idea what this "Character" is. Instead I'm getting the Errorcodes

-1046 (Type was not found or was not a compile-time constant: Character)

-1180 (Call to a possibly undefined method Character)

View 9 Replies

ActionScript 3 :: Making Multiple Scripts Work Together?

Mar 27, 2009

I am creating a Flash header for class and two things need to happen - One, it needs a stop and start button, and 2 it has to be clickable.I have the code for each one and they do work separately, but when I try to apply both, only one will work. Here are the codes that I am using:For Stop and Start

Actionscript Code:

Original
- Actionscript Code
start_btn.addEventListener(MouseEvent.CLICK, startMove);

[code]....

I have tried reversing them in the actions panel but to no avail.

View 1 Replies

ActionScript 2.0 :: Making A Swf Only Work If On Specific Domain?

Nov 24, 2005

I've made a game for viceland, and as always when you make a good game, lousy free-game-portals plain steals it and puts it on their site.So now i'm trying to take a few actions to prevent this from happening. One thing is that i'd like the swf to check which domain it's being viewed on. I thought you could check which domain the html/php is on somewhere using SYSTEM.SECURITY or something. But i don't find any.

View 2 Replies

ActionScript 3.0 :: Preloader Making Functions Not To Work

Sep 4, 2009

When I test the site with the preloader.swf file I made for it, it loads, but then some of my button functions do not work in the site. When I test the site fla file everything works fine. I have been trying things out with the preloader code, but not sure what would cause this.

This is my preloader code:
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent .PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLET E, done);
l.load(new URLRequest("sample.swf"));
prog_mc.stop();
function loop(eventrogressEvent):void {
[Code] .....

View 8 Replies

ActionScript 3.0 :: Making Executable Flash Only Work On CD ROM?

Oct 26, 2010

i have some question here.. Umm i want to put all of my swf and exe files into CD ROM, but i have ever seen that exe flash files can be able run on CD ROM, if i copied that files into my harddisk, that appear alert that "Please use the CD ROM to run this application".. Do you know how to do this?? is there are some script that detect if CDROM then or whatever?..

View 3 Replies

ActionScript 3.0 :: Making Script Work When The MC Is Inside A Scrollpane

Jan 30, 2010

Im using the following script in the main timeline frame and I've got many buttons inside the buttons_mc.How do I change this script to make a button which is inside the buttons_mc work with a scrollpane.

[Code]...

View 3 Replies

ActionScript 3.0 :: Making Tabs Work After Dragging And Dropping Something?

Nov 5, 2010

so I'm making this tabbed interface, but somehow for my third tab, after i drag and drop stuff that are in it, I can't click on previous tabs (as in they don't do anything anymore). Here's the following code for my third tab:

<code>
words.addEventListener(MouseEvent.MOUSE_DOWN, doPress);
words.addEventListener(MouseEvent.MOUSE_UP, doRelease);

[code].....

View 5 Replies

ActionScript 3.0 :: SwfPanels And JSFL Files - Making Them Work?

Jan 17, 2011

I'm struggling with getting swfPanels and JSFL files to work. I've tried to get the example on here to work but am having no luck. When it asks to save, I am unable to save the files in the place where it asks to do so, but am putting them in the configuration folder in the Adobe Flash CS5 folder.What do I need to do to make swfPanels and JSFL files to work?

View 2 Replies

ActionScript 3.0 :: Making Actions Inside A Movieclip Work?

May 25, 2010

How do I make the actions contained in a movieclip work on the main timeline? For example. In the movieclip, I have some buttons and I have an "Actions" layer there which contains all the functions of the buttons, listeners and such.

I placed this movieclip on Frame 1 of the main timeline.

When I run the program, I'm able to hover my mouse over the buttons and it changes to a "finger" cursor as if they can be clicked on, however, when I click the buttons, nothing happens. It's as if it's not recognizing the Mouse Click event listeners I put on the buttons in the "Actions" layer of the movieclip.

View 1 Replies

ActionScript 3.0 :: Making A Javascript Function Work Through Flash?

Dec 10, 2010

i want when press a button on that flash header the test.php is redirect to another php page without the flash header be reloaded , and i actually made it but with form buttons and ajax ofcourse , so all i need is when the flash button is clicked a javascript function in the test.php work ?? --> here is my try : i passed a url variable from flash to the same page to say which button is pressed through this code

ActionScript Code:
var vars:URLVariables=new URLVariables();
var url:URLRequest=new URLRequest("test.php");

[code]......

View 5 Replies

ActionScript 3.0 :: Making Button To Work Inside MovieClip

Jan 15, 2010

I'm pretty much a beginner at creating websites in flash. I've used flash to animate before but that's not really worling in this case. Basically, I'm just trying to make a button that's inside a movieclip go to a specific frame within the movieclip it's in. This is the error message I keep getting:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at FinalKai_fla::MainTimeline/makebtn()
at FinalKai_fla::MainTimeline/frame1()

View 1 Replies

ActionScript 2.0 :: Making An Emulation Of A Cash Register From Work

Jan 3, 2007

im just starting to pick flash up again and am working on making an emulation of a cash register from work so that new staff can take it home and learn where all the drinks are etc.. However i am having great difficultly getting back into the swing. The main thing i cant get my head around is i plan to have a variable text box which keeps the orders (already pressed buttons) then totals them up.

View 6 Replies

ActionScript 3.0 :: Making A Slideshow - Doesn't Work If I Test It In A Browser

Aug 2, 2009

I'm working on a slideshow using a class that I wrote that builds the slideshow and an XML file that points to the images. I plan on improving it later but for now I just want it to cycle through a set of images, resize them if they're too big or small, and show a loading bar while the image is loading. It works fine if I test it in the Flash IDE or standalone Flash Player, but if I drag the SWF into Firefox or Safari, the loading bar refuses to show up. I also tried publishing to an HTML file and that didn't work either. I figured there could only be two different reasons why it wasn't showing up - either it wasn't being added to the stage, it wasn't being made visible after it's initially set to invisible. I decided to comment out the part of the code that make it invisible to begin with the loading bar showed up, but it wasn't showing how much of the image had been loaded when it changed to a new picture. Here's my code:

[Code]...

For some reason the pictureLoading function isn't being called when I test it in any browser. I've seen the loading bar randomly pop up a few in times in Safari 4 but then I try closing the window and testing it again and I get nothing. Can anyone help me figure this out? About:plugins in Firefox says I have Flash Player 10.0.22 installed, and I'm using Flash CS3 in OS X.

View 3 Replies

ActionScript 2.0 :: Making Monitor Ratio Work With Fullscreen Mode?

Mar 12, 2007

I'm creating a presentation in Flash that will be projected onto a large screen. I'm using fscommand("fullscreen", true) to make it fullscreen. Since I don't know in advance what type of playback monitor will be used, apparently there may be some issue with the monitor ratio not being 4:3 which would make it widescreen. I was told to make sure the animation etc extends beyond the Stage frame so that it accommodates widescreen but I'm not sure how to do this - I mean how do you know how far beyond the stage to extend things? Since I don't have access to the playback monitor I can't test on it and the presentation will eventually be put onto a CD ROM where viewers may have all types of monitors.

View 1 Replies

ActionScript 3.0 :: Making Hit Tests Work With Multiple Instances Of A Movieclip?

May 18, 2011

I seem to have a bit of a problem with getting the collision detection working in harmony with the rest of my code. Basically i have an array that creates multiple instances of a movieclip named mcPlatformStandard with the following piece of code...

Code:
//this variable holds all of the platforms
var platformHolder:MovieClip = new MovieClip();
//adds the platform to stage

[Code]....

View 1 Replies

Flash - Making Starling FrameWork To Work With Classes That Uses Native DisplayObject?

Dec 6, 2011

I'm trying to use Greensock LoaderMax on a Starling Framework project, but since Starling have a lots of its own class, how I can make it work with other classes that is using the native class?

Exp:

package
{
import flash.display.Sprite;
import flash.events.Event;

[code]....

will return the error:

Error: Implicit coercion of a value of type com.greensock.loading.display:ContentDisplay to an unrelated type starling.display:DisplayObject.

View 2 Replies

ActionScript 3.0 :: Making Spacebar Act As Mouse For Making A Sidescroller?

Feb 8, 2011

For a project, I'm making an interactive side scroller.You move the character with the arrow keys and press the space bar to interact with things.So far, I followed DexNote's tutorial on YouTube.I thought that I would make the interactable objects as buttons, while the mouse focus would be on the character and when you press the space bar it make a mouse click in that area.The trouble I'm having now is that I don't know how to make the space bar trigger the "interactions."

View 1 Replies

ActionScript 2.0 :: Making A List And Making It Fast

Jul 12, 2003

I want to generate large text files, basically 4 columns, several thousand rows, of numbers. Making an array with all this info in it occurs farily quickly, it's getting it to a displayable format that takes a really long time. Right now I use something like this:

[Code]...

View 10 Replies

ActionScript 3.0 :: Dynamic Fonts Don't Work... But Arial And Verdana Work?

Mar 19, 2012

I am trying to defeat my psychological block with dynamically loaded fonts in AS3, and I have an annoying problem. I am creating a clock with a textfield and I am loading fonts from a SWF library: the available classes/linkages are "Arial", "ArialBold", "MyriadPro", "MyriadProBold" and "Verdana".This is the line where I get the class from the SWF, and it extracts the class correctly

Code:
clock = new Clock( { fontClass: assetsLoader.getFontClass("skin", "Arial") } );
The constructor...

[code]......

View 7 Replies

IDE :: Swf Files Work Fine Separately, Don't Work When On Same Page?

Feb 22, 2010

I have run across a strange problem. When I load products2.swf by itself, I can call the two "copy" files and everything works. When I open 0342.swf (the index page), I can switch between the home and products2 pages, but I can't view the "copy" pages.I'm guessing there may be some sort of conflict with variable names, but I have been messing with it for most of today.I have uploaded all of the FLA files to here:[url]....

If you make an swf file out of each of the attached items, and open the 0342 file, you will see what is supposed to be happening.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "home";[code].....

View 3 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies

ActionScript 1/2 :: 2 Buttons Won't Work That Were Created Exactly Like Many Others That Work

Jun 1, 2011

I am using Flash CS4 with actionscript 2 to create an interacitve portfolio.I have 2 text buttons that work when I test them with "enable simple buttons." When I publish to IE these buttons won't work.  I have created over 50 buttons using the same methods, they all work.

View 8 Replies

ActionScript 1/2 :: FLVs Not Work From A HD Like They Work On DVD?

Oct 15, 2010

I have a completed project (AS2) that contains a lot of FLVs.  I burned it onto DVD and it works great on Mac (guide.app) and PC (guide.exe).Here's the web version of the project.http:[url]....Now, months later, I have to provide the project with source files (FLA's) and some other stuff  - so I got an external HD, copied the files from the working DVD onto it.  Running the guide.exe off of the external (connected to WinXP SP3) works just like running it off the DVD  -  EXCEPT for the FLVs which simply to not appear.
 
http:[url]...Everything up to that step works:  When I click on "guide.exe", the "splash screen" opens showing the title and 4 buttons.  These buttons are to choose a language and they work.When I select a language and click its button the GUI for the language with menus appear and they work.  When I click on a topic from the menu, the topic's skin appears but the video inside the skin doesn't play.  Everything works but the FLVs.
 
Even weirder - If I use VLC Player to open an FLV directly - the FLV will play.  That tells me there is some path issue but how can a path change when it's compiled into the SWF?  Besides - the paths from swf to flv has not changed when I copied all the files to the external.why the FLVs will not play on the external the same way they play when on the DVD?

View 9 Replies







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