Which one to use??? What are the performance considerations. If all my movieclips on-stage are running a MovieClip.prototype.onEnterFrame = function() {run initial stuff before setting onEnterFrame=null/undefined... }, will there be performance hits? It's sad that delete onEnterFrame doesn't work unless I delete the prototype enterFrame as well, which would make the clips reinitailise itself again once you declare the enterFrame prototype again (i need to do this since there's more movieclips that end up appearing on-stage, and they need to automatically initialises themselves the moment they appear).
trying to stop the onEnterFrame loop but it won't stop.
[Code]...
I'm trying to exit the loop and go to frame openWin but that doesnt jumps so I tried to delete the onEnterFrame but the loops contiues.
1) how can I exit the loop to frame openWin? thats most importent it's what I need!
2)if I dont use this.onEnterFrame = function(){ just earth.onRelease = function doent work either unless its in the onEnterFrame why? the earth has animation on it but here i'm using it just as a button so I see no conection to why it isnt working unless its in the onEnterFrame?
problem is when i get to 95, everything works well, but when i get to 105, the onEnterFrame had already been deleted so that code doesnt run anymore. how can i accomplish this so that the code on 105 runs?
I'm using a number of onEnterFrame functions in my project and to slow down the CPU consumption I want to delete them when they've done their job. I've got this code to work with things like alpha fades, but the delete this.onEnterFrame doesn't work with the easeing code. I think it's the division part of the code that's affecting it. Can someone lend me a hand?
Code: var targetY = 220; this.onEnterFrame = function() {
i am using the following AS to scale a movieclip with ease
[Code]....
should i be using a delete this.OnEnterFrame when the clip reaches the desired width? the problem is that ive noticed a lag in my tweens and i wonder if this is whats causing it.
In the main timeline I have this onEnterFrame function. I also have this movieclip and in it's own timeline stops at frame one. When this movieclip is rolled over it plays and then stops at frame 9. I'm trying to make an if statement in the onEnterFrame function that says when that one movieclip is on frame 9, delete the onEnterFrame function.
I tried to do this code, but so far all I have is if (movieclip._currentlabel = "framenine") { delete this.onEnterFrame; }
I have a movie clip called mover that I can ease up and down with buttons, and some action script to alpha a box if the top of the mover clip goes above the top of a stopper clip. Its an if statement and sadly only runs once. I made a controller movieclip which I thought would trigger the if statement each time the onEnterFrame was crossed... but sadly it doesnt work. I have attached a fla below.
i am using the following AS to scale a movieclip with ease
[Code]...
should i be using a delete this.OnEnterFrame when the clip reaches the desired width? the problem is that ive noticed a lag in my tweens and i wonder if this is whats causing it.
i'm very new to Flash (although have plenty of experience in Java, C++, PHP, etc). For a University assignment, I am creating a World Cup Guide and i'm creating a countdown to the tournament. I've followed a tutorial and modified it slightly but i'm receiving an error message. The error message is:
I have done a very basic flash navigation using on rollover within movieclips that make them fade in or out when you roll over. Here: http:[url].......My client has asked that when you roll over another button the current page button fades out. This should be straight forward but I have forgotten how to send an instruction from one MC to another. This is the code I have applied to an invisible button within the mc
Code: Select allon (rollOver)[code]........
So instead I need all other buttons on (rollOver) { gotoAndPlay("over"); to have another line in the same mc to make home button mc gotoAndPlay("out") then reverse on rollout.I have a different nav bar for each page.
I think in my last post I was trying something that wasn't possible, or correct There are 9 Children. The alpha of evt.target changes on mouse click, and a square is added around the evt.target which overlaps the two neigbouring Children.
The number of Children is then 10, and I am trying to detect whether the next evt.target is overlapped by the square before passing an instruction to change/not change its alpha.
I'm having a problem with Adobe Flash Media Server 3.5.4 (Developer) default install ldd` showed me some missing libs, but I was able to overcome that server` runs fine, but I can't run `fmsadmin I'm using Debian 5.0.6 on VPS Here is some debug info I was able to get:
srv:/opt/adobe/fms# gdb fmsadmin GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later [URL].. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.This GDB was configured as "i486-linux-gnu" (no debugging symbols found)
I just can't find the script required to automatically load another .swf when the (already) loaded movie reaches the end of the timeline.Context: 1st swf has been inserted into an html doc with a div tag. I want to add the script to the timeline of this movie.
I got these four errors when I tried to create a button on the stage that would delete the text I inputted in the inputtext(ti). Based on the scripts I have and the errors, what should I write to create the delete button?
I am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st'
1) the data provider is filtered to show all items starting with 'st' 2) text is set to auto-suggest string such that the un-typed part is highlighted.
So for instance, the combobox text may contain st'ackoverflow', where 'ackoverflow' is highlighted using setSelectedIndex()When I hit back-space or delete, and check the 'this.text' value, I expect that the last un-highlighted character ('t' in the above case) gets deleted and the data provider is filtered to show all items starting with 's'. However the text property contains 'st', as before
Having a few problems with what I thought was a simple if statement. Here is the code:
[Code]...
I can't quite figure out the small problem with the code. It seems to just bypass the first requirement of the if statement when I do type in the proper input and go straight to the else statement.
The Flash movie contains 2 Text files, one Component button, and 1 component checkbox.The purpose of the application is to load an XML file(works)Populate 2 text fields with information from the XML file(works)Compare the two text fields, if they contain the same information then the checkbox, via AS is told to be selected. (Heres the problem);
The idea behind this app is that its an electronic form. The user fills it out, the information is then sent to a newly created XML file, months later the open the XML file in flash, and Flash fills out text fields and check and or unchecks Checkboxes based on the XML data.CheckBoxes are mandatory.But I don't see how I'll be able to use them if i can't create and condition statements based on the loaded Data.