ActionScript 2.0 :: LoadJPG Function Doesn't Work With "this"?

Nov 10, 2002

This works:

_global.loadJPG = function (name, mc, x, y) {
createEmptyMovieClip(mc, m++);
_root.[mc].moveTo( x, y);
loadMovie (name, mc);
}

This doesn't work:

[Code]...

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Declaring A Variable In A Function: Either The Function Or The EventListener - Doesn't Work

Nov 27, 2009

I have a set of Cue Points in an FLV I'm playing. It's an interactive quiz, so the idea is that flash will change a variable, theAnswer, to a different letter depending on which question it is. The answer to question 1 is B, question 2 is D, etc. Either the cue point event listener isn't working, or else it is working and Flash isn't declaring the variables. 1120: Access of undefined property theAnswer. I literally can't find a single problem with my code. I have an almost identical Event Listener further down which works.

[Code]...

View 4 Replies

ActionScript 3.0 :: Why Doesn't The Same Function Work From Different Frames

Apr 10, 2009

I'm making an educational software by AS3.I call "part1Act()" from frame1 and everything works very well.But when I call the same "part1Act()" from the frame 58, flash throw me this error.

TypeError: Error #2007: パラメータ child は null 以外でなければなりません。 at flash.display::DisplayObjectContainer/addChild() at L_oni_fla::MainTimeline/loadSnd()[L_oni_fla.MainTimeline::frame2:699] at L_oni_fla::MainTimeline/part1ActT()[L_oni_fla.MainTimeline::frame58:6 7]

I only called the same function from different time frame.The script I wrote is following.

//--------------------- code ---------------------------------//
var progressBar:progressBarL=new progressBarL();
var context:LoaderContext = new LoaderContext();context.applicationDomain=appDomain;var ldSnd0:Loader = new Loader();var ldSnd1:Loader = new Loader();var ldSnd2:Loader = new Loader();var ldSnd3:Loader = new Loader();

[code]....

View 9 Replies

ActionScript 2.0 :: OnPress Function Doesn't Work

Sep 10, 2007

my problem is that my onPress function doesn't want to work. Here�s the script: PHP Code:

[Code]...

the hilite function should let the buttons disable or not, but it just will not work.....

View 1 Replies

ActionScript 2.0 :: Function Doesn't Work According To Path

Jun 10, 2008

I'm programming a dinamic flash/xml website. up until now I've kept the info for the menus and the one for the gallery (the site has a gallery that displays both text and images) in separate xml files. but I'm trying to make all of it work out of a single xml file. I've managed to make the menus and the gallery all go get the info correctly to the xml (text and images), but then I came up with a problem that jeopardizes the whole show: a path inside the xml's onLoad function refuses to work! the code that bears the function has to be placed into the same clip as the clips that contain the text fields to wich info will be passed or it won't do a thing.

supose this is my actionscript code:

Code:
var contentSubMenu = new XML();
contentSubMenu.ignoreWhite = true;
contentSubMenu.load("example.xml");

[code]....

no information is passed to that clip. If the path targets that clip one should expect it to, right? even if all this code is placed on _root, right? well, it doesn't happen...I tried tracing for info that comes from the xml, but nothing is displayed in the output window.

