ActionScript 3.0 :: Can't Get A Class To Work?

Jul 8, 2011

I'm trying to highlight some text in AS3 (ie, the text's background) and it's proving to be quite hard. I've found a class that is meant to do - search google for "AS3Text Highlighter". However, when I publish the files, I get the errors:

Code:
Scene 1, Layer 'Layer 1', Frame 1, Line 11172: Definition com.formatlos.as3.lib.text:highlight could not be found.
Scene 1, Layer 'Layer 1', Frame 1, Line 11172: Definition com.formatlos.as3.lib.text:highlight could not be found.

[Code]....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: SetInterval With A Class - Function Doesn't Work Inside Class ?

Oct 7, 2004

I was wondering why my current code for calling a setInterval on a function doesn't work inside my class.I have this code inside one function, calling a second function.

intID = setInterval(selfReferential, dupe, 30, 0x000000);

The selfReferential keyword refers to the current class,but was defined previously (selfReferential = this; ).I get no errors, but the dupe() function is never called.and I had the selfReferential variable replaced with the this keyword at one point as well.

View 5 Replies

Professional :: Copying A Class - Frame 4's Class Doesn't Work?

Oct 3, 2011

I copied my actions from frame 3 to frame 4 and frame 4's class doesn't work when frame 3's class works fine and normal, here is the source code:

Frame 3: 
stop();
var rowNum:int = 10;
for (var i:int=0; i<rowNum; i++)[code]....

View 7 Replies

ActionScript 3.0 :: Use A Function From A Doc Class To Call A Function To Work On In Another Class?

Dec 15, 2009

how do use a function from a doc class.... to call a function to work on in

[Code]...

View 2 Replies

How To Get Preloader To Work Inside Class

Nov 6, 2009

I am very new to flash and on the net I've found a class that allows me to use a nice scroll bar for the content. My problem is that I can't get a preloader working with the class. When I want to add scrips to the frames it bugs the class if I try to implement the preloader inside the class I can't get it working. Here's the class I am using for the scroll bar. - if you want to test it, it will require additional data. You can get it all here: [URL].

