Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Easy Change Text On Button



Hello everybody............first i like to say how happy i am for the existence of forums (lol)
i tried to search but it came up with a error so don't attack me if it's a stupid question.
here goes,
i've made a button that spins..........after many hours i figured out how to make it spin with mouse over (that was the easy part) but also made it spin one time when moving away from the button.
Now i want to use the same button over and over again but i want different texts on them.
(flash 5) so far i'm drafting everything))
is there a quick way of changing text on the button with out having to make 10 different buttons (just because the text is different.)
i'd like the text to spin with the button .
sorry about the novel (tried to explain the best i could)
thanx



FlashKit > Flash Help > Flash Newbies
Posted on: 04-25-2005, 04:20 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

EASY Q: Change Text Tween Speed
Greeting, I am moderately new to Flash. I would like to have text that flys in from the left, and comes at a pretty fast clip, until it gets closer to its final destination on the stage, in which it will slow down until it stops.

This is a fairly common process in a lot of good flash movies, and I assume it has something to do with the way the text is tweened.

So many thanks, please, simple language, whereas I'm fairly novice,
Stephen
Tallahassee, FL

Button Instances With Dynamic Text: This Should Be Easy For All You Pros Out There
OK... so I've searched the forum and couldn't really find an answer to my problem:

the scenario:
Im trying to create a keypad that has about 50 buttons(keys), while trying to avoid creating 50 individual button symbols.

where i'm at:I've created a button symbol that has a dynamic text field inside named [char_txt]
I've laid out 50 instances of the button each named appropriately for each key
I have the following code which sets the [char_txt]'s text value for a few of the buttons:

ActionScript Code:
function initSearchUI()
{
        b_i.char_txt.text = "i";
        b_u.char_txt.text = "u";
        b_e.char_txt.text = "e";
        b_o.char_txt.text = "o";
}

This code doesn't throw any errors, but it doesn't change the text on the buttons.....


any ideas?

cheers!

Change The Text Within A Text Field Embedded In A Button
Can you change the text within a field embedded in a button?
I am trying to create an dymamic A-Z index.
A B C D E........,
jumping to a frame label on the timeline.
I am trying to re-use only one instance, a button containing a dymamic text field to change

the buttons label when the movie loads.
So "button A" reads "A" and "button B" reads "B" and so on.
I cant seem to access the text field within the button using dot syntax.

Is ther a better way to do this?

AS2 - Change Text Button Name
Hi,

I have created some simple text buttons (with the text as static text type). Now I want to make the text of the buttons dynamic. How do I do it?

I have tried to change the text to dynamic text type, but then the button stops working. In addition, the following code doesn't change the text either.

dtPlayAgain.text = "Play 1";

This looks like a simple task, but I am having a lot of trouble making it work. What do I do wrong? Any help is much appreciated.

T

Help Button Rollover Text Change
I know this is probably an easily solved problem, but I just need some assistance. I was curious how to have a variable change value when the mouse moved over a button. I've tried attaching an action to the movie clip in the button to say onRollOver variable = "value" but it doesn't seem to be doing anything. Any chance of anyone helping me out on this one?

Dynamically Change Button Text
I have a situation where a user clicks a thumbnail and a larger image appears. The larger image may also have one or more additional views.

I plan on using buttons across that would say front, side and back. However, I would like to change the button names dynamically so if there was no side image, the buttons would only say front and back without a gap between them.

Is there a way to dynamically change this? One thought I had was to put my text separate of the button. Any ideas? Thanks.

Change Text When Clicking On A Button
Hi!
I really cannot get this easy thing to work.
I have a dynamic field with name "text1" and 9 buttons.
When trying to click on one of these buttons the text1 should have the value of the button but I canot figure this out.

the fla and swf is attached.


/thanx for helping, SanTiago_99

Cant Change Dynamic Text Value In A Button
I have a button with a instance name MYBUTTON1 and inside that button is a DynamicTextField with an instance name of BUTTNAME

in my actionscript i have

_root.MYBUTTON1.BUTTNAME.text = "Links";

But it will not set the name. I cant figure out why, I'm using Flash8 (actionscript2.0)

I'm not sure why it is not working

Noob Just Trying To Get A Button To Change Some Text
Hi,

