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








Cyrillic Text In A Button In MX


ok,
i have these dynamic text boxes that are supposed to display cyrillic text,

i am using the loadvariables (cyrillic.txt,0)on level0 to load text from an external txt file in UTF-8 format. If i try it using a dynamic text box on level0 it works fine, but if i put the dynamic text box into a button it doesn't, it will display english inside the button but not cyrillic..its really weird..

to summarise...
Dynamic text box level0.. cyrillic fine
Dynamic text box level0.. english fine

Dynamic text box level1 (in a button).. cyrillic..nope
Dynamic text box level1 (in a button).. english fine


any help with this matter would be greatly appreciated

mallrat




FlashKit > Flash Help > Flash MX
Posted on: 09-04-2002, 12:18 PM


View Complete Forum Thread with Replies

Sponsored Links:

Mac Dynamic Cyrillic Text
Hello
I'm using Flash 8 on Mac. I have some dynamic TextFields that I need to embed cyrillic fonts in. The problem is that the text kerning is awful when the font is embedded. This happens with any cyrillic font.
Any help is highly appreciated.

View Replies !    View Related
Mac Dynamic Cyrillic Text
Hello
I'm using Flash 8 on Mac. I have some dynamic TextFields that I need to embed cyrillic fonts in. The problem is that the text kerning is awful when the font is embedded. This happens with any cyrillic font.
Any help is highly appreciated.

View Replies !    View Related
Cyrillic Font
hi

i want to copy and paste some russian words from
ms word to flash, but obviously i can't see them
even if i use arial.
i can't even see cyrillic fonts in flash which i installed in my pc.
why this?

what can i do?...maybe shot myself?

no...no....please help me!!!!

bye bye

thnks

View Replies !    View Related
Cyrillic Font In Flash?
I've got a flash-based menu (and some graphics) that a client would like translated into Russian. I had no problem with the HTML files, but FLASH isn't recognizing the font. Each time I try to cut and past the russian text into the text file that feeds my menu system, it comes out as an unrecognizable string (????????????? ????)

Any thoughts?

Thanks!

View Replies !    View Related
Problem With Cyrillic Fonts. Please Help...
Hello Everyone,
I have the following problem:
When exporting movie some of the cyrillic texts do not display at all. All I get is blank characters. These are dynamic texts, all loaded from external XML file.

I'm running WinXP and MM Flash MX 7.0.

If someone can provide support on this issue I will highly appreciate it.

Thank you.

View Replies !    View Related
Working With Cyrillic Russian
Hey guys

i have been designing a website for some commrades in Russia and have had a few headaches with text/fonts. i have looked over several documents for some help but they all seem to deal with Multi-lingual applications rather than just russian. i'm aware of unicode but not to sure if this will solve my problems or not or if it will automatically change my .html file when i embed the cyrillic fonts? i do want to see txt in Flash as i'd like to see how it effects my design.

In my head i imagined that i would just need to embed which ever fonts i was using and make sure that russian text (which has been translated for me by another russian friend) makes sense.

Now after a bit of research and advice from friends i'm more confused than ever. Sorry if i sound naive, please help if Possible!

Damian

View Replies !    View Related
Cyrillic And Russian In Flash MX?
I need help very very fast.
I am working on a project that is bilingual. It is in serbian and russian and I need to display both serbian latin fonts ЊÆÈŽ and russian cyrillic letters. As for serbian when I try to type with serbian (latin) keyboard selected it displays only "Š" but other letters are not displayed properly. As for russian almost non of the letters are working. I am using verdana throught the whole project.
Please help me and tell me how to get those letters to show up???

Thank you very much!

View Replies !    View Related
Problem With Cyrillic Fonts. Please Help...
Hello flash guru,
I have the following problem with cyrillic fonts:
When exporting movie, dynamic texts (all loaded from external XML file) do not display at all. I have reviewed all posts at http://www.actionscript.org/forums/s...5&page=1&pp=15 , tried the provided examples but still get the same problem.

Here goes the action script:

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

