ActionScript 2.0 :: Control The Fps Of A Flash Movie By An Argument?
Sep 10, 2009how do i control the fps of a flash movie by an argument in a function..
eg. fx here...
Code:
TestFX = function(_fx)
{
}
how do i control the fps of a flash movie by an argument in a function..
eg. fx here...
Code:
TestFX = function(_fx)
{
}
Is it possible to control a Flash movie from JS when you have no control over the source? I have decompiled the movie to see its inner workings, but I know nothing about Flash, so I'm mostly in the dark. I found this resource, Interaction with JavaScript, but it's not working for me (probably because I don't know what message to send to the movie).
View 1 RepliesThe movie was designed in several flash files, each has been combined into a single movie clip and then all the movie clips have been moved into the master document.
Each movie clip is on a single slide.
They play through and when a clip reached the end I have used the actionscript root.gotoAndPlay(x) where x is the slide number of the next clip in the sequence as such my timeline looks like this[code]...
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
"on(press){
movieclip.increaseframerate(*2);
}"
i have a simple 2 frame movie on pc1, when it starts it goes to and stops at frame 1 , we need to be able to change to frame 2 when a user clicks a button on PC2 (can use php/VB etc). It's all on a closed lan so no security problems .
View 3 RepliesI have a need to control one flash movie with another. For example: I have a graphical interface created in Flash AS3 which is simulating the control of machines on the ocean floor. I have 3D animations that will animate what is happening on the ocean floor when a control element is activated on the graphical interface. At the moment I have this happening all in one Flash player window that has been made to look like two windows. One which is the interface...one that is made to look like a small screen showing what looks like video coming in from a camera on the ocean floor.
What I need to be able to do is have the Control Screen as one window, and the animations to appear in another. In this way we can set up two monitors, have the control screen on one (computer monitor), the animations playing on the other (a large plasma connected to the same computer). The animations need to play within a flash shell and the control screen would need to play in a separate shell. So in essence I need to be able to double click on an .exe....two screen will activate showing one screen with buttons that port animations into the second screen which I have positions to play on the larger screen.
I'm using jquery to drag popup control around the page ,every things work fine but when the page has flash movie the popup doesn't appear over flash also when set z-index to 100 .
is there any work around this issue???
$('.modalPopup').ready(function() {
$('.modalPopup').draggable({ zIndex: 2700 });
});
My task is to create a TV with flash graphics and show a short flash movie embedded on the screen. In the task there must be some buttons to switch on/off and pause and continue play after pause.
View 0 RepliesI'm creating a web site with multiples swf files, the navigation is controlled via drop down menu, i have resolved the script for the drop down menu main buttons and i need to control the timeline of the movies loaded with the drop down menu main sub buttons to navigate into specific frames this is what i got:
stop();var myrequest:URLRequest=newURLRequest("HomeSonny.swf");var myloader:Loader=new Loadermyloader.load(myrequest);stage.addChild(myloader);//main buttonsmenu.nosotros.addEventListener(MouseEvent.CLICK,
[code].....
I am currently working on flash 8 tool.I wanted to know how to add control to a movie clip ,as in, how to play animations of an SWF file if the mouse is clicked anywhere on the movie clip
View 1 RepliesI have a product by IMTOO.com that converts AVI files to SWF files. I used it, and I also specified that I wanted the final file to be small. The final file plays OK in flashplayer 10, but the control bar is all black. You don't see any controls on it such as 'play', 'pause' and 'maximize'.Now there is a menu you can get by right-clicking on the movie. That gives you 'play' and 'pause', but not maximize.My question is, why is this happening. Why can't I see controls on the control bar, and why can't I maximize at all, even with the right-click menu?
[Code]...
I'm trying to control the timeline in my Flash movie. How I have my movie set up is:
1. The main timeline with AS, sound, some text that appears at the end of the movie (credits), and a movie clip of an entire scene with background. Inside the movieclip background, I have several other movie clips of parts of a duck animating, the background scene changing color, and a mask that opens and closes the scene (at the begining it opens and at the end it closes), and an object that I just added ( a ball). I gave the ball an instance name of ball_mc and all I want to do is to make that ball stop from looping the animation when the ball's movieclip is done playing.
I've tried to put a stop(); at the end of the timeline in the ball's movieclip, but that did not work. I'm missing something, but I'm totally clueless when it comes to ActionScript. I've only been working with Flash for about 6 months and haven't really gotten into AS a whole lot.
I have been doing some searching around some and have come up with import flash.display.MovieClip; and this.stop(); or this.gotoAndStop(); and/or gotoAndPlay(); and ball_mc stop(); I've tried using these codes, but I'm still missing something. Sometimes, I get an error that comes up and says that my varable isn't defined. I have no idea how to define a varable?what i need to do to control the timeline to make my movieclip ball_mc stop playing at the end of the ball's movieclip on the timeline?
just wondering what the best way to control the speed of a movie is. I have a movie clip that is text scrolling from right to left and it needs to go slower so that itīs readable. So I know I can just change the fps and/or make the motion tween a lot longer, but there must be a better way to do this with ac....?
View 3 RepliesIs there a way to control the sound of an embedded flv in a flash movie? I haven't seen any tutorials on controlling the sound volume for an embedded video vs. netstream.
View 5 RepliesI am using an embedded flash movie in my web page. I would like to show some alerts on the page when the movie has played for x seconds, pause the movie while the user views and dismisses the alert and start playing the movie again after that (or the user can press the play button, not important). The important parts being - the app being able to find out if x secs worth of movie has played, pausing the movie then and showing an alert. Is this possible using a php/javascript code within the web page? Or will I have to do this within the flash movie itself?
View 1 RepliesI use attachMovie to call movie clips succesively on the stage. I use a forward button to slide them in progression but when I want to go back in the same order everything gets messed up. You can see the swf playing here, [URL]..I numbered each frame so you can see when clicking on back button it gets messed up.
// Each of the button functions here call the add_page() function and pass the Identifier of the page that they will display b_0.onRelease = function() {
[Code]...
I want to know that how can I control frame rate of my flash movie from xml file or from AS2 code.
View 2 RepliesI have been racking my brain trying to come up with the best way to make a flash movie that can interact with html links on a page. Basically there is a list of products (about 20) that are currently just html links. On the home page, the client has asked for a flash movie. When you roll over product items, the flash movie should jump to an animation relating to that product. These animations could all be built on the timeline of one flash movie, or could be multiple .swfs.
So far the best idea I can come up with is to have multiple swfs. I could potentially position each one absolutely so that they stack on top of each other. Then use CSS or javascript to change the stacking order when you rollover the links.
- I have used javascript to make disjointed image rollovers, is it possible to mouseover a link and then swap a swf file?
- if you mouseover the link, can javascript send a variable to flash, and then have actionscript detect that variable and send the movie to the appropriate keyframe?
- Is it possible to achieve the effect I am looking for if you click the links instead of rollover them?
I am using flash cs3, so i can use actionscript 2 or 3. What I am trying to avoid is creating the whole page in flash, as it would be inconsistent with the rest of the site.
I do not know how to insert an animation stops to give the presenter time and forward or backward in a linear and PowerPoint by pressing any key. Similar to typical PPT slideshows and will insert a small clip light and animation films. "My idea is that every time they click on any key (no button) on the film, forward motion up to a certain frame and so on until the end of the presentation "
View 1 RepliesI've set up my flash movie to play and stop at certian frames in the movie. I'd like to add a pause button to pause the movie anywhere in the timeline or animation and then resume from spot it's paused on. This is for a presentation.
View 9 RepliesHow do you get the information bar to stop blocking the active X control for a flash movie in IE.when I am in fire fox, it just starts the flash movie. Right in the HTML page. But with IE, the info bar at the top pops up, and blocks my flash movie.Then you have to click on it, and say that you want to activate the active X on the page. Is there anyway to stop this from happening. I remember, using IE, that not all flash is blocked, just the stuff that I make.
View 7 Repliesi have a button (name: closeinfo) inside a moviclip (name: infopanel), im using this code to put actions to that button:
[Code]....
I modified the loadBar from one of the popular preload scripts out there. What I am making is a progressbar, sorta like the ones you see in movie previews. But it doesn't seem to o work quite right. Here's what I have: interface.swf - dynamically loads the movie.swf's into itself and will control the movie (when I get around to it). it has the loadBar object
[Code]....
I have this particular script that runs so that the flash elements don't show up on top of my slide out navigation. This redraws that flash element with wmode as opaque and so it shows up under the navigation. Works perfectly with Chrome and FireFox but not with IE. In IE I get an Invalid Argument in jquery.min.js code 0 Line 103 char 460. Can anyone help me as to why? If I comment out the second line of code inside the function then there is no error, but then doesn't work in FireFox.[code]
View 1 RepliesI created and filled a multidimentional array, and passed it to a function, like this:
var array = new Array();
for (i=0; i<someLength; i++) {
array[i] = new Array();
[Code]....
I get an undefined value, like the array I just passed is just a value. What would be the correct way of achieving this?
I tried to modify the AS2 to AS3, but I messed it up
[Code].....
Is it possible to have one swf movie control the content of another swf movie?
View 3 RepliesWe can pass arguments to flash from javascript like this
fc.callFunction("_root","js_playSong",["Path=songs/song1.mp3 &Album=Jazz"])
where fc is a JSFCommunicator.
But how to pass argument like this
fc.callFunction("_root","js_playSong",["Path=songs/song1.mp3&ArtistPath=http://sample.php?artist_id=24&name=kamal"])
In the above argument the red colored ampersand should not be considered as separator between two variables.
This seemed simple enough, I do know Java, PHP and JavaScript, so it's simply a matter of not enough knowledge of the Flash/ActionScript 3.0 platform. After doing some research, I added a layer to the movie for the code (Flash CS5). I then right-click, select "Actions" and write this code.
[Code]....
As you can see, I want to add a default text on load to the form field referenced by "queryField", which should clear on focusing the field. When submitting the form the browser should redirect to an URL appending the value of queryField. As I said, I don't have enough knowledge of the platform to know what's wrong. Although it seems like maybe the references in the functions are not available due to the different scope. But a different example I saw ignored scope of form field references as well. Right now, the published movies does precisely nothing.
i am receiving this error "ArgumentError: Error #1063: Argument count mismatch on flash.net::Socket/connect(). Expected 2, got 0.".
I have created a .net tcp server that sends 1 byte of data while reading a file, now the flash client connects but i get this error and i don't receive any data at all.
[Code]...