ActionScript 3.0 :: Functions Aren't Working - How To Make It Work

Jun 25, 2009

I have one function that for some reason, isn't calling the next function. I've been looking over this code all day and I feel like it's probably going to be something really small and stupid but I jsut really need help at this point. The function that isn't working is showUsers().

This is my code:

Code:
import fl.controls.*;
import flash.display.Sprite;
import fl.managers.StyleManager;

[code].....

View 14 Replies


Similar Posts:


Professional :: Flash Lyrics Aren't Working

Sep 17, 2010

I am trying to make a Flash lyrics with music following this tutorial: url...I know nothing about creating Flash animation but I have been following it to the letter. So, I start up Flash CS5, press F9 to get into AS3 command box. Then, I paste the code (lyrics.xml and mp3 is already prepared). However, I am getting compiler errors:[code]What do I have to do to make this work? Is there any easier tutorial for lyrics in Flash?

View 10 Replies

ActionScript 2.0 :: Simple Events Aren't Working?

Jan 6, 2006

I'm using Flash Pro 8 and I'm attempting to incorporate events into some of my classes and I'm having nothing but problems. After looking at lots of examples, this all seems okay, but doesn't work. First is the class code and secondly is the code on the timeline.

ActionScript Code:
import mx.events.EventDispatcher;
class iaicu.mycampus.ClassSchedule {[code].....

Keep in mind that these classes are more elaborate, so events are intended to be more useful.

View 7 Replies

Flash :: 3D Transforms On Loaded SWFs Aren't Working

Dec 12, 2011

Our creative team produces SWF animations in the Flash CS5 authoring tool that we (the engineers) load at runtime into a project built using the Flex SDK. Animations that don't use the "3D rotation tool" work just fine.

Animations that use the 3D rotation tool give the following behavior:

MovieClips that have 3D tweens applied using the 3D rotation tool show up in the top-left corner of the stage as if they had no transform at all (i.e. as if their Matrix3D was being ignored, and their Matrix was identity) MovieClips that have normal 2D tweens animate properly Alpha and other non-affine properties tween properly

Both 3D and non-3D animations play fine when loaded by themselves in a browser tab or the standalone flash player. 3D is only broken when loaded into our code generated SWF.

So it seems that for MovieClips with 3D transformations applied in the CS5 authoring environment, those transformations aren't being applied / respected when the SWF is loaded by our code SWF.

This is my first foray into 3D, so I'm not sure what could be causing this, but here's what I've tested / checked / tried, all to no avail:

I've ensured that actionscript 3 and Flash Player 10 / 10.1 is selected in the authoring environment. I've tried loading animations into code SWFs built using Flex 4.1, 4.5, and 4.6 at Flash player versions 10.0, 10.1, 10.2, and 11 I've applied Matrix3D to the containers that load the SWF animations, both identity and rotated. I can see the rotated containers do work with 3D in perspective, so I know that my code SWF is 3D capable.

View 3 Replies

ActionScript 3.0 :: Why Aren't Width & Height Tweens Working

Dec 13, 2009

An object has been attached. The object is then tweened starting from a large number and going to a small number. Except my tweens aren't working. From the trace statements, my objects are shown to end up being to x=-20.55 and y=-107373766.65.

[Code]...

View 0 Replies

ActionScript 2.0 :: Variables From Flash File Aren't Working?

Oct 11, 2010

Here's the actionscript.

var request:URLRequest = new URLRequest()/employee_slideshow_datalayer1.txt");
//request.method = URLRequestMethod.GET;
//

View 1 Replies

ActionScript 2.0 :: Stage.align Parameters Aren't Working?

Oct 10, 2009

im using this code:

Code:
Stage.align = "BR";
var stageListener: Object = new Object();
stageListener.onResize = positionContent;

[Code]....

..to fix the position of my MC, but the parameter "BR" (and all others) aren't effecting. My mc always shows up in the bottom right corner.

View 3 Replies

Professional :: Mac Projector Files Aren't Publishing After Months Of Working Fine?

Dec 15, 2009

I've published Mac projector files and .exe file from Flash CS4 for several months without issue. For the past week when I've published Mac projector files the .app icon appears on my desktop but when I try to play the file the dock opens but the file doesn't play. Any Mac projector files I published prior to this problem play fine.I've tried creating a new .fla file and have reinstalled Flash but I'm still having the problem. EXE files and SWF files play fine. Also, the Mac projector files publish at about half the file size they did before this problem, while the EXE and SWF files are the same size.

View 3 Replies

ActionScript 3.0 :: RemoveChild Not Working - How To Make It Work

Dec 22, 2009

I'm using CS4/AS3 and am swapping out swf files in a single holder from different buttons. The problem is that the child isn't getting removed when switching from button to button.Here's my code:

var Xpos:Number=0;
var Ypos:Number=150;
var swf:MovieClip;
var loader:Loader=new Loader();

[code]...

View 6 Replies

ActionScript 2.0 :: Preloader Not Working - How To Make It Work

May 29, 2010

A loading bar for my portfolio website is not working at all. Although the same loading bar will work on other Flash projects.After doing some research I have found that loading in MovieClips from the library may be the cause of this. So instead of loading them in from the library, i am now loading them in externally but the problem still persists. how can i un-embed the font? [URL]

View 1 Replies

ActionScript 2.0 :: GotoAndPlay Not Working - How To Make It Work

Jan 14, 2009

my gotoAndPlay does not seem to be working. On frame 1 I have this for testing purposes:

trace("frame 1")

and on frame 2 I have:

gotoAndPlay(2);

and I get "frame 1" traced out continually. It's going back to frame 1 for some reason.

View 2 Replies

ActionScript 2.0 :: Gettotalbytes Not Working - How To Make It Work

May 3, 2010

i am having some issues with the gettotalbytes function as flash wont take it as its function ( which generally show in BLUE COLOR ) so what i am trying to do is not working.

this.createEmptyMovieClip("mymovieclip",this.getNe xtHighestDepth);
this.createTextField("textfield",this.getNextHighe stDepth,10,10,100,10);
if(mymovieclip.getTotalBytes()>0)

[code]....

View 5 Replies

ActionScript 3.0 :: ButtonMode Not Working - How To Make It Work

Jan 19, 2011

what could cause buttonMode to 'not' work properly?? the clip has MouseEvent listeners. I set the buttonMode to true. I have a trace statement inside the roll over event showing that buttonMode is set to true, but for some reason its not showing the hand cursor. the rollover,out, and click events fire as they should too..and i have other objects that work perfectly fine with buttonMode.

View 3 Replies

ActionScript 2.0 :: _parent Not Working - How To Make It Work

Nov 7, 2004

I have a movie clip that has the following code:

on (release) {
_root.rightMenu_mc.gotoAndStop("Animation");
}

It works fine the way it is but I read that it is better to use relatives paths rather than _root all the time but when I change it to _parent.rightMenu_mc.gotoAndStop("Animation"); it doesn't work anymore.

View 13 Replies

ActionScript 3.0 :: EventListeners Not Working - How To Make It Work

Feb 11, 2009

rotateToMouse works. Nothing else even gets as far as tracing. What gives?

Code:
package engine
{
import flash.display.MovieClip;
import flash.display.*;

[code]....

View 6 Replies

ActionScript 2.0 :: .swapDepths Not Working - How To Make It Work

Sep 7, 2003

I have a movie clip I am using to display a group of logos i created which are also movie clips. when the user clicks on each logo the logos are supposed to enlarge except, that because of the way the layers are stacked, one of the enlarged logos displays underneath the smaller one. so, someone suggested i use swapDepths. But nothing happens. it won't even enlarge. here's the script:

on (release) {
this.swapDepths("manard");
gotoAndPlay("oataup");
}

"oataup" is a frame label, obviously and "manard" is the name of the movie clip instance I'm trying to swap with. I've never used the swapDepths method before so I'm hoping I screwed something simple up.

View 4 Replies

ActionScript 2.0 :: Functions And Sub-functions - Button Doesn't Work OnRelease?

Jun 17, 2004

I have one function that puts text in a text field and makes a button goto a url onRelease.The code is like this:

Code:
item.onRelease = function() {
myButton.onRelease = function() {
getURL("http://google.com", "_blank");
}
talk = this.txt;
}
the only problem is that the button doesn't work onRelease. i think that it is because there are too many functions there, but at the same time,

View 5 Replies

ActionScript 3.0 :: Buttons Stop Working - How To Make Them Work

Feb 19, 2010

I have a container mc called lightBoxCont that I load a class into

Code:
lbx.initLightBox(12, Number(slideIndex), urls, titleText);
lightBoxCont.addChild(lbx);

when the user clicks on a thumbnail the user can close the lightbox by clicking on a button like this

Code:
this.removeChild(lightBoxCont);

This all works (or seems to). If the user then clicks on another thumbnail the light box appears again, but the buttons don't work. These were added in the class lightbox.

Interestingly if I trace teh number of children that lbx has I find that each time the user presses on a thumbnail it goes up. First time its about 30, next time its about 60, next time its 90 and so on.I think this is causing the problem with the buttons not working.

View 5 Replies

ActionScript 3.0 :: Import Vs Include - Basic Functions To Be In BasicFunctions.as And The Make A Library For More Specific Functions

Jun 6, 2010

I've got a project thats getting a bit big, so Im taking the actionscript out into separate as files. I want all the basic functions to be in BasicFunctions.as and the make a library for more specific functions. I find that a lot of people use the import statement but I cant get that to work with a simple Hello World trace, yet the include statement works fine (see attached). I understand that import/include work differently, but which is the better method? If import, then is that heavier to work with. Any rate, what's the best way to organise code when it gets to the 1000+ lines?

[Code]....

View 9 Replies

ActionScript 3.0 :: Functions Don't Work After Swf Loops?

Apr 8, 2009

I have a five mouse click functions, each with a different navigateToURL link, and each one appears on a different key frame. The probelm is that once the end of the swf is reached and it loops, it gets stuck on the last function and therefor only links to that last URL.Is there a way to reset functions at the begining? Or is there a better way to do this?Code from one of my keyframes:

First_btn.addEventListener(MouseEvent.CLICK,onMouseClickFirst);
function onMouseClickFirst(e:MouseEvent):void{  navigateToURL(new URLRequest('http://FirstLink.com'));}

[code]......

View 9 Replies

ActionScript 2.0 :: How To Work With Functions In Flash

Sep 6, 2005

I am working on learning how to work with functions in flash. I ran into a bit of trouble. What I am trying to do is make a function that creates a random _x number. Then have another function that takes that _x number and adds some easing to it. Finally I have a movie clip that will read that last function and move the object to the random _x position and ease into it when clicked. I think I have the basics of it done but I just cant seem to get it to run! I included a file so you can see were I am at with this. If anyone has a more efficient solution to this I am all ears. My hope is that with using functions I will be able to add this script to other objects in the movie more easily.

View 12 Replies

ActionScript 2.0 :: Movie Functions Don't Work With Another Over It

Aug 22, 2010

I have a menu consisted of horizontal strips that turn visible on roll over. One of them has a submenu over it. The thing is that when I roll over a sub item that has an action on it, the roll over function of the stip doesn't work and it disappears. If I put the strip over the submenu, it works well, but the submenu doesn't.

View 2 Replies

ActionScript 3.0 :: Var And Functions Not Working?

Nov 30, 2009

Flash won't let me access my functions or variables. And I can't figure out why. Do I have a syntax error?

package {
import flash.display.MovieClip;
public class Base extends MovieClip {

[code]......

View 4 Replies

ActionScript 2.0 :: Functions Not Working Together

Oct 19, 2004

I have these two functions which both happen on an onEnterFrame event;"basichittest" and "photo". They each work by themselves, but not together.I attached the fla file.I commented out lines 6-10 and line 58.I want the red dot "photodetector" to get brighter as the mirror slides to the right. I also want the beams of light to bounce back and forth when the drag happens.If I uncomment the offending code, the beams no longer bounce, but the dot behaves the way I want.

View 3 Replies

ActionScript 2.0 :: Functions Not Working Together?

Oct 19, 2004

I have these two functions which both happen on an onEnterFrame event;"basichittest" and "photo". They each work by themselves, but not together

I attached the fla file

I commented out lines 6-10 and line 58.

I want the red dot "photodetector" to get brighter as the mirror slides to the right. I also want the beams of light to bounce back and forth when the drag happens.If I uncomment the offending code, the beams no longer bounce, but the dot behaves the way I want.Can I only have one function on enter frame?

View 3 Replies

ActionScript 3.0 :: Functions Only Work Half The Time?

Jul 24, 2009

Without getting in to the specifics, I have a .fla file that has several functions that animate movieClips already present on the stage.

When I compile/view the SWF while working on it, the functions only "run" half the time. The other half of the time, Flash never runs the functions, it just pretends the call never happened. Sometimes they work, and sometimes they don't. I have a feeling it may have to do with Flash's garbage collection, but I don't know how that works.

View 4 Replies

ActionScript 2.0 :: Setting Up Functions To Work With An Array?

Sep 7, 2009

I have an array that I have set up that would go with a series of movie clips, and I am trying to combine them with functions that upload xml pictures--firstImage(), secondImage(), and so forth.Here is the array that I have:

ActionScript Code:
var currentButtonId:Number = 0;
var buttons:Array = [btn1, btn2, btn3, btn4, btn5, btn6];
function buttonRelease() {

[code]...

It enables and disables the movieclips depending on which one is clicked.

I want to make the xml functions (firstImage(),secondImage()...) go with the buttons in sequence. So once btn1 gets pressed the firstImage() xml function gets called.

View 0 Replies

ActionScript 2.0 :: Can't Get Any RemoveMovieClip Functions To Work On New Instances

Feb 25, 2004

Worked on this for a while, does the jpb, but because of the way I have done it, I can't get any removeMovieClip() functions to work on the new instances.need it cleaned up an in a way that I can use a removeMovieClip on it and have it actually remove them all.[code]I have almost the same code in three different frames, just using different instabnces as the basis for the duplication, and another layer that has a timer, when timer runs out, takes you to the scoreboard, now all was working well before i changed it to duplicate function, I just pulled them in from the library, but they weren't all the same size an crap (for perspective) But now ehn I get to the scoreboard, the darn things are still running.

View 3 Replies

ActionScript 2.0 :: Can't Get Functions To Work After Re-entering First Frame?

Jun 11, 2008

I don't know what's going on here. I have some onRelease functions on movieclips that work fine. However one of them takes the user to a contact form in another frame but after selecting another button to go back to the first frame of the movieclip none of the functions work again.Here's a link to my swf so you can see what I mean:

http:[url].....It's kind of glitchy because it's on deviantart and I took out a lot of stuff so the .swf would be smaller.And here is the action script I'm using:

Code:
stop();
Stage.scaleMode="noScale";
Stage.align="TL";[code].....

I'm thinking because the actionscript is located in the _root of the whole .fla and all the action is happening in the img movieclip that something is off.

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







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