package{
import flash.display.*;
import flash.text.*;
import flash.events.*;
import gs.TweenLite;
import com.warmforestflash.ui.FullScreenScrollBar;
public class Main extends Sprite{
[Code] .....

If I try to insert the preloader script inside the class it has problems with the stop(); & play(); commands. Any way to get a preferably simple preloader working with the class I am using?

View 1 Replies

Actionscript :: Php - Serialization Class Does Not Work

Jul 30, 2011

I have an actionscript class that serializes and unserializes data compatible with php's serialization functions. I expanded it to support binary data but now the unserialization does not seem to work. For example, this data is not unserialized correctly:

[Code]...

View 1 Replies

ActionScript 2.0 :: How To Work With The Event Class

Jan 5, 2007

Im trying to work with the Event class in actionscript 2.0 but its not working. Im actually working on xmlsockets. I have imported the xmlsocket library but it failed to load.

View 1 Replies

ActionScript 2.0 :: Buttons In A MC Don't Work When In A Class

Aug 24, 2010

I am attempting to delve into the world of coding and felt flash was a good place to start since I had flash 8, however I am running into a problem I just can't seem to work around.This is my project as it currently stands, you click and drag to move about, it randomly places/sizes the planets every time.The idea is to be able to click the planets and an interactive menu pop up, this menu in fact. As you can see the buttons in the movieclip are supposed to light up and things, alas they do not.I am trying to do as much as possible in classes at the moment by calling movieclips from the Library, the Planet class is what holds the planets, selection ring and menu, it looks like this:[code]I am also trying to figure out if it's possible to automatically place a number of planets based on some user input, so say if I have a text box pop up, I put 5 into that box and it places 5 planets on the screen (or in other words creates 5 variables with the planet class).

View 3 Replies

ActionScript 3.0 :: Export Class In Frame 2 Does Not Work

Sep 20, 2011

I have made a new website flash file, with Website.as as document class, that creates movie clip from the library and align them to the center of the screen. Which are:
footer (linkage Footer class)
mainContent (linkage MainContent class)
I now need to insert a preloader in frame1, so I have checked Export classes in frame 2...but then nothing works anymore. (I do not see any movie clip being created.) I tried to import Website.as in frame 2 instead of setting it as Document class, but still it will not work...

View 4 Replies

ActionScript 3.0 :: Tween Class Failed To Work?

Mar 2, 2011

I've been working on a bit big project. I've some components on the stage. There are basically 4 frames. Each frame has some components. What I've done is, I've used tween class. Workflow is something like this:

Frame 1:--used Tween class to get fade effect for List component.--used Tween.MOTION_FINISH event to fire an event when it is finished.--when it is finished, applied eventListener--on Change event, remove eventListeners and use Tween class again to get reverse fade effect.--again used Tween.MOTION_FINISH event to fire an event when finished.--in that evenHandler, gotoAndStop(2);

Frame 2://similar

Frame 3://similar

and so on.. now, what happens, is, if i play with my scene, sometimes tween class failed to work. sometimes it does not display List component, sometimes it displays List component with alpha 0.2. sometimes it happens with movieClip also. Is it flash bug or problem with my code?

View 2 Replies

ActionScript 3 :: DispatchEvent Does Not Work In Secondary Class

Jan 14, 2011

I have a SWF called Application.swf that loads another SWF called jeu.swf. My main class (don't know how to call it haha), is called Main.as. Another class is called actionObjets.as. When I call:
dispatchEvent(new MicroJeuEvent(MicroJeuEvent.JEU_TERMINE, 8, ""));
It works perfectly from Main.as, it works perfectly.

But when I call it from actionObjets, it doesn't work. No error either. I tried putting this line in a static function, doesn't work either. Why can I dispatch an Event from my main class and not from another one? I'm not a programmer and I just don't get a few of the basic principles of as3. Is there a way of doing differently?

View 1 Replies

ActionScript 2.0 :: Flash Project For Class Work

Feb 27, 2010

I am Dinesh and new to action scripts, I need to design a flash interface that have a dynamic text field and fetches lines from a external text file for e.g.

-59684578

-59879889

-65656566

This should display in the dynamic field with a loop and fast (less than a second) and there should be a start/stop and a reset button on the interface to control the same.

View 4 Replies

ActionScript 3.0 :: Custom Class To Load .jpg Won't Work?

Aug 18, 2010

I've written a class named preLoad.as to load a jpg into a new loader.

the function is called from my document class, MainClass.as

Everything seems to work fine, the textfield displays the bytes loaded, but then when it reaches 100 nothing happens, I cant see anything on the stage.

MainClass.as

Code:
package
{
import flash.display.MovieClip;

[Code]....

View 4 Replies

IDE :: Getting A Simple Event Listener Class To Work?

Feb 1, 2009

I am having trouble getting a simple event listener class to work. The class is:

Code:
package {
import flash.display.Sprite;
import flash.events.*;

[code]...

and I have the ClassPath pointing to the folder that contains this .as file. I do get the trace "In setUp" but I'm not getting seeing any Keyboard events. There also aren't any errors showing up in output so I am kind of stumped.

View 1 Replies

ActionScript 3.0 :: Class Function Didn't Work On .swf ?

Feb 16, 2011

I'm now learning about class function on AS3, and I have little problems that may appear as a noob question, but I have searched everywhere else, and still found nothing.I make a function class separate on .as file, then I call the class fuction to attached the class function to a MovieClip.The class function working fine when I tested on TestMovie ( Ctrl+Enter ) The movieclip can be dragged.but when I double clicked it from .swf file (from windows explorer) , the movieclip function didn't work at all? And it works well also on .EXE file, just didn't work on .swf file ?

View 1 Replies

ActionScript 2.0 :: Draw With Path Class Doesn't Always Work

Mar 29, 2009

So, I'm using this Path Class to make a path and then draw it. I'm having a problem where there are some positions that I draw the path, the entire line does not draw.You can see an example of this here as the dot moves. The line flashes at a few coordinates. Just a small concept example I made. The path is there, it's just not being drawn.

The code :

Code:
import com.senocular.drawing.Path;
// create a path instance that draws in _root
var myPath:Path = new Path();

[code].....

View 2 Replies

ActionScript 3.0 :: ExternalInterface Class Doesn't Work In IE Instead It Outputs 0?

Aug 5, 2009

[Code]....

this works in FF and outputs 600 like expected and it doesn't work in IE, instead it outputs 0??? why is this handled differently in different browsers?

View 5 Replies

ActionScript 3.0 :: Beginer Class Mcp Inherit The Mc Doesn't Work

Jan 25, 2009

Runtime error at the line : var mcp: MovieClipPlus =
MovieClipPlus(mc);

It doesnt work.. how can I let mcp inherit the mc?

View 2 Replies

Professional :: Import Of Custom Class Doesn't Seem To Work

May 30, 2010

OK, I have my custom class defined in a file called "rootInstace.as". This is what it contains:
 
[Code]...

View 3 Replies

ActionScript 2.0 :: Position Property Don't Work In Tween Class

Jan 12, 2009

i am trying to change the position while the yoyo is working but the tween object goes to the new position and then back to the old position and continuing to yoyo.

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var swing:Tween = new Tween(swingObj, "_rotation", Regular.easeInOut, 60, -60, 2, true);

[code]....

View 2 Replies

ActionScript 3.0 :: Cannot Get Tweener Class To Work With Multiple Buttons

Feb 11, 2009

Using the tweener class to control After Effects/embedded FLVs, I cannot figure out why I can't get all three of my buttons to work. The first one works fine, but the second two do not work at all. They do not even show the pointer finger cursor on ROLL_OVER. I have 3 FLVs each with a named instance and each with a button symbol for a hit spot also with a named instance.

[Code]....

View 9 Replies

ActionScript 3.0 :: X And Y Movement Wont Work In External Class?

Oct 21, 2009

I'm creating a small game that basically moves a movieclip around the stage using the arrow keys. I found some code on the web that worked fine but when I added it as an external class as oppose to a timeline script part of it stopped working.The script is supposed to change the appearance of the MC depending on what arrow key is pressed (this is the gotoAndStop entry in the if statement), this works fine but it is also supposed to move on the x and y but now it won't after changing to external as file. I'm stuck please see the code below.I've added the correct class name to the MC and selected the export for ActionScript, I don't get any error messages,

package{
import flash.display.MovieClip;
import flash.events.*;

[code].....

View 0 Replies

ActionScript 3.0 :: Get Pierluigi Pesenti's Lightning Class To Work?

Apr 21, 2010

im trying to get Pierluigi Pesenti's lightning class to work, but im having a hard time "reconstructing" his .fla file.Go check out the flash file he has on his site under demo no. 2.http:[url]......I've tried to reconstruct his demo no. 3, but it was too complex for me to do.But im now trying with his Demo no. 2.The main code is looking like this:

Code:
import com.oaxoa.fx.Lightning;
import com.oaxoa.fx.LightningFadeType;[code]...........

I get errors from fingers, dot3 and dot4 though.I've tried to create a movieclip and naming it fingers, but it didnt work. It was trowing me and errors back about something static class.I get that it is because i dont have the items in my library, and only have the as3 code,

View 3 Replies

ActionScript 2.0 :: Get A Client Socket Class To Work With Events?

Jun 25, 2006

I'm new here, so maybe i'm posting in the wrong channel. Please tell me if it is the case. I'm trying to get a simple client socket class to work with events. I have tried each example found with google with no luck, i just tried the "radio listeners" example from here, which worked fine until i put the broadcaster object within my class.

[Code]...

View 1 Replies

ActionScript 2.0 :: Glow Filters And Tween Class Does Not Work?

Jun 28, 2007

i have inserted on stage through attachmovie a mc and copied 6 times through the cycle for. . now through the class filter I have assigned for everyone the effect always through the cilo for, but I do not succeed to assign transition that is to the effect movement of the filter glow to all the mc for all the rollOut and rollOver works (this is looked at from the small hand and trace) but the every time that step small hand on whichever only mc to a part the transition of the effect�now i show the code of my fla files that is in first frame...

Code:
import flash.filters.GlowFilter;
/*import flash.filters.*;*/
import mx.transitions.Tween;
import mx.transitions.easing.*;

[code]....

View 1 Replies

ActionScript 3.0 :: Mouse.hide Not Work In Class File

Jun 1, 2009

When I use Mouse.hide() function in the actions panel of my fla file it works, but if I use the same function in my class i got 1120: Access of undefined property cursor. error.

View 4 Replies

ActionScript 3.0 :: Loading External Images Won't Work Within A Class

Aug 27, 2009

I'm trying to load external images in the usual way;

Code:
loader=new Loader();
loader.load(new URLRequest(_thumb));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoadComplete);
private function onLoadComplete(e:Event):void{
thumb.addChild(loader);
}

But when it comes through to the onLoadComplete Function, I get a sandbox violation. I've tried using Security.allowDomain and a crossdomain.xml file, but it just won't work. Even more annoyingly, if I do the exact same thing, but within the main class file, it works fine.5 or so of these classes that need to load images are loaded from an XML file (which also works fine without allowdomain etc). Is there some sort of conflict going on because of there being more than one of them?

View 1 Replies

ActionScript 3.0 :: Flash Class Doesn't Work After Published

Oct 9, 2010

I created a class for showing a Alert Message Window, everything is working OK while I executed it from Flash, but when I published it I can't see nothing... I tryed in differents browsers, I tryed from localhost, uploading to an internet server, creating crossdomain.xml file in the root server, turning to "Access network only" the Flash Publish preferences... and nothing yet.

Here the class

Code:
package com.nuedi.ui
{
import flash.display.Bitmap;
import flash.display.BitmapData;

[Code].....

View 9 Replies

ActionScript 3.0 :: Document Class Not Work When Shift MovieClip To 2nd Frame?

May 24, 2011

All my content is at 1st frame of my FLA file...and I'm using Document Class When I try to shift my content to 2nd frame, so I can use 1st frame for preloader.. but its not working.
 
This is my document class... Basically at 1st frame I'm loading external jpg image to a MovieClip.Is it possible, I can **** my MovieClip and other content to 2nd frame of the timeline.

[Code]...

View 2 Replies

ActionScript 3.0 :: Instantiating A Class Failing, But DocumentClass Can Make It Work?

Mar 17, 2011

I'm having this problem: I have an external fla (Dawn.as) and I want to instantiate the class from the external file into the main swf timeline, but when I try doing that I get an error:

ActionScript Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Code::Chapter/initialise()

[code].....

View 5 Replies







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