I'm just struggling to find out how to get a button to change a bit of text on the screen.

Pls help!

Button Symbol - Change Text
Hi,

Is it possible to change the text on a Button Symbol from within ActionScript? The only way I can think of (and have tried) is going into each frame within the button (Up, Down, etc) and giving each piece of text an instance name (ButtonUpText, ButtonDownText, etc) - and then changing it like any other property, eg: MovieClip.ButtonInstance.UpText.text = "new text".

But nothing seems to happen. Can this even be done, and if so, how!?

Change Text On Library Button
I imported a button into my project's library and can add as many as I want using Actionscript, but I cannot figure out how to change the text that appears on it.

E.G.

var myButton:ButtonGreen = new ButtonGreen();
myButton.name="digFactBtn";
myButton.label="Facts";
myButton.textField="Facts";
myButton.x = 724;
myButton.y = 22;
myButton.width=150;
myButton.height=45;
addChild(myButton);

Editing the library object to make the text field dynamic did nothing except give me a white filled box with no text. What am I doing wrong here?

Button Symbol And Text Change.
I have a button symbol with an Instance name of myButton that has a text field in it. The text field is dynamic and an Instance name of myText.

I'm trying to change the text from a class I've created like so...

myButton.myText.text = "Changed Text";

I'm getting this...

1119: Access of possibly undefined property myText through a reference with static type flash.display:SimpleButton.

Change Text On Button With Outside Source
hi everybody,

i'd like to stick my "dynamic"text in a button/movie so i can change the name on the button by using a notepad.
i salvaged a way of the net how to make text look at a note pad by using the action loadVariablesNum ("https://mywebsiteblabla/text.txt", 0);
stop ();

but as soon as i stick my dynamic text in a movie it will not load it's content and show the text.
why is this and more importantly..........how do i get my text to show up.

i tried sticking a text tween on top of my button in the main time line so it can spin along with my button.......but.......the text interferes with the mouse cursor.
i change the pointing finger in to a text cursor.........so my button won't spin.
so please anyone help me out here even if to tell me it's not possible, i allready spend to much time on this button.
could have stuck the text in by now without the change option, but i'd like to learn something new)
any help will be welcome,
Thanx

Change Text On Button With Outside Source
hi everybody,

i'd like to stick my "dynamic"text in a button/movie so i can change the name on the button by using a notepad.
i salvaged a way of the net how to make text look at a note pad by using the action loadVariablesNum ("https://mywebsiteblabla/text.txt", 0);
stop ();

but as soon as i stick my dynamic text in a movie it will not load it's content and show the text.
why is this and more importantly..........how do i get my text to show up.

i tried sticking a text tween on top of my button in the main time line so it can spin along with my button.......but.......the text interferes with the mouse cursor.
i change the pointing finger in to a text cursor.........so my button won't spin.
so please anyone help me out here even if to tell me it's not possible, i allready spend to much time on this button.
could have stuck the text in by now without the change option, but i'd like to learn something new)
any help will be welcome,
Thanx

Change Text By Clicking A Button?
I'm not very advanced in actionscript, so I can't figure out how to go about doing this...

I'm making a widget in which the user goes through a sequence of questions. In order to advance to the next question, the user must click on a button. The questions themselves cannot be stored externally--they need to be in the actionscript.

A programmer told me that I should use an array for this, but he doesn't know AS3 so of course he can't teach me exactly what to do. Does that sound about right? I'm having a hard time remembering arrays from C#, and I didn't understand what came up in a search for actionscript arrays.

Right now what I have is a dynamic text box with an instance name of "content2", and a button symbol with an instance name of "ok". (Within my text, I need to pull information from an xml file.) In my actionscript, (besides the xml loader stuff,) I have:

Code:

content2.text = ("Yoohoo! " + mockXML.@firstname + "! Are you there?");

This appears on the stage as "Yoohoo! Mary! Are you there?" This is the part that should change with each click. For the sake of an example, let's say when Mary sees this message and clicks OK, "It's time to feed the dog" needs to appear in place of the previous text. Then she needs to click OK again to get to the next part, until the questions are over.

I have an event listener currently commented out (don't ask, it's been a long day!):

Code:

ok.addEventListener(MouseEvent.CLICK, okHandler);

