ActionScript 2.0 :: Creating Japanese Furigana Dynamic Character In Flash?
Jun 29, 2007How to create dynamic furigana- japanese character in Flash. I am using php script and mysql. Here' the furigana sample picture. [URL]
View 4 RepliesHow to create dynamic furigana- japanese character in Flash. I am using php script and mysql. Here' the furigana sample picture. [URL]
View 4 Replieshow to write japanese character using unicode if i read the unicode data ("u3042") from XML?because i only can write it using :
var str:String="u3042";
trace(str);
its work, but if i read it from xml and write it, it's not work..
I am tasked with created a site that handles Japanese characters, and am looking for any insight you can offer for this.My main issue right now is the size spike the site will get if I embed a font like "Arial Unicode MS" with the Kanji character set which has 3174 glyphs. When I compiled an fla with only a textfield and these Japanese characters embed it stands at 731k. So I am looking for options to either eliminate the need to embed the Kanji characters or find a way to limit the number of characters needed to handle the Kanji character set.
1. Which fonts if any come pre-installed on Wins & Mac that natively handle Kanji characters.
2. If there is such a font for Win & Mac does this mean I don't need to embed the Kanji glyphs for the font in a swf, and can be sure any user viewing the site will be able to see the Janji characters, because their OS already can handle displaying Janji characters. For example if I go to a webpage on the internet that has Japanese characters I am able to view the Japanese characters, is this because the browsers themselves have these fonts embedded or is it pulling from my OS to display the Japanese font?
3. If I do need to embed a font to handle the Janji characters do I need to include all 3174 glyphs to cover all possible English equivalents. I read that you can specify a unicode range for a font, believe this only works with CS4 though. I don't know much about unicode ranges let allow the ranges I need for Japanese characters.
I am trying to get Japanese text loaded from an XML file to display in flash, but nothing I try works.
I've tried using device fonts, bitmap fonts, _sans, Arial, and embedding the fonts. Nothing works!
I have been trying to embed "小塚ゴシック Pro M" font via export for actionscript and I haven't had luck so far. I did the font.registration method but still no luck I had no problem doing this in CS3 and CS4 but CS5 must be different.
View 1 RepliesI have been working on a subtitles engine for flash/flv video player. On my Mac everything is great, nice aliased glyphs, displaying all the characters, etc. Switch to windows, it all goes out the window. Some machines with Eastern Characters enabled display fine, but I can't guarantee all users will have this option selected.
I am using the TLFTextField, I am pulling in UTF-8 XML with Chinese/Japanese characters. I have tried embedding the (required fonts/glyphs) but pushes the file size up massively. I have also tried changing it to unicode, with no joy. Has anyone got any experience with displaying these characters while maintaining a low file size.
Is their any way to make character spacing tighter in dynamic text using Flash MX?
View 2 RepliesI have created the MainMovieClip and Scrollbar as follow ....
my problem is that when I input japanese characters,the characters display at the top corner of the swf until I confirm the input. if I install FlashPlayer "flashplayer10_1_rc2_plugin_041910", then the japanese characters display in the textfield normally....why is that???
with flash player 10.0, I can't input the japanese characters in the textfield.
var mcMain:MovieClip = this.createEmptyMovieClip("mcMain", this.getNextHighestDepth());
scrp.contentPath = "scrollMovieClip";
[Code].....
how to embed Japanese fonts from XML into a Flash website? [URL] MAYBE the following tutorial can work! but i don`t understand how to implement it using Japanese fonts [URK]
View 5 RepliesI'm having problems creating a character creation forum, that I've created using ActionScript 2.0 and I've been using the loadVars(), sendandLoad() and many variables to create it. You see, I've tested it but it won't save the characters onto my Angelfire account that I've already created at the start. I've created many things with Flash and I'm a newbie at Dreamweaver, so I'm using ColdFusion to save the information.
View 0 RepliesRight basically I have a character and a background. The background scrolls as you press left or right on keyboard to create the illusion of movement. I want the character to flip when you change from holding down left to right and vice versa, but when I do the following code it doubles the size of the character once and then it stays. It flips fine but in the transformed fat size.
Here's the code:
var mySpeed:Number = 10;
function keyIsDown(evt:KeyboardEvent):void{
if(evt.keyCode==Keyboard.RIGHT){
walkingPlane_mc.x+=mySpeed;
greyCharacter_mc.scaleX=-1;
[Code] .....
I refer to this tutorial: [URL]
i'm creating a calculator similar to the one Kirupa creates on the first page. I think I've just about got my head around calling functions, but I want the calculation output text box (text_answer) to change dynamically, as you change the values in the variable text boxes. i.e. I don't want to have to hit the submit button each time the values are changed.
how would I go about making a change to the code to do this? I've tried lots of methods but seem to be going round in circles on something that must surely be pretty simple..
I've been trying out small snippets of code just to practice with and get comfortable with making classes and small games.Right now I am trying to make a simple combat with Orks. Where there is a Parent Class ORK with several ORK children classes like SentryOrk, MetalOrk, etc.
The Ork class basically puts in the many stats used by the ork such as health, strength, vitality, special, luck, etc. And then the children classes modify those like Sentry Ork will have less health and more luck.I did all that fine, but the problem I have is I want there to be multiple Sentry Orks out with their own defined stats.Right now whenever I do initiate the attack one out of three orks on the screen, they all share the same health.I know what the problem is, I just don't know how to go about dynamically making each class their own?Do I have to make a whole other class to bring them onto the stage with their stats like create a new class that handles all ENEMY POP UPS? I don't see how to do that either?:
[code]...
I need to create a dynamic movie player in the flash website, i tried Import Video... (File > Import >) , then i put a relative URL of xml file (e.g. xspf.xml) under the "Already deployed on web server..." option. but the video doesn't show nothing at all.
This is my code in xspf.xml:
[Code]....
is there any other better or easier way to create an flv player within flash website which support multiple video file as a playlist?
I would like simulate road in my game, and for this i use road's lanes and traffic, lanes and traffic dynamic created like this
if(roadlineTimer-- == 0){
roadlineTimer = 30;
newRoadline = new Roadline();
[code]......
I thought I had a good hold on how to create buttons from a class, but my invis class will not return the button that is created to my fla. I have been able to access functions of invis class from my fla, even instantiate the object, but none of the button states carry over to the fla. If you can help I'd appreciate it. I placed the code below.
invis class
Code:
package {
import flash.display.SimpleButton;
import flash.display.Shape;
[code]...
The trace seen in the button fla return null, somehow none of the states are applied to the object.
I need to create flash interactive animation for one one of my regular clients, which should look and work similar to example bellow: Link This is how my clients product (shirt) should look like and what sections should be editable: [URL] Basically it should work this way:
1. End user chooses some element of shirt which he would like to edit (for example collar)
2. When he clicks on that element, popup windows shows offering two main options: to change color and graphic (texture or pattern), same as on nike store customize example
3. After user changes one section (collar) he goes to other section (lets say sleeve) and so on
4. User should be able to zoom in or zoom out that shirt and also if it is possible to rotate it in 4-5 positions
5. At the end it should be able to save that work (and load it if he wants to later ) and be able to print it.
I have made many animations, games, banners and similar using Macromedia Flash MX and Adobe Flash so I am not a flash newbie but this is a first time I am dealing with this type of work.I know that there is no step by step tutorial for this kind of custom interactive animation. how to create these three first steps (1. 2. 3). Regarding steps (4.) and (5.) I think I could realize it (zoom in, zoom out, rotate movieclip, save in database and print screen), because I had some previous experience regarding this part.
I'm getting dynamic text texts from external XML.Language is turkish.
The turkish characters are not displayed properly.
What do I have to do, to get them displayed properly ?
Is there a character or word limit for the dynamic text box in Flash CS5? I am using Classic Text and am copying a large amount of text (about 4,700 words or 31,740 characers with spaces) into the text field, but the text is cut off at a certain point (at about 2,600 words or 17,795 characters). I'm using a UIScrollbar on the text box.The full text can be copied into Flash CS3 but not CS5 so what is going on? Did Adobe create a word limit in the new version? is there some other way around this, other than splitting up the text into 2 text fields? I should note that I cannot use TLF text for compatibility issues in case that is a possible solution.
View 3 Repliescharacter spacing on dynamic text is greyed out, is there any way to fix this with AS or is there any other workaround?
View 4 RepliesIs there a way for flash to return a specific character from a string into dynamic text.
Example:
Code:
var headline = "kirupa"
character.text = 5th letter of headline
trace(character.text);
Then it would output the letter p, because it's the fifth letter.
how can i restrict max number of characters in a dynamic textfield?is it possible somehow?
View 4 RepliesI am having trouble with some characters such as...
Code:
"
and...
Code:
'
The font file does include these characters and I have embedded them into the textfield?
I've Googled & Binged to no avail. I'm trying to create a dynamic menu in Flash using PHP & MySQL and bring it into Flash using AS3 DataProvider. My menu works fine with a local Array, but I seem to have an issue with the Type being a String and not an Array, but how do I set it up properly so the types are correct? So I started with a typical, non-dynamic array and it works to create my menu:
[flash=]var items1:Array = [
{myClass:"SCI101", question:"What color is the sky?"},
{myClass:"MATH110", question:"What is the square root of 81?"},
{myClass:"SCI101", question:"How fast is the turtle?"},
{myClass:"SCI101", question:"How far is the Earth from Mars?"},
{myClass:"xXxXxXx", question:"xXxXxXx"},
[Code] .....
I have the code below but I need to generate it with a for loop. What is the proper way to do this? I don't initially know how many points i will have. I just want to create a for loop to loop through a variable that holds the point count such as "var totalPoints=10"
//1
var p1oint = new Point();
points.addChild(p1);
[code]......
I'm working on an AS2 chat and I'd like to be able to place an emoticon at a specific location within a textbox. Is there a way of calculating a specific character's x & y position? I've even tried using textWidth and textHeight to calculate a specific location within the textbox, but the coordinates never really match. Keep in mind I have a multiline, wordwrap textbox with dynamic text in it. I've tried using monospace fonts and true type fonts, embedded and not, but the result is always very approximate, if not completely off.
View 6 RepliesI've been making a game in ActionScript 2.0 Flash CS3. Now I want to be able to display my characters alpha using dynamic text. The instance name for the character is char and the Var for the dynamic text is alpha. I want to be able to display the characters alpha and ALSO the characters current alpha in other levels for example.
Variable for lives in level 1:
_root.lives = 5;
Variable for lives in level 2:
_root.currentlives = lives;
I want to be able to do the exact thing but display the 'char' alpha instead.
Trough a button action I want to change the contents of a dynamic text field (i have five buttons in total). I made this textfield style bold, and added a (inner) shadow filter to it. Everytime a certain button gets clicked the content and colour of the textfield change. I want to retain the style and filter. However, while the colour change goes correct, the style and filter go back to regular..Through a coincidence i discovered that if I append the textfield in stead of replacing it entirely the transitions goes correctly.[code]In summary if i click the button with the append text action to it first, everything goes well..however when i click the buttons containing the replace text action first the style of the dynamic text field goes back to regular.
View 7 RepliesIm using this xml "data.xml":
HTML Code:
<XML>
<salesreps>[code]...
I want to generate a mc for each rep with 6 text fields containg the 6 values for eash rep.So for this xml there would be 3 mc's with 6 text fields in each. This is one of my first times really diving in to xml parsing in Flash.
I need to add some Japanese characters into AS in Flash within a function such as
function my_clean_char(x) { var okchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ天平七年随我朝使帰朝不獲一簣玄蕃頭従五位上袁晋卿賜姓清村宿禰亦所不顧" okchars += "abcdefghijklmnopqrstuvwxyz天平七年随我朝使帰朝不獲一簣玄蕃頭従五位上袁晋卿賜姓清村宿禰亦所不顧" okchars += "0123456789" okchars += "-, ()." if(okchars.indexOf(x) >= 0) { return true } else { return false }}
this displays ok within this forum but in the AS all I see is small boxes where the japanese characters are. Anyway to fix this?