ActionScript 3.0 :: Linking Document Class To Flash With Avatar

Feb 10, 2011

I'm working on this small project to demonstrate how flash works to a few friends and I am trying to make a small avatar have some animation and upon mouse roll over grow and after removing mouse the avatar will shrink. There is also supposed to be a message displayed over the avatar and upon clicking the avatar the message changes. I have the avatar shrinking/growing thing done and its working fine and I also have the message to be displayed but I cannot seem to link the two into one actionscript file so they both appear at the same time.

Here are the codes:
i) for the avatar shrinking/growing
package { import flash.display.MovieClip;
import flash.events.MouseEvent;
public class U1A3_Stickman extends MovieClip {
private var _origXScale:Number;
[Code] .....

I've tried to simply insert the document class into the flash with the avatar shrink/grow code but it's not working.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Flash - Dispatching An Event From One Document Class And Listening For It Via Another Document Class?

Dec 14, 2010

I am dispatching an event from one document class and listening for it via another document class.My code in class A.

Code:
this.dispatchEvent(new MYEvent(MyEvent.APERTURE_DONE));
trace("Dispatching APERTURE_DONE");

my code in class B.

Code:
addEventListener(MyEvent.APERTURE_DONE, onDoorsOpen,true);
trace("Lisetning for APERTURE_DONE");

[code]....

My listener is registering before the event is dispatched, based on my output window, however I never get the "Open Doors" trace statement to fire.

View 2 Replies

Actionscript 3 :: Flash Root Document Linking

Apr 3, 2011

I have a main document/fla, and ive created a game class, instantiated it in the document/fla file and it runs now i want to put a button inside that game class that can tell the root document/fla to jump to a certain frame.

View 1 Replies

ActionScript 1/2 :: Linking External Images To Flash Document

Aug 4, 2009

I have basic knowledge of Flash and do not know how to link an external image to my Flash document. While flipping through a Flash resource book, my thought is that it's through Actionscript, possibly using URLLoader/URLRequest classes. But I don't understand how to do it. Also, do I use a transparent button as the placeholder for the image/actionscript?

View 2 Replies

Actionscript 3.0 :: Avatar Class Emblem To A Image?

Dec 1, 2010

code below error is in the this.dir_nw, this.dir_ne, this.dir_sw, this.dir_se i have assigned the class to a image with 6 frames nw,ne,sw,se, shadow, username_text and when i complie the output error is 1119: Access of possibly undefined property dir_nw through a reference with static type com.ausdoclient.client:AusdoAvatars. i dnt know what im doing wrong im using cs3

private var _directionArray:Array = new Array();
private var _activeDirection:MovieClip;
private function init(Event):void {

[code]........

View 3 Replies

ActionScript 2.0 :: Linking A Flash To A Locally Saved File Or Html Document?

Jun 5, 2006

hey there guys im doing my final major poject for college in media and were making a set of films and making a flash interface to go with them i was just wondering how can i make links in flash that either link to a an localy saved Html document or a localy saved .mov? i know how to link them to a website but not a locally saved file?

View 1 Replies

ActionScript 3.0 :: Reference Main Document Class From Document Class Of Loaded Swf

May 7, 2011

I have a FLA (say Main.FLA) document class with a child MovieClip on the stage: into the child MovieClip I load other swf files: each of the files contains its own Document Class (every swf is a somewhat independent application, say quizzes and so on).For some reason I must use the Main document class to store data (scores or so) from the child swfs loaded into the Main swf. HOW do I reference the Main class? I can't find a way.[code]and dispatch an Event this way from the loaded swf document class to the Main class:[code]Now, first of all I don't know if this could even work. Secondly, I tried to make it work by adding an event listener to my Main class but id did not work.

View 9 Replies

ActionScript 3.0 :: Moving Document Class .fla Cannot Find The Document Class - WTF?

Sep 22, 2008

So I had a working .fla, with a document class package in the same directory. Everything was fine, until moving both to a new directory, now the fla cannot find the document class. WTF?

View 2 Replies

ActionScript 2.0 :: Linking To PDF Document?

Dec 31, 2003

I have created a Flash animation and would like to be able to let viewers link to the pdf that explains the project. The information is currently headed to clients on CD and later on the Web in html. How should I go about this, should I sue an action script?

View 1 Replies

Actionscript 3 :: Flash CS5 Reference A Display Object From A Class Other Than The Document Class

Jul 28, 2011

Using Flash CS5 Professional I have created a symbol, dragged it onto the stage, and given it an instance name of GreenLight1. If I want to make this visible from the document class, I can simply do the GreenLight1.visible=true; and poof it's good to go when I test the file. As long as I stay in the document class I am good to go, but now I'm trying to move to another class and hitting ALL kinds of trouble just trying to get Flash to allow me to access this simple object. All I am looking to do is have this GreenLight1 go invisible (visible=false) when a certain condition occurs in this new class and Flash just won't let me access GreenLight1 at all. Things I've tried thus far:

stage is passed to the class and is referenced by _stage and is working just fine when I do _stage.addchild or anything like that. So I have tried "_stage.GreenLight1.visible=false;" and I get "ReferenceError: Error #1069: Property GreenLight1 not found on flash.display.Stage and there is no default value." My document class extends Sprite, so I figured I'd try the root function. So I tried "Sprite(root).GreenLight1.visible=false;" and I get "1119: Access of possibly undefined property GreenLight1 through a reference with static type flash.display:Sprite." I tried to create the Resource class as described therein. To which I came across the same problem that I started with in that it doesn't know what GreenLight1 is to begin with so I got "1120: Access of undefined property GreenLight1." Here is my code for Resource.as (am I supposed to pass something to this class from the document class?)

[Code]...

View 2 Replies

Flash :: Loader Class Problem Tracing The Swf (document Class)

Oct 12, 2010

I am using the Loader class to load 3 external swfs: sharedTopics.swf (does not have a document class) fonts.swf (document class is FontManager) main.swf (document class is Main) The same loader is used to load all 3 assets.

[Code]...

View 2 Replies

ActionScript 3.0 :: Flash - Calling Method On Document Class From Another Class?

Jul 5, 2010

I have a rather silly question but as3's document class always gets me confused.I have a public method on my document class. I want to call this method from another class that is instantiated from within an object in the library of the flash file (the same one on whose document class I want to call a method).

View 6 Replies

ActionScript 3.0 :: Flash Call A Function From The Document Class In Another Class?

Apr 20, 2011

I have a Document class that instantiates a class named Other. I need to call a function in the Other class from the Document class.I'm getting this error: Call to a possibly undefined method OtherFunction through a reference with static type Other.I have read online that you need to use make the functions static or use a getter function but I'm unclear how to do that. I haven't been able to make it work and I feel like i'm missing something fundemental with this problem.below are simplified versions of the classes.

Document class

Code:
package {[code]......

View 1 Replies

Flash - Listener In Main Document Class For Custom Dispatch Event From Another Class Does Not Respond Or Call Function?

Apr 1, 2011

I have a document class called Main.as In the class constructor I have the following listener:

enter code here
var listeningFORModeChangeToStudent:Sprite = new Sprite;
listeningFORModeChangeToStudent.addEventListener(TellAllModeChangeToStudent.STUDENT,exp);
addChild(listeningFORModeChangeToStudent);

[code]....

In a third class I make a call to the despatcher in the previous class:

enter code here
var ThisTellAllModeChangeToStudent:TellAllModeChangeToStudent = new TellAllModeChangeToStudent;
ThisTellAllModeChangeToStudent.tellAllModeChangeToStudent();

I have trace statements in eveything and from this I know the despatcher in TellAllModeChangeToStudent is being called.The problem is that the listener in the main.as is not calling the function exp.I cant see why and I dont know how to check if the listener is actually seeing the dispatch event?

View 1 Replies

ActionScript 3.0 :: Linking The Contents Of A Document Or Folder?

Sep 14, 2009

My teacher gave me the task of making an interactive touch screen flash for an open day at my school, i can easily do most of the things to make this work but two things evade me.

He wants the writing in a word document linked so he can easily change what the document says without re exporting the flash.

He also wants me to be able to make the pictures from a document appear in a slideshow without adding each individual picture in a random order as a screen saver effect.

View 1 Replies

ActionScript 3.0 :: Linking Buttons To Swf Files Inside One HTML Document?

Jun 9, 2009

I am trying to figure out how to link a bunch of buttons to different photo albums inside a single HTML page in Dreamweaver. Here is an example of what I mean: [URL]

Unless I'm mistaken, everything in this website is contained within one HTML document.When you click on any of the various buttons in the portfolio menu, they simply load up and appear inside the same HTML document.

How on earth do you do this without clicking on any of the various buttons and having them linked to another page??

View 3 Replies

Actionscript 3 :: Linking Library Class To An Extended Class And Baseclass

Jan 22, 2011

The use of library classes confuses me once again. I have the following situation:

[Code]....

I cannot put in any baseclass when using the class, so I'm forced to remove the baseclass. When using only the class I get a whole bunch of errors don't make any sense at all, and still appear even if I comment out all the code in the Page class. comop_padpagesFavorietenPage.as:7: 1152: A conflict exists with inherited definition com.op_pad.pages:Page.help in namespace public.

[Code]...

View 1 Replies

Flash :: Dynamic Avatar Creation & Animation?

Nov 17, 2011

A rather large project (rich web application) has fallen into my lap and I am unfamiliar with how to accomplish a major functionality. in the right direction.I need users to be able to customize a 3D avatar and store it on the server somehow. The user can choose a body type, hair style, hair color, clothing, accessories, etc. The user can then choose from a number of different environments to place their avatar into, a specific animation (dance moves, playing an instrument, etc.), and an audio file. The audio file would then play while the avatar performed the animations within the selected environment.

How should we go about doing this? What technology should we use? Ideally, my colleagues and I would use MoCap software (w/ Microsoft Kinect) to complete 3D base models and animations for the avatars. Is it possible to then dynamically skin / texturize the models with the user's stored avatar? If so, how would I accomplish this? Does anyone have any other suggestions on how we would go about solving this problem?

View 1 Replies

ActionScript 2.0 :: Flash Avatar Maker That Can Save Out To GIF/JPG?

Mar 9, 2006

I'm interested in building an avatar maker in Flash, similar to the one seen here:[URL]The twist, though, is to allow users to save their work out as a JPG (or as an animated GIF, alternating between the created avatar and the client's logo and URL,) sized just right for a forum or LiveJournal avatar.

I haven't seen many examples of Flash outputing dynamic images... the best one I could find was, oddly enough, on a movie website for Starsky and Hutch. They have a Flash application that lets users build their own wallpaper and then offers it up as a JPG: [URL] I'm thinking Flash 8's bitmap features would allow this to happen, but then again, that movie came out two years ago... how did they make it work back then?

View 9 Replies

ActionScript 2.0 :: Get Flash To Recognized The Avatar As A User?

Oct 6, 2010

I am using a progam called Smart Fox Server and they said on the forum that It's not SmartFox related (and this forum is mainly for SFS related issues). You need to create these interaction within Flash. So I came here. I am trying to get the users Id if you click on them. I know the command to get the ID but i dont know how to get flash to recgognise the avatar as a user.

the command is user.getId()

View 1 Replies

ActionScript 3.0 :: Avatar Creator - Passing Variable To Flash

Jul 25, 2011

I need to create an avatar creator, the concept is simple. We have a base image for a head, on top of this we layer on other elements (eyes, nose, mouth), saving it converts the image on the flash widget into a .jpg. I'm confident in my ability to create the interface, I have basic knowledge of AS 3 and flash in general, but I'm unsure how to go about this. I want to pass a variable to flash to indicate who the user is who's editing his or her avatar. Then I want to pull some kind of db file to have the image re-construct itself in flash (maybe from an XML file - so it would need to create/update an xml file).

View 1 Replies

ActionScript 3.0 :: Twitter In Flash - User Photo / Avatar

Aug 30, 2011

I have seen numerous tutorials to retrieve a feed. I can't however see anything on how to get the users avatar to display. Is it even possible in Flash?

View 1 Replies

Actionscript :: Document Class Textbox In Flash Cs3?

Sep 11, 2009

In a tutorial I find a statement "In the Document Class text box in the Property inspector of flash document, write Test1" But i didnt find that document class textbox. Im using flash CS3. Where it is.

View 1 Replies

Flash :: Use Document Class That Is Above FLA In Directory Structure?

Jul 8, 2010

Is it possible to use a Document class that is above the FLA in the directory structure?[code]...

View 1 Replies

Flash - Loading SWF Without Instantiating Document Class?

Sep 26, 2011

Is there a way I can load a swf file but not automatically instantiate it's DocumentClass? Instead I want to do something like the following:
protected function mainLoaded(e:Event = null):void {
trace('mainLoaded');
var main:* = this.mainLoad.createClassByName('Main');
trace(main);
}
Where mainLoad is an instance of CasaLib's SwfLoad and createClassByName is the equivalent to
loaderInfo.applicationDomain.getDefinition();
The thing is that when my swf finishes loading I can see it is created, because of some trace calls, although its obviously not added to the display list.

View 1 Replies

Flash :: Error #1034 With Document Class

Oct 11, 2011

I got a little class and all works fine. Then I add it in Document Class and puff, Error 1034 happens.

Error #1034: Type Coercion failed: cannot convert
flash.display::MovieClip@2be9dba1 to fl.text.TCMText.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Extended Document Class?

Jul 12, 2010

I'm having some trouble with using a Document class in Flash CS3 that is an extension of another class. When I do this, I can no longer make references to MovieClips with instance names on the stage.Here's an example. I have a class called Minigame that extends MovieClip and then a class Shooter that extends Minigame. So the relationship looks like:MovieClip <-- Minigame <-- ShooterI want to use Shooter as my Document class in the Flash file Shooter.FLA. However, when I do this, I am unable to directly access any instance names of MovieClips on the stage of Shooter.FLA from Shooter.as. In other words, if I try to write the line:var mc:MovieClip = this.instanceName;in Shooter.as, I get the error:1120: Access of undefined property instanceName.

View 1 Replies

ActionScript 3.0 :: Flash - Use Sharedobject Into The Document Class Of The .fla?

Apr 10, 2011

Can i use sharedobject into the document class of the .fla?

View 1 Replies

ActionScript 3.0 :: Flash Unable To Find Document Class

Jul 13, 2010

I have a App.fla file on a path and a App.as file on the same path. On the Class field I put "App" and on the ActionScript Settings Source path there is "." which means the same path of the .fla file, right? I open the App.fla file and click on the little "pencil" icon in order to edit App.as but then Flash whether tells me there's no class file associated or it opens a new ActionScript file.

So I can't do nothing , I even copied all code into the App.as , and pasted into the new ActionScript file it generates when I click the little pencil button. It still cannot find the god damned class. A little detail, I'm using Mac OS X 10.6.2. I've been working full time with flash on a Windows and that never happened to me before. That hasn't happend to me on Mac either (though I have hardly used it to do FLASH/AS).

View 3 Replies

ActionScript 3.0 :: Document Class - Adding More Scenes To Flash

Sep 7, 2008

From a tutorial page, I manage to built this flash page with xml capabilities. But when I add more scene to the flash page, I have errors like this.

TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at MyContent/init()
at MyContent()
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at MyContent/onComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

How do I edit the "MyContent.as" file so that I can add more scene to the flash. I understand that, once i put the "MyContent.as" in the document class, it will load immediately, is there any way to tell it to load only in scene 2 (which is where the xml is needed).

View 1 Replies







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