function createMenu() {
// sizer is an empty movie clip to store the onEnterFrame that scales and spaces menupoints
this.createEmptyMovieClip("sizer", 100);
this.createEmptyMovieClip("sub", 200);
this.sub.o1 = 0;
this.sub.o2 = 0;
for (n = 0; n < this._parent.mainXMLobj.root.navi_top.menu.length; n++) {
this.createEmptyMovieClip("m" + n, n);
this["m" + n].createEmptyMovieClip("txt", 1);
this["m" + n].txt.createEmptyMovieClip("mirror", 2);
this["m" + n].nr = n;
this["m" + n].txt.createTextField("txt", 10, 0, -19, 0, 0);
this["m" + n].txt.mirror.createTextField("txt", 0, 0, 19, 0, 0);
if (n > this.startMenu) {
this["m" + n]._visible = 0;
}
this["m" + n].txt.txt.text = _parent.mainXMLobj.root.navi_top.menu[n].name;
this["m" + n].txt.mirror.txt.text = _parent.mainXMLobj.root.navi_top.menu[n].name;
this["m" + n].txt.txt.embedFonts = true;
this["m" + n].txt.mirror.txt.embedFonts = true;
this["m" + n].txt.txt.autoSize = "left";
this["m" + n].txt.mirror.txt.autoSize = "left";
this["m" + n].txt.txt.selectable = false;
this["m" + n].txt.mirror.txt.selectable = false;
this["m" + n].txt.txt.setTextFormat(this._parent.menuText);
this["m" + n].txt.mirror.txt.setTextFormat(this._parent.menuTex t);
this["m" + n].txt.mirror.txt.textColor = _root.grey;
this["m" + n].txt.mirror.txt._yscale = -100;
this["m" + n].txt.attachMovie("mask", "mask", 5);
this["m" + n].txt.mirror.attachMovie("blend", "blend", 10);
this["m" + n].txt.mask._width = this["m" + n].txt._width;
this["m" + n].txt.mask._height = 18;
this["m" + n].txt.mirror.setMask(this["m" + n].txt.mask);
this["m" + n].txt.mirror.blend._width = this["m" + n].txt._width;
this["m" + n].txt.mirror.blend._height = 18;
// increase menu hit area
this["m" + n].beginFill(0x0000FF, 0);
this["m" + n].moveTo(0, -19);
this["m" + n].lineTo(this["m" + n].txt._width + raster, -19);
this["m" + n].lineTo(this["m" + n].txt._width + raster, 0);
this["m" + n].lineTo(0, 0);
this["m" + n].lineTo(0, -19);
this["m" + n].endFill();
// set start position / alpha
this["m" + n]._x = this["m" + (n - 1)]._x + this["m" + (n - 1)].txt._width + raster;
this["m" + n].x = this["m" + n]._x;
// o1= where you are over or where you klicked last
// o2= last klick
// o3= last over
this["m" + n].onRollOver = function() {
this._parent.o3 = this.nr;
this._parent.o2 = this._parent.o1;
this._parent.o1 = this.nr;
this._parent.sizeMenu();
this._parent.subFade("fadeOut");
};
this["m" + n].onRollOut = function() {
this._parent.o1 = this._parent.o2;
this._parent.sizeMenu();
};
this["m" + n].onPress = function() {
this._parent.o1 = this.nr;
this._parent.o2 = this.nr;
if (this._parent.firstTime != 1) {
this._parent.slideIn(midX, midY);
this._parent._parent.gotoAndPlay("startOut");
this._parent.firstTime = 1;
} else {
this._parent.createSub();
this._parent._parent.changeArea();
}
_root.go1 = this._name;
_root.go2 = "s0";
this._parent.sizeMenu();
};
}
this.attachMovie("block", "subOn", 150);
this.subOn._width = 800;
this.subOn._height = 50;
this.subOn._alpha = 0;
this.subOn.onRollOver = function() {
if (this._parent.sub.subBlendOut) {
this._parent.subFade("fadeIn");
}
};
this.subOn.useHandCursor = false;
// this._x = (750 - (this["m" + (n - 1)]._x + this["m" + (n - 1)]._width + 25)) * -1;
this.lineEnd = this["m" + (n - 1)]._x + this["m" + (n - 1)]._width;
// this._alpha = 0;
this._visible = 1;
this.slideIn(startX, startY);
}
function sizeMenu() {
// spacing of menu points
this.sizing = 0;
this.sizer.onEnterFrame = function() {
if (sizing < this._parent._parent.mainXMLobj.root.navi_top.menu .length) {
for (n = 0; n < this._parent._parent.mainXMLobj.root.navi_top.menu .length; n++) {
if (this._parent.firstTime != 1) {
if (this._parent.o3 < n) {
if (n != this._parent.o3) {
this._parent["m" + n]._x = this._parent["m" + (n - 1)]._x + this._parent["m" + (n - 1)].txt._width + raster;
}
} else {
if (n != this._parent.o3) {
this._parent["m" + n]._x = this._parent["m" + (n + 1)]._x - this._parent["m" + n].txt._width - raster;
}
}
} else {
if (this._parent.m0._x > raster) {
this._parent.m0.easeOut(raster, 10, "_x");
if (n > 0) {
this._parent["m" + n]._x = this._parent["m" + (n - 1)]._x + this._parent["m" + (n - 1)].txt._width + raster;
}
this._parent.sub._x = this._parent["m" + this._parent.o2]._x;
} else {
this._parent["m" + n]._x = this._parent["m" + (n - 1)]._x + this._parent["m" + (n - 1)].txt._width + raster;
this._parent.sub._x = this._parent["m" + this._parent.o2]._x;
}
}
}
} else {
delete this.onEnterFrame;
}
};
// size of menu points
for (var n = 0; n < this._parent.mainXMLobj.root.navi_top.menu.length; n++) {
if (this.o1 == n or (this.o1 == undefined and this.o2 == undefined)) {
this["m" + n].txt.onEnterFrame = function() {
if (Math.round(this._xscale) != maxScale or Math.round(this._parent._parent.m0._x) != raster) {
this._parent.easeOut(this._parent.x, speed2, "_x");
this.easeOut(maxScale, speed, "_xscale");
this.easeOut(maxScale, speed, "_yscale");
this.easeOut(maxAlpha, speed, "_alpha");
} else {
this._alpha = maxAlpha;
sizing++;
delete this.onEnterFrame;
}
};
} else {
this["m" + n].txt.onEnterFrame = function() {
if (Math.round(this._xscale) != minScale or Math.round(this._alpha) < minAlpha - 5) {
this.easeOut(minScale, speed, "_xscale");
this.easeOut(minScale, speed, "_yscale");
this.easeOut(minAlpha, speed, "_alpha");
} else {
this._alpha = minAlpha;
sizing++;
delete this.onEnterFrame;
}
};
}
}
}

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

