thank you Chris... Nice to meet you to... In fact, all of you here in this forum are very freindly!! thats a plus!!!! :D
Printable View
thank you Chris... Nice to meet you to... In fact, all of you here in this forum are very freindly!! thats a plus!!!! :D
hum... the script is awsome!!!
But why does not my html tags work even if i've got html enabeled in the textfiled?
ChangeQuote:
Originally Posted by xzerox_xzerox
this.textField.text = this.newText;
into
this.textField.htmlText = this.newText;
works fine :)
We're quite fond of him around here :)Quote:
Originally Posted by xzerox_xzerox
hehe thank you chris... i know this hasn't anything to do with the dynamic text effect but willbert helped me alot today by giving me some other code... And here is the result:
http://www.vmgcomputers.com/uk/
The page is in swedish and it's unfinnished... Translated menu buttons: "News", "The Boat", "Offshore Races", "Crew", "Team Sponsors", "images" and "links"
You know what man....I really like that unfocused to focus effect on the menu items. It just different enough and just eye catching enough to keep you wanting to click. Great job :thumbsup:
I like it too but I would speed it up just a bit. Especially when the content loads.
thanks guys
hey... and can You tell me, how to... so, ive got little textfield. Its used like a button :] Its name is button1. And i would like to: on (release) button1 start this effect. iv tried _root.button1.onRelease { code }, but the effect runs without clicking. How to do that?
well just do as willbert told you?
First add this to the movie actions: Set "txt1" to your textfileds name!
and then ad this to a buttonCode:// create a new LoadVars object
lv = new LoadVars();
// assign the textfield we want to load the text into
lv.textField = content;
// crossfade function
lv.crossFade = function(){
this.alpha += this.step;
this.textField.filters = [new flash.filters.ColorMatrixFilter([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,this.alpha,0])];
if (this.alpha <= 0){
this.step *= -1;
this.textField.htmlText = this.newText;
} else if (this.alpha >= 1){
clearInterval(this.intervalID);
this.intervalID = 0;
}
}
// onData handler
lv.onData = function(v){
if (v != undefined ){
this.newText = v;
if (!this.intervalID) this.intervalID = setInterval(this,'crossFade',50);
this.alpha = 1;
this.step = -0.1;
}
}
Code:on (release) {
_root.lv.load('test.txt');
}
hm... and if i would like to use textfield instead of button? it may confuse, but button1 isnt a name of button, but of my textfield :)
i usually use 60 FPS and i eventually change number of tweens, but i almost always use 6.
what do you mean? Do u want to use a nother textfiled as a button? i don't get it?Quote:
Originally Posted by ant_Z
Well if you wannt to use a nother textfiled as a button. Create a button over it and make it 100% trasparent then ad the code i've told u to it.
yeah, ive tried this way, but the button doesnt want to move right - textfields are just sliding from left, and button slides too far... and the next problem is, that the lenght of textfields can be different. I wanted do let people change button values, and textfields with specified effect looks very nice. But i dont know what will be lenght of these textfields...
and yes, i want to use textfield as a button.
allright, ive made it :] ive just put buttons into MC, add _root to code and now it works. but the lenght is still a problem...
glad u made it... i don't know how to change length of textfield though
at mine it doesnt work. im attaching sample text (content3) file and my fun...Quote:
Originally Posted by w.brants
well first i don't think flash supports the headline tag <h> but im not sure of that:
Try with just a bold text or somehing <b>
Don't make a contentplane just a textfiled. And make sure to name it correct:
The name of my textfiled here is contentCode:// assign the textfield we want to load the text into
lv.textField = content;