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








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!!!




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 07-03-2005, 11:06 PM


View Complete Forum Thread with Replies

Sponsored Links:

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
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
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
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
Email // Flash MX - Heeelp
Hi guys..

how come the basic get url -> mailto'.. code on a button doesnt work in MX like it did in Ver.5?!

Am I missing something really simple here?!!?

Thanks in advance.

View Replies !    View Related
Oh Great Masters Of Flash HEEELP Me
How can i make an html page where i have my launchpad with all the buttons in a "frame" and by clicking one of the buttons i get the whole text and everything else in another "frame"?
Heeeelp
tnx in advance
n00p

View Replies !    View Related
Flash 5 Stupid Popup Problem Heeelp
hi i have a main html that loads a first pop up (called VRAIINTRO.html) then in that pop i have a page with another pop up that should open over with a email script (called ukdetc.html)
the problem is when i click that email link to pop it doesn't pop but opens in the same window (with no browser menu!!!)
how come it won't pop another new window over the main one??

thanx for your help, i must get this site online tonite !!!!


•••••••this is what i have put on my buttons on flash : ••••••••

on (release) {
getURL ("Javascriptopupwindow(1)");
}



heres's the texts :


•••••••••••••The VRAIINTRO.html document••••••••••••••••••

<HTML>
<HEAD>
<script language="javascript">
function popupwindow(index)
{
if(index==1)
{
site="diffcomp.html"
}
if(index==2)
{
site="ukdetc.html"
}

window.open(site,"newwindow","toolbar=0,location=0 ,directories=0,status=0,menubar=0,scrollbars=1,res izeable=1,width=800,height=500")
}

</script>
<TITLE>VRAIINTRO</TITLE>
</HEAD>
<BODY bgcolor="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- URL's used in the movie--> <A HREF=Javascriptopupwindow(1)></A> <A HREF=Javascriptopupwindow(2)></A>
<!-- text used in the movie--> <OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=800 HEIGHT=500>
<PARAM NAME=movie VALUE="VRAIINTRO.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="VRAIINTRO.swf" quality=high bgcolor=#FFFFFF WIDTH=800 HEIGHT=500 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>




•••••••••••THE UKDETC.HTML DOCUMENT HERE••••••••••

<HTML>
<HEAD>
<script language="javascript">
function popupwindow(index)
{
if(index==3)
{
site="emailacp.html"
}
if(index==4)
{
site="emailinfo.html"
}
window.open(site,"newwindow","toolbar=0,location=0 ,directories=0,status=0,menubar=1,scrollbars=0,res izeable=0,width=350,height=350")
}
</script>
<TITLE>ukdetc</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<A HREF=Javascriptopupwindow(3)></A> <A HREF=Javascriptopupwindow(4)></A> <!-- text used in the movie-->
<!--The Different Company was born with this century, to offer e (Moscow). To find a store near you click on the link below : --><OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=800 HEIGHT=500>
<PARAM NAME=movie VALUE="ukdetc.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="ukdetc.swf" quality=high bgcolor=#FFFFFF WIDTH=800 HEIGHT=500 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>

View Replies !    View Related
Bought Flash Template: Heeelp Need Advice As To How To Customise...
Hi All

Big help needed everyone.... OK, so I guess you are gonna call me an idiot, but heck, I suppose I deserve it. Here's the lo-down...

I purchased an excellent Flash template from templateMonster that comes complete with all PSD's, .fla, source code, as well as the html version of the site - and I am very VERY pleased with it. I am wanting to use this excellent template for my new Limited company, and so started looking into how I could customise it and add my own content etc.

Here is where I am stuck. I thought that because the PSD's were supplied, it would be easy for me to create the new 'content' and my images etc, then the flash would pick up these new images and content and my site would be showing my content instead of the Latin text and made-up names/contacts/pages/products etc that are supplied as default with the template. How wrong I was....

It seems that the whole site is contained in 2 files... an index.html and a flash object file. All the images, logo's, text, and content is contained within the darned embedded file and it seems I need Macromedia to edit or amend it. Phah!!! my very bad mistake I appreciate.

