ActionScript 1/2 :: Know The Fps And Change It?
Aug 8, 2009Is it possible to use AS2 code to know the fps and change it ( I don't think I need to mention it is AS2 )?
View 1 RepliesIs it possible to use AS2 code to know the fps and change it ( I don't think I need to mention it is AS2 )?
View 1 RepliesIs there any way to change a context menu that already has been personalized. I have an small application that I purchased to learn with and also to save some time. When I right click the context menu appears with the other person's information in it. I want to change that information if it is possible to do so. I tried
var my_menu:ContextMenu = new ContextMenu();
my_menu.hideBuiltInItems();
contextMenu = my_menu;
and added my info but the menu will not change from the person I got the app from. Is this considered unethical or illegal? I put so much work into this, I don't want the person to get credit for it.
Im really new to as3, and im just trying out some stuff, but i cant get a shape to refresh and change when i change its variable using a text field.If i change the text fields text before i test it, it works, but while its running it doesnt change it again.Btw, trying to change the stroke size.[code]i just want is so that when i change the strokeSize_txt text box, it will change the stroke for the shape.
View 2 Repliesi want to create a sine wave and its speed will change depends on change in freequency and wavelength . and stop the wave movement when we click stop button.[code]
View 0 Repliesi have my nave bar as my main swf then i load each page as an external swf in a mc container. each button should be marked when you navigate to the respective page. how would i load a current pages icon over the generic one when i navigate to that page then unload it when i navigate to another page?
View 5 RepliesQ: I am making a web-application for school work. see: [URL] the collors i got working now but when i press the second button to change the view off the shoe i want that the colors change to. Now the colors keep standing. The colors are pictures converted into MC and the works with attachmovie. But with what script can i change the collors so they will change and fit on the shoe? I hope this is a good explanation. :S else i will make a better explenation.
View 3 RepliesI am displaying a combo box in something of a WYSIWYG preview. I want the user to be able to click on the combo box and see the options inside, but I don't want them to be able to change the value. I tried using preventDefault() on the change event but it doesn't work. I don't want to disable it because I do want the user to be able to "look inside" the dropdown.
So I'm trying to block the change, but can't. My next resort is to change the selected index back to what it was before the change, Is there any way to do this within the scope of a ListEvent.CHANGE event listener?
Current Workaround is to basically re-assign the controls selected item the same way I am defining the selected item when I originally build it (a default selection). So a user sees their change then it immediately changes back to the default selection.
So basically I have a class which adds items and needs a drag and drop. I change the x value of the entire contianer class simply by this.x = something
By drag and drop all the items slide across the screen. When I trace the x value of the container class it has changed, but the x value of the items stayed the same (although their x value on the screen definitely changed).
how can i change the mc hue with as3 .just a simple example is fine just like pressed bottom A the mc will change Hue +=10
View 7 RepliesHow can i make it that i change 2 or more movie clips change color. At the moment i can only do one?
View 2 RepliesI've got a whole bunch of data being displayed in different Labels, now I'm adding an edit state. I'd like all the labels to "transform" into TextInputs. I was just wondering if it possible to uses states to change
View 1 RepliesI am creating an image gallery and the images change but change right back to the original image. I had it working yesterday but today it doesn't work.
[Code]...
I need to change all the elements in my movie that have the color X and change their color to color Y. Is it possible to have this in AS? like, if i press one button all the elements that have the color black (graphic, text, background, etc) change their color to yellow?
View 1 RepliesI have a BD return by PHP without problem : I have "all_good" and "no_good" If the variable change my condition don't change ..... why
[Code]....
I have a button with a text in it called Test1.
I want to change the text of the button in Test2 on RollOver over this button which instance name is btn1.
Initially the color of text of button is black. I also want on rollover to change it to white.
[Code]...
I'm trying to make a certain SWF file for a website that I am making. Basically he asked me that he wants one of his pictures to display every other day while his friend's picture displays the days that his picture isn't up. Anyone know how i would go about that? If possible just want to call a loader every other day.
View 12 RepliesI am very much new to the photography game and even newer to building a website, for which I have been staring at my computer for hours upon end. So in the end I decided to spend a few bucks and splash out on a template from [url]... but now I am struggling with the small thumbnails on the main page. I was wondering how can I change them so that I can either have thumbnails of some form of significance rather than some randomness. You will see what I mean when you get to the website. (Its still a work in progress if that!!)
I had given up on this website until I came across this forum. I had started on making sliding thumbnails with a gallery. Is there anyway of incorporating this on the website? I really like [url]...website and wondering if if there is a tutorial out there to make something similar since I have done the gallery and slide thumbnail..i just have no clue how to get the photo on the first page and the writing etc.
When loading multiple swf files, if they use different fps, they all run with the same fps as the main timeline. Is there a way to change this?
View 1 RepliesOn the bottom layer of the scene, I have the background art and logos.On a second layer, I want to put graphics associated with the button selection of the user.On a third layer I will have the buttons. I want to be able to switch the buttons to another language when a user clicks on a flag at the bottom of the art board, but no matter what language is showing, I want the buttons to call up the related material on the second layer. For instance, I will have one "Install Software" button that will switch to "Software Installieren" when clicking on the German flag and "Installation du logiciel" when French is selected.
View 1 RepliesI have flash cs4 and i want to change it to flash 8. Can i do that in the settings somewhere? Coz i can only code to flash 8. And, i know, many thinks that is better to learn flash cs4 instead but, for now, how do i change flash cs4 to flash 8?
View 3 Repliesi have a jpg in the library of another swf called on stage, jpg has export for AS with an identifier, in the main movie there's a timeline with frames. i need the jpeg to change hue when the frame is entered, i can put the action on the frame it self or elsewhere doesn't matter, but how can i make the jpg change hue?
View 6 RepliesI have a huge project that was built with Flash 8. There's a lot of AS2 cobbled together. When I built this thing in 2008 I just bearly knew what I was doing. The project was shelved and the Flash-cells in my brain gathered dust until now. Over the past 3 weeks I've been opening the FLAs in CS3. When I save them I get the choice to Save as CS3 or SaveAs Flash8. In my fog I've been going with the default of CS3.
Now I find aspects of the project are not playing on WinXP (and maybe other Windows versions) when burned on a CD. The broken aspects I've found so far are: many of the textfields aren't seeing their CSS and NONE of the FLVs will play. (I didn't use FLVPlayback components but an elaborate AS2 script from an AS2 tutorial.)
Have I toasted the AS2 in the project by saving the files in CS3's default?? Has CS3 changed the AS2 in some way that would effect things like FLVs and textfields and CSS?
I am trying to create a mc with drag function.My question is how to change another movieclip's x value when I drag my first mc.[code]...
View 3 RepliesI select the text and try to change the font but it just won't change. It changes on the Stage but doesn't change when I run the SWF. If I move the text it moves but the font just will not change.
Why is that and how do I fix this?
I have an flash movie with on the main timeline a movieclip "MC1". In this movieclip I have another movieclip "MC2". On the first frame of MC1 I have declared a variable x and I want to give this variable a new value when I click on MC2 but it doesn't work?!
Main timeline: 1 frame with MC1
MC1: 1 frame with MC2
Codes implemented on the timeline:
MC1:
x;
MC2:
onMouseDown = function() {
_root.x=1;
}
Example: [URL]
I have a flash CS4 file I'm trying to change a URL to one of the buttons.This isn't my original file by the way, so I'm having difficulty finding what's what.How do I change part of the below code so that it opens a different URL on a different domain name instead of an instance/movie clip from the SWF movie?Here's the code:
Code:
on (rollOver) {
if (_root.link<>4) {
this.gotoAndPlay("s1");[code]...........
If you look a file which i attached...You see grey and green box now if you put some number between 10 and 60,bouth of boxes will change and they are stick together,but I wanna that just green box change not grey, but they have to be stick together.
Code:
on (release) {
if ((_root.vpis<=60) && (_root.vpis>=10)) {
_root.oksid._height = _root.vpis;
[code]....
i am making an xml photo gallery. I can open the images into a new window by passing the following properties to some actionscript;
does anyone know how to change the bg of the pop-up. my movie bg is a colour but the pop bg is white. I have tried adding bgcolor = 'cc0000' but it doesn't seem to work.
on (release) {
address = "http://www.test.co.uk/test/images";
target_winName = "Gallery";
width = 496;
[Code].....
I have three images which I want to switch back and forth when the user presses a button. I want a new image(imageB) to fade in on top of the current image(imageA) when the user pushes a button and then be able to go back the other way if they click another button(image A fading in over image B). Is there code which can bring something to the front or send it to the back.
View 1 RepliesIs there an easy way to change the AS V1 to V2.
View 1 Replies