I know that I need to create a function for the okHandler and that it will somehow be responsible for changing the text. I have no idea where to begin, though. I can plan it out in bad pseudocode, but I'm clueless about how to execute it in real actionscript! And none of my searches have helped me so far. Can anyone help?

Change Text Color Of Button
Thanks for taking the time to read my question.

I have several buttons that I have made. They all have Over and Down movies. The font color on them now is Black, which worked well with my original background, but things change, and now I'd prefer white.

Is there a way of changing the color without having to delete all the buttons and start again?

Thanks,

Brad

Dynamic Change Text In Button
Hello,

I'm new to flash.
I'm trying to dynamicaly change the label of a button.
Can anyone tell me how I can do this within actionscript?
Thx

How Do I Make Text Change When Someone Clicks On A Button?
Ok, I'm working on my first flash website and it's coming along pretty well. The only thing I can't figure out is how to make it so that when I click on a button it makes the right text pop up. Currently it just plays through all the text I have, and they all pop up...almost like a slideshow, but I want people to actually have to click on the buttons to make the text show up...they shouldn't see the messages without clicking on the buttons. Is there a way to do that?

Press Button Change Text Colour
How do I change the text colour of a dynamic text when i press a button?

on(release){
???????
}

How I Change Lable Text On Button Instance?
in the fla file, i want to change the text on a self created button instance, which means that i could use the same button many times on the same frame, with differant lables for differant actions i want to enable through button clicking. i did not grasp the trick how to do it. the library buttons have this trick. i only managed to duplicate the symball for each lable change, and it seems to me very awkward. can you show me the way?

How Can I Change Text Field In A BUTTON Using Actionscript ?
I can easily change the text field in a movieClip using actionscript, but I can't change if it is included in a button.

ReferenceError: Error #1069: Property text1 not found on flash.display.SimpleButton and there is no default value.

myInterface.myMenu.myButtonu1.text1.text="blabla";

thanks

Button Alpha Change On Text Event
Hi:
im a newbie so bare with me a little please.
im not that new to Flash but i am used to make simple videos or games even web pages but this time i've got a harder task on my hands

im on flash CS3 using AS2
im working on a project that at the end has a little test
that text is sent to the manager of the person doing it... i had no trouble with that.
but in order to be able to go to the next screen the user MUST enter at least some text on the input text... the easiest way i thought of was to change the "next" button alpha to "0" and change it to 100 when the user writes something...

but i have no idea how to do this... i saw there are commands like onChange etc. but i have no idea how to use them

basicaly i need to change the buttons alpha from "0" to "100" when a user writes something on the text field called "TEXT1" the button is called "Nextbut"
Thanks in advance for your help i really appreciate it!

Using A Button To Change Dynamic Text Display
I have a column of twelve dynamic text boxes which display numbers stored in an array in numerical order. The array contains more than twelve numbers. I want to use buttons to refresh the information in the boxes effectively creating a scrolling effect, so that the remaining invisible contents of the array can be revealed as required. In the code below Stats1 etc. refer to the dynamic text. The array is called Stats4display. This shows the information fine.

Stat1=Stats4display[x];
Stat2=Stats4display[(x+1)];
Stat3=Stats4display[(x+2)];
Stat4=Stats4display[(x+3)];
Stat5=Stats4display[(x+4)];
Stat6=Stats4display[(x+5)];
Stat7=Stats4display[(x+6)];
Stat8=Stats4display[(x+7)];
Stat9=Stats4display[(x+8)];
Stat10=Stats4display[(x+9)];
Stat11=Stats4display[(x+10)];
Stat12=Stats4display[(x+11)];
Stat13=Stats4display[(x+12)];

The button (in the same timeline on a different layer) has this code:
on (release) {
x++;
}

I had hoped that by incrementing the value of x I could update all the dynamic text boxes with the next value along in the array. Why doesn't this work? Some kind of scoping problem? Or is there an easier way to do this?

Any help would be much appreciated.

Change Text When CLicking A Button Or Link
Hello Everyone,

Am a bit of a Noob so you'll have to be gentle with me.

I have designed a basic flash site and have placed a dynamic text box within the site and i have manged to get it all scrolling and working just fine.

I have a series of links at the top of the page which when clicked i would like the text to change to reflect what part of the site you are in.

How do i go about this ??

