I have to make a flash movie that would allow the user to control the framerate of the movie. Unfortunately I'm not that good with flash and I don't know how that could be done ..I thought about something like
i want to change frame rate of movie clip during run time on button click.....i have 3 movie clips...and i want to control the frame rate on button click...am using attachMovies to play the movieclips.
Simply put, I am making a flash midi player. I am using ENTER_FRAME for my timings. I set the framerate to 100 to ensure that the timing of each note in milliseconds is accurate. When I test the movie with CTRL + ENTER it works fine. When I publish it and open it in a browser (tested both IE and Chrome), it suddenly plays back a lot slower. I don't think it's a performance issue, since the code is very simple. If this slowdown is consistent then I can perhaps work with it so that the playback speed will be correct. Do browsers make the framerate slower or do they implement a framerate cap of some sort? What is going on?
We've got several Flex projects, one of which has just been refactored. I'm wondering if there's an easy way to tell which classes and functions (if any) aren't being used any more?
I've discovered that we've definitely got some unused code, because running ASDoc on the entire project reports some compilation errors which don't get reported by Flex Builder (implying that those classes aren't being used any more). I'm hoping to find a more robust and complete method, and preferably one which can work at function level too.
Does anyone know where I can get a hold of the FlexMonkium source code? I can checkout the FlexMonkey source but I cannot seem to locate the FlexMonkium source.
I'm making a scripted animation in Flash CS4, basically it's made of various mc's that have alpha tweens assigned.The thing is I'm trying to make a FadeIn variable and then wait for "x" seconds then call a fadeOut variable.the thing is I can't find code for resting between variables so the closer I got was using set interval but that makes it hard to code.[code]
"you should create a fla, drag an flvplayback component to the stage, create an array of your flvs, initialize an index at zero, assign the flv to start playing your first flv and increment the index in a function that executes when an flv complete and play that array element until all are played. you'll publish your html and swf from that fla." And he gave me a code sample which is below... modified to show my "instance" name as FlvChainand my flv file names... vid1.flv, vid2.flv, and vid3.flv...
My code...
import fl.video.VideoEvent; var flvA:Array=["vid1.flv","vid2.flv","vid3.flv"]; var index:uint=0; FlvChain.source=flvA[index];
[code]....
When I attempt to Debug I get this message...
"1087: Syntax error: extra characters found after end of program."
I'm currently making an animation which will eventually exceed the 16,000 frame limit (don't ask haha), so, short of making two movies and having to just start up the next one, what is the code for loading a movie? I presume they need to be in the same directory? So basically all I want is on the last frame of the movie the code executes and the second movie file opens up and starts. I guess I'd want the current movie to close, too.
OK, I've spent a few very frustrating hours trying to figure out a solution that's probably staring me in the face. I have one movie (Intro.swf) that loads a second movie (ncjhs_Menus.swf) with drop down menus. Intro has a movie clip with the following script in it:
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("ncjhs_Menus.swf"); myLoader.load(url);
Both the Intro .swf and the ncjhs_menus.swf files are saved in a subdirectory called Flash off the root. The html file generated by flash is saved in the root. When done that way the Intro file runs but does not manage to get the menus file to load. If however I save the html file into the same Flash diretcory as the two .swf files then everything works fine and Intro can call the menu .swf file.
I'm currently working on a project where I want to incorporate "find a location" functionality using the user's zip code. Basically, the user needs to be able to type in their zip code and once they hit the submit button, they are then taken to a page where it lists all locations available. Mind you, the website is ALL Flash. Currently, it's in ActionScript 2.0, but I could (at least with these pages) convert to ActionScript 3.0 if needed.
How can find out the linked url of the image in the flash of a website? I looked for the image url some time. but couldn't find itif find the linked url of the image, and i want to alter an image linked url address. where is the code in?
Q1) The registration point of a created clip is top left - my question is how can I dynamically change it's registration point - say to center center?
(I am trying to attach a movie clip to a created clip and I wanted it to be centered inside the container - a related sub-question, how can I find the x-y coordinates of the attached movie clip within the created movie clip?)
Q2)When I tried to create two different movie clips, I found I had to create them at different depths, else the first would load and the second would not. Why would that be so? I'm on MX 2004 Pro.
I can not execute a code from nested movie inside of my main movie when I declare import like that:[code]I get these errors: 1172: Definition com.greensock:easing could not be found.
in my program the user can create multible movie clips so i stored them in an array. now the problem is i need to find the ._x of all of them. so i have tried to create a for loop that will go through at a certain amount of times (pending on the number of created movie clips)
How does Flash use Math.sqrt to get the distance between 2 movieclips? In the example the only givens are 2 points along a triangle:
function getDistance(x1:Number,y1:Number,x2:Number,y2:Numbe r):Number { var dx:Number=x1-x2; var dy:Number=y1-y2; return Math.sqrt(dx*dx+dy*dy); }
dx is the difference between the x coordinates of 2 points/2 mc's dy is the difference between the y coordinates of the same 2 points the Math.sqrt is the Pythagorean theorum
If the Pythagorean theorum is a^2+b^2=c^2 for the sides of a triangle how do 2 points achieve the same result if the lengths of the sides aren't given?
Trying to do a scroll effect of some images I am loading in from an xml file. Problem is I need to limit the amount of scroll based on the width of the images - the number of images is controlled by the client and can vary. The problem is the actionscript does not seem to be able to detect the width of the combined images - heres the scroll code...
Is there anything else besides high cpu usage that would cause the framerate of a swf to lag?I'm working on a game that is set to 60fps so the animations are super smooth, and I am on good, fast computer so even with tons of animations going my cpu usage never goes above 14% usage, and only about 1% of the systems memory is used.