ActionScript 3.0 :: RemoveaddEventListener Doesnt Work?
Jun 8, 2011here is the code
gotoAndStop(2);
stage.addEventListener(Event.ENTER_FRAME,une1);stage.addEventListener(Event.ENTER_FRAME,une2);
[code]....
here is the code
gotoAndStop(2);
stage.addEventListener(Event.ENTER_FRAME,une1);stage.addEventListener(Event.ENTER_FRAME,une2);
[code]....
i made a slider that can slide the main timeline while running the swf.the first function slides scales the bar and moves the handle along the path:
Code:
sliderF = function () {
this.onEnterFrame = function() {
[code]....
I have an app with a preloader - works fine until the content gets cached, then for some reason wont progress to the next slide - Fullscreen mode is set to full (if that makes a difference). It doesnt seem to happen consistently either.
[Code]...
ok flash doesnt work on nfl.com video.i got the new player 10 point whatever.tried it in mozilla all i keep it video loading.NEVER LOADS tried it in IE says i need to download the newest player from adobe already done.i took down my firewall setting took adblock plus off.
View 1 Repliesi'm trying to drag something, and on stopdrag it should start a function if certain requirements are fullfilled. My code looks like this.if(e.target.dropTarget.parent == targetName || e.target.dropTarget.parent.parent.parent.getChildByName("cloud").getChildByName("itemPlacer").getChildAt(1) == targetName){
I got 2 questions, first, this works good when i drag and stopdrag correctly(the requirements in the if are fullfilled). but if the requirements are not fullfilled i get an error saying that the place i'm referring to cant be null. I know that the problem lies after the || part but dont know how to resolve it. 2nd, isnt there a shorter way of doing these checks? Atm i'm going through alot of parents and getchildats and was wondering if there was another way.
my enter key doesnt seem to work,but other keys do work..[code]
View 1 Repliesi got an image gallery that reads data from an xml file. this xml formatted data is from a php file. when i open the gallery it loads the 1st image; when i click next it loads the 2nd and so forth... but as soon as it has loaded all the images once, it gets stuck. i dont know what to do. when i had the gallery read directly from an .xml file things were working fine but as soon as it was data from a php file that was xml formatted this problem started to occur.
View 1 Repliesi am having a serious problem with my navigation my file just doesnt seem to work heres the code:[code]ill upload the FLA in a sec if anyone could please take a peek this is for a project at uni i need to have it handed in by monday and ive been stuck with this problem since 15:00 in the afternoon uk time and its now 22:15.url...
View 3 Replies My removeMovieClip doesn't work onRollOut...Also if somebody can tell me how to change the color of the movie clip onRollover.I have two MC with instance name as loc1, loc2 (stored inside mainMap.map.pan), now when i rollover to these, there is a toolTipMC which displays with title on dynamic text box with instance name "tip" (toolTipMC.tip) and image attached to movie clip with instance name "imgHolder" (toolTipMC.img.imgHolder) and some details showing on dynamic text box with instance name "detail" (toolTipMC.detail).Here is the code:-
locs = {loc1:{tip:" Canada ", detail:" Canada is Canada :P", img: "loc2"}, loc2:{tip:" North America ", detail:" North America is North America, llalalalala, hahahha", img: "loc3"}};
mc = mainMap.map.pan;[code].....
I have a mc that you should drag to the right mc.The mc that you have to choose from are sometimes a little close so I made a code that the mc that you drag will xscale so it will be smaller.But then if I press on the end of the mc before dragging the mc is outside the mouse and you cant use the OnRelease code.How to avoid that.Enclose a small fla, and the code is:
function god ( t,t1,t2){
t.onPress = function(){
this._xscale = 20;[code].......
Ok so my swf on my homepage is calling in the main.swf which then has movieclips and coded like this on the Actions layer which I made
button1.onRelease = function (){
_root.button1.getURL("http://scholarscanada.com/wordpress/education/programs/reading-readiness/" "_parent");
}
Here is the site so you guys can see, I believe it has to be something with calling the main.swf into the movieclip because I've never encountered this issue before...If you click on the LEARN MORE for the first image it doesnt go to the page which I ask it for
I have a weather applet using Flash and XML, its works great, but for some reason when i use a LoadMovie action to pull the SWF into my flash movie, it doesnt work. When i view the Weather.swf on my webserver it works just right. but when i pull Weather.Swf into Home.Swf it doesnt work.[code]i have a MC container on my stage called weather.i think for some reason when embedded its not reading the XML, any ideas?
View 1 RepliesI maded a cursor and converted it to a movie clip and gived it this code: onClipEvent (enterFrame) {startDrag(this, true);Mouse.hide()}Sen i maded a button and putted THIS code in it:on (rollOver) {gotoAndStop(13);}But it didnt work. then I deleted my cursor and then it worked, but i want it to work whit my cursor. So:How do i creat a cursor some working at rollOvers?
View 1 Replieshere is my code
buttonPlay.addEventListener(MouseEvent.CLICK, playMusic);
function playMusic(evt:MouseEvent):void[code].....
but when i export my video the button doesnt do anything. the instance has an instance name buttonPlay, and it is a movie clip..........
ok, so i am doing a tutorial on external text sheets, but i cannot seem to implement the same code into my current project, it just doesn't seem to work.Its strange because im not getting any errors, but it still doesn't work.This is the example code:
Code:
var loader:URLLoader = new URLLoader(new URLRequest("my_text_file.txt"));
loader.addEventListener(Event.COMPLETE, completeHandler);
[code].....
I am trying to hide a movie clip with the following:ActionScript Code:wheelone_mc._visible = false;But the movie clip remains to be seen on the stage?Here is my full code:
ActionScript Code:
//hide wheelone_mc
wheelone_mc._visible = false;
[code].....
I've tried to send some parameters to my flash app by flashvars. Unfortunently, it doesnt work. To embde flash I'm using SWFObject 2.2. I also use lib SWFAddress 2.4 (I'm stating this, because I've heard that some versions of swfobject and swfaddress are not compatible).
[Code]...
I've tried many solutions and read many tutorial or forumposts, but I havent found any that solves my problem.
Ive updated to CS5 and now I have problems with the flash I am working on,when I export the timer doesnt work,in stead of saying **mins it just says mn with no number.Ive reloaded flash several times but still doing it,altho once it worked the first time I exported it but not again. No problem on CS4. Im guessing it must be some action script it doesnt like, unless something is corrupt on my computer.
View 9 Repliesi created an actionscript 3 swf file and put it on myspace. that swf file contains a pretty simple xml pic loader.my problem now is that the xml content doesnt work in myspace! if i try it straight on my server it works fluently.URL...
View 7 RepliesI've got 4 input text fields used for inserting numbers. (i'm making a math addition app for children) When each column is added up and the number inserted in the text box in the same column (working from right to left) it compares that number with the actual number and will display either a tick or cross.
[Code]...
i am developing a game with flash.. the data for this game is saved in sharedobject.. in my computer it runs ok, but when i gave it into my friend, first it run ok, but later after i make some changes (the saving code is the same) it cant save anymore, as if the sharedobject can't be flushed. but it run fine in my computer. later on i check "global storage setting" for my friend flash player, actually it has allocate 100kb for local.
View 1 RepliesI'm not understanding something. When resize the flash window itself it traces the width and height of the stage just fine. But when I publish it as an html page the resize handler doesn't work and it traces nothing...
View 3 RepliesIve just created my own custom scrubber using this tutorial, however, the code doesnt work with my flvplayback component.
View 4 RepliesI've this swf with its natively height of 550px. I've the bottom bar, height 92px. So i write this code in AS:
bar.y = stage.stageHeight - bar.y / 2;
I wrote /2 cause the registration point of the bar is in the middle of it.My pourpose was to place the bar always in the bottom, no matter how tall is stage. But as you can look from the link, it doesnt' work right.while was trying to undestand what is worng, I noticed that the effective repositiong is the duoble of what I wrote in AS3 code. If i resize of 3px larger, the bar goes 6px down, and so on.
I have a swf made in Flash CS4. It works fine in firefox and older versions of flash player in IE, but it doesn't work in recent versions of IE and Safari In this case just I can hear the music.
View 1 RepliesI've got 2 AS3 files going here, the document file "Main" and a "Fence" file..[code]For some reason the ping comes up, but the pong doesn't, it's starting to bug me now that the "onFenceAdded" wont even work, what have I missed? Is there some way to check if Flash is compiling correctly? I often find these weird problems where I'm sure I've done it all correct, but when I try to compile and run a swf it wont work!
View 11 RepliesI have been building a website in dreamweaver, but have flash buttons which work fine. But the banner I have made in the page just has a white background. When I export it in flash it works, and when I preview in the dreamweaver browser it still works. I do not know what I have done wrong. Is the coding in the server wrong for the flash?
View 2 RepliesWhen I put a trace("test"); at the entry point of my flashdevelop project and run it. The application runs fine but I do not see the trace in the output. Below is my code
package
{
import flash.display.Sprite;[CODE]...
I'm editing this template but there is a problem, when the page is online the scroll sometime doesnt work.URL...I don't understand why, in the swf everything is perfect, but when the page is online if we test the scroll sometimes it simply doesn't work.[code]
View 1 RepliesI've tried to send some parameters to my flash app by flashvars. Unfortunently, it doesnt work. To embde flash I'm using SWFObject 2.2. I also use lib SWFAddress 2.4 (I'm stating this, because I've heard that some versions of swfobject and swfaddress are not compatible).Here is my html code:
HTML Code:
<head>
<title>RacerViewer</title>
[code].....