Thanks in advance

Jon

Using A Button To Change Font In A Text Field
Hi,
I posted before and I am new to actionscript. I am trying to use a button to change the font in a separate text field. Can you show me the exact script that I would need to place on a button that, when the user clicks, the font in a dynamic text box (with instance name: SignText) will change to say, Helvetica? Thank you very very much!

Also what is the best way to embed fonts so that all users will be able to see text as I want. I am using an input text field to generate text on a sign, so I want to embed a few fonts so that all users will see it the same. Thanks again!

Change A Dynamic Text Box On Movie Or Button Rollover?
Another new task, This learning is infinate!

I would like to put a dynamic text box in my mc which will display different text depending on which button or mc you roll the mouse over.
I want to try and do this myself as much as possible (so i learn more)
I understand paths now but would like, pleeeease, someone to tell me which action/method to use?
I have named a dynamic text box 'content_text' and given it variable content.
I have buttons which are inside movieclips (they form part of a scrolling navigation)
My thoughts were to use onRollover action and
do i use setProperty?

also does onRollover have to be used on a button or can you use it on an mc?

HELP Change Text On Button Instance, And Flip It Horisotally.
Hi there
I can now change text on instances of dynamic text box that was transformed into a movie clip, using frame action script saying: myinstance.mytextbox.text = "desiered text" ;
I was tought that by XFM, thanks so much!

But I need to do the trick on a self made button instance, and it doesn't work at all. Can anybody help me?

Another problem is that I NEED THE TEXT TO BE FLIPED HORISONTALLY and that doesn't work even on the movie clip! The flip works fine on a simple (static) text box, but on the dynamic text movie clip it doesn't load the text at all, not when I tried to flip the original DTbox on the original clip, and not by flipping the MC instance on the stage. Can you hlp me?

Thanks
NK

Button Text To Change Colour While Sound Streams
Hi guys/gals, I am an extreme newbie to ActionScript, and was hoping I could catch some help. I am streaming sound files for a customer with a simple button I created using text, using this stock behaviour code below. I would like the text in the button to change colour while the audio streams and return to its previous state when the audio is finished streaming. Is this possible? And if so, is there anyone who could offer up some sample code to to get me started?

Thanks very much for anyone's time who reads this or responds.

Cheers