Quite long. I'm sorry but do not know which part is important and which not. The file was provided to me for language adaptation and it is 3 weeks since I'm trying to find a solution.
I'm running WinXP and MM Flash MX 7.0. The fonts I use are Arial cyr, Arail Narrow Cyr - all have embeded cyrillic characters.

I will highly appreciate if you provide some corrections in actionscript or guidelines how to solve the problem.
Thank you in advance.

View Replies !    View Related
Right Usage Of Cyrillic Fonts
I've many unicode russian (cyrillic) fonts installed on my mac.
When i type message like "T" type-tool - they show russian letters.
When i embed it in Library like Font class, 50% of my fonts doesn't show russian letters.

What's wrong?

View Replies !    View Related
XML + FLASH + CYRILLIC : HEEELP
Hi! I completed tutorials from this site to build a photo gallery. But the text I have to put in as a comment is in russian. When I paste it in "captions" (in my xml file), the swf shows little squares instead of my text... Please help!!!

View Replies !    View Related
How I Can Get Cyrillic From Txt File With LoadV...
How I can get Cyrillic from txt file with LoadVariables?

this is in my txt file
mytext= Here is cyrillic text


loadVariablesNum("data.txt", "/");

In flash, I dont see cyrillic text
Why??????

Sorry for my bad English!!!!

View Replies !    View Related
Cyrillic Fonts In XML File...
Hello,
I found this site and I really loved it . I'm using this tutorial http://gotoandlearn.com/play?id=34 and it's great.
But i Have one problem when i try to insert cyrillic latters into the XML file. Once I run the swf file the cyrillic latters are not shown ... Help me pls i really need this . Thank you.

View Replies !    View Related
I Can't Type Any Cyrillic Characters In Flash 5
I can't type any cyrillic characters in flash 5. Each time I press a key I get some other characters which have nothing to do with cyrillic. I don't havesuch problems while using problems like photoshop, Paint shop pro, Word...
While typing in cyrillic in word, photoshop and so on using fonts like times new roman, arial etc. I don't eperience any difficulties
How do I overcome this problem(by the way I have the same problem with Dreamweaver)
thank you in advance! :}

View Replies !    View Related
Embedding Fonts For Use With Cyrillic Letters
When embedding fonts in the library (Library > new font), there is no way to specify which character sets should be included. It seems like the only sets that are included are the basic ones? Is there a way to make flash embed more of the font?

Problem is I have a huge website which creates textfields dynamically, and gets data from a cms. Now, there are some articles with cyrillic letters in them, and these are not present in the textfields.

If I create a field staticly in the flash, includes all character sets, and inputs the cyrillic text to it, the text is displayed correctly. Or, if I set embedFonts=false on the textfield. But neither is really a solution. The first isn't since I then would have to create and/or duplicate all textfields that I use throughout the site, a massive change atm. And the second makes use of devicefonts which is... ugly.

So, does anyone have a suggestion on how I could approach this?

View Replies !    View Related
TextField, EmbedFont, Textformat, Cyrillic
Hi there,
i have a problem with AS created textfields and embedded cyrillic fonts. There is simply no output. Please take a look at my sample code. 'embedCYR' is an embedded Arial CYR.

thanks a lot!
Phil









Attach Code