So, is there anyone here who can advise if I need to purchase Macromedia and learn how to customise the template myself, or should I look to hire someone to do this for me? I have approached one company - a super guy - who has been very professional and polite, and who has provided a quotation for me, but as I have no idea how much effort will be required to create the new flash object (with embedded content), I am wondering if I can perhaps learn do this myself by creating the new content by amending the PSD files in Photoshop etc. Then I'd need to create the new flash object but have no idea how to get Macromedia to pick up and compile this new content of mine instead of the default stuff within the template.

I have also asked a friend if he might be able to do this as a favour, but am really in need of getting this done ASAP. If no help is forthcoming by Monday I'll contract with the excellent chap who has already quoted for me. It's just that when I purchased the template I had no idea I would have to pay more money out to place my content in it!!!! I know html, and know that content can easily be amended - but had no idea I couldn't do this with flash.

So... can anyone help...? if so, please PM me here or contact me on themusicman@gmail.com with details and a possible price. Thanks all...

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 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

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
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
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
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
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
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
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
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
Heeelp
hey guys. i have attached here a little "game" if you want to call it. when you open the attachment click on the black squigly and open the actionscript panel to see what's goin' down. the problem is, when the ashley mc gets to the wall squigly, i want her to stop!! but she never does! i've dried a dozen different things!

View Replies !    View Related
Heeelp
Jesse,
thanks for the tutorial on amfphp.
I'd like to get sephiroth's iage gallery to work, but no deal!
I tried everything i could think of, your test_remoting seemed to work (at least i got a blank page without errors after trying with the wrong path to the main files 1st, which did echo a path error message), but only traces the 1st three lines, but nothing returned from php, then i tried with both the files from amfphp v050 and 051, and sephiroths downloadables, and the app just "hangs and nothing happens, then i tried to call the included gateway.php directly, and the browser openend a download box for the script, same happened with the "discovery.php" included with amfphp..
I really don't know what else to try, also i was wondering if the file in the services folder stays in that folder in the same folder as the gateway resides, or has to be moved into the "services" folder in the flashservices folder..
I'm confused and helpless..thanks in advance for any further informations to get this working.
I have root(public html), in that one folder with all the amfphp files called flashservices, then also in root a folder called amf, and in that one different folders with your test app, sephiroths gallery, and the example, and nothing works:
http://www.flasheyez.com/amfphp/imageBrowser/

(if you try to call http://www.flasheyez.com/amfphp/imag...er/gateway.php , for me the browser tries to download the script!?..)

View Replies !    View Related
Heeelp
A frame has this code in my game:

ActionScript Code:
subLife = function (iVal, oID) {
    // ------------
    // : Break coco
    // ------------
    eval(oID).gotoAndPlay(2);
    if (liv>0) {
        // ---------------
        // : Subtract life
        // ---------------
        liv -= Number(iVal);
        // ----------
        // : New coco
        // ----------
        duplicateMovieClip(coco, "coco" add i++, i++);
    } else {
        // --------------------------
        // : Write death code here...
        // --------------------------
        _root.gotoAndStop("death", 1);
    }
};


coco= falling coco, enemy
clown=player

WHEN LIFE (liv) is 0, the movie gonna jump to scene "death"..
But it don't do it!
What's wrong?

View Replies !    View Related
Communicating SWF. Swf To Swf...Heeelp
Hi,

I want to let 2 swf talk to each others...

I've seen tutorial talking that this can be achieved, but they didn't covered that, i think this can be done with instance and telltarget!

Someone can help me? I just want the 1st to tell the other to play or go to a specific frame.

Remember that this is 2 separate swf... NOT one loaded into another.

Plz, tell me its possible plzzz! and tell me how!

View Replies !    View Related
HEEELP - Newbie Here
how do you do this...


(this code is in a movieclip, onload i have give IDnumber = 1)

if ("_root.CheckVar"+IDnumber eq "true") {
status = "true";
}


the problem is i can NOT make it understand this syntax :

>>> "_root.CheckVar"+IDnumber <<<



as



>>> _root.CheckVar01 <<<

..well i could..but the it MUST be dynamic..thats why i have to use something like "_root.CheckVar"+IDnumber (IDnumber as variable)

sorry..im am newbie..so simply dunnow what to do..

View Replies !    View Related
<< Please Help Heeelp Heeeeelp >>
I'm trying to put together all the group frames ( as animation movie) but when I copy and paste the group frames after each other I can have only ONE background color for the whole movie how can I lock the background color in each sense ??

View Replies !    View Related
Pleaze Heeelp
This is my first post in here and I think I'm going to ask a stupid question! I downloaded some movie-backgrounds from here, but, how can I make them backgrounds for a web page??? I tried to export them as animated gif-s but not all of them work. Please help and I hope this question wasn't asked before!

View Replies !    View Related
Pleaz Someone Heeelp
COULD SOMEBODY EXPLAIN HOW TO FIX THIS ERROR?

**Error** Line 3435: Expected a field name after '.' operator.
p.import = function (o) {

HERE IS FULL FUNCTION:

p.import = function (o) {
this.importProp("gravity", o, "Vector");
this.importProp("airFriction", o);
var fo = o.Objects.childNodes;
var _local1 = 0;
var l = fo.length;
while (_local1 < l) {
var _local2 = fo[_local1].attributes;
var _local3 = new ICE[_local2[((_local2.class != null) ? "class" : "classString")]]();
_local3.importObject(fo[_local1]);
this.addObject(_local3);
_local1++;
}
ICE.FixedObject.prototype.bounceFriction = parseFloat(o.attributes.bounceFriction);
ICE.FixedObject.prototype.slidingFriction = parseFloat(o.attributes.slidingFriction);
};

View Replies !    View Related
Explosion.heeelp
hey guys.......

in in a jam here....

basically ive got a graphic (symbol) of a hand on the stage and i want it so that when the user clicks on that hand...the hand explodes.

now obviously the hand exploding is going to be a seperate animation of the hand exploding but how to i get thet animation to play once only when the hand is clicked...

its kinda hard to explain here but im really strugglin...

please email me at viktajatt@hotmail.com
and i will show you the fla. were talking about here...

heelppp!!

View Replies !    View Related
Heeelp Plz LoadMovie
Hy guys, I really need help.

I want to built a photo gallery with the loadMovie function, it works, if i take a picture from the web, but if i open it at potoshop 7, and save it with the same name, it doesn't work. I really don't know why?

View Replies !    View Related
Heeelp Please Database Asp
Okay so what I want to do is make a High Score list using a Database and Asp Can someone please tell me how to do that or direct me to a good site.

View Replies !    View Related
Visibility On/Off... HEEELP
I have 2 mc's which I would like to turn off or on through _visible after releasing a button.

How do I do this???

This is what I have so far:

ActionScript Code:
on(release) {}
    if(getProperty("rgb", _visible) == _visible = false) {
        setProperty ("rgb", _visible, true);
}

PLEASE HELP!!!!

View Replies !    View Related
HEEELP With Smooth Mousedrag
Question: how do I make objects get dragged by the mouse, with a slight delay, and acceleration/deceleration dependant upon the mouse's distance from the object?

PS: I've been posting this question over and over for ages.
If you cannot reply to this thread due to some technical problem, please let me know by sending an email to blackzer0@hotmail.com

(*)

View Replies !    View Related
Heeelp - Tell Target Question
Can anyone help?

I have placed a drop down menu (copied from the flash tutorial files) in 1 of my SCENES.

I want the buttons to take me to other scenes.

I tried targeting: _root - but I don't know how to write "gotoandplay" another scene in the movie.

How would this translate properly:

_root.scene.frame ???

can it be done - or will I have to convert my scenes into separate movie clips and place them all in one scene?

Any help would be great!

View Replies !    View Related
Txt To Image Navigation [ugh-heeelp]
Ok, ill try my best not to ramble but here's the problem...


...txt to image...

i want the image that will be in the center to have the arrows left and right to go to a new image, but the txt at the bottom i want to arrange with the three key words at the bottom. so the top middle and bottom lines will give the description in the middle of the picture... i didnt really want to use mc's too much as script would keep file size down... anyone got any ideas?



cu$E
:drummer:

View Replies !    View Related
All The Loops Playing On Top Of Each Other HEEELP
I created 5 scenes and I want 1 music (loop) to play in the site. But The loop was playing only when the scene is on. So, I put the loopin every scene. Now when go toa new scene the loo starts from the begining, & since the first one was already going it kills the mood.

Is there a way to place the sound loop once for the entire site ?

I am not smart enough to write code ( that's why I have a mac)
can you gurus help me out ?

View Replies !    View Related
Modifing A Preloader... Heeelp Plz
I tried to modify the following script:

decLoaded = (_parent._parent.getBytesLoaded()/_parent._parent.getBytesTotal());
percLoaded = Math.round(decLoaded*100);
bytesLeft = (_parent._parent.getBytesTotal() - _parent._parent.getBytesLoaded());
_parent.percent = percLoaded add "% loaded";
_parent.Kleft = (Math.round(bytesLeft/1024)) add "K left";
_parent.bar._width = percLoaded*2;

So I could get the total bytes displayed...
Tried this (line 1 and 5 is mine):

totalBytes = (_parent.getBytesTotal());
decLoaded = (_parent._parent.getBytesLoaded()/_parent._parent.getBytesTotal());
percLoaded = Math.round(decLoaded*100);
bytesLeft = (_parent._parent.getBytesTotal() - _parent._parent.getBytesLoaded());
_parent.Ktotal = totalBytes add "loading";
_parent.percent = percLoaded add "%";
_parent.Kleft = (Math.round(bytesLeft/1024)) add "K left";
_parent.bar._width = percLoaded*2;

But it's not working - of course.
I placed a corresponding text field corresponding the movie clip... no luck. what should i do?
Also, is the getBytesTotal enough to get the size to appear in kbytes not bytes?
Heeelp anyone?
Forgive my ignorance............
Much appreciated

View Replies !    View Related
Zoomed In SWF Files...HEEELP
Hey everyone...here's the deal...my company uses Flash files to show parts breakdown of HVAC units...In order to see the picture clearly, you must zoom in several times. Then, when you try to print the zoomed in version, it prints out very small & you can't even see the info. Is there anyway to print the zoomed in version of the SWF file?

Thanks!

View Replies !    View Related
Prototype Heeelp Plsss
k i feel like a noob becaus ei havent worked with prototypes in so long and i was just fooling around today and coudlnt get this to work


Code:
function shapeObj() {}
shapeObj.prototype = new MovieClip();
shapeObj.prototype.createShape = function()
{
// INIT
this.shapeColor = (this.shapeColor) ? this.shapeColor: 0x999999;
this.shapeAlpha = (this.shapeAlpha) ? this.shapeAlpha: 100;
this.shapeWidth = (this.shapeWidth) ? this.shapeWidth: 100;
this.shapeHeight = (this.shapeHeight) ? this.shapeHeight: 100;

this.borderThickness = (this.borderThickness) ? this.borderThickness: 1;
this.borderColor = (this.borderColor) ? this.borderColor: 0x000000;
this.borderAlpha = (this.borderAlpha) ? this.borderAlpha: 100;
this.borderMargin = (this.borderMargin) ? this.borderMargin: 0;

this.borderLeftMargin = (this.borderMargin>0) ? 0-borderMargin: 0;
this.borderTopMargin = (this.borderMargin>0) ? 0-borderMargin: 0;
this.borderRightMargin = (this.borderMargin>0) ? shapeWidth+borderMargin: shapeWidth;
this.borderBottomMargin = (this.borderMargin>0) ? shapeHeight+borderMargin: shapeHeight;
// END INIT

this.beginFill(this.shapeColor, this.shapeAlpha);
this.moveTo(0, 0);
this.lineTo(this.shapeWidth, 0);
this.lineTo(this.shapeWidth, this.shapeHeight);
this.lineTo(0, this.shapeHeight);
this.lineTo(0, 0);
this.endFill();

if(this.borderMargin){
this.createEmptyMovieClip("borderMC", 2);
this.borderMC.lineStyle(this.borderThickness, this.borderColor, this.borderAlpha);
this.borderMC.moveTo(this.borderLeftMargin, this.borderTopMargin);
this.borderMC.lineTo(this.borderRightMargin, this.borderTopMargin);
this.borderMC.lineTo(this.borderRightMargin, this.borderBottomMargin);
this.borderMC.lineTo(this.borderLeftMargin, this.borderBottomMargin);
this.borderMC.lineTo(this.borderLeftMargin, this.borderTopMargin);
}
}

myShape = new shapeObj;
myShape.createShape();


any help is highyl appreciated - thanks!!!!

View Replies !    View Related
Heeelp... Loading Contents
i have some pages that i used pictures as a background in them, these backgrounds got to be min 1024x768 so they are large files that decrease the speed of loading the site's content.. so i wanted to make a flash file that is an intro to the whole the site where i can load 2 or 3 backgrounds then they are saved in the temporary internet files so when entering the site after the flash is loaded the backgrounds are loaded instantly and thouigh the site's browsing speed increases...
the flash file goes like this.. a loading text, a loading bar (instance name 'bar') and an Mx.components.loader(instance name 'load1'), i set the path to "backgrounds/image1.jpg" (it's where the background is(suppose we are loading only one)) then set it's visibilty=false..two dynamic text boxes, one with instance name 'loaded' and one with instance 'total'.. then put all of the controls in 2 consequtive frames, without any stop or goto commands, so the flash goes between the 2 frames endessly.. so i can wright the code in the frames, and here the code goes like this :

Code:

var i=this._parent.load1.getBytesLoaded();
var i2=this._parent.load1.getBytesTotal();
var p=Math.floor(i/i2);
this.bar._width=p*173.3;
loaded.text=i/1024;
total.text=i2/1024;
if(p==1)
{
getURL("index.aspx");
}

I test the movie on my computer and it works just fine... the contents are loaded and the loaded KBytes keep increasing every second till it's equal to the total Kbytes and then the link is redirected, just as i wanted. Then i upload it on the server.. and open it from my browser, it doesnb't work at all, the bar's width is 0, and the textboxes are like this 0 / 0.0001231355 alot of numbers like that and sometimes it's Nan/Nan, i don't get it ? how this happens ? why does it work on my computer ?

View Replies !    View Related
Gather Several Numbers.. Heeelp
The title may be bad specified..
Im making a blackjack game..
and i have a problem, just figured out how to make random numbers..
now i need to gather the 2 numbers on the cards right...
Like a total card score...
HOW THE HELL CAN I DO THAT?

Would REALLY apreciate it.....

Thanks..

View Replies !    View Related
Math.random HEEELP
This is weird..

on (release) {
myVar = Math.round (Math.random ()*13+1);
}

I get a number called 0 ! And that is not a number in blackjack lol!

What could i be doing wrong?

View Replies !    View Related
HEEELP Sound On/off Buttons
Hi,
I have 2 buttons, 1 play button and 1 stop button, and 3 consecutive keyframes, (both btns on same layer)play btn is on keyframe2 and stop btn is on keyframe3(play btn identifier is: play and stop btn identifier is:stop). I have imported a sound and right clicked on it, selected linkage...,ticked the Export for actionscript and Export in first frame boxes and named it as music1 (the identifier).
In keyframe 2 and 3 i have put
Code:
stop();
and in keyframe 1 i have :
Code:
my_sound = new Sound();
my_sound.attachSound("music1");
play();
- the script is correct.
On the play btn (keyframe2) i have put the code:
Code:
my_sound = new Sound();
my_sound.attachSound("music1");
play();
- BUT it has errors! I dont know why. here is the error message:
Code:
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 1: Statement must appear within on handler
my_sound = new Sound();

**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 2: Statement must appear within on handler
my_sound.attachSound("music1");

**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 3: Statement must appear within on handler
play();

Total ActionScript Errors: 3 Reported Errors: 3
I NEED help!
then on the 3rd keyframe on the stop btn i have:
Code:
on (release) {
_root.my_sound.stop();
_root.gotoAndStop("play");
}

and the script is fine. so can anyone help.
Thanks for your time!

View Replies !    View Related
HTML Into A Movie? HEEELP
Hi everybody. I need help in this matter:

I created an empty movieclip on my page. So now I want that my Guestbook (this file is not in my hands it's just an URL to it) has to load into this empty movieclip.

I tried it with this action but it don't work:

on (press) {
loadMovie("http://www.gastbuch24.de/gastbuch.php3?user=milkmug", "movie");
movie._x = 0;
movie._y = 0;
}

Does anybody know what I do wrong? Thank you 4 ur help.

MiLkmug

View Replies !    View Related
A Clash Of ActionScript Need Heeelp
Ok well I'm building a website here and I'm having a very frustrating issue here.


It's a fullscreen flash site.
Everything is grouped into an MC on the main timeline
This main MC has a Navigation MC with buttons in it and a Content MC.
and I'm using this code on the MC to keep it all centered in the browser:


ActionScript Code:
Stage.scaleMode = "noScale";Stage.align = "TL";main._x = Stage.width/2;main._y = 0;function tweenmain(easeType) {    var beginX = main._x;    var endX = Stage.width/2;    var time = 1;    var mc = main;    mainXTween = new mx.transitions.Tween(mc, "_x", easeType, beginX, endX, time, true);}main.onResize = function() {    tweenmain(mx.transitions.easing.Bounce.easeOut);};Stage.addListener(main);main.onResize();



In the Content MC, swf's are loaded externally for each page when a button is clicked in the navigation
This code on the timeline in the main MC coincides with the Content MC and is used for dynamic resizing of the Box to a specific width and height:


ActionScript Code:
uniqueBounceID = 0;function bounce(param, endingVal, clipsName, speedFactor, bounceFactor) {    if (clipsName._x<>undefined) {        clearInterval(_root["bounceInterval"+clipsName[param+"ID"]]);        var bounceID = _root.uniqueBounceID++;        clipsName["param"+bounceID] = param;        clipsName["endingVal"+bounceID] = endingVal;        clipsName["speedFactor"+bounceID] = speedFactor;        clipsName["bounceFactor"+bounceID] = bounceFactor;        clipsName["startingParamVal"+bounceID] = clipsName[param];        clipsName["changedParamVal"+bounceID] = 0;        clipsName[param+"ID"] = bounceID;        clipsName["callBounce"+bounceID] = function () {            if (clipsName._x == undefined) {                clearInterval(_root["bounceInterval"+bounceID]);            } else {                if (clipsName["endingVal"+bounceID]<>Math.round(clipsName[clipsName["param"+bounceID]])) {                    clipsName["changedParamVal"+bounceID] = clipsName["changedParamVal"+bounceID]*clipsName["bounceFactor"+bounceID]+(clipsName["endingVal"+bounceID]-clipsName["startingParamVal"+bounceID])/clipsName["speedFactor"+bounceID];                    clipsName["startingParamVal"+bounceID] += clipsName["changedParamVal"+bounceID];                    clipsName[clipsName["param"+bounceID]] = Math.round(clipsName["startingParamVal"+bounceID]);                } else {                    clipsName[clipsName["param"+bounceID]] = clipsName["endingVal"+bounceID];                    clearInterval(_root["bounceInterval"+bounceID]);                }            }        };        _root["bounceInterval"+bounceID] = setInterval(clipsName["callBounce"+bounceID], 10);    }}



When a button is clicked this AS is used to set a new width and height for the content box to tween dynamically to that specified width and height:


ActionScript Code:
onClipEvent (load) {    newWidth = 900;    newHeight = 600;}on (release) {    _root.bounce("_width", newWidth, _parent.box.boxBg, 10, .6);    _root.bounce("_height", newHeight, _parent.box.boxBg, 10, .6);    _parent.box.boxMovieHolder.loadMovie("home.swf");}



And when I run this swf in an html file, it doesn't center in the middle of the browser... It's way over to the right. It just wont stay in the center of the browser window like its supposed to... What could be the issue here? Anyone see any visible clash in the AS I'm using?


Thanks guys.

View Replies !    View Related
HEEELP HELP Button Sounds?
Screaming for help seems to help. Sometimes anyway. Looking for a good source of button-click sounds, or the correct term for these so I can check google. Thanx!

View Replies !    View Related
Heeelp - Dynamic Vars / PHP, Duplication
Im really struggling with the last part of what I'm trying to do here - that's if I'll be able to do it at all maybe some1 can help.

Im using PHP to pull records from MySQL into flash - that part works ok.

Im getting the data into flash and putting the each pair of variables into a movie clip, which Im duplicating vertically. One of the variables has varying length, so I'm using a method I picked up on here (thank god) for using "maxscroll==1" on the varying field and moving to the frame where the textbox is long enough to accommodate it. It took a while to get that to work but eventually it did.

My only remaining problem is the positioning of the duped movie clips. I've tried:

((previousClip._y +(previousClip._height /2))+5) + (thisClip._height / 2)

but that didnt work.

I also tried using getbounds yMax - yMin on previousClip - that didnt work either. It looks like no matter what I do flash is assuming that all the duped movie clips are the same height.

I tried using the method of calculating the approx. height of the clip by (getting the length of the data string and dividing by the average number of chars per line) X height of char - but thats kinda ugly as the gap differs depending on whether the string is full of i's or full of w's.

It seems that the for loop Im using only sees the original height of the previousClip.

It so nearly works - if anyone can shed some light on this Id be very grateful.

I've put the .fla up at http://www.firmdesign.co.uk/mysqltes...cvarsmovie.fla
in case you wanna take a look.

View Replies !    View Related
V Wierd Button Probs Pls Heeelp
lo all. basically i have a main timeline with other movie clips targeted off it. however, when i move from certain clips to others part of the button remains and can still be clicked messing up the whole navigation... :/ i cant find the remains of the buttons anywhere on the .fla to try and remove them but they are still appearing in my .swf... go creation > concepts for example

the .fla and the .swf are all posted at www.jamesbrannan.cjb.net

pls do take a look if you have any ideas as i have posted before but nothing was solved... using mx btw but uploaded as flash 5 .fla

thx for your time
lev

View Replies !    View Related
HEEELP Cant Work Out The Answer To A Problem
I posted a thread about an asfunction problem in which i recieved a reply, which i presume contained the solution to my problem; the problem is - i cant fully understand it?!
Can someone please work out this senerio for me,as im now really depressed

MY QUESTION - How do i go about executing multipule actions with the asfunction from an external txt file/files (e.g:<A HREF="asfunction:actions"> ) from this setup........

I hope this makes sense

USING A MUSIC CATALOGUE AS AN EXAMPLE:-

2 external txt files:
one contains a list of titles(each title acts as a button using A HREF=)
one contains the track details/listings of each title

2 dynamic textfields:
one (lets call it "titles") contains text loaded from the titles external text file, the other (lets call it "details") is an empty text field that recieves (or is supposed to) the track details/listings of the pressed title.

Each of the track details has a variable assigned to it in the details text file (eg:&details1=, &details2, &details3= etc) .

My problem is with the syntax, and how to write/apply it in the function () so depending on which title is pressed, the resulting details appear in the details textfield.

I'm also thinking of loading corresponing swfs to each tiltle into an empty MC container as well!

My aim is script this thing in such a way as to update content & info without going into the Flash authoring enviroment.(well as much as possible anyway)


I got this reply from JAYBEE but i could not work out how to implement it in my scripts - i.e: which bits are written in the actionscript plane and which are written in the text file.
Also i didnt know where the details_arr arrays are supposed to go; basically i would like this actionscript with comments/discriptions discribing what each section is doing and how to implement them.
--------------------

--------------------
JAYBEE's ANSWER!?! -

the trick is to read the data in in some sort of structured format in the first place, which is why xml would be good here, but you can still do it with text....when you load the details text put it into an associative array:


ActionScript:
----------------
[as]my_lv = new Loadvars();
my_lv.onLoad = loadDetails;
my_lv.load('details.txt');
details_arr = [ ];[as/]

[as]function loadDetails() {
for(var i in this) details_arr[i] = this[i];
}[as/]

------------------------------------------------------------------------
then you have an array that looks like:

ActionScript:
----------------
[as]details_arr["songName1"] = "Recorded 2003 etc etc";[as/]
[as]details_arr["songName2"] = "Recorded 2003 etc etc"[as/]

------------------------------------------------------------------------

and you can make your asfunction go like this:


ActionScript:
---------------
//<a href="asfunction:displaySong('Hoo%20Hah');">Hoo Hah</a>

[as]function displaySong(song) {
title_txt.text = unescape(song);
details_txt.text = details_arr[song];

}[as/]
------------------------------------------------------------------------

the only problem there is for song titles with spaces in them - you will need to send them as escaped strings then unescape to display - thats the song titles, not the details......its cos you can't have spaces in the name of the keys in the associative array

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