I've attached a zip file that contains a fla file, an xml file, a txt file with the full chunk of actionscript code and the fonts you'll be needing should you decide to take a look (they're only two).

The fla file has been built in the following manner:

_on the right side, the clips that hold the text fields to wich the contentSubMenu.onLoad function will pass info to are directly placed upon _root (so, following the code example from above, it would be like having var buttonList = _root;)

_on the left side, the clips that hold the text fields are down into buttonListSlide_mc and the contentSubMenu.onLoad function is there as well, only commented so it doesn't display anything.

View 1 Replies

ActionScript 3.0 :: Stop Function Doesn't Work

Oct 2, 2010

I am trying to stop a function in as3, I tried: delete.functionName - but it didn't work, I tried to achieve the same things using addEventListener and then removeEventListener, but that is not what I need that function has caurina tweener inside it and it has multiple tweens with multiple delays seconds, so all of the tweens are started and the seconds continue to tween but what I want is to simply stop that by stopping the function which holds the tweener so it should stop everything what is inside that function for example it could stop that function when it is mouse hovered on any object

View 11 Replies

ActionScript 2.0 :: Function Called By SetInterval, But Doesn't Work?

Dec 14, 2009

I have a function ("advance_slideshow()") that ticks a slide show up by one, then it loops back at the end. It works when called from the key listener I set up for debugging. However it does not work when called from setInterval. I added a trace to the function to confirm that it was being called, which it is; it just doesn't work when called via the interval

Code:
//////////////////////////
/* IMPORTS AND INCLUDES */

[code].......

View 1 Replies

ActionScript 3.0 :: Event.MOUSE_LEAVE - Sometime Function Doesn't Work?

Jan 14, 2010

Here is my scenario

1: I am using custom hand cursor in my application

2: When the mouse leaves the stage I am making my hand cursor invisible

3: Further I am using PV3D for animating plane.When the mouse moves in the stage the camera rotation is changed

4: When mouse moves out of the stage.the camera rotationY is set to zero

Problem:I am using

ActionScript Code:
stage.addEventListener(Event.MOUSE_LEAVE,hideMouse);
stage.addEventListener(MouseEvent.MOUSE_MOVE,moveMouse);[code]....

There are other animation added to this function also.So the function works well but sometimes when I move the mouse out of the window from middle of stage to its out,the function doesn't work.Meaning it works for some fraction of time and then hand cursor is shown and camera rotation is not set to zero.Is there any trick that must be done to force Event.MOUSE_LEAVE work properly.

View 3 Replies

ActionScript 3.0 :: Movieclip (root) Doesn't Work Inside A Function?

Aug 4, 2011

In fact, when i publish my FLA with player 9, there is no prob. When i publish with selecting player 10, there is this problem.

I paste my code :

var leng:int = MovieClip(root).program.websiteXML.pages.titlePage.length();
trace ("leng"+leng);
setInterval(function () : void {

[Code]....

View 11 Replies

ActionScript 2.0 :: Call The ImageSize Function With The If Statement It Doesn't Work?

Aug 18, 2006

Code:
_global.picWmax = 436;
But when I call the imageSize function with the if statement it doesn't work.
Code:
function image(){

[Code]...

View 3 Replies

ActionScript 2.0 :: Motion Tween Doesn't Work Inside Function

Jul 10, 2008

I made a motion tween that works great on it's own, but won't tween at all inside of a frame. Why not?Here is the code as a function. What's up?:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
fadeIn(myMC);
fadeIn = function(mc) {
var myHoriTween:Tween = new Tween (mc,"_x",Back.easeOut,900,0,1.1,true);
}

View 1 Replies

ActionScript 2.0 :: Call The RemoveMovieClip Function In A Callback Handler, It Just Doesn't Work?

May 6, 2007

whenever I try to call the removeMovieClip function in a callback handler, it just doesn't work! Maybe I'm tired, or I've just missed something this is apparantly obvious. In my code exert below, is just a simple script that attaches a movie clip to stage (square_mc) and creates a duplicate instance. When the component button is clicked, I want the original movie clip to be deleted, but nothing happens!

Code:
this.attachMovie("square", "square_mc", this.getNextHighestDepth());
square_mc.duplicateMovieClip("square_mc2", this.getNextHighestDepth(),
{_x:50}) var listener:Object = new Object;[code].............

View 3 Replies

ActionScript 3.0 :: MouseEvent.CLICK Doesn't Work Properly - Function Is Not Triggering

Oct 2, 2009

In my class i've got something like this:

[Code]...

So Every time when I click left mouse button, the setClickedTrue function should be triggered. And that's what happen normally. But when I make a fast move with a mouse, and in the meantime i click left mouse button, or i make a fast move and finishing i will click left mouse button, the function is not triggering. Something like MouseEvent can't hear this Event. I'm making an avoid game, and it's very important. I'm using Timer class with delay = 30; I'm also have got 30FPS on Flash Proporties.

View 3 Replies

ActionScript 3.0 :: External Interface Call Doesn't Work With Function That Is On External JS File

Apr 17, 2012

I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.

I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.

I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.

how to call a JS function that is on an external file from AS3?

View 6 Replies

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

ActionScript 3.0 :: "duplicate Function Definition" Error - Slideshow Doesn't Work

Oct 15, 2011

One of the the most annoying errors to get is the "duplicate function definition" error! Flash doesn't want to see the same function twice... But what about the same function used in two different sections (labels) of one site? I've got two different slideshows in two different sections of my site, and I need the same function called out for each. The function is function nextImage():void If I remove it one, that slideshow doesn't work (remains fixed on image 1 of the slideshow).. if I keep it in, nothing works! I had wanted to use the same script for both slideshows, but forget that! So, I found another script for a different type of slideshow.

View 4 Replies

Professional :: "Align" Function Doesn't Work?

May 20, 2011

my align function has stopped working. I am using CS4, so I tried downloading the trial CS5, but it doesn't work there either. So, what am I doing wrong?

View 10 Replies

ActionScript 2.0 :: Make A Graphic Visible When "complete" Cuepoint Is Detected, But Function Doesn't Work?

May 24, 2007

I'm using Flash 8 (in case you need know what version I'm using).There's three flvs I have assigned a cuepoint, "complete". The goal is to make a graphic visible when "complete" cuepoint is detected, but this function seem doesn't work, any feedback on function?:

Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);[code]....

View 1 Replies

ActionScript 2.0 :: Dynamic Masks - Trail Doesn't Resize And The Mask Still Doesn't Work

Oct 16, 2009

I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:

Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....

in the function, but now the trail doesn't resize and the mask still doesn't work.

View 1 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies

Swf Into Fla Doesn't Work?

Jul 23, 2009

I have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.

I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting.

View 16 Replies

Actionscript 3 :: Function From A MouseEvent Activated Function Will It Not Work Properly?

Jan 3, 2012

I am working with AS3 to build a very simple mp3 player on my site. So far the play and pause button work fine, but when I try to move the slider then click the pause button, it doesn't pause, and then clicking the play button again causes it to play a new file.I'm assuming that for some reason when I call the playMp3 function from my MouseEvent, it's within an object or something and not at the root, so it's like loading a new sound file, but I don't know how to fix that.URL...

View 2 Replies

ActionScript 2.0 :: CS3 'if' Doesn't Work But 'else' Does

Apr 8, 2010

I am trying to more between frames using the data returned from a node n_EventID in an xml, when the node returns "1408" I want to move to frame 1 but if it returns anything else I want to move to frame 2. The part where the code moves to frame 2 seems to work perfectly but I can't seem to move to frame 1 when "1408" is returned.

xmlResultFinish = new XML();
xmlResultFinish.ignoreWhite = true
xmlResultFinish.onLoad = loadXmlResultFinish;

[code]....

View 5 Replies

Flash Doesn't Work On Some IE's?

Apr 14, 2010

I'm having a problem, where random IE's are not able to display my .swf file. All the IE's are IE8 with the latest flash pluggins and all security's are set at Medium, however some IE's get just a grey box and other's get the full flash file. What's going on? It works fine in Safari and Firefox of course, but why so much difficulty with AS3 Flash9 in IE? here is a link to the site, and it's the big image changer at the bottom of the front page.

[URL]

View 2 Replies

.swf Fullscreen Doesn't Work?

Nov 19, 2009

But my proublem is that I have a flash presentation.The defalt for moving the slide screens back and forth are left and right arrows.It works fine when tested or even the .swf fileBut then the left and right buttons don't respond when I go to fullscreen.

View 5 Replies

ActionScript 3.0 :: SWF Doesn't Work In IE

Dec 10, 2009

Is it common for AS3 apps to not work in IE? Is there a way to make them work? I have a movie clip in my library linked to a custom class Main and I have nothing on stage. Just one frame. Everything is built inside that movie clip. I add that movie clip to stage through a document class and everything works perfectly in Firefox and Chrome but when I open it in IE, it's just a blank page.

View 6 Replies

IDE :: Pop Up Doesn't Work In IE But In Safari?

Apr 12, 2007

i followed the instructions oh how to make a centered pop up window here :i'm using a mac..nd it works in Safari... but when i try to use explore to open it, the pop up window doesn't come up...why is that.......? did i do something wrong?here is my website:and please click on 'message' to see for yourself.

View 5 Replies

IDE :: Pop Up Doesn't Work In IE But In Safari

Jan 9, 2004

i followed the instructions oh how to make a centered pop up window here : [URL]

i'm using a mac... and it works in Safari... but when i try to use explore to open it, the pop up window doesn't come up..

here is my website: [URL] and please click on 'message' to see for yourself.

View 6 Replies

ActionScript 2.0 :: F8 DuplicateMovieClip Doesn't Work

Jan 15, 2009

this is what i have on the maintimeline:[code]I have 4 moveiclips called: redhex, bluehex, greenhex, and yellowhex.what the above code should do is make a 15x15 grid of hexes (yes i wanted all 4 hex mc's overlapping each other at each space on the grid.).Before i added the lines to dupllicate the blue, green, and yellow hexes also... the redhex movieclip duplicated exactly as it should.But after adding the lines to duplicate the blue, green, and yellow hexes also, in the same locations... Nothing at all showed up when i tested the movie (not even the redhex's)

View 4 Replies

ActionScript 2.0 :: Key.isDown Doesn't Work?

Apr 12, 2009

In the actions of a movie clip,I want to use something like:

PHP Code:
if(Key.isDown(W)){
//do stuff
}

But,it does not take anything else than LEFT,RIGHT and some others.I even tried ASCII:

PHP Code:
if(Key.isDown(100))
{}

It doesn't work.Then how do we use keys like W,A,S,D?

View 1 Replies







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