t = this.createTextField("txt", this.getNextHighestDepth(), 100, 100, 300, 20);
t.autoSize = "left";
t.embedFonts = true;
t.antiAliasType = "advanced";
t.text = 'ущрщзцшукщшгцркуашгуцкоаущшк';
t.wordWrap = true;

var style:TextFormat = new TextFormat();
style.font = "embedCYR";
style.size = 30;
t.setTextFormat(style);

View Replies !    View Related
Cyrillic & Double Byte Languages In Flash 4/5?
hallo,

got a bit of a problem, and was wondering if anybody has any experience to help give some pointers.

I am going to be creating a series of education modules in non-Latin(e.g Cyrillic, Korean, Chinese etc.etc.) languages, and Im trying to find a solution to how to author them.

The main issue is that all the source code is provided in word files, which show up fine on my system, but as soon as I copy and paste the text into my text fields it all comes out in the dread "??????????????" format.

Now as much as I can discern from Macromedia's circular logic tutorials, the only way I will be able to see the actual text pasted as it should be is if my machine is running the same codepage as the text I am pasting (so if my machine was running in Korean, I would be able to see Korean, but not say Japanese).

Beyond that, the big kicker is that I am most likely going to have to export my files as version 4 or 5 (due to my client's corporate web standards), which immediately exlcudes the use of MX's Unicode support.

Sooooooooooooooooooo, my question is this, and is more aimed at bi-lingual users (hoepfully Russian, its that first one I have to tackle), but is more or less this. When you authored movies in older versions, what steps did you have to take? Did you author in the English version of Flash, paste your Russian source text, and it all worked out fine?

If your explanation gets too long, PM me and we can talk.

Any help or insight or even tutorials (non-Macromedia plz, their official ones makes my head spin and never really answer anything).

Thanks!

Unverse

View Replies !    View Related
Cannot Type Cyrillic Characters Into Input Textfield
The problem: Cyrillic characters cannot be typed into an input textfield.

Prepopulated dynamic textfields aren't a problem. I can even paste Cyrillic characters into an input textfield, but if I try and type, question marks appear instead of the intended characters.

Things tried: various kinds of character embedding, font embedding, useCodepage shenanigans, and other stuff too...

After a bit of searching I've found a few people reporting similar sounding problems, but none of them are getting the answers I need.

But I can't believe that there's no solution, otherwise half the world would be asking why they can't use input textfields, wouldn't they?

Am I missing something, or do I need to take a trip to see a certain software developer and kick them in the shins? (again)

Any help much appreciated.

View Replies !    View Related
Problem: Flash5 - Copy&paste Cyrillic Font
Problem:
- We have Flash 5
- have a Word document with Cyrillic font

- > the writing should be inserted with Copy-paste in Flash 5, but flash 5 the font does not recognize automatically.

Win200 recognizes everything automatically, between German and Russian (cyrillic)

question: How I get to add the data from the Word-document by copy paste in flash, ohen these the question marks come (mark he not recognizes)

If I in flash the writing I select, can write cyrillic.

Please, help!!

Cu HotSpot

Ps: german english

View Replies !    View Related
Display Movie-clip With Image/text/button ..when Clicked On A Button
We had generated a template.

Template has 2 area
Buttons on left and right had side area is blank

on click of button we want to display a movie-clip having image/text and buttons for nvaigation.


We found that on click we can display the movie ...it displays image text is not diapled. Also we want to display buttons on the same.

Your help is great value addtion to us.

Thanks in advance

Ramesh

View Replies !    View Related
Text Field Over Button Prevents Button Being Clicked
I'm trying to create a custom button class that lets you specify some simple parameters, including the text that goes on the button. However, the text field blocks the button (because it's on top of the button), and so the even listener assigned to the button doesn't detect a CLICK event.

I've read about setting mouseChildren = true, but that works for other display objects and isn't an option for a TextField instance.

Can anybody tell me what I'm missing here. And also, is there a different way of going about having some sort of customizable button that might be better?

If it helps, here is my basic class. An instance of the class is instantiated with:

var btn:ButtonSimpleText = new ButtonSimpleText(120, 20, "Button Label");
addChild(btn);

CLASS BELOW










Attach Code

