Old Flash Code, Need Translation Please
Hello,
Can someone fix this code to flash 5/MX content.. it won't work on flash, I think it's code from flash4.
[code] On (Release) Duplicate Movie Clip ("/window", "/window" & x, x) Set Variable: "x" = x + 1 End On [code]
Can ya also tell me what it means, it's from a tutorial, i'd jus like to know what it does... it's meant to play a movie clip that holds a drag and drop window.
Ian
FlashKit > Flash Help > Flash MX
Posted on: 09-03-2002, 06:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Director -> Flash Code Translation
Hiya,
If anyone out there is familiar with both Director and Flash then listen up! (thanks...)
First, a bit of background info:
We have a flash movie which, when run, will be loading up a .cfm (text) file of variables to display current information about an ongoing event. We want to be able to reload this file if the file has updated, so we reckon that Flash needs to:
a) download the .cfm file every x minutes just in case it has been updated by a Coldfusion query
b) continuously (or every x minutes) check another smaller file which Coldfusion writes when an update has occured, and downloads the main file if necessary
c) check the 'timestamp' on the file every x minutes to see if it has been updated (see below)
Our Director guy says that a Shockwave movie can use the 'netlastmoddate' command to check the time and date when a file on a server was last updated. He's not sure though whether the file needs to be downloaded to return this value. If it does need to be downloaded again it defeats the purpose as we need to minimise data transfer (even though we are talking in the vicinity of Ks not MEGs).
So, 2 questions I guess -
1) Can Shockwave somehow check the 'newness' of the file on the server without querying Coldfusion? (I have my doubts.)
2) What sort of code are we looking at in Flash, assuming (1) is possible?
A final point is that we will have the .cfm file set up so that the file is not cached in the browser, so we cannot 'query' the browser cache.
Cheers
Dan
Key Code Translation
O.K. this is a pretty unusual way to go about inputting text, but it seems this is the only way I can figure to give the text a custom blinking cursor.
I'm attempting to simulate a specific application which has a underscore cursor instead of a vertical.
My hope is that I will be able to store the keycode of any given key the user presses, than translate that code back into the literal key i.e. "d" for example and output this to a dynamic text box.
here's what I have so far:
onClipEvent(keyDown) {
theKey = Key.getCode();
_root.output.text = theKey;
}
This puts the numerical value of the pressed key into the dynamic text box but I need to figure a way to translate the code back into a letter before it's displayed.
Is there a way to do this without having to list every possible keyCode and it's string value in the script?
Any help would be greatly appreciated.
Thanks.
Code Translation
hi all, I just wondering if anyone could be so kind to explain the property values of this piece of code:
ActionScript Code:
// Create bars)
width = getProperty("lev", _width) + 3;
for(i=0; i<18; i++) {
duplicateMovieClip ( "lev", "l"+i, 10+i );
setProperty("l"+i, _y, 68);
setProperty("l"+i, _x, 74+i*width);
Im using this peice of could in my movie, im not sure exactly what it does or understand how it exactly works but any help will be appreciated
thank you all
w9914420
Flash 5 Translation
Hello,
I have this little piece of script that I used in Flash 4 but that doesn't seem to work so wonderfully in Flash 5. Here is the script:
on (rollOver) {
setProperty ("button_movie01", _visible, false);
setProperty ("button_movie02", _visible, true);
setProperty ("button_movie03", _visible, false);
Flash MX To 5 Translation--Help
Help Please,
I just started using MX and am having a problem publishing a flash 5 player swf so that it maintains all functionality as the flash 6 player swf. The only functionality that's not translating to 5 is a very simple button that directs a movie clip mask to cover a certain area so that text becomes visible. The masking technique works in 6 for some reason, but not in 5--I'm using absolute targeting, i.e. _root.mask.
I can't seem to fix this. Is there a bug? I tried saving the MX fla as a 5 fla and exporting the swf from there, but no luck....weird.
--switch
Translation From Flash 4 To MX Please
Hi could someone translate this from flash 4 script to MX script please. I got the first two lines but I can't do the rest.
on (press) {
startDrag(this);
Car.gotoAndPlay ("1");
}
on (release) {
stopDrag();
if (_droptarget eq "/ICar") {
tellTarget ("/CarS") {
gotoAndPlay("2");
}
tellTarget ("/Car") {
gotoAndStop("2");
}
}
}
Translation From Flash 4 To MX Please
I am tring to do a tutorial but it is written in flash 4 and I don't understand flash 4 so could someone translate this, from flash 4 script to MX script please. i would appreciate thanks.
if (Number(/CarS:CarV) == 1 and Number(/DogSogV) == 1 and Number(/FlowerS:FlowerV) == 1 and Number(/HouseS:HouseV) == 1 and Number(/MiloS:MiloV) == 1 and Number(/PhoneS:PhoneV) == 1 and Number(/SunS:SunV) == 1 and Number(/TreeS:TreeV) == 1) {
tellTarget ("/Sound") {
gotoAndStop("2");
}
tellTarget ("/Board") {
gotoAndPlay("2");
}
tellTarget ("/Vars") {
gotoAndStop("3");
}
}
Flash Translation
would somebody please, as detailed as possible, translate these lines of code into english
Code:
j++;
if(j<20){
_root.box.duplicateMovieClip("box"+j,j);
}
i have seen ' i ' before, but i have never seen ' j '
the action is placed on the first frame and obviously manipulates the instance of an MC named 'box'
i know "what" it does, as i see that the box is duplicated and spewed across the stage
i ws just wondering when and why use ' j '
thx all u flash gurus!!
Flash 4 To MX Actionscript Translation
Hi. I'm working on formmail and flash and I think I have it figured out EXCEPT...I can't quite translate this actionscript to meet MX's standards. Could someone give me a hand?
SEND BUTTON:
On (Release)
Set Variable: "recipient" = "youremail@server.xxx"
Set Variable: "redirect" = "redirect.htm"
Get URL ("formmail path", vars=POST)
End On
CLEAR BUTTON:
On (Release)
Set Variable: "email"=""
Set Variable: "Comment"=""
Set Variable: "subject"=""
Ser Variable: "realname"=""
KOOL. Thanx for any help. For reference, here is the modified script I'm using for the send button that I keep getting Generator errors for:
var "recipient" = "youremail@server.xxx";
on (press) {getURL("formmail path", 0,"POST");
}
The error I get is:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Identifier expected
var "recipient" = "youremail@server.xxx";
Translation Dictionaries In Flash
Hi Guys,
I want to make Translation Dictionary from English to Japanese language.
For this I'm going to take input as english word and I want to give output as the meaning of the word in Japanese language.
I want to take free online Translation Dictionaries as my intermediate translater.
Can anybody suggest few URLs.
Thanks in advance.
Flash007
AC Translation From Flash Player 5 To 8
Hi,
im trying to translate this subscription form who works in player 5 but cant manage to make it work in player 8.
The problem is that my button isnt behaving like i want him to.
i want my button to 1st check my sections if they have text in it then send the info to my php file who sends back to me an email with all the forms content.
Right now this is working in player 5 but not in player 8 !
PS: i have attached the file to show u how this works.
thx alot in advance.
on (release) {
if (nom == "" || prenom == "" || adresse == "" || codepostal == "" || ville == "" || telephone == "" || email == "" || experience == "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(2);
}
}
Flash To Flex, Actionscript Translation
Can someone translate this Flash actionscript into Flex actionscript? I want to save text out a richtextbox id rte to a server. Then get the text back from the server and into the richtextbox. This is the Flash code:
var textValue = "";
function saveIt(eventObj:Object){
textValue = "textValue=";
textValue += rte.text;
_root.loadVariables("save.php","POST");
}
function getIt(){
_root.loadVariables("text/text.txt","POST");
var display:Array = textValue.split("=");
rte.text = display[1];
}
saveButton.addEventListener("click",saveIt);
getButton.addEventListener("click",getIt);
<mx:Button id="saveButton" x="97" y="231" label="Save"/>
<mx:Button id="getButton" x="97" y="275" label="Open"/>
Thanks,
JW
Text Flow In Flash: Translation Problem
I've built an educational training program in Flash originally in English. I am now having to translate it into Hebrew and Arabic but I cannot get the text flow in Flash to change from left to right, to right to left. I have changed all of the settings in Windows Control Panel and have unchecked the "Right to Left text flow" in Flash preferences. Any suggestions???
Rothrock's Array Shuffle Sample - Flash 8 Translation
I'm sure this is easy for those who knew Actionscript in earlier versions and aren't such newbies as I with Actionscript 2. I would like to use Rothrock's old array shuffle sample code (see attached), but I'm not familiar with the old way of doing things. Do I need to write a class called: Array extends Array with a shuffle method? Should I name this new Array class something like mydomain.Array and put it in mydomain's class library folder structure? Should I make the shuffle method public static? Should I use Math.random instead of random()?
Thanks for patient help from all you gurus out there.
Attach Code
Array.prototype.shuffle = function() {
for (var ivar = this.length-1; ivar>=0; ivar--) {
var p = random(ivar);
var t = this[ivar];
this[ivar] = this[p];
this[p] = t;
}
};
myArray=[0,1,2,3,4,5];
myArray.shuffle();
::translation:: HELP
I'm sending e-mail from Flash with CGI. It works fine, but I get an annoying confirmation page that loads after the send button is hit. I don't want any page to laod after it is sent.
My current code isn't working. I thought "null" would load nothing, but it loads a blank window. :-P Help!
on (release) {
success = "null";
getURL ("http://www.server.com/cgi-bin/cgimail/mail.txt", "", "POST");
[Edited by selah v3 on 01-24-2002 at 10:19 AM]
Translation Plz :s
hey
i'm from belgium and i am searching the word for this:
x²=x.x
x³=x.x.x
how do you call this?
thx
Xaero
Translation
this bit of code is inside some thumbnails that im trying to load.
onClipEvent(enterFrame){
bytesLoaded = this.getBytesLoaded();
bytesTotal = this.getBytesTotal();
//trace(bytesLoaded);
if (bytesLoaded > 100 && bytesLoaded >= bytesTotal){//a movieclip has 4 bytes itself. To make sure it is the movie loaded and not the movieclip set a value to over 4 bytes
_parent.percent = "100%"
myBytes = 100;//a var to be recognized on the timeline
}else{
_parent.percent = int(bytesLoaded/bytesTotal*100)+"%";
}
}
two questions:
what is the "&&" part ?
and have a i got the 4 bytes accounted for that are referenced in the comment ?
I Need A Translation...
Can someone help me translate this "tellTaget" business into dot language?
Code:
on (press) {
startDrag("/dragme");
}
on (release, dragOut) {
stopDrag();
if (getProperty("/dragme", _droptarget) eq "/ball2") {
/:vardisplay = "Its over 2!";
}
if (getProperty("/dragme", _droptarget) eq "") {
/:vardisplay = "";
}
if (getProperty("/dragme", _droptarget) eq "/ball1") {
/:vardisplay = "Loop 1";
tellTarget ("/ball1") {
gotoAndPlay("L1");
}
tellTarget ("/dragme"){
gotoAndPlay("play");
}
}
}
Thank you.
Translation Please Help
I was wondering if someone could put this in as3 form for me.
I just can't quite figure it out.
Code:
onload(){
oxml = new XML();
oxml.ignoreWhite = true;
oxml.onload = function(loaded){
if(loaded){
buildMenu(this);
}else{
btn0.label.text = "ERROR: no xml data";
}
oxml.load("menu.xml");
}
}
function buildMenu(xmlObj){
var menuNode = xmlObj.firstChild;
for(i=0; i<menuNode.childNodes.length; i++){
var itemNode = menuNode.childNodes[i];
var menuItem = (i==0) ? btn0 : btn0.duplicateSprite("btn"+i, i);
menuItem.label.text = itemNode.attributes.label;
menuItem._link = itemNode.attributes.url;
menuItem._y += btn0._height * i;
menuItem.trigger.onRelease = function(){
this.getURL(this._link, "_blank");
}
}
}
Thanks in advance.
AS2 To AS3 Translation Help
Hey guys, I am learning Actionscript and was given a tutorial written in AS2. The application I am working on is coded in AS3 and I was wondering if anyone could help me translate the AS2 code so that it will work in AS3. Thanks!
ActionScript Code:
_root.onMouseDown = function() {
angle = spaceShip._rotation;
angle = angle*Math.PI/180;
++depth;
name = "projectile"+depth;
_root.attachMovie("projectile", name, depth);
_root[name]._x = spaceShip._x+nose*Math.cos(angle);
_root[name]._y = spaceShip._y+nose*Math.sin(angle);
_root[name].xmov = speed*Math.cos(angle);
_root[name].ymov = speed*Math.sin(angle);
_root[name].onEnterFrame = function() {
this._x += this.xmov;
this._y += this.ymov;
};
};
As2 To 3 Translation
if I have a site designed in AS2... is it just a matter of going line by line and "translating" the code to AS3 or is it going to end up being a complete makeover of the entire code structure.
reason i ask is because there are some features available in as3 that i would like to use
As 1 To As 2 Translation
Hi :D, can u see any other way I can translate this ... at the moment the two codes do not do the same thing ... thanks :D
the crucial line is eval(eval("mc"+i)+".d") = i*15;
Attach Code
the old As1 :
stop();
mcPos = new Array();
for (i=0; i<24; i++) {
duplicateMovieClip("mc", "mc"+i, i);
eval(eval("mc"+i)+".d") = i*15;
}
and the new As2:
stop();
mcPos = new Array();
for (i=0; i<24; i++) {
duplicateMovieClip("mc", "mc"+i, i);
this["mc"+i].d = i*15;
}
AS3 To AS2 Translation
Hi. How would I write this AS3 in AS2?
Attach Code
var thisClip = parent;
trace(parent);
thisClip.nextFrame();
Translation ?
Hi,
I have just upgraded to Flash MX 2004 from Flash MX, I dont want to learn actionscript as a whole but I learn the bits I need
when I come across the need for them.
There are a few peices of script I have used in the passed in MX and I would like the equivalent in ActionScript 2.
The first makes a movie pause on a frame:
stop();
myInterval=setInterval(pausePlay,3000)
function pausePlay(){play();clearInterval(myInterval);}
The next handles a preloader:
if(_framesLoaded>=_totalFrames){gotoAndPlay("Main",1);
}
The last is a get url:
on(release){
getURL("nextPage.HTML");
}
I would like someone to give me these in the right syntax for ActionScript 2, but just as simple as they are, I dont want a
totally different more complicated method unless it is totally necessary.
Thanks:-)
Tell Target Translation
could someone please help me out...
how does this:
on (release) {
tellTarget ("_root") {
gotoAndPlay ("quad 4", 1);
}
}
translate to ver 5 actionscript?
i thought it would be:
on (release) {
_root.gotoAndPlay ("quad 4", 1);
}
}
but that doesn't work.
thanks.
kc
Translation Foibles
Using flash 5 I have put together a movie on a PC that I would like to be viewable on a Mac, from a CD. I have created projectors without problem on the PC. When I bring the FLA file onto a Mac it opens but it will not publish. Likewise, Any projector made on a PC will not open on a Mac. Any thoughts?
3d Translation (senocular Help Me Or Any One Else)
Following Senoculars Tutorial on 3D at
http://www.kirupa.com/developer/actionscript/3d_index.htm
which is excellent, even for a pea brain like me.
However, still having problems linking 2 concepts together.
If you look at the link below:
http://www16.brinkster.com/jayhoo/Jons_Steps4.html
You see i have 3d boxes drawn bia the API within attached Movie Clips (the green box is the centre of each clip). Each Clip is then moved through 3d space.
The problem is and what i want to do, is to adjust the perpective of the drawn points relative to the x,y,z properties of its home clip (the green box).
I have tried drawing the points only and not adjusting the clip but cant get this work for me either.
Any help would be graetly appreciated and i am more than happy to post my hideous attempt at rewriting senoculars tutorial examples.
cheers
Urgent---need Translation
hi there,
last week i found a really cool piece of code on this site, but it is in italian.
i have looked all over for something similar, but have found nothing than i am able to use.
was wondering if there was anyone out there that spoke italian and would be able to convert the scripting into english for me. it looks like it may be easy code to translate. i have tried using the online translation services, but when i try to convert, it messes the whole file up!! help!
i have tried to email the creator of the scripting, but have heard nothing!
please--I need help
thank you.
janey420
HTML Translation
<!-- BEGIN WWW.COM SEARCH BOX -->
<form action="http://www.appliedsearch.net/Searchit" target="_blank">
<input type="hidden" name="action" value="search">
<input type="hidden" name="afID" value="2972">
<table width="325" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#666666">
<table width="325" border="0" cellspacing="0" cellpadding="3" bgcolor="#ffffff">
<tr>
<td colspan="2" height="10"><spacer type="block" height="10"></td>
</tr>
<tr>
<td align="right"><img src="http://www.com/images/sbox/search_purple.gif" width="128" height="10" border="0" alt="Search The Web:"></td><td><input type="text" name="keywords" size="14"> <input type="submit" value="Go!"></td>
</tr>
<tr>
<td colspan="2" align="right"><a href="http://www.com/" target="_blank"><img src="http://www.com/images/sbox/powered_by_orange.gif" width="121" height="9" border="0" alt="Powered by WWW.com"></a> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<!-- END WWW.COM SEARCH BOX -->
This puts a search box on a html site, but my client needs this on a full flash site..... How the hell do I have a Input text box send this info to where it needs to go........HELP PLEASE !
Actionscript Translation From As1 To As2
Hi guys,
I am just working with this old code to convert it to AS2. Can anyone help?
onClipEvent (enterFrame) {
if (not(dragging)) {
vx = this._x-_root["target" + _name]._x;
vy = this._y-_root["target" + _name]._y;
if (vx>0) {
xaccel = -(vx*vx)/(_root.acceleration);
} else {
xaccel = (vx*vx)/(_root.acceleration);
}
vy = getProperty("", _y)-getProperty("/target" add _name, _y);
if (Number(vy)>0) {
yaccel = -(vy*vy)/(_root.acceleration);
} else {
yaccel = (vy*vy)/(_root.acceleration);
}
xspeed = (xspeed+xaccel)*_root.friction;
yspeed = (yspeed+yaccel)*_root.friction;
setProperty(this, _x, this._x+xspeed);
setProperty(this, _y, this._y+yspeed);
}
}
this bid is wrong: getProperty("", _y)-getProperty("/target" add _name, _y);
Thanks in advance!
Translation Services
Translationxperts, firm in its belief that businesses should focus on what they know and do best, provides translation services in the following language pairs only:
French - English
English - French
Quality is an overriding concern for us. All work done by our associates and freelancers is carefully checked and revised before being returned to the client. Moreover, term glossaries are built and maintained, in conjunction with customers, to ensure that all text is consistent and adheres to client-specific or industry-specific terminology.
Deadlines are rigorously observed, and our team is particularly skilled at translating large documents with very rapid turn around times.
Fields
Special expertise in Administration & Commerce, Science & Technology, Communications & Marketing.
Documents
Administration & Commerce: letter, contract, bid, form, report.
Science & Technology: report, white paper, specification sheet, user guide, on-line help.
Communication & Marketing: press release, article, speech, brochure, Web site.
Website : www.translationxperts.com
E-Mail : info@translationxperts.com
.fla Translation Process
hi folks,
does anyone know of a best practice for translating .fla files into different languages? i've been pasting out the text from the movie explorer panel, & pasting back in after it's translated, but I imagine there is a better way.
i've read a little in the help files about XLIFF using the Strings panel, but am not sure anyone out there knows more.
thanks!
AS To PHP Translation Of Algorithm
Didn't really know where to post this, so i'll start here. I have an algorithm that I used in a project, but I now need the same thing in php and I have no idea how to do it. Do any of you flash/php developers have any idea? thanks :$
ActionScript Code:
for (i=0; i<retArr.length; i++) { var pk:String = retArr[i]; if (this["order"+pk] == undefined) { this["order"+pk] = new Array(); this["order"+pk].push(retArr[i]); orderArr.push(pk); } else { this["order"+pk].push(retArr[i]); } }
It might seem unlogic but I simplified some of the code, because it was irrelevant.
Color Translation...
Does anyone know of a website or tool that will let me take a rgb color and translate it into the funky ra rb ga gb ba bb aa ab format? I don't really understand what offset means as compared to the other value that only goes to one hundred.
Thanks much...
AS 2.0 To 3.0 GetURL Translation...
I read the help and searched the forums, but this is my first time coding in AS 3.0 - Can someone translate this for me so I can start to figure out how it works? Thanks!
ActionScript Code:
reportBtn_mc.onPress = function () {getURL("http://www.skimonarch.com/snow_report.asp")}webCamsBtn_mc.onPress = function () { getURL("main/index.php?option=com_content&view=article&id=113");};
Tutorials Translation
Hey K man,
Have you tought about translating the existing tutorials to other languages?
If you do, I can help translate to portuguese.
Cheers
How Good Is The Translation Into F4 Files Out Of F5?
Hi all,
I had some general question about developing files in flash 5 but exporting as flash 4 files. I have to use Flash 4 because the app is deployed to the PocketPc platform.
Is it okay to use:
_parent.nameOfVar instead of ..:nameOfVar
Does Flash 5 translate this correctly?
It seems to be working fine in most instances, but i have such weird problems on the ppc that i am starting to wonder how well the translation from flash 5 and to flash 4 actually works, especially when it comes to the ppc flash player.
Has anybody ever experienced dot syntax problems that don't translate correctly? I am not using dot syntax in functions like tellTarget() or eval().
In addition I experience inconsistencies when it comes to if statements that check equality of strings. At times I had to go back to 'eq' instead of '==', in other cases the opposite is true. What is the correct/safe syntax?
*What are the no-no's you have in F5 ActionScript when it comes to the exporting to F4?*
Thanks, Dirk
Best Image Translation Path
Hello, and thanks in advance for any help provided.
We have dense and heavy AutoCadd (.dwg) file's of detailed maps. We have the whole country mapped out in this fashion. Needless to say the files are huge.
What we are trying to do is to show certain areas of these maps in flash, and give the user some interactivity over them.
What is the absolute best method to handle this sort of operation when it comes to image translation? Obviously, we can't import the .dwg files directly into flash (it is possible in Flash Mx) because of the file sizes.
We tried taking certain areas and exporting them into .eps and .wmf formats. Re-save them using illustrator and then importing them into the flash authoring environment. Some loss of quality is experienced with the eps format, and the wmf format is black and white.
The sizes are a concern as well. The format .wmf produces the smallest flash movies, and .eps produces rather large ones. Basically what I am looking for is advice. Should we import directly into Flash, or through illustrator (a lot more file formats are supported)? So what do you think is the best path of translation?
Another question: Is there, by chance, a document that fully describes in detail the different file formats and how they are used and managed within Flash?
Any advice is greatly appreciated.
Thank you.
MX Translation Strings WITHIN Buttons?
ive had a quick scoot over the new string panel in MX2004, and for a person who make sites that have to be translated into many different languages it seems like a godsend!
however - after quickly mucking around I noticed that text fields couldnt have strings linked to them if they were within buttons!! (or at least they werent working for me)
please say im doing something wrong?!?!
every element of my sites have to be translated - buttons and all :-(
many thanks for your help on this
Translation From English To Actionscript
Hello everyone !
I would need a button with the following action:
"when my button is pressed, play the current scene AND once you've come to its end (at frame 50), play scene number 2"...
If you think this is correct:
on (release) {
gotoAndPlay (1);
}
... and then redirecting to scene 2 when the scene has reached frame 50, well, you're wrong...
Because I also need another button (in the same scene as before) that says:
"when my button is pressed, play the current scene AND once you've come to its end (at frame 50), play scene number 3" !
I mean, each button will have to play the scene but the play will later be redirected to a different scene !
Can anyone help me please ???
Thanks a lot in advance !!!
Text Accessable For Translation?
I am creating an online interface that will require translation and am wondering if it is possible to simply edit the "html" file, assuming all text is saved as 'dynamic', and have this reflected within the site?
Basically, can you edit just the html file and re-upload to the server and have the text change?
Thanks in advance!
Button Translation Problem
Hi All, heres a problem to get your teeth into! Basically to make it simple i got 2 file:
a.fla
b.fla
b.fla is basically a library of assets which includes a number of buttons that are exported and some of which are used in a.fla Now the issue is that BEFORE they are exported i want to assign some dynamic text to each button. The type of buttons are "Track as Button" not components. File b.fla is preloaded. So the question is, is it theoretically possible to assign dynamic text to the buttons before they are exported for use in other files, in this case file a.fla
If it can be please could you give me some direction as in how!
Thank you.
Bitmap Translation Problems
I have a "slideshow" , if you will, that loops indefinitely. The slideshow sprite contains 4 Bitmap instances and a mask. When I put the slideshow into motion, I get some choppy animation, but this only seems to occur in the actual slideshow, the rest of the movie functions very smoothly. I feel like I am not correctly animating the Bitmaps, or I have left some settings undone.
An Array containing all available pictures (all are Loader instances)...
pic_array[pic1, pic2, pic3, pic3, pic4, pic5, pic6, pic7, pic8]
Then, we have my slideshow sprite, which contains only the bitmap children, which are referenced by ...
--> display_array[pic1, pic2, pic3, pic4]
The Loader instances each load a PNG that is 240x160, and is displayed unscaled in the slideshow.
For animation, I do the following upon every enterFrame event (@ 25 FPS)
Code:
for each (var picture:Bitmap in display_array)
{
picture.x -= scroll_amount; //scroll_amount is in pixels
if (picture.x <= left_pixel_boundary)
{
assignNewPhoto(picture);
picture.x += 960; //shifts to far right (240px * 4 pics = 960px)
}
}
assignNewPhoto() is a function that uses a pointer to iterate the pic_array through the available slots in display_array, by swapping bitmapData's.
I get two odd results.
Case 1: At slower speeds (and not so slow for that matter), the Bitmaps dont seem synchronized. Pic1 will move over by 2 pixels, and Pic2 will only move by 1 pixel. This is never an incremental effect resulting in overlapping or growing gaps, but rather causes a very "wobbly" picture, and the "wobble" of each bitmap seems completely independent of the other Bitmaps.
Case 2: At higher speeds, the effects of Case 1 are less noticeable, but are replaced by a worse yet effect. I end up with row shifting in my bitmaps. In this case, the shift is entirely uniform across all Bitmaps, and seems to be equal to the "scroll_amount" referenced above. The effect flashes in and out, leaving some very noticeable artifacts and distortions. The shift always affects the exact same rows for the duration of the movie, and it makes for some damned ugly animation.
(example)
---1111111111222222222233333333334444444444
---1111111111222222222233333333334444444444
1111111111222222222233333333334444444444 <--
1111111111222222222233333333334444444444 <--
1111111111222222222233333333334444444444 <--
---1111111111222222222233333333334444444444
---1111111111222222222233333333334444444444
I have tried various settings for cacheAsBitmap, pixelSnapping, smoothing, and disabled the mask, with no visible improvements.
Im at a loss here. This seems like a pretty basic animation, and I just cant get it to look really good. I dont need it to be perfect, but this is pretty noticeable.
Thanks for any help.
Translation For 3 Lines ActionScript
Hi,
I'm working on a contact form and found something on the internet that I need translated in to normal words
Code:
for (i=1; i<=fields_descriptions.length; i++) {
this["k"+i].text=fields_descriptions[i][2];
}
I guess it's about characters length ... maybe you can help me out here ..
Thank You
.fla Translation Process & Automation
hi folks,
does anyone know of a best practice for translating .fla files into different languages? i've been pasting out the text from the movie explorer panel, & pasting back in after it's translated, but I imagine there is a better way. i've read a bit in the help files about exporting to XLIFF (xml-type file) using the Strings panel, but it seems that you need to manually find & tag the text boxes & that they need to be dynamic.
is there a way to automate this process using actionscript (find all text boxes, make dynamic, & tag) or even applescript on a Mac? or is there a better way anyone knows of for localizing .fla files?
thanks so much!!
Linux To Windows Php Translation
Hey there, im am trying to make a flash mailer work. But i think there is a problem with the php.
I was sent this code:
<?
$to = "put_address_here@hotmail.com";
$msg = "$name
";
$msg .= "$message
";
mail($to, $subject, $msg, "From: My web site
Reply-To: $email
");
?>
and told all i had to do was change the 'to' address. I have done this and do recevie an email, but it is blank and goes directly to my junk folder. Hotmail complains of it having no sender id.
The sever im using uses a windows operating system but the guy that gave me the code uses linux based sever. and he says it works fine!
does anyone know how to translate this to work on a windows platform?
Any advice greatly appreciated as im bashing my head against a wall here.
cheers, Oli
A Good Translation Webservice?
Hi all,
I am looking for a good translation webservice, like the babelfish one that is no longer working... I looked around and found a few, but I want to ask also, to see if anyone had a favorite, or knows which one is the best... Anyone have any ideas?
Fion
Aaagh Flash4 To 5 Syntax Translation
Hi,
I wrote some code for someone on the newbie board, it worked fine. Now he asked me to help combine it with the following code he got elsewhere. I have been trying to combine this script with my code. After going nuts for hours I realised this will not run when exported to flash5. Can someone help me get it updated to 5 syntax.
thanks in advance
mark
my_radius = (getProperty("", _width)/2);
my_x = getProperty("", _x);
my_y = getProperty("", _y);
my_n = getProperty("", _name);
if (Number(ymov) == Number("")) {
ymov = Number(random(/:speed))+1;
xmov = Number(random(/:speed))+1;
ysign = random(2)-1;
if (Number(ysign) == 0) {
ysign = 1;
}
xsign = random(2)-1;
if (Number(xsign) == 0) {
xsign = 1;
}
xmov = xmov*xsign;
ymov = ymov*ysign;
}
if (Number(my_x)<=Number(Number(my_radius)+Number(/:speed))) {
xmov = xmov*-1;
my_x = Number(my_radius)+Number(/:speed);
}
if (Number(my_y)<=Number(Number(my_radius)+Number(/:speed))) {
ymov = ymov*-1;
my_y = Number(my_radius)+Number(/:speed);
}
if (Number(my_x)>=Number(/:movie_width-my_radius-/:speed)) {
xmov = xmov*-1;
my_x = /:movie_width-my_radius-/:speed;
}
if (Number(my_y)>=Number(/:movie_height-my_radius-/:speed)) {
ymov = ymov*-1;
my_y = /:movie_height-my_radius-/:speed;
}
n = 1;
while (Number(n)<=Number(/:total_circles)) {
// don't check myself
if (n ne my_n) {
n_x = getProperty("../" add n,_x);
n_y = getProperty("../" add n,_y);
n_radius = (getProperty ("../" add n, _width) / 2);
delta_x = (Number(my_x)+Number(xmov))-(n_x);
delta_y = (Number(my_y)+Number(ymov))-(n_y);
if (Number((Number(delta_x*delta_x)+Number(delta_y*de lta_y)))<Number(((Number(my_radius)+Number(n_radiu s))*(Number(my_radius)+Number(n_radius))))) {
nx = eval("../" add n add ":xmov");
ny = eval("../" add n add ":ymov");
tempx = xmov;
xmov = nx;
set ("../" add n add ":xmov", tempx);
tempy = ymov;
ymov = ny;
set ("../" add n add ":ymov", tempy);
set ("../" add n add ":collision", my_n);
} else {
}
}
n = Number(n)+1;
}
setProperty ("", _x, Number(my_x)+Number(xmov));
setProperty ("", _y, Number(my_y)+Number(ymov));
|