AS2 script does not work in Flash Professional CC (was: I really need quick help!)
Hey guys, I wrote the following on our school-PC Code but now home it fail totally and I have no idea why. My only idea is that I have written in Action Script 2 in school and now in Flash Professional CC can only Action Script 3. If there is someone who can help me that it will work again, I'd be VERY VERY happy!
OK, here's the Code.
var currentround = 0;
var value = 0;
var points = 0;
var Leben = 3;
Var seconds = 0;
Questions =]
["Also yesterday kommt eine question hin!", "Yesterday die erste Antwortmoglichkeit.", "Yesterday the second Antwortmoglichkeit.", "Yesterday die dritte Antwortmoglichkeit.", 'Yesterday die vierte Antwortmoglichkeit.', '3'],
["What is 6 + 6', '5', '3', '12', '24', '3'"].
["Welche Haarfarbe hat Wladimir Wladimirowitsch Putin?", "Blond", "Braun", 'Fanny', 'Grau', '4'], //Keinen plan was as Haarfarbe hat, ich meine das Grau ist also eine der 4.
[« 2 », « 4 », « 5 », « 6 », « 5 », « 4 »],
['asdadsda', '4', '5', '6', '7', '2']
];
onEnterFrame = function () {}
Question = issues [currentround] [0];
A1 = issues [currentround] [1];
A2 = issues [currentround] [2];
A3 = issues [currentround] [3];
A4 = issues [currentround] [4];
pfeld = points;
antwortA_btn.onRelease = function() {}
Value = 1;
{if(questions[CurrentRound][5]==Wert)}
richtig();
}
else {}
falsch();
}
}
antwortB_btn.onRelease = function() {}
Value = 2;
{if(questions[CurrentRound][5]==Wert)}
richtig();
}
else {}
falsch();
}
}
antwortC_btn.onRelease = function() {}
Value = 3;
{if(questions[CurrentRound][5]==Wert)}
richtig();
}
else {}
falsch();
}
}
antwortD_btn.onRelease = function() {}
Value = 4;
{if(questions[CurrentRound][5]==Wert)}
richtig();
}
else {}
falsch();
}
}
function richtig() {}
CurrentRound = currentround + 1;
Punkte = Punkte + 10;
Seconds = 0;
}
function falsch() {}
CurrentRound = currentround + 1;
Points = points-10;
Seconds = 0;
}
};
Thanks for any help!
According to me, that there are some things wrong with the code even in AS2. Translation of AS3 is somewhat different and is doomed to failure. But you can read this and begin to get an idea of what the differences are. As all of this is quite short, maybe you should start from scratch in AS3.
var currentround = 0;
var value = 0;
var points = 0;
var Leben = 3;
Var seconds = 0;
Questions =]
["Also yesterday kommt eine question hin!", "Yesterday die erste Antwortmoglichkeit.", "Yesterday the second Antwortmoglichkeit.", "Yesterday die dritte Antwortmoglichkeit.", 'Yesterday die vierte Antwortmoglichkeit.', '3'],
["What is 6 + 6', '5', '3', '12', '24', '3'"].
["Welche Haarfarbe hat Wladimir Wladimirowitsch Putin?", "Blond", "Braun", 'Fanny', 'Grau', '4'], //Keinen plan was as Haarfarbe hat, ich meine das Grau ist also eine der 4.
["2", "4", "5", "6", "5", "4"],
['asdadsda', '4', '5', '6', '7', '2']
];
addEventListener (Event.ENTER_FRAME, onEnterFrame);
antwortA_btn.addEventListener (MouseEvent.CLICK, antwortArelease);
antwortB_btn.addEventListener (MouseEvent.CLICK, antwortBrelease);
antwortC_btn.addEventListener (MouseEvent.CLICK, antwortCrelease);
antwortD_btn.addEventListener (MouseEvent.CLICK, antwortDrelease);
function onEnterFrame(e:Event) {}
Question = issues [currentround] [0];
A1 = issues [currentround] [1];
A2 = issues [currentround] [2];
A3 = issues [currentround] [3];
A4 = issues [currentround] [4];
pfeld = points;
}
function antwortArelease(e:MouseEvent) {}
Value = 1;
If ([currentround] questions [5] == value) {}
richtig();
} else {}
falsch();
}
}
function antwortBrelease(e:MouseEvent) {}
Value = 2;
If ([currentround] questions [5] == value) {}
richtig();
} else {}
falsch();
}
}
function antwortCrelease(e:MouseEvent) {}
Value = 3;
If ([currentround] questions [5] == value) {}
richtig();
} else {}
falsch();
}
}
function antwortDrelease(e:MouseEvent) {}
Value = 4;
If ([currentround] questions [5] == value) {}
richtig();
} else {}
falsch();
}
}
function richtig() {}
CurrentRound = currentround + 1;
Punkte = Punkte + 10;
Seconds = 0;
}
function falsch() {}
CurrentRound = currentround + 1;
Points = points - 10;
Seconds = 0;
}
Tags: Adobe Animate
Similar Questions
-
Tiara startup script does not work when running file associated with
Hello
I have a startup script that works correctly with tiara itself, however when I open a file associated with tiara (tdms files) the startup script does not work. Is it possible to ensure that the script runs without worrying? Thanks for the help!
Bala
Hi Bala,
Depending on your use case, I suggest you call the next VI, which comes with LabVIEW, after your purchase VI is the creation of the data file. Just pass the data file path in the upper part of entry and your path to the VBScript file in less than entry.
"C:\Program Files (x 86) \National Instruments\LabVIEW 2013\vi.lib\ExportToExcel\DIAdem report Assistant Start CSC.vi '.
Brad Turpin
Tiara Product Support Engineer
National Instruments
-
C-level extensibility does not work in Flash Pro CC
It is now impossible to create a native C/C++ library and export C functions that can be used by Flash commands for example. The sample "SampleDll" C-level extensibility project now does not work in Flash Pro CC as well:
http://help.Adobe.com/en_US/Flash/CS/extend/WS5b3ccc516d4fbf351e63e3d118a9024f3f-7783CS5.h tmlhttp://download.Macromedia.com/pub/Developer/Flash/Flash-Pro-samples.zip
When Flash Pro CC is installed the "< user_home_dir > / AppData/Local/Adobe/Flash CC / < language_code >/Configuration/external libraries" already contains a dll that exports the MM_Init and the MM_Terminate, so presumably the extensibility of level C is still available, but its likely new use may not yet be documented.
Hi Pierre,.
C-level extensibility is supported by Adobe Flash CC just that you need to build the 64-bit version now. What is the error you get? You can try the link of file sample shared in my post above?
Kind regards
Soline
-
Point culminating script does not work correctly
I try to get the yellow filled rectangle to become visible behind the digital field when the numeric field is greater than "1". Can anyone help to see why my script does not work?
https://Acrobat.com/#d=MJObRvA * l9tbFmrlHcMHUA
Thank you
-Don
Hi Don,
Your code does not work because because it is not actually executed. It's because of put you the code on the text box itself output event and this would require the user to move to that field and then leave the field and then run the code.
I would recommend you change you form to add this code at the end of the code that runs your "addAttachment" button and then the form works as I expect.
If (NumberOfAttachments.rawValue > 1) {}
RectangleYellow.presence = "visible";
}
Hope this helps
Malcolm
-
What should do? IE 64 bit does not work w/flash 10.0 or 10.1
What should I do? IE 64 bit does not work w/flash 10.0 or 10.1
I (we) have the same problem. We do not wish to use the 32-bit browser. It's time to finally get to the next step and use all 64-bit applications.
I cannot help thinking that Adobe delays this compatibility on purpose for some reason any. This is absurd.
It will cost them market share in the affirmative. It's frustrating we're talking everywhere on the Internet.
Adobe, you feel that you have reputation. Whether you like it or not, windows 7 64 bit is hot right now and is widely sold in every store in the small and large computer.
You repeat for 3 years that you "will have a 64-bit version in the next release. Is not what some might call a lie? Of course I do. It is causing you to lose credibility because you're not be truthful.
-
Describe in SQL script does not work as you wish
Hello
Could you please help me determine why this script does not work.
He said that the date is not set.
Thanks in advance
set p_day_sh = & data_sh
set p_rowid_sh = & rowid_sh
declare
date of p_day_sh;
p_rowid_sh varchar2 (18);
Start
If & p_day_sh is not null then
trains t update
Set t.offdate = to_date ('& p_day_sh ',' DD-MM-YYYY HH24:MI:SS')
where t.rowid = '& p_rowid_sh';
commit;
end if;
end;Hello
In a command SET, if the string to the right of the = sign contains spaces, then it must be in quotes: in the case otherwise, only the first group of characters, white space will be affected.
For example:define p_day_sh = &data_sh
If & data_sh has this value:
11-06-2009 06:25:09
then the DEFINE command is
define p_day_sh = 11-06-2009 06:25:09
and & p_day_sh Gets the value of the part to the workspace:
11-06-2009
Either eliminate the space, Alex has proposed, or place the chain on the right side of the sign = in double - quote:
define p_day_sh = "&data_sh"
The double quotes will not change the meaning if & data_sh contains no white space.
-
can't connect to my home internet income james ashley forgot it the link password does not work and the password I was given does not fit into the password box
Are you sure that you do not have to register on this site through the usual way and what you should be used elsewhere on the site?
Have you tried to contact them to help this topic or to check if they have a FAQ on this subject?
I found this in another thread that you created [*]:
I'm not sure do I bought a home income internet james ashley program and I copied the login info I was given and the password does not fit into the window of password and I forgot the link password does not work I sent emails, but do not receive an answer im don't know what to do is anyway you can help me to recover my info or help me change the password?
I assume that you have downloaded and installed this program and need to use this password in this program or only you can use these data to download the program from the site james ashley?
-
_root in as2 code does not work when, inside a symbol?
Hi I am currently using as2 on this project, I work with. I am a beginner in as2. Apparently, my problem is that _root is not working when placed inside a symbol. Is it possible to make it work?
I tried that when he is not within a clip, it works. But I really need to be within a clip. Any way to make this work?
It's my current setup
I have a clip named mc01 and then mc01 includes an another movieclip named mc01in (with an instance name of mc01instance) and a button named buttonmc01. I placed the code in buttonmc01
on {(press)
_root.mc01instance.gotoAndStop (3);
}
But it does not work. I think there may be a solution for this, but since I'm just a beginner in flash, I hope you can enlighten me if it is possible to make it work like that?
MC01 (root movieclip)-> mc01instance & buttonmc01
You ' r to access the mc01instance of your buttonmc01 then it should be
on {(press)
_root. MC01.mc01instance.gotoAndStop (3);
}
or
on {(press)
mc01instance.gotoAndStop (3);
}
-
USB does not work with flash or usb HD drives
Lenovo T60 with XP Pro. USB flash drive appears in my computer, but must be formatted. If I click on the message in the format software generats the reader would noy be formatted. In properties-> volume are not met. If I click on fill to field will fill with the correct information. After OK everything will be gone. On an another identical T60, everything is OK. In the Manager of-> / place - >... it shows the correct information, the disk is online. Change the letter has no effect.
With USB HD even more interesting. A (350 GB) HD looks like 3 disks: 2 small HD and one HD unallocated. Yet once, it looks like 1 hd if I connect to other computers.
Mouse and keyboard work fine.
I cleaned the reg. for usb devices. After that, if I insert the USB XP key will be detected and will show message that new hardware installed and ready. However, it does not work as I described above.
I appreciate all the comments
Hmm,
In this case I have to reformat all of my usb drives and usb HD even all of them are OK if I use other computers. I'll try it, but this isn't a solution. USB is not a big problem, but what is on USB HD?
Yes, I get you. Try it on the USB first just to see if it solves the problem. The question is of course with the Windows installation and how it's the disc but, re-setup of can not solve. This way if you still experience the problem after formatting the flash drive you will be one step closer to understand the issue.
-
Re: What can I do if Flash player does not work? Flash player work on Mac?
March 1, 2015
I'll just update that I can't really do anything else. I found several other unanswered questions like mine. I found an answer that mentions that it can be the video card in place, so I'll post a screenshot of my information.
March 1, 2015
I posted this question 25 and have not yet received response. Because of this problem of crash, I can't do anything on my computer apart from solitaire game and hang out Adobe communities looking for an answer. I found several issues like mine (Mac, firefox, flash player constantly crashing) who have no answers either, and I'm getting upset. I've been floating around Mozilla and Apple Help sections, and there is no answer there either. How can I get an answer? Or is there just no fix for this problem and Flash player does not work on mac more? Y at - it another program that I can use instead of Flash player? I like a lot to an answer, the answer, or anything cause I've stuck here until then. Thank you for you time.
Here are several reports of incidents:
BP-0b57d4c3-0df9-4070-950E-835142150301.txt
BP-35af1213-1ff8-4216-94ff-8d3342150226.txt
BP-9371e9ab-8388-4138-bf6a-ff7e62150226.txt
BP-3c28fafa-24f8-400C-9c6c-333e12150226.txt
BP-5f9a1a2b-5a7c-48ff-8B86-d32502150226.txt
BP-0d407ea3-045b-4B15-9036-35d112150226.txt
BP-34c3785b-f5e2-4c98-92b7-d111f2150226.txt
BP-1cfda1c4-b0ab-4099-9eed-24eee2150226.txt
BP-d96a272e-7159-4D32-b0c7-ffc0e2150226.txt
BP-fead3f14-2c7b-404c-ba57-945a82150226.txt
BP-d671ca47-33f9-4DB5-b2A4-d71bd2150225.txt
BP-fe7c8af3-FA53-4105-85E5-e9d652150225.txt
BP-30330112-fc69-4147-987a-cd0762150225.txt
BP-46df20c3-9367-4F7F-9AD9-3a2872150224.txt
BP-ea63edb9-AACA-4abe-BE62-3601f2150224.txt
BP-769269b1-6DDA-46ab-9aa8-9ac912150224.txt
BP-987770d6-f8cf-4615-994C-24eb72150224.txt
BP-71328410-afc1-4904-b8ff-1a4b52150224.txt
BP-363ee02f-9c3d-46A4-aac6-ef48f2140307.txt
February 25, 2015
What can I do if Flash Player does not work?
MacBook Pro 10.6.8
36.0 Firefox without plugins
Adobe Flash Player 16.0.0.305
Hello
Since last week, Adobe Flash Player did not work on my computer at all. I can't watch videos and a webpage using Flash for accidents of ads. I tried to use Adblock, thinking at first that the ads were the problem because they froze my computer in the past. There is nothing, so I went through the guide for Flash on the Mozilla Web site problems. I removed all plugins, disabled acceleration hardware and even uninstalled Firefox and Flash player, then the reinstalled again. Still, it crashes and I don't know what to do anymore. Is there something that can be done? Thank you for your time.
Incident reports are:
EED4D9C6-DF7A-4541-B9BE-D9F85B545DF6.dmp, this one is the most recent.
EED4D9C6-DF7A-4541-B9BE-D9F85B545DF6-browser.dmp
97897DC6-023E-46E8-B956-B316941BE1E9.dmp
97897DC6-023e-46E8-B956-B316941BE1E9-browser.dmp
5DB17FD7-F568-4E15 - 8 D 31 2E7C38C8BB2D.dmp
5DB17FD7-F568-4E15-8D31-2E7C38C8BB2D-browser.dmp
05DD72E2-D111-49D3-93D2-902567F21D8A-browser.dmp
05DD72E2-D111 - 49 3 - 93D 2 - 902567F21D8A.dmp
8A3FC15A-FE5F-40A0-B4B4-F3E01BDAC03C.dmp
8A3FC15A-FE5F-40A0-B4B4-F3E01BDAC03C-browser.dmp
F1CF597D-8F8C-4CDF-A196-B141F4476AFE.dmp
F1CF597D-8F8C-4CDF-A196-B141F4476AFE-browser.dmp
CB635126-64C4-4219-89C9-196EEEB34877-browser.dmp
CB635126 - 64 c 4-4219-89 C 9 - 196EEEB34877.dmp
213A8C2C - 4 d 11-447C-90E9 - B9E9831CA46B.dmp
213A8C2C-4D11-447C-90E9-B9E9831CA46B-browser.dmp
F7F307FC - 2-4E23-8319 - A0AD4DEA847B.dmp 12D
F7F307FC-12D2-4E23-8319-A0AD4DEA847B-browser.dmp
351A53BA-251B-4EC2-8DF4-B442565DB95D-browser.dmp
351A53BA-251 b-4EC2-8DF4 - B442565DB95D.dmp
1F9B7047-7CDA-4E45-9639-B3F7FAB79B22.dmp
1F9B7047-7CDA-4E45-9639-B3F7FAB79B22-browser.dmp
62AEFB08-2788-479C-A356-F19E407F396F-browser.dmp
62AEFB08-2788-479C-A356-F19E407F396F.dmp
19DD0479-258 a - 41 0-9621 - 1D643F2F39A3.dmp
137DC4C5-181E-4E7D-BEC4-B3B9C2287C6F.dmp
A73C1A22-CBE2-4CEB-90E9-8D0BC34D4804.dmp
8340E86D-CC2B-4A97-A3EB-831502FA6786-browser.dmp
8340E86D-CC2B-4A97-A3EB-831502FA6786.dmp
EACF0128-7761-4F4B-979D-22EDA2BF571E-browser.dmp
EACF0128-7761-4F4B-979D-22EDA2BF571E.dmp
Bug 3947102
Thank you very much for the help. It seems silly to lead people on the forums if it is not guaranteed help. I have here a telephone number or an email address instead?
-
Properties property example javascript in Adobe introduction to scripting does not work?
I am completely new to scripting so I thought I would start with the guide Adobe pdf script.
Page 18 it gives examples of 3 ways to use properties. The first 2 work very well, but the third simply ignores the part of the properties even when I directly copy paste it.
It's the Tip:
JS also provides a properties property, which allows you to set multiple values in a statement. You
Place all of the values between the braces ({}). Within the braces, you use a colon (:)) to separate one)
name of the property of its value and the pairs of value of property name/separation of property by using a comma (,).
myDoc var = app.documents.add)
myLayer var = myDoc.layers.add)
myLayer.properties = {name: "my new layer", visible: false}
So I know about Photoshop, you must use ArtLayers, but even in Illustrator it added another layer without renaming or the definition of visibility.
Anyone has an idea why this does not work?
That might work for Illustrator but it does not for Photoshop. I'll see if I can find this owner of documents and bring them to clean it. See my post above for links to the Photoshop documents. You can try to post your Illustrator questions or comments on the Illustrator scripts forum.
-
Does not work in Flash Player 10.2 VideoEvent
Same code works in 10.1 and earlier versions, but does not work on 10.2... Is - this bug or intentional? Is it possible to run VideoEvent in flash player 10.2?
The compiler seems to be confusion fl.video.VideoEvent with flash.events.VideoEvent. Just use the path of the entire class, as follows:
vidPlayer.addEventListener (fl.video.VideoEvent.READY, videoReady);
And in the event handler:
function videoReady (e:fl.video.VideoEvent): void
{
do something
}
-
Java script not working not not in 1 pdf, but the same script does NOT work in other
Dear Experts,
I have a problem with java script.
I created 2 PDF files with the same name under the names of form and shape.
I wrote a javascript script and the script seems to work in a (Demand2.pdf) and DOES not work in others (exemple.pdf).
The link for Demand2.pdf is
https://Acrobat.com/#d=XIydWx1RIU4oNdTySHtHfgand the link for exemple.pdf is
https://Acrobat.com/#d=sKPRs2dtDY57RSvMVtnh3wCan you please guide me on this.
Thank you very much
BookFans
Hello
The second file (exemple.pdf) is saved as Static. The script changes the visual appearance of the form (show and hide objects). This requires the file to save dynamic PDF format. This option is available for registration - as the dialog under the file name.
Good luck
Niall
-
RMAN script does not work as a cron job, but works when explicitly executed
Oracle 10 g 2 10.2.0.1, Oracle Enterprise Linux 4 U7.
I've added a task to crontab of the oracle user who looks like the following:
the tracks work as expected but the rman command never works the inside of cron, it always returns code 1, but if I call the script itself from the command line#ORACLE_HOME,ORACLE_SID and PATH are set in the user's profie TAG=`date|awk '{print $1"_"$2"_"$3}'| tr [:lower:] [:upper:]` echo "backup started on`date` "> /home/oracle/rman.log rman target / LOG='/home/oracle/rman_run.log' << EOF run{ sql 'aler system switch logfile'; backup full database tag='$TAG' include current controlfile; delete noprompt obsolete; } exit; EOF echo "rman finished, returned $? " >> /home/oracle/rman.log echo "Backup ended on `date` " >> /home/oracle/rman.log
It works smoothly and the backup is performed.
what I am doing wrong?what I am doing wrong?
no no no ORACLE_HOME and ORACLE_SID is defined in script
The script does not source in the script of environmental requirementsenv | Tri o /tmp/capture.env
above indicates how deficient the script environment cron is really
-
the tables does not work in flash lite
I couldn't get a multidimensional array to work in flash lite, then tried a regular table - is not no longer works.
Copy the following code works:
var myVar;
myVar = 5;
answer_true_button_btn.onPress = function() {}
points_txt. Text = String (myVar);
};
This code does not work:
var myVar:Array = new Array (5);
myVar [0] = 5;
answer_true_button_btn.onPress = function() {}
points_txt. Text = String (myVar [0]);
};
Now do multidimensional arrays.
I tried in Flash Lite 2 and 2.1.Here's the problem: I had 1 selected ActionScript (even if Flash Lite 2.1 has been selected in the box 'Version') in the publication settings. Apparently, you write in AS 1 or 2 AS and publish in Flash Lite x.x.
Flash Lite 1.1 does not support tables, with the exception of the latest version.
Maybe you are looking for
-
Impossible to install firefox on Windows 7
I had problems with the update Firefox v25. I have Avast Antivirus installed and running Windows 7. Given that I could not install updated, I uninstall Firefox. Then I tried to download the heel and the whole package to v26. Whenever I try to install
-
Satellite L500-1DT - unable to read discs
During these last days, I was unable to play all disks on my laptop but I am able to view the files on the disk. Usually they would be auto-play, but it just doesn't happen.Money is a little tight right now so I'm hoping there is a simple solution th
-
Updates for Office 2007 keep download
* Title *.Windows update downloads the updates for office 2007 which I did not. I have students and teachers 2007. I know that I don't have to install them. How can I prevent download in the first place but get the downloads I need?
-
notebook2000: I forgot the Bios password
I forgot my bios password. I try to start my computer and after three failed attempts it give an error code of 89075419. Any help would be greatly appreciated.
-
Which of the files in disk cleanup are safe to delete?
That are safe to delete? Per user queued Windows error report is 2 GB in size, I am the only user on the pc, no idea how he could be so great? Original title: Disk Cleanup