ActionScript 2.0 :: Text Resize Function - Apply It To Two Buttons?
Apr 6, 2008
ive got a text resize function and i want to apply it to two buttons so they both execute the function.the function is..
_root.largeTextButton1.onRelease = function() {
resizeText(hometext,14);
}
and
_root.largeTextButton2.onRelease = function() {
resizeText(hometext,14);
}
is there anyway i can do somthing like...
_root.largeTextButton1 & largeTextButton2 .onRelease = function() {
resizeText(hometext,14);
}
View 8 Replies
Similar Posts:
Nov 19, 2008
this is a REAL basic one for you: This is my script:
count = 0;
btn_01.onRelease = function() {
if (count<=20 && this._currentframe == 1) {
_root.count += 1;
this.gotoAndStop(2);
[Code]...
Instead of applying it to just one button I want to apply it to many on the stage, how do i add the names of the buttons to the function? I tried separating with commas but no luck
View 2 Replies
Jul 30, 2011
i am trying to apply setTextFormat function for my dynamic text filed in as 3, but its not taking. look at my code and suggest me where i am going wrong.
[Code]...
View 1 Replies
Sep 23, 2010
I'm currently doing a board game, in which you get asked questions and answer them for points. the questions get loaded from a .txt file. what I'm trying to do is that the questions appear in a random order everytime the game starts. I already have the shuffle function working, it shuffles 51 numbers (the number of questions in the game) between 51 variables, so each variable is assigned a different number and they don't repeat. My problem is that I can't figure out how to apply those numbers to the variable that get loaded from the text file. I could make many IF statements but that would be a lot of code, so I tried doing a function, but it didn't work. this is the function:
[Code]....
View 2 Replies
May 20, 2010
I noticed this full flash site and wonderring[URL].. How can I apply the resize method like the way they did?
Any examples might help me a lot. I have one main.swf and page.swf which loads within main.swf. My page.swf contains thumbnail images, and it's already position in middle of stage.
When handleResizeObjectOnStage is triggered, it's start to center again on stage. But it's not the same center applied of page.swf. I want to be able to do resize like the example I have posted.
[Code]...
View 1 Replies
Jun 1, 2010
I have a AS2 script to get information from a MySQL database. This information is a text from 0 to 300 chars. I want to display that text in this layout: I want to resize the black box you see on the picture in function of the amount of text imported.
The instance name of the box is: cargador.fondo (only want to resize height)
The instance name of the text is: cargador.texto
View 1 Replies
May 20, 2010
I noticed that website[URL]Does anyone know how they apply resized method on thumbnail pictures that fit for any browsers?
View 0 Replies
Apr 6, 2010
I have the fonts embedded (Yet it still prompts me saying missing fonts every time I open flash, but not the fonts that aren't resizing correctly)
I have a function that takes in a textfield, resizes the font to fit the text box, works fine on my local machine, does NOT work on other machines.
why this doesn't work? here is the function
function fontSizeChanger(dtb,myWidth)
{
dtb.embedFonts = true;
var myFormat:TextFormat = dtb.getTextFormat();
[Code].....
View 8 Replies
Feb 18, 2004
is there a way to refer to all movie clips on the stage or apply a function to all movie clips without applying the function to all manually?
View 3 Replies
Oct 6, 2007
I am writing this code on a bunch of buttons and was wondering if there was a way I could apply some sort of generic thing like move the button 2spaces away. ? Instead of defining exactly where they go on x and y.
[Code]...
View 2 Replies
Jul 14, 2009
I have a show I'm trying to create, I need to put the navigation buttons on different places on each frame due to content.
Code:
on (release) {
prevFrame();
}
or
Code:
on (release) {
nextFrame();
}
and
Code:
on (release){
gotoAndplay("Scene1")}
I can get the symbols that I'm using as buttons to work in the first and second frame, but they will not work after that. Each frame has a
Code:
stop ();
Action applied to it.
I have tried: copy and pasting the same symbol into multiple frames, dragging new symbols into multiple frames, creating folders for each frame and dragging new symbols into those folders then onto a frame, and I'm still not having luck. This presentation is set up to run in Flash 9 with Bottom up loading order and ASP2
View 1 Replies
Oct 15, 2011
I want to know how can I get the videos from IP Cam and store on the Flash Media Server then clients can see the videos from the browser.
what kind of software and technique I have to use ?
View 4 Replies
Sep 18, 2009
I have this function that I want to apply to 10 different MovieClips that are on the stage by using an array. I wrote the array, I just need to know how I can apply the array to the function. [code]...
View 3 Replies
Oct 22, 2011
How do you apply a font type to a radio button. I thought I was doing it correctly, but it keeps showing as Arial.[code]...
View 1 Replies
Feb 14, 2011
I am creating a 50 state map. You can see the swf right here - URL... am trying to quickly make it so each state fades to 50% opacity on rollover. But I haven't been able to make it work.[code]
View 7 Replies
Apr 3, 2009
I have five buttons on the stage Each of them is entirely different looking button icons..What i need is, I want to apply the same effect to different looking buttons.Swaping does not give me the desired effect.. How can this be done programatically..?
View 2 Replies
Nov 3, 2010
I'm trying to set up some default callbacks for listeners dynamically, and I'm not having much success at the moment.
Array:
var URLLoader_SharedCallbacks:Array = new Array();
URLLoader_SharedCallbacks.push(new Array (HTTPStatusEvent, HTTPStatusEvent.HTTP_STATUS, "URLLoader_HTTPStatus"));
URLLoader_SharedCallbacks.push(new Array (IOErrorEvent, IOErrorEvent.IO_ERROR, "URLLoader_IOError"));
URLLoader_SharedCallbacks.push(new Array (Event, Event.OPEN, "URLLoader_Open"));[code]....
View 1 Replies
Aug 1, 2009
By typeing the text in the input box while staying on frame1, DOSEN'T show on the dymanic_text_box2 on frame 5?? How to make the dymanic_text_2 apply it's text when the text is been typed staying on frame 1?
View 3 Replies
May 10, 2011
I have a text field where user can type and few controls to customize the text properties like: font, size, color etc.If a user has typed say "Hello World", the caretindex is next to d of World. I want that if now the user makes some changes to the cusomization properties like: changes font size, then the text appearing next is of the font size set and not that of d. How can I do that?
View 1 Replies
Sep 29, 2009
completing the code to get a return value from JavaScript to flash, but all the code was in a frame. My issue is I need to apply this code to multiple buttons, and then have them navigate to the appropriate frame. I thought I could put some of the code on the buttons themselves, or possibly I could call each button and keep all the code in frame one.....the external interface call function and the button functions....btn1, btn2; etc......I am not to verse in code and need to know what and how the best way to do this would be.
[Code].....
View 16 Replies
Sep 23, 2004
Does anybody know how to apply this text effect [URL](including the blinking underscore) to a text field that loads from an external .txt file.
View 6 Replies
Jan 26, 2010
I just can't seem to figure out how to use them and what they're used for.
View 2 Replies
Jan 29, 2010
hi I have created an actionscript function which stops an animation on a specific frame which works fine. I have then loaded in a php file with a variable which will contain the number for the frame i want the animation to stop on. This has loaded in fine and i have loaded it in a function. what i cant seem to do is to get the variable into the function which tells the animation to stop playing.[code]
View 2 Replies
Oct 11, 2011
I would like to know if it is possible to apply function as a mask for other object.
View 9 Replies
Sep 27, 2004
how to apply a print function to a button, i have search through the script directory and this was all I could come up with?
on (press) {
printAsBitmapNum(_root.order, "bmovie");
}
order is the name of the movie clip. what i need is to be able to print the screen from the position where the button is situated??
This script does not print: i have played around with the settings in normal mode but there is no response from my printer.
View 3 Replies
Jan 3, 2012
I've an empty array and some global variables, and I have two movie clips in my library: one is a trigger, second is the movie clip that is placed on the stage when the trigger is activated (a testdummy, if you want).
var dummies:Array = [];
var i:int = 300;
var j:int = 500;
var k:int = 0;
[Code].....
...I get an obvious error : Scene 1, Layer 'actions', Frame 1, Line 66 1120: Access of undefined property dummy. Because dummies are created within a function. I don't have any trouble addressing items in the 'dummies' array though.
Though dummies are crated by the same pattern, data stored in them is the whole point of creating the application.
how can I apply a function to each of those dummies, which is executed on click and affects only one dummy?
View 2 Replies
Mar 2, 2012
I have a swf one one server that is pulling content from an Amazon S3 server. I have set up, for now, a generic cross-domain policy to allow all domains access:[code]These seem to be playing nicely (for the most part) as my swf is loading json, xml, etc. files from the S3 server just fine now. What it's not doing right is loading swfs from the S3 server, when it tries to do that it throws this exception:[code]I assume this is because remote swfs could contain malicious executable code. Do I actually need to set the allowDomain to something or is there some other 'more correct' way of allowing my swf to load up other remote swfs?
View 1 Replies
Nov 19, 2009
I have a couple of objects on the stage and want the user to be able to select one and then use a common set of buttons (with functions attached) to change the selected object's color, rotation, size, etc.
I've got the functions worked out, and can apply them easily as along as I hardcode the object instance names in the functions. However, I can't figure out how to allow the user to select a particular object and then pass the instance name of the selected object to an appropriate function.
View 3 Replies
May 25, 2010
i have a function which when the space bar is pressed it goes to a different frame. However the function can still be performed on different frames, how can i make the code only apply to that frame?
ActionScript Code:
function spacebarGoto(event:Event){
if(pressSpacebar){
gotoAndStop("start");
}
}
View 4 Replies
Apr 30, 2006
I have an fla that uses the following AS:
PHP Code:
envisionblur._alpha = 100;
envisionblur.onRollOut = function(){[code]...........
I have four MC's that I want to fade onRollOver and onRollOut. As you can see, writing code for each MC is a rather convoluted way to achieve the effect.how to write the code as a function and apply it to all of the clips?
View 3 Replies