on (release) {

//Load Streaming mp3 behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_waltz',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.waltz = new Sound(this._parent.BS_waltz);
} else {
this.createEmptyMovieClip('_waltz_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.waltz = new Sound(this.BS_waltz);
}
_global.Behaviors.Sound.waltz.loadSound("

Allowing Users To Change Menu Button Text Size...
I've been working for days, trying to come up with some solution to this. It's not a necessary feature for my upcoming website, but it would be nice because of the older age folks who might have trouble seeing some of the text. I've tried this:

on (press) {
myTextFormat = new TextFormat();
myTextFormat.size = 14;
scroller.setTextFormat(myTextFormat);
}

No luck with it, as it seems to have no effect on dynamic textfields within buttons. I've also tried:

on (press) {
dropdownmov.var4 = "<font face="Arial" size="12"> var4 </font>";
}


This changes the button text size, but unfortunately it takes the var4 variable and just uses its name instead of using the text that the variable actually holds. I don't know, it'd be cool if someone had some new ideas or whatever because I'm at the end of my rope on this one.

Dynamic Text Change On Multiple Instances Of A Invisible Button's OverState
Hi-

I have seven movieclip instances of a spinning globe that needs to be used as a menu icon for seven items. I need each globe to fade out when the user hovers over it, while having text dynamically lie above the (faded) globe, displaying the respective name for that item.

My solution was to create an invisible button symbol that lies above the spinning globe. When the user Mouses over the invisible button, the alpha of the globe below it decreases.

I was trying to put a dynamic text field in the Over state keyframe of the invisible button, which would change for each instance of the invisible button.

Unfortunately, the text portion of this script isn't working. Any suggestions?



Code:
/* Item 1 */

//Change globe1's opacity
function over1(evt:Event):void {
globe1.alpha = 0.2;
}

//This doesnt work. I have dynamicTextBox in the Over state of the button symbol.
function textChange1(evt:Event):void {
invisibleButtonInstance1.dynamicTextBox.text="This is globe 1";
}

//events to happen during hover
invisibleButtonInstance1.addEventListener(MouseEvent.MOUSE_OVER, over1, textChange1);

//Change globe1's opacity back to 100%
function out1(evt:Event):void {
globe1.alpha = 1;
}

//events to happen during out
invisibleButtonInstance1.addEventListener(MouseEvent.MOUSE_OUT, out1);


/* Item 2 */

//Change globe2's opacity
function over2(evt:Event):void {
globe2.alpha = 0.2;
}

//This doesnt work. I have dynamicTextBox in the Over state of the button symbol.
function textChange2(evt:Event):void {
invisibleButtonInstance2.dynamicTextBox.text="This is globe 2";
}

//events to happen during hover
invisibleButtonInstance2.addEventListener(MouseEvent.MOUSE_OVER, over2, textChange2);

//Change globe2's opacity back to 100%
function out2(evt:Event):void {
globe2.alpha = 1;
}

//events to happen during out
invisibleButtonInstance2.addEventListener(MouseEvent.MOUSE_OUT, out2);
For what it's worth, I'm trying to avoid creating 7 invisible buttons. I thought it would be better to create one invisible button that has the text on its Over state dynamically change depending on which globe is selected (and transparent)

Thanks!

-g

Really Easy. How Do I Change The As To Work
So I have a SWF that by itself works great. It's a scroll box. but when I load it into another SWF the scroll bar dosn't work anymore. This is the code for the scroll bar. The Scroll bar swf is loading into a movieclip (in a different SWF) called "rightpanel". I think that I just need to put something before the code where it says textbox. I have attached the swf. Any help would be greatly apprectiated. Thanks,
Karl D
<as>
ms = textbox.Message.maxscroll;
if (ms>1) {
if (dragpress<1) {
scale = 138/ms;
textbox.scrollbar.scrollbox._yscale = 200/textbox.Message.maxscroll;
textbox.scrollbar.scrollbox._y = -68+((textbox.Message.scroll-1)*scale);
if (textbox.scrollbar._visible == false) {
textbox.scrollbar._visible = true;
}
} else if (textbox.scrollbar.scrollbox._y<-66 and move<0) {
move = 0;
textbox.scrollbar.scrollbox._y = -68;
} else if (textbox.scrollbar.scrollbox._y+textbox.scrollbar. scrollbox._height>69 and move>0) {
move = 0;
} else {
textbox.scrollbar.scrollbox._y = textbox.scrollbar.scrollbox._y+(move*scale);
textbox.Message.scroll = ((textbox.scrollbar.scrollbox._y+68)/scale)+1.2;
}
} else {
if (textbox.scrollbar._visible == true) {
textbox.scrollbar._visible = false;
}
}
</as>

Easy Way To Change Images In A Mc?
Hi gang,

I have this mc containing an animation of a symbol.

That symbol is an image made from an imported bitmap.

My client doesn't like the image and I was wondering if there was a way to change the image without having to redo all the amin.

I tried the swap button in the properties dialog box, but I got very strange behavior from flash...

I'm sure there must be a way, any idea how?

Thanks a bunch

p.

Change A String? Easy One I Think
hi there!

thanks in advance for checking this post..
i think this is a easy one..

i'm trying to edit the last character of a string...but have no idea on how to do it...


any ideas?

Need Some Easy Help With Scene Change
Long time since i ever used flash. Need some help with a mini script i got. It basically is like that:
Button1 set textfield "where" to 1
and then a keyframe has goto and play variable jump+"where"

The variable jump is frame label. and i have the frame labels on different scenes.

Id like someone to take my really small fla file and fix it alittle.
It basically works first time, then if im im scene2 and try to go to another scene/label then it jumps wrong.

Let me know your email if I can mail it to ya.
Thank you
Tomas

Easy Way To Change The Theme....
Hi...

I'm working on a site for a friend... I'd like to make it very easy to change the theme... I'm thinking spring, summer, fall, winter, christmas themes and so on....

Actually all I need to do it to change 7 png files and a stylesheet...

But how do I do this the easy way??

I'm thinking loading the png files from a folder so all I need to do is to replace the files in the folder and then make a stylesheet to the text.

But how do I load the images from an external folder? And can I use a stylesheet like in html???

Best regards,

Kristoffer Jensen

Hey, Guys, Here's An Easy Question For A Change.
Hey - I've been poking at this one for a while, and I'd like to see if anyone has any suggestions.

I created a simple flash intro for a client of the company I work for, and when they saw it, the client had tons of ideas for me to add to it. In the end, the flash intro was 70k, and they couldn't be happier.

I thought I could just toss on a pre-loader and be done with it, but this site gets several million hits a month, and this would be very taxing on the servers to bring up thousands of times a day. That would add up in bandwidth VERY quickly.

So, I planned on using the LoadMovie function and splitting up the flash animation into several parts, that way, it doesn't take the 70k all in one big chunk, but instead, just takes it a little at a time. Problem solved, right?

Not quite (I'll close with this, I swear). I ran it on our T-1 here at work, and it loaded and ran marvelously. I ran it on a 56k, and it just cuts out once it goes to the second movie. It's an obvious loading feature. I have a preloader still on the movie, but the preloader won't recognise the movies loaded with the LoadMovie command. It will just look at the space on the timeline as blank space.

So - this is my dilema. How do you preload movies loaded with the LoadMovie command? Should I load the movie into a movieclip? It all comes down to being able to load this movie, in chunks, relatively quickly.

Any help would be appreciated!

- James

Need To Make It Easy To Change Links
I have to make some generic buttons for a site and i need to make it easy for the client to change the links (get URL) without giving away the FLAs. i was thinking of supplying a text file where they can change the LINK1=" ", LINK2=" " values and have it update the button links. My "graphic" skills are great but my "variable" and "property" skills are less than desirable

i searched the forums but only found a thread that was the wrong "direction", (they had the FLA and wanted to make the change...)

any help??

TIA
scott

How To Change Stacking Of Buttons (or How To Change Play To Pause Button)?
My problem is I want to have one button for play and pause music playing in Flash.

Music starts automaticaly, so Pause button is visible. When user presses Pause button, I want to show him Play button on the top of Pause button.

Shortly: Music is playing = visible Pause button
Music is paused = visible Play button

Is anywhere tutorial or explanation.

THX very much for hints

Jan

Easy Change Of Size/color/font In External Variables?
Er, nevermind. I figured out a better way to do it, so Mods can go ahead and lock/delete this thread if they want. Sorry 'bout that.

Button Change Color On Select, Then Change Back
I have 3 buttons, named but,but2,but3. What I want is if you click a button it changes color to show what page your on. But when you click a different button now that one is highlighted and the original one goes back to the original color. Here's the code.
but3.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("banner3.swf", "container");
container._x = 0;
container._y = 0 ;

I figure I have to add some kind of if statement?
}

Probably An Easy Question (Making A MC Stay At Current Positon After Scene Change)
Dear Flashkit,

I'm in a slight bind.

I have a control panel for an RPG im making that controls the sound.. which can fade out or pan left to right.. it works great.

so if i set my volume for the music and sound effects to 75% each..
the volume adjusts.. and if a fadeout occurs itll fade FROM 75.. and unload the music and set itself back to 75%.

my main problem now.. when they hit new game.. and the scene jumps to the new game menu.. the movieclip for my control panel resets back to frame 1 which is 50% Music and 50% Sound Effects.

hense making the sound adjustment pointless.


=================
ON TO THE POINT AND ACTUAL QUESTION
=================

how do i make a movie clip STAY at its current frame instead of jumping back to frame 1 when jumping scenes?

=================


thanks ahead of time you all rock

take care
-Clint Remley

(I Guess) An Easy Button Question - How To Make A Function For A Button
Hi!

I have a little button problem. I have plenty of buttons in my presentation which should take the movie to different frame labels. But some of the buttons shouldn't be active from the beginning and they should have a different ("not active") color. Instead of setting enable = false; and color changes for every button, I tried to make a function and then call it. I put it in the first frame. It looks like this:
code:
/*** TRYING TO CALL THE FUNCTION ***/
_root.flowerButton.notActive(this._name);

/*** FUNCTION ***/
function notActive(nameofbutton) {
nameofbutton.enabled = false;
//color change...
}

I don't know if this script is alright or not, it simply doesn't work. I tried many combinations and put trace to the function, but nothing. It looks like I can't call a function for a button like this. Can anybody help me how to make it work? And I would really appreciate an explanation why this code doesn't work.
Thank you!

Poco

I Want To Change Button Into MC --> Actions Change Too?
Hi there,

Maybe this is very easy but I am just this NOOB!

OK, problem: I have a button that loads a movie into a contentclip.

This action in the script on a frame on the timeline not the button itself:

but1.onRelease = function() {
_root.box.gotoAndPlay(2);
_root.targetx = _root.but1._x;
window._alpha = 100;
window.widthNew = 390;
window.heightNew = 200;
window.xposNew = 14;
window.yposNew = 120;
loadMovie("aboutus.swf", "window.screen");
};

My desire is the make a more 'moving and actionlike' button (fade in and out and so on). So the button 'area' will be in a MC. How to call that action so the movie gets loaded!?

The whole fla I am using is a resize window tutorial.

Eric

Is It Possible To Change A Text Field From Dynamic Text To Static Text At Runtime?
The reason is because the dynamic text appears to be taking up about 90 % of the CPU usuage and I dont know any other way to reduce the CPU usage.

The text areas pull in lots of data from text files which slows down the program.

Any ideas?

Editing Text File For Dynamic Text - Easy Way?
I have a site I'm making for a client. There is a DYNAMIC text box that displays a current list of customers. This info is in a customers.txt file.

Sample content of this file:
mycustomers=Alabama Power Company<br>Andrew Corporation<br>Black and Veatch Engineers, Inc.<br>

Is there an EASY way for them to modify this content on their own? Any suggestions? They aren't very computer or HTML savvy.

Thanks!

Movie Clip Button Doesn't Let Button Change
if i have a btn inside a mc, and i want the btn to change colors in rollover but the movie clip on top does not let it. what can i do?


thanks gneius people

2: How To Add Button Name To GetURL & Change Color Of Button From Data
I want to change the color of a button on a page by reading in a database entry, and also have the button call a particular URL using it's instance name as part of the URL

my starting file is at: http://mbliving.com/WP/testLotPrice.html

I'm starting to create an interactive map for a client which I want to accomplish several things. The client has a cold fusion site which allows him to enter lot numbers for sale, the price, and whether that lot has sold or not. currently the community has 341 lots - about 30 are available.
I'm planning on making each lot a button, with an instance name consisting of the lot number itself. I have a cfm page created which gives me the following output from the database:

&LotNumber=#getinfo.lotnumber#&Price=#thecost#&TotalRecords=#count.recordcount#&soldyesno=#getinfo.soldyesno#

I have the folling code attached to each button:
on (release)
{
loadVariables ("http://mbliving.com/WP/flash.cfm?lotnumber=248", this);
}

where "248" is replaced by the actual lot number. Can I change that dynamically based on the instance name? Also, if the "getinfo.soldyesno" returns a "Yes," I want to be able to change the color of the button to red to indicate visually that it's sold.

Can anybody help?
TIA

For reference, the following script on my main timeline:

onClipEvent(load)
{
CurrentRecord = 0;
loadVariables ("http://mbliving.com/WP/flash.cfm?lotnumber=248", this);
}
onClipEvent(data)
{
strLotPrice = Price;
strLotNumber = LotNumber;
strPosition = "Record " add String(CurrentRecord+1) add " of " add String(TotalRecords);
}

This Should Be Easy(button In MC)
This should be easy but i is not working

Flash5 Movie
3 scenes

I have created a Movie Clip called links wich contains all the buttons to navigate the site.
in the movie clip I have 3 layers.
each layer contains a graphic symbol wich contains 3 buttons

I want to click on the button "project" and go to scene3

so I write the following

on(press)
{ gotoand play ( "scene3", 1);
}

This does not work...for some reason I see the Movie Clip reloading but nothing else.

I even tried
on (press)
{ _root.gotoandPlay("scene3",);
}

But no result....

something about nesting a button and changing a scens?

Please HEEEEEEEEELLLLLPPPP!!!!!!

Easy Button
I am just trying something out, nothing serious. I am making an animated button using tweening. It works for awhile then if you keep going over it then it stops tweening the color and just jumps from the initial color to the color it is supposed to tween to with no color tween. If that made any sense. I have attached an example.

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved