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


Similar Posts:


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 3.0 :: Flash Unable To Find New Class File

Jun 28, 2010

C:alexflashportfolioimagesDualGallery.as, Line 15001: The name of package 'portfolio.images' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:alexflashportfolioimagesDualGallery.as

My class file is located here: C:alexflashportfolioimagesDualGallery.as
My class file is defined as:
package portfolio.images
{.....

My FLA is importing it as :
import portfolio.images.DualGallery;

Normally I use portfolio.classes and I have no trouble. My AS3 prefs are set to the alexflash folder.

View 1 Replies

ActionScript 3.0 :: Flash Unable To Access Properties Of A Movieclip From Document Class?

Aug 24, 2011

I am developing a Jigsaw puzzle in Flash. I am developing a class for puzzle piece. The code of the PuzzlePiece class in given as follows.

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;[code]....

I will be choosing which mask to use based on users selection of puzzle piece.When I try to use traingular mask by adding puzzle.gotoAndStop(2) the swf just flickers. Thought the holder_mc and mask_mc are exactly of same dimension one comes below lower than other though I have not altered the position of the clips within a puzzle piece.If you want to take a look at my fla here it is https:[url]....How to go to a specific frame 2. Why is position of two clips inside the piece changing

View 1 Replies

ActionScript 3.0 :: FLA Cannot Find Document Class

Apr 13, 2009

I'll be working along on a project, using a Document class, adding new functionality, then all of a sudden I make a change in a class file, and my Root FLA can't find my doc class. Nothing has changed in my folder structure, I haven't changed my FLA or the doc class in weeks, but now suddenly I can't link to it anymore. I try changing the file names, and re linking, no luck. In the end I have to make copies of the entire project folder, rename things again, create a new .as file for the doc class and copy all my code into it.

View 4 Replies

ActionScript 3.0 :: FLA Can't Find Document Class?

Apr 13, 2009

Ill be working along on a project, using a Document class, adding new functionality, then all of a sudden I make a change in a class file, and my Root FLA can't find my doc class. Nothing has changed in my folder structure, I haven't changed my FLA or the doc class in weeks, but now suddenly I can't link to it anymore. I try changing the file names, and re linking, no luck.

In the end I have to make copies of the entire project folder, rename things again, create a new .as file for the doc class and copy all my code into it.

View 9 Replies

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

Professional :: Unable To Save Document As (Flash CS5 - BUG - OSX)

Jun 29, 2010

I have upgraded my CS4 to CS5 on MAC OSX and i'm having problems saving new and existing fla files. It doesnt always do it but it's very anoying when you have done some work and are unable to save it.
 
I get this message:
 
unable to save document as (file name)

please try saving to a different filename or location.
 
even if i try to save as to a different location i get the same message, this ONLY happens in flash CS5 and does not do it on any other application or even flash CS4. To put it bluntly i am absolutely furious with this and when you pay this amount of money should not get this hassle for such a simple action.

I have tried phoneing the adobe support line and it's a joke, you can't even understand the operator to even get anywhere and i just gave up having to repeat myself and asking them to repeat themselves.
 
I would be grateful if someone out there knows an answer to this or have a contact email for adobe support that i can email them direct. As a flash developer it's critical i can get on with my work without worrying if my work will even save.

UPDATE: I can save files in CS5 as CS4 documents but not as CS5, this is so annoying.

View 43 Replies

Flash 4 :: Unable To Find The Properties Menu ?

Apr 10, 2009

I can't find the properties menu in flash 4, my text book references flash 3.

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

Flash :: Find Out The Password To A .p12 Document Made In Openssl?

May 16, 2011

I'm trying to publish an iPhone game and I have downloaded everything I need to allow me to publish through flash. I'm on a pc and I can't figure out what the password is of the .p12 certificate I made in openssl is. Here are the steps I've used:

I create my key:

openssl genrsa -out mykey.key 2048

I create a CSR with the correct info

openssl req -new -key mykey.key -out CertificateSigningRequest.certSigningRequest -subj "/emailAddress=yourAddress@example.com, CN=John Doe, C=US"

I upload this to apple and then download the certificate they send me, which I convert to a PEM with this code:

openssl x509 -in developer_identity.cer -inform DER -out developer_identity.pem -outform PEM

For my final step, I generate the .p12 using this:

openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12

Flash requires I enter the .p12, the .p12 password, and the provisioning profile I got from apple.

Here's a link to the tutorial I used if you want any more info: [URL]

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 2.0 :: FLV Playback - Xml - Error "unable To Make Connection With Server Or Unable To Find Flv On Server"

Jul 16, 2011

I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.

[Code]...

View 9 Replies

AS3 :: Flash - Find The Base Class Of A Sub Class?

Apr 14, 2011

I have a program where I have multiple classes derived from a base class. I want to take all instances of the different subclasses and put them into an array. Is there a way I can search for anything derived from the base class?For example, right now a get the number of children, then see what they are, so:

for (var i = 0; i < this.getNumChildren(); i++)
{
if (i is "type")

[code].....

View 3 Replies

Unable To Load Php Document?

Apr 20, 2009

i tried for many times but i can't seem to load the php data into my flash document. I check that the link to the php file is correct and the code for loading does not seem to be wrong

<?php
$gate = "&gate=".$_COOKIE['gate']."&";
?>

[code].....

View 3 Replies

ActionScript 3.0 :: Find Out Document Width?

Aug 11, 2009

I have fla file with  550px width . how to find out that document width in as3.

View 3 Replies

ActionScript 3.0 :: Unable To Find An Align Command?

Mar 29, 2011

I been given some banners to adapt, unfortunately on not very familiar with AS3 and im trying to align a word to the left but for the life of me i cant figure out what to change. Can anyone please shed some light? I can get letter spacing to work but I can't find an align command.

ActionScript Code:
import flash.events.EventDispatcher;
  import flash.text.StyleSheet;
  import flash.text.TextFormatAlign;[code].............

View 1 Replies

Professional :: Unable To Change/find Instance Of Movieclip?

Sep 10, 2011

I adopted and existing site, and am making some changes.
 
Publish settings:
Flash 8
Actionscript 2
 
A seperate movieclip named page4 shows in the library to have 6 uses.  On the clip are two text boxes both static and one has a movieclip button overlayed.  Selecting any of the three changes the propery panel for allowing editing.  However.  Even though I can see the reference point (the cross) of the movieclip page4, I can find no way to get flash (CS5) to show me the properties to allow giving it an instance.

View 7 Replies

Flex :: Asdocs Seems Unable To Find Embedded Assets?

Jul 25, 2010

I'm running asdocs from a .bat file with flex sdk 3.2.0 (I have replaced my long project root folder with PROJECTROOT):"C:Program Files (x86)AdobeFlex Builder 3sdks3.2.0inasdoc" -source-path . "C:Program Files (x86)AdobeFlex Builder 3sdks3.2.0" "_PROJECTROOT_Componentssrc" "C:\_PROJECTROOT_assets" -doc-sources .PAUSE"Unforunately, I keep getting errors similar to this:"_PROJECTROOT_assetsstyles.css(344): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed(source = "close_button.png")'.downSkin: Embed(source="close_button.png");"I really don't understand this as "close_button.png" is in the same folder as styles.css. When I build the project from within flexbuilder, it compiles it fine and does not throw any errors.

View 2 Replies

Wcf :: Flex - Unable To Find Definition For Type From WCF Service

Nov 9, 2011

I have a WCF Service running SOAP and allowing Flex / Flash to connect to it using basicHttpBinding by using the 'Data' 'Import Web Service' option. Unfortunately when I consume and invoke this service within Flex it throws the following error...

Error: Cannot find definition for type
'http://schemas.datacontract.org/2004/07/System.Drawing::Size' at
mx.rpc.xml::XMLDecoder/decodeType()

...when using the following code...

// This will return an array of presentations
var service:PresentationAuthoring = new PresentationAuthoring();
var token:AsyncToken = service.getAllPresentationByClientId(

[code]. ..

This method returns an array of Presentation objects that are retreived by the service. At the moment there are no DataContracts and I'm allowing the POCO Presentation object to be serialised and punted out by the service that works fine. However, this class has a readonly property of the type System.Drawing.Size that derived from appropriate height and width properties. Looking through the generated code, it doesn't register a 'Size' class in the base import schema although it still seems to create a Size class.

An alternative has been to stop the derived property from being serialised using the [XmlIgnore] but that has not worked. I need a way of allowing my Flex application to communicate with my WCF service but it seems to choke on the System.Drawing.Size type and while I could change this, there are other framework types such as Point, Rectangle, etc, etc. that are utilised within the project.

View 1 Replies

IDE :: Unable To Find Methods To Just Diplay A Random Image?

Feb 17, 2009

This should be rather simple, but for some reason i'm only able to find methods to just diplay a random image, but i want the image to change once a day not every time you load the page.

All i have atm are a empty movieclip to load the photos, an upload system in flash that uploads photos to a specified directory, but now i have to figure out the AS to make the movieclip load a random photo from a specified directory once a day.

View 2 Replies

ActionScript 2.0 :: Unable To Find HMAC Encryption Method?

Jul 20, 2009

i'm need HMAC-SHA1 for doing some encryption, but so far i'm able to found SHA1 in meychi crypto library, but until now i'm still not able to found HMAC encryption method so far.i'm trying to refer to hurlant crypto library, but it's quite confuse as it's using ByteArray which only available on AS3.

View 1 Replies

Flash :: How To Find A Class

Apr 6, 2011

I have some experience working with Flex but im feel clueless working with flash pro. My problem is that i found a flash project that i want to edit (.fla), this project contain an actionscript class in some part that i am unable to find. How to find a class in Flash Professional?. I know that the class exist in the project because i generate a swf file and decompile it and it show the class.

View 2 Replies

ActionScript 3.0 :: Find The Language's Document Object Model (DOM)?

Feb 17, 2011

Just getting started with ActionScript 3, which is, I'm told, an object-oriented langauge.Therefore I am trying to find the language's Document Object Model (DOM), but I cannot find it anywhere.This would be a comprehensive outline of all AS3 objects with their respective properties, methods, etc.  Any real OOP language would have this.

View 8 Replies

Flash :: Find Out If A Class Has Been Instantiated

Nov 25, 2010

I usually use if(object!=null) but it doesn't work well.

How can I verify if the class is instantiated. I want to get rid of the 'cannot access a property of a null object or reference'.

I mean, the 'var object:Object;' is just a reference to an Object class instance. When i initialize it with 'object = new Object()' it runs the code in the constructor, initializing it. How can I check if it has been initialized or not.

View 3 Replies

Actionscript 3 - Unable To Get Proper Class From Flash IDE

Aug 11, 2011

I'm trying to replace instances created by dragging and dropping into a MovieClip through Flash's IDE with actual classes so I can add them to a game loop and have them as actual entities. In other words, I'm trying to create a streamlined way to allow developers to visually add their entities to a platforming engine I'm working on.

This is my third attempt at it and I'm completely stuck.The code below loops through a movieclip that contains an exported symbol with a class linked to it named MyEntity. However, it loses its extension to BaseClass and thus doesn't move when compiled.

It inherits: MovieClip > BaseClass > MyEntity. However when compiled with the IDE it ignores BaseClass and just does MovieClip > MyEntity.

My code is designed to find and store the position of MyEntity, remove it from the container movieclip, add a brand new instance of it (with the base being proper) then set that new instance to the same position of the original.

for ( var i:int = 0; i < LayerInIDE.numChildren; i++ )
{
// first we want to get all the display objects in the layer
// these are objects that were placed from within the Flash IDE (ie. dragged and dropped into the MovieClip
var original:DisplayObject = LayerInIDE.getChildAt( i );

[code]....

This does not work.

It outputs Game.entities::MyEntity [class MyEntity] false. MyEntity is a proper class and DOES extend from BaseClass. However, the issue is the IDE weirdly removes the reference to the base class - as if MyEntity never had a base class. I cannot seem to recreate it as getting the reference to the class also returns that MyEntity never had a BaseClass. However, if I type in var newEnt = MyEntity(); instead of getting the class name through getDefinitionByName it works normally and extends from BaseClass.I need it to extend from BaseClass as that is the main class all entities in my game engine require to use.

View 2 Replies







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