package {
import flash.display.*;
import flash.events.*;
import flash.text.*;

public class ButtonSimpleText extends Sprite {
public function ButtonSimpleText(w:Number, h:Number, labelText:String){
// Button
var button:SimpleButton = new SimpleButton();

var up:Shape = new Shape()
up.graphics.lineStyle(0,0xFFFFFF,1);
up.graphics.beginFill(0xCC0000);
up.graphics.drawRect(0,0,w,h);
up.graphics.endFill();

button.upState = up;
button.overState = up;
button.downState = up;
button.hitTestState = up;
button.addEventListener(MouseEvent.CLICK, clickListener);

// Text format
var tf:TextFormat = new TextFormat();
tf.font = "Arial";
tf.size = 12;
tf.bold = true;
tf.align = TextFormatAlign.CENTER;
tf.color = 0xFFFFFF;

// Text label
var label_txt:TextField = new TextField();
label_txt.selectable = false;
label_txt.text = labelText;
label_txt.width = w;
label_txt.setTextFormat(tf);

var btnHolder:Sprite = new Sprite();

btnHolder.addChild(button);
btnHolder.addChild(label_txt);

addChild(btnHolder);
}

private function clickListener (e:MouseEvent):void{
trace ("Click");
}

}
}

View Replies !    View Related
Button Function - Load Text File To Dynamic Text Field
Hey again,

okay straight into it. I have a few button named b1 b2 b3 and so on. Now these buttons i want to load a text file into a dynamic text field called myText. Now the text files which will be loaded contain html tags, so i want to have that property set.

Now current I have home.text loading into myText automically on swf loading. But when I click any of the buttons the text file won't change over.

Now my menu is seperate to the body. I have 3 swf files, one called base.swf, nav.swf and body.swf. Base.swf loads nav and body onto it.

here is what i have as the script.

Frame1 - body.swf

_root.onData = function(){
myText.html = true;
myText.htmltext = _root.myInfo;
}

loadVariables("home.txt", _root);
loadMovie("scratchy.swf", logo);


Frame1 - nav.swf - gigsbut (button)
on (release) {
loadVariables("gigs.txt", _root.body);
}


can anyone help point out where I am going wrong. I have a feeling I am not targeting the text field right from the button. If you could help point me in the right direction rather then give me the answer that would be good as I would learn better from that. Thanks

Wolfie

PS - Let me know if you want or need more info. Am happy to post it up.

View Replies !    View Related
Help With Dynamic Text Field Being Populated From A Button On Same Stage Using Text Files...
I am using the following code:

var ImportsText = "Imports";
Imports.addEventListener(MouseEvent.CLICK,doClick);
function doClick(evt:MouseEvent):void {
List.text = ImportsText;
}

This will generate the word Imports on my List.text dynamic text field.

I have a list of 30 things that need to go in the place of the word imports, one each per line.

Is there a way for me to create a text file and load it instead?

So I have button1 which loads the text from the text file text1.txt and puts it in Last.text
and so button2 loads the text from the text file text2.txt and it is put in last.text

and so on.

Would like the text files to be able to have some formating that is translated to the Last.text


I am very new to AS3.0 so please bar with me. I think I am almost understanding what I need to do but I need a push in the right direction.


Thanks allot in advance.

Tamer Z

View Replies !    View Related
How To Create A Clear Button Which Will Remove The Text In The Text Box Field
Hey, im tryin to create a clear button
whihc is:
clear_btn.onRelease = function () {
_root.sender.txtclear();
};

So that it would clear date enter in that text box. But nothin seem to happen with the button when i run it.

Does any1 know a way on how i would create a clear button?

View Replies !    View Related
Button WITH Text & Input Text Field Color Difference
Hi all,

In Flash MX 2004 Pro, I am trying to create a rectangular button that has the word "Enter" on it. For some reason, the text is gone and I don't know what happened to it. Can someone take a look and tell me what I'm doing wrong, please?

Oh, also... There is an input text field I created, but it's white (and so is the rest of the movie). How can I change it so that the background of the entire scene is different from the input text field (so it is seen)?

Thanks!

Chris

PS. I'm a Flash NEWBIE so please use small words!

View Replies !    View Related
Text Over Button, Button No Longer Clicks
Basically. I have a movieclip.
Inside this MovieClip is a button (with a rollover effect) and a dynamic text box ontop.
The dynamic text box (which I've set to non selectable) is bigger than the button. Because of this, the button no longer registers when I roll over and click it. The button works when I place that layer above the text, but because of this you obviously can't read all the text.

So, here is a snippet of my code (not much to it really).

Code:
var myBtn:MyButton2 = new MyButton2();
myBtn.y = 352.5;
myBtn.myString.text = String(i+1);
myBtn.x = (i+1)*40;
myResults.buttons.addChild(myBtn);
myBtn.btn.addEventListener("click", photoBtnFtn);
Is there anyway of setting the button to "always" click even if there is something ontop?

Any help would be much appreciated.
Thanks,

- James

View Replies !    View Related
Adding Text To A Button, And Related Button Fun
Ok, I'm new to AS3 (only been doing it for a couple weeks now, never really learned AS2), so help would be great, especially as the deadline was more then a week ago (not all my fault there)

I put a text field inside a button and tried to put text in that button's text field via the following:

hmm.. I'm new to the forum I guess... don't know if it added the code, the code is: instancenameofbutton.textfieldinstance.text = "play";

Well that seems not to work... so how do I make it obey my auth-or-a-tah?
Am I perhaps just slash dot syntax impaired?

Trouble seem to be that putting text over the button blocks the event.. Is there another way to skin this cat?

A related problem I haven't been able to fix is.. I have a text field with dynamic text.. numbers, and I want it to be bold. Where I'm at in trying to figure out the solution is that bold dynamic text needs to be specially embedded.. Well, I follow what the help system tells me to do.. and nothing seems to actually work. Is there a bug here or something?

Ok, one last related thing.. I'm following the book on "things thou shalt not do" in that I have a good amount of moving transparent gradients... well 2 of them actually.. but then other transparent stuff all over the place that.. could be pushing things a little far. The frame rate's about 14 fps, screen size is only about 600x450, I am on an 8 core mac pro with a better then standard graphics card... seems to me that I've been able to get away with worse on older version of Flash on a G3 power mac bad in the day....

Well when I tried to dynamically load mp3s, that's when things started going down hill! now buttons blink, sometimes aren't responsive at all.. I'm thinking maybe its that I've over laded the player and ought to think pulling back...

I have on gradient spinning shape thing that I was controlling by actionscript using the enter frame thing.. when I disabled the code.. well things worked fine again... accept that one of my buttons stopped working.. which is mysterious... cause as far as I know the code wasn't touching that at all.. so I went back to buggy vill, cause at least then my buttons work! (most of the time).

So the only thing I can think to try and do is to try and optimize stuff... the projects a bit of a rush job.. so it's "a little hack-e" ( well I confess that at my best things are probably "a little" hack-e, so this is really bad)

So I'm thinking of just changing the code over to a timer thing, will that make it all groovy? I mean do you think? I seem to remember hearing something, somewhere, about the enter frame thing as having some issues somewhere...

What's also kind of strange is that stuff gets strange when the mp3s are loaded.. There's only 4 of them, small little snippets.. which probably total only about 1MB or so.. so why should that make it trouble? Admittedly there's not a lot of compression on them, and there stereo but?

Anyway.. I guess I'm just wondering if any of this sets of any red flags for anyone who actually knows what they are doing.. probably not describing things well enough.. but you know, any help is appreciated :)







Attach Code

startgame.buttontext.text = "Play";

View Replies !    View Related
Adding Text To A Button, And Related Button Fun
Ok, I'm new to AS3 (only been doing it for a couple weeks now, never really learned AS2), so help would be great, especially as the deadline was more then a week ago (not all my fault there)

I put a text field inside a button and tried to put text in that button's text field via the following:

hmm.. I'm new to the forum I guess... don't know if it added the code, the code is: instancenameofbutton.textfieldinstance.text = "play";

Well that seems not to work... so how do I make it obey my auth-or-a-tah?
Am I perhaps just slash dot syntax impaired?

Trouble seem to be that putting text over the button blocks the event.. Is there another way to skin this cat?

A related problem I haven't been able to fix is.. I have a text field with dynamic text.. numbers, and I want it to be bold. Where I'm at in trying to figure out the solution is that bold dynamic text needs to be specially embedded.. Well, I follow what the help system tells me to do.. and nothing seems to actually work. Is there a bug here or something?

Ok, one last related thing.. I'm following the book on "things thou shalt not do" in that I have a good amount of moving transparent gradients... well 2 of them actually.. but then other transparent stuff all over the place that.. could be pushing things a little far. The frame rate's about 14 fps, screen size is only about 600x450, I am on an 8 core mac pro with a better then standard graphics card... seems to me that I've been able to get away with worse on older version of Flash on a G3 power mac bad in the day....

Well when I tried to dynamically load mp3s, that's when things started going down hill! now buttons blink, sometimes aren't responsive at all.. I'm thinking maybe its that I've over laded the player and ought to think pulling back...

I have on gradient spinning shape thing that I was controlling by actionscript using the enter frame thing.. when I disabled the code.. well things worked fine again... accept that one of my buttons stopped working.. which is mysterious... cause as far as I know the code wasn't touching that at all.. so I went back to buggy vill, cause at least then my buttons work! (most of the time).

So the only thing I can think to try and do is to try and optimize stuff... the projects a bit of a rush job.. so it's "a little hack-e" ( well I confess that at my best things are probably "a little" hack-e, so this is really bad)

So I'm thinking of just changing the code over to a timer thing, will that make it all groovy? I mean do you think? I seem to remember hearing something, somewhere, about the enter frame thing as having some issues somewhere...

What's also kind of strange is that stuff gets strange when the mp3s are loaded.. There's only 4 of them, small little snippets.. which probably total only about 1MB or so.. so why should that make it trouble? Admittedly there's not a lot of compression on them, and there stereo but?

Anyway.. I guess I'm just wondering if any of this sets of any red flags for anyone who actually knows what they are doing.. probably not describing things well enough.. but you know, any help is appreciated :)







Attach Code

startgame.buttontext.text = "Play";

View Replies !    View Related
Button Triggers Text With Invisible Button
I am a Flash novice who has worked through a couple of the standard introductory books on Flash in Actionscript 3 and some of the online tutorials. However I cannot work out how to do the following:
A button A (I know how to design buttons including invisible ones) is on the stage. A user clicks on this button which then causes a text to appear at another location of the stage. This text includes an invisible button B. The text tells the user to click on it with the result that the text, including the invisible button B, disappears but if the user reclicks button A then the text with button B should appear again.

View Replies !    View Related
How To Create A Clear Button To Remove The Text On The Text Box
Hey, im tryin to create a clear button
whihc is:
clear_btn.onRelease = function () {
_root.sender.txtclear();
};

So that it would clear date enter in that text box. But nothin seem to happen with the button when i run it.

Does any1 know a way on how i would create a clear button?

View Replies !    View Related
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?

View Replies !    View Related
Difference Between Button Text And Html Loaded Text
Attached is a flash radio I'm making - the picture and music links won't work as I've omitted them from the .zip file. But the problem is that the text I've used for buttons on the left hand side is very different from the text which appears when you actually click on a button. I want them to look the same and for the button text to look like the description text which appears when you click on a button.

They are both Arial font but the weighting of the button text looks higher than text loaded from an external .txt file and I don't know why.

View Replies !    View Related
Flash Button That Copys Text From A Text Field?
whats the code

on (release) {
nextImage.text.copy();???
}

i dont know if im in the correct area

pete

View Replies !    View Related
Insert Text Into Dynamic Text Box Via Button
is there anyway that I can have a page where there is a dynamic text box and when someone clicks a certain button on another frame, it would go to the frame with the text box and fill it with the text I supply in the button. I was thinking kinda like this

on (release) {
gotoAndStop(10);
dynamic_box_instance_name="this is the text I would liek displayed in the dynamic text box";

}

for one button and

on (release) {
gotoAndStop(10);
dynamic_box_instance_name="this is some different text";

}

where the text box is on frame 10 Is this close to what I need?

View Replies !    View Related
Place Text Within A Text Field From A Button
Would like to have a button that places formated text within a text field at the spot of the cursor. Tried this but it overwrites everything

on (release) {
_root.text1.text = "added text";
}

Would like to be able to do this

on (release) {
_root.text1.text = "<a href=""></a>";
}

Thanks in advance!!

View Replies !    View Related
Inserting Text Into Dynamic Text Box With Button
I have a dynamic input text box that a user can type into. I need to have a button that can input this specific string "***************" at the location of the cursor in the dynamic text box. So whenever that button is released, "***************" gets inserted automatically wherever the cursor is.

View Replies !    View Related
TEXT Button ONLY Reacts On Hovering Over TEXT
Hey guys..
I have a menu with different links (music, graphics etc..)
But the buttons are just plain text, that I converted into movie clips.
The thing is, when you hover over the text, it's only when you touch the actual letters, that the actionscript responds.

For an example; the white space inside an e doesn't respond to the actions.

How do I fix this?

Thank you so much!

View Replies !    View Related
One Text Box, Each Button Loads Different Text Into That Text Box
I was wondering how I would go about this...I have one text box and I want to have each button load different text into that text box for my webpage. How would I go about coding that so when I click on home it would load the text for the home page and when I click on contact it would load the text for the contact page.

View Replies !    View Related
Button Triggering Text With Button
I am a Flash novice who has worked through a couple of the standard introductory books on Flash in Actionscript 3 and some of the online tutorials. However I cannot work out how to do the following:
A button A (I know how to design buttons including invisible ones) is on the stage. A user clicks on this button which then causes a text to appear at another location of the stage. This text includes an invisible button B. The text tells the user to click on it with the result that the text, including the invisible button B, disappears.

View Replies !    View Related
Loading Text From A Button Into A Text Box
I have a movie that has a movie clip named "content_mc" and in that movie clip, there are 5 different keyframes, all setup to be different pages of the site..

i want to be able to click on a menu item on the left that will take me to page "x" in the movie clip and load the section's title into a text box on that page inside the movie clip... can i do this with actionscript?

i'm using flash mx 2004 btw..

any help would be greatly appreciated
thanks

View Replies !    View Related
XML Text On A Button // EMBED Text From XML?
Is there any way I can load text into Dynamic text fields inside a buttons from a XML file...
I'm doing it for every thing in the flash file and works wonderfull but can't get it to work inside a button.

Also, there's no way I can make it EMBED a font for a Dynamic Text Field loading XML datta??? Any Idea.

View Replies !    View Related
[CS3] Fade To Text Window, Display Text, Fade Out, On Button Press
Hi All,
First post!

I am looking on the easiest maintainable way to have some buttons in a flash movie that each link to a different group of text.

I would like the buttons when clicked to fade the background slightly dull (but still visible) and then to display text in a scrollable window. When the user is done reading, they may click an X and the frame they were in prior they are returned to.

What have I tried so far?
1-I tried creating a new Scene, "Scene 2" and using scripting to get the buttons to load them - but it doesn't seem to be working when specifying "Scene 2", "label". Also, maintaining separate scenes doesn't seem very logical. I would rather an external text file.

2-I grabbed a couple scrollers on this very website, but I cannot get them to integrate properly with my current movie.

Any thoughts on a solution?

Thank you.

View Replies !    View Related
Button "writes" Text In Input Text Box?
Hey there!

Is there anyway that I can make a button act on an input text box (or dynamic). As in button 1 will make the input text box on the same page have the word "text 1" in it, and clicking button 2 will make the same box display "text 2"?

Any help with this would be awesome.

View Replies !    View Related
Button Text Box
I'm making a text box, but instead of putting text in it, I want to put buttons in it that will lead to a different section of the movie.

How do I make this work so that all the buttons will scroll and fit in the text box window?

I have a text box set to a certain size, but the size is too small to fit all the buttons. Do I have to make it bigger? If I were to make it bigger, how could I make it so that the text box won't run off the screen?

Thanks

a..

View Replies !    View Related
Button Text
OK, I've created a button with some text. How do I make the whole symbol, not just the area where the actual text is, respond to a mouseover?

View Replies !    View Related
Text Button
This is probably a spupid question. I have made some text buttons in Flash but when you rollover them, your mouse has to be directly over the actual lettering for the cursor to turn into a hand on the web. Is there a way, besides putting a box behind it, to have the area around the text make the cursor turn into a hand?

Please help.

Thanks

View Replies !    View Related
Text Button
If you want to be able to link to a html page- and want to click on text-
can you make the text a hyperlink? How?

or do you have to make the text a button? If you have to make it a button- you make it an invisible button- and then does it have to be on a layer above the text?

View Replies !    View Related
Text Button Help
Hey yall. i need some help. ive made my text into a button and now i cant figure out how to make it work. my code is

<i>on(release){
Symbol1.onRelease = function() {
gotoAndStop(2)};
}
</i>
it wont go to two. any ideas? thanks

View Replies !    View Related
Text Button
ok. i made a text button that uses the .onRelease action heres the code:

on (release) {
home.onRelease = function() {
getURL("http://www.blabla.com");
};
}

and in order for the button to work it has to be clicked twice.. but after the first click it is like its enabled, then you can click it again and then it will work...

?? please help

View Replies !    View Related
Text Button
can anyone explain how i go about doing this?:
i have a box mc with a dynamic text on it. i also have this button. when i press the button i want the box mc to play and display a text in the text field. fairly easy, but the complicated part is that the next time i press the button i want a new text to appear, and then another and so on.
i really need help with this,
thanx in advance to the person who responds!

View Replies !    View Related
Using A Text Box As A Button HOW?
okay, so i want a text box itself to be the graphic used for clicking this button, but whenever i test it, the player acts as though it isn't a button at all. i even converted the text box into a graphic symbol and used that but it still doesn't read as a button when tested even though within MX it says it's a button hmmmmmmmmmmmm
can anyone help? thanks in advance.

rdawg125

View Replies !    View Related
To Text Var For One Button
Ok I am having problems with what seems it should be simple. I have to buttons
1. Input text field called artist
2. Input text field called song
I have one button to submit how to I would the action script so the button will react to what is type into both fields

Example- I want the movie to jump to frame (goodjob) if they have the right answer in both fields and the movie to jump to badjob if they are wrong on one of them or both.

this is what i put but dose not seem to work

on (release) {
if (art=="Jefferson Starship") {
gotoAndPlay("goodjob")
}else if(art=="jefferson starship"){
gotoAndPlay("goodjob")
}else if (art=="JEFFERSON STARSHIP"){
gotoAndPlay("goodjob")
}else if (song=="we built this city"){
gotoAndPlay("goodjob")
}else if (song=="We Built This City"){
gotoAndPlay("goodjob")
}else if (song=="WE BUILT THIS CITY"){
gotoAndPlay("goodjob")
}else{
gotoAndPlay("nope")
}
}

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved