Tutorial helps Code does not work
I've been programming in Flash since 2003. I am currently using AS2 but trying to learn AS3. I go through the help section on AS3 and do the example: creating a basic application. I know that the Flash help files are packed full of syntax errors and came more numerous over the years, but this one I can't understand.I paste the code here because it's exactly the same as in the help section, the second half where it says ' update the Greeter.as file: "for the file and class of the FLA" to modify the application using the Flash authoring tool:
If you follow the instructions in this example and copy and paste this code, then compiles, it will result in an error code 1119 (I looked toward the top, but who has help me to solve this problem).
Any help would be greatly appreciated!
Thank you!
Someone actually thought of her work. The line where the function is declared, defines the parameter as an event instead of a KeyboardEvent. If you set it as a KeyboardEvent, then the line that you modified can stay as it is and everything works then.
So I now have my cake and eat too. Thanks for your help kglad. Good to see you still pluggin away here. About the last time that I came across these forums, Macromedia was still in charge LOL and I was still programming in AS1. See you soon!
Tags: Adobe Animate
Similar Questions
-
AdjustColor helps [code does not work]
Hi all
Following the code does not change the color of my clip.
Please Guide
import flash.filters.ColorMatrixFilter; import fl.motion.AdjustColor; import fl.motion.ColorMatrix; function changeBackgroundColor(color:Number):void{ var adjustHue:AdjustColor = new AdjustColor(); adjustHue.hue = color; var matrix:Array = new Array(); matrix = adjustHue.CalculateFinalFlatArray(); var colorFilter:ColorMatrixFilter = new ColorMatrixFilter(matrix); var myfilters:Array = new Array(); myfilters.push(colorFilter); rightPane_mc.paneBck_mc.filters = myfilters; } changeBackgroundColor(180);
affect the rest of your instance of AdjustColor properties. for example:
with (adjustHue) { brightness=0; contrast=100; hue=color; saturation=100; }
-
A refurb Lenovo/IBM PC windows 7.0 SW, software code does not work for charging SW after a system restore. How can I get a new one
Skip, enter the product key, and then complete the installation.
Try the phone activation:
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us -
Reinstall Windows 7 and now the activation code does not work
I upgraded my PC with an AM2 chip to an i5. I had to reinstall windows and now my activation code does not work. It's like 2-3 years, I forgot when I built the computer. It installed on my other windows 7 install and created the windows.old folder. How can I get reactivated? I used the same code since I built my computer.
Thank youHave you tried to restart by phone?
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us -
Lightroom6 installation code does not work
I'm tired, the installation code does not work.
After 10 days, there is no way to be supported by Adobe, but they took my money.
I'll block the payment and never again buy Lightroom.
Mac or Windows and EXACTLY what version of the operating system?
Recent Mac AND Windows operating systems have been known to cause problems "weird."
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
http://helpx.Adobe.com/x-productkb/global/service-CCM.html
-or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
-
I was trying just to 'chat' with someone, and they're signing. My CS5 coupon code does not work on my computer - I'm re-entered several times to ensure that there are no errors. It has not been used before. I bought the [Mac] software in 2011 and was able at the time to buy a Mac to install the software on. Does anyone have advice? Or y at - it someone with Adobe that can help?
Contact adobe support, https://helpx.adobe.com/contact.html
-
Why my registration code does not work?
I just bought Adobe Photo Shop Elements for MAC and provided in the box registration code does not work. Now, I can't find my serial number. I got the purchase at Best Buy and they told me that since it was open, I call Adobe. I was not able to find the phone numbers for support and all redirects me here. I really want to use this product before the weekend and now I'm beyond frustrated. I did research on research and nothing helped.
Can you help me?
AA I mentioned above, I tried everything recommended on Adobe's Support site. I was not able to find something that works with your link above.
-
my work of collapsed app coil system, help printer does not work
my work of collapsed app coil system, help printer does not work
Hello
1. What is the brand and model of the printer?
2. do you have an error message when you try to print?
3. were there any changes (hardware or software) to the computer before the show?
Perform the steps suggested by chan seen from the link below and see if it helps.
Hope this information helps.
-
Manager Agent OATS and OAT Helper Service does not work
Hi Expert
IM new in OATS for work in Oracle load test, I installed component OATS (agent), Server components, weblogic Server.
Installation is almost successful but an error message that I Ingore, but when I want to Activate the service startup work OTS I the following:
[root@xxxxtesting]#/sbin/service--statut-all |] grep OATS
OATS Manager Agent is not running
OATS Helper Service does not work
[root@xxxxxtesting]#/sbin/service OracleATSAgent start
From oats-am: [OK]
[root@xxxxtesting]#/sbin/service OracleATSHelper start
From oats-hs: [OK]
[root@xxxtesting]#/sbin/service--statut-all |] grep OATS
OATS Manager Agent is not running
OATS Helper Service does not work
Please help mePL don't post duplicates - Problem installing OATS
-
jQuery code does not work in phonegap
Someone gave me a code https://jsfiddle.net/adeneo/2uod274d/ jsfiddle
It works well in jsfiddle, but when I put the code in my Xcode and amended to incorporate my code and run it in the Simulator, the code does not work at all (i.e., no data is stored in the local storage)
I am building an app for iOS with phonegap. JS:
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script>
<script type="text/javascript">
document.addEventListener("deviceready",onDeviceReady,false);
function onDeviceReady() {
document.getElementById("btnSave").addEventListener("click",saveData,false);
document.getElementById("btnShow").addEventListener("click",showData,false);
}
function saveData(){
var data = window.localStorage.getItem("date");
var dates = data ? JSON.parse(data) : [];
dates.push( new Date() );
window.localStorage.setItem("date", JSON.stringify(dates));
alert("Your data is stored");
}
function showData() {
var data = JSON.parse(window.localStorage.getItem("date"));
console.log(data);
$('#res').html(JSON.stringify(data));
$(this).html('Update result');
}< /script >
HTML:
<button id="btnSave"> Save Data </button>
<button id="btnShow"> Show Data </button>I don't know what is happening because the code works well in jsfiddle, but for some reason any just does not work in my phonegap.
My version of phonegap 5.3.6 cordova version 5.3.3
Post edited by: Fang Kerry, I added my complete code is easier to see the problem (if any)
jQuery has nothing to do with this, as far as I can tell (so not sure why it is in your title). The problem is that the result of JSON.parse (data) is not an array, what you think it is, it's a chain. The chain respond well to 'push '. I get that when you use this code in jsfiddle he is somehow coming out as a table, but I think it must be because of something done jsfiddle. When I do the same commands in the console of my browser, I get a string, not a table, so your problem.
Instead:
function deserializeDates() { var data = window.localStorage.getItem("date"); var dates = []; // worst case, we'll return an empty array. if (data) { try { dates = JSON.parse(data); // handle the case that dates is a single item and not an array if (!(dates instanceof Array)) { dates = [dates]; } } catch (err) { // the stored dates failed to parse for some reason; you might want to do something about it console.log("Failed to parse " + data); } } return dates; } function serializeDates(dates) { window.localStorage.setItem("date", JSON.stringify(dates)); } function saveData(){ var dates = deserializeDates(); dates.push( new Date() ); serializeDates(dates); alert("Your data is stored"); } function showData() { var dates = deserializeDates(); console.log(dates); ... }
-
I have Adobe Creative Suite 5 Master Collection. Activation code does not work?
I have Adobe Creative Suite 5 Master Collection. Activation code does not work when I install it on my Macbook. It installed properly on my Windows PC, however.
I thought the serial numbers for specific version CS5... Mac - GOLD - Windows, not both
You sure have a serial number which is good for both?
-
Why my license code does not work on lightroom 6 for mac?
Why my license code does not work on lightroom 6 for mac? My os x is "el capitan".
Please try the steps to serialize Lightroom CC trial to activate like Lightroom 6 mentioned on: https://helpx.adobe.com/lightroom/kb/serialize-lightroom-cc-trial-to-activate-as-lightroom - 6.html
You can also try: error "serial number is not valid for this product". Creative Suite
-
my serial code does not work how can I make it work
my serial code does not work how can I make it work thank you
Hello
If you have a creative cloud subscription then you do not require a serial number to activate it, all you need to do is sign with your ID (Email used at purchase) Adobe in creative application Cloud to activate your membership. See,
Connect and disconnect activate Cloud Creative applications
Solve common problems of activation and deactivation of creative cloud.
Activation and deactivation of troubleshooting
Find solutions to activation errors that may occur during the launch of Adobe applications.
I checked with your Adobe Id on the forums that there is no active subscriptions to this topic.
If you have any other Adobe id try please activate the products with that.
Kind regards
Bani
-
In P6 P6 help link does not work
Hello
My P6 help link does not work in the Help menu.
P6 library and Support link work.
As suggested in another discussion, I tried to update the link in Admin > setting Application and restart weblogic, but system still takes another link that I defined in the application setting.
Can anyone help?
Hello
We have worked on this issue,
Solution:
In the application of P6 EPPM Admin in the corresponding configuration in P6 help url, we changed the url from http://hostname:8203/p6help/help to http://hostname:8203/p6help/and we have restarted the P6 server in weblogic console.
Then all fine now
Concerning
Kumar
-
VM WS 7 coupon code does not work.
as shown in the promo code topic, that I was sent for Workstation 7 does not work.
Now before anyone asks,
I used IE, Mozilla and Chrome
I have cleared all caches
I restarted the system in its entirety
I typed in the code - not cut and pasted
promo code does not work.
Assistance received with gratitude.
concerning
Maybe you are looking for
-
Restore the exchAnge store 2003 SBS
I have a sbs Server 2003, crashed my system disk. my Exchange of data are stored on would be ' drive, which I can retrieve all of the MDBDATA structure. I reinstall the SBS2003 server and I was wondering how to restore my exchange information store,
-
Activation of broken on new W510
I decided to delete my system and test my restore media, I created using the ACER. Now after the restoration (which seemed to be happening), the system requires activation and tells me that my key is not valid. I don't see a key anywhere. I know a
-
Bypass the Windows administrator password
How is my son without entering my Windows administrator password, change my standard account and establishing a pswd protected administrator account for himself?
-
Computer hangs at various stage of starting
Original title: allows to start; but never actually gets to the stage of ready. I also ran Kaspersky anti virus more than once. I can't get online without using safe mode. I ran microsoft security scanner which found nothing wrong. My computer freeze
-
Plug-in for Eclipse: how to compile a source in several binary files?
Hello gurus of BB,. recently, I spent my development environment of JDE for the plug-in for Eclipse (mainly because the new Blackberry7 is only available for Eclipse). I was able to transfer my apps; one thing remains to be done. Knowledge, I would l