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


Similar Posts:


Making A Button On An Imported PSD?

Aug 12, 2010

it seemed like a simple process but I cant seem to get this right... I got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)

reserve.onRelease=function(){
getURL("http://www.redeggnyc.com/menu2.htm");
}

[code].....

View 2 Replies

IDE :: Making A Button On An Imported PSD?

Aug 12, 2010

I got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.

Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)

I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)

[Code]...

which gave no errors on validation.When I preview in Flash, everything looks good except the thin black border and the fact that when the button is pressed, nothing happens.

View 4 Replies

Professional :: Making Button On Imported PSD

Aug 12, 2010

It seemed like a simple process but I cant seem to get this right... I got a button there, but the URL wont go, i.e., the click does nothing. I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot. Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." (I did select the transparent box, no color, and tried alpha, both same result). I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I don't have any effects here btw, as simple as we can get.

After that I right clicked on the button and entered the action script ("reserve" is the name of my button symbol)
reserve.onRelease=function(){getURL("[URL]");}
Which gave no errors on validation. When I preview in Flash, everything looks good except the thin black border and the fact that when the button is pressed, nothing happens.

View 4 Replies

ActionScript 2.0 :: Making An Imported Variable ( From Php ) Into A Number

Nov 2, 2004

im importing a few variables with this [code]but now how do i make a variable say root.cash into a a number which can be used in equations or used for logical compariosons such as < > ==

View 2 Replies

ActionScript 2.0 :: Making A Imported Variable ( From Php ) Into A Number?

Nov 2, 2004

im importing a few variables with this

Code:
myVars = new LoadVars();
myVars.load("getinfo.php?user1="+userN+"&pass45="+passN+"&random="+refresh1,"0");

[code]......

View 2 Replies

Buttons Won't Work Under Imported Artwork?

Dec 4, 2009

I've created buttons that light up when moused over. They work fine but I need them under a semi-transparent layer that has been imported and when I move them under it they stop working.

View 1 Replies

ActionScript 3.0 :: Can't Seem To Get These Imported Swf To Work Properly

Nov 20, 2009

I am trying to sett up an workflow for a project. I am going to do the programming and a friend of mine the graphics.I would like him to be able to update the graphic on the final movie without the need of publishing the full project. We are sitting on different locations and usually work at different times. So i was thinking of making separate swf for each of the movieclips. And importing these at runtime.Then he could do his magic and preview this if he uploaded them.I have done some small tests and can't seem to get these imported swf to work properly. Should this work?Any suggestion on how to set up a good workflow for this project? Or at least what to search for.

View 1 Replies

ActionScript 3.0 :: Button Within Imported Mc (why Won't The Listener Work)

Apr 26, 2010

I have a 'contact us' panel(contact_mc) that is loaded from the library with a button on a menu bar. When this is loaded in, a "close" button (closecontact_mc) is also loaded next to the panel. The panel and button load perfectly when run. Next I want the panel and 'close' button to be removed from the stage when the 'close' button is clicked.

[Code]...

View 3 Replies

ActionScript 3.0 :: Runtime Bones Does Not Work When Imported By Flex?

Oct 18, 2009

I have a Flex project that is the application master for my site.  It loads a swf I built in Flash which has a runtime bones animation using a Loader.  The runtime bones work if they are loaded without Flex.

Is there a way to make bones work if they are loaded by Flex?

View 1 Replies

ActionScript 3.0 :: Runtime Bones Does Not Work If Imported By Flash (example Included)?

Oct 23, 2009

Created a runtime bone animation (more complicated than the one included in this example).When I loaded the swf using the Loader class in master application, the runtime animation stopped working.I included my source files for the bones, and another fla that only calls the Document class Main.as.Try running bonesRuntime.html, and the runtime bones work; call bonesSwfLoader.html and only the authortime bones work.

View 5 Replies

ActionScript 2.0 :: Large Interactive Game With Imported External Swfs - Some Of The Functionality Doesnt Work?

Jun 11, 2010

Im making a flash project in flash cs3 using As2.It is a large interactive game with imported external swfs throughout,Ive placed the lockroot code in all the external swfs.
When i play the external swfs on their own they play perfectly put when imported into the main.fla they don't work properly,some of the functionality doesnt work properly..As an example I have made a jigsaw game using drag n drop and targets, where the code

if(this._droptarget == "/dropTargetOne")
{
_root.dragger1.gotoAndStop("5");}
}

appears I have problems because the code _root.dragger1.gotoAndStop("5"); doesnt work when imported as an external swf.I've tried using this._parent but no success.So I think the problem is to do with using _root which I was hoping would be sorted with this._lockroot = true;

View 3 Replies

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

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 :: 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







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