I don't know why it works?
Hello
I read a book on Actionscript 3 and I'm good! But I have a question:
Look at this code that I find in my book (it is in a class file):
public void setNom (pNom:String): void
{
If (pNom.length < = 30) name = pNom.
another path ("the name specified is too long");
}
I found the proper syntax for this:
public void setNom (pNom:String): void
{
If (pNom.length < = 30) {}
name = pNom;
} else {
trace ("the specified name is too long");
}
}
In the first example (of the book), the braces are missing... But it has worked so far! The application works properly!
I don't know why? I thought was if else statement requires braces around it! Also, when I press the button in the form of the syntax, Flash adds the 'missing '... braces
I thought that it was a mistake in the book and would like to get a syntax error here... But apparently, it's good... Usually, when your code is wrong, you cannot format your syntax...
Can someone help me out here?
Thanks a lot for your help!
--
Martin
It's because you only have a single statement for the fi, and for the rest, it's the kind of a shortcut, however if you try to add a second statement at the END, otherwise you will get a compiler error. It's like semicolons, they are not really necessary unless you write two statements on the same line of code.
Tags: Adobe Animate
Similar Questions
-
Hello
A few months ago and it worked perfectly, I created the website www.cahega.fr. How ever, when I tried to go on the site this morning, it does "no start page.
And when I try to log in on Adobe Business Catalyst® it sayq 'error, this site is currently unavailable!"
What is going on?
Please help me,
Best regards
H. piles
Hello
In fact, I've solved the problem! When you asked me to give you my Adobe I was using the wrong ID, I realized (one guest) and not that I used to create the Web site. The problem is now solved you were right he should bill pending, now it's fixed and the site is working!
Thank you for everything!
Héloïse
-
Google chrome not working anymore I don't know why it was ok 2 months ago
Google chrome not working anymore I don't know why it was ok 2 months ago
Hello
1. what operating system is installed on the computer?
2 are you able to use Internet Explorer on the computer?
3. do you get an error message? If Yes, what is the full and exact error message?
If you are facing problems with Google Chrome, check out the link for the support of Google Chrome:
-
Im trying to stall the game counter strike1.6 and the Don t of steam I have load Don t know why and on my friends PC it works only on my dosen´t can you help me guys
Hi rogerusa,
1. you are running Windows 7 on the computer?
The description of your problem, we understand that you try to install the game and it does not load.
Check if you can install the game in clean boot or by turning off all non-Microsoft programs. To do this, follow these steps.
a. open the article: http://support.microsoft.com/kb/929135
b. Article, follow "step 1: perform a clean boot" the implementation of these measures will disable all programs not Microsoft currently running on the computer.
c. right-click on the file to install game and click Run as administrator. Install the game and check the result.
d. Article, follow "step 7: reset the computer to start as usual.Visit our Microsoft answers feedback Forum and let us know what you think.
-
Original title: quick help please :/
my computer laptop bluetooth was working but suddenly it stopped and I don't know why... How can I make it work again please!
Hello
Hardware devices not detected or does not work - a Mr Fixit
http://support.Microsoft.com/GP/hardware_device_problemsAdd a BlueTooth device to your computer
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computerSet up a Bluetooth compatible device
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-deviceThe problems with Bluetooth devices
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devicesHow to set up a Bluetooth connection
http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connectionThe Bluetooth item in Control Panel on a Windows Vista SP2 computer does not
as expected when you click on the element - for Windows 7 this check manually
http://support.Microsoft.com/kb/960531/en-usIf you need drivers try the support site for the manufacturer of your system and/or the site of the manufacturer of the real device.
BluetoothView is a small utility that runs in the background and monitor the activity of Bluetooth technology
devices around you. For each detected Bluetooth device, it displays the following information:
The device name, address Bluetooth, Major Device Type, minor device Type, first detection time,
Last detection time and more. BluetoothView can also warn when a new Bluetooth device
is detected, by displaying a balloon in your bar tasks or playing a little beep. -FREE
http://www.NirSoft.NET/utils/bluetooth_viewer.htmlBluetoothCL is a small console application that transforms all differential of bluetooth devices detected in
the standard output. For each Bluetooth device, the following information is displayed: MAC
Address, name, Major Device Type, minor device Type and possibly the name of the company of
the device (if the external file of MAC addresses - oui.txt is provided) - FREE
http://www.NirSoft.NET/utils/bluetoothcl.htmlBluetoothLogView is a small utility that monitors the activity of Bluetooth devices around you,
and shows a log of Bluetooth devices in the main window. Each time that a new Bluetooth
device coming to your area and when the unit comes out of your area, a new journal line is added with
the following information: device name, time of the event, address, Type of event ("peripheral
Arrival' or 'Device left'), Type of aircraft and the company that created the device. BluetoothLog-
View you can also specify a description for each device (according to its MAC address)
that appears in the column "Description". -FREE
http://www.NirSoft.NET/utils/bluetooth_log_view.html---------------------------------------------------------------------
Change settings for a Bluetooth compatible device
http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-a-Bluetooth-enabled-deviceAdd a Bluetooth device to your computer
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computerAdd a Bluetooth device or other wireless or network device: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-or-other-wireless-or-network-device-frequently-asked-questions---------------------------------------------------------------------
More information of possible interest to some:
What is a Bluetooth personal area network (PAN) network?
http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-a-Bluetooth-personal-area-network-PanConnect to a Bluetooth personal area network (PAN) network
http://Windows.Microsoft.com/en-us/Windows-Vista/connect-to-a-Bluetooth-personal-area-network-PanI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
Hi, I got creative cloud on my dell laptop but recently the laptop has stopped working so I got a mac, and I downloaded creative cloud on my mac, but it comes out as a trial version. don't know why, can anyone help?
Additionally, you can check: FAQ: what should I do if I have a subscription, but my application acts as if I had a trial?
-
When I put pictures on my Mac, I chose my Aperture library. Now there is no pictures in Photos or Aperture! They are all in the photo library, but I don't know why they are not in the pictures when I open it?
Sorry try again - your post does not calculate
They are all in the photo library, but I don't know why they are not in pictures
What version of the operating system and Photos you have? Explain what exactly you're actually seeing and what has changed since it worked
LN
-
When I make a rectangle, the left and right edges are a bit fuzzy and thicker, then the bottom and at the top. It seems very strange and I don't know why that is.
I made a new document (72 dpi, preview mode: by default) and I tried to see if it's the same thing on another screen, and it is.
I thought that the problem would be with the 'align on the pixel grid' property but by activating / deactivating it doesn't matter. Maybe it's something with anti-aliasing? "Work of anti-aliasing" is checked in my preferences...
Here's an example, zoom level 100%.
The forms do not look sharp at all. No idea what this can be?
Lieselot,
Or you can try to switch between the GPU and CPU by pressing Ctrl / Cmd + E, or you try disabling GPU performance by clicking on the icon of the rocket in the bar of the App, or on the top of the menu bar, deselect the box Performance GPU. You may also uncheck performance GPU in your preferences.
-
the price of my subscription has been changed and I don't know why
the price of my subscription has been changed and I don't know why
Hello
You might have bought membership creative cloud on the promotional prices, all work promotional price for a single year.
Now if your subscription has been renewed after completing a year with promotional price, the price climbed to the real rate of subscription.
For more information you can please http://helpx.adobe.com/contact.html
Hope that answers your query.
-
Hello! I tried everything, but I can change the "COUNTRY" element in my account ID /...
don't know why, but it's the USA instead of BRASIL, it is where I live. I want to buy the first Pro app and I can not because of that... Help me!!!
Fabrizio,
The country store & the Adobe ID, payment details must be same.
For tax reasons, it is not possible to change the country associated with an existing Adobe ID. To work around the problem, you can create a new Adobe ID to the e-mail address associated with your existing Adobe ID see the link for instructions:
Change the country associated with your Adobe ID
If you wish to contact our support group for assistance, please visit this link: (be sure to connect to adobe.com with your Adobe ID first)
CC_membership-account-payment-support
Guinot
-
Don't know why sound does not play when I read my slides in Captivate 5.5?
I don't know why but all of a sudden when I'm working on a project in Captivate and record to the slide, and then click Play move it I play the Visual, but I can't hear the voice recording. If I only click on the audio icon on the slide to play the record I can hear him, but he doesn't play with the slide. Any ideas why this might be happening?
Thanks in advance.
Hello
Please check if you have accidentally selected the mute button controls on the timeline.
You'll find it here-
Thank you!
Anjaneai
-
I don't know why the live monitoring is delayed while recording.
I don't know why but when I record and I want to hear my voice in the headphones I can hear myself but its delay. I tried to adjust latency on the asio Control Panel, but it makes no difference, please help.
Don't know what you're asking, but to listen to headphones off the Tascam with no latency, you set my Mix on the Tascam on entry button.
To listen through the hearing, you set the Mix of my computer and in the multitrack display, you click on the button next to the M, S and R - I button buttons. Between settings latency on the Tascam in Windows Control Panel and settings of the hearing, the latency should be OK. It's here with just the default settings.
In the Audio preferences of the hearing, material, you must have ASIO as the device class, of course.
Everything I can reallly say is that it works very well here, so you should be able to sort it out simply enough.
-
I can receive all messages from whatsapp on my Apple Watch, but not the Group whatsapp messages, don't know why... Help, please.
Besides, my watch is custom in Spanish, but only answer messages Whatsapp understands English... anyone know why? Thanks to you all!
Hello
To change the language for a response on your watch: Press answer > firmly press the screen > press on choose language > select Spanish.
-
I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer
Hello, by default the firefox session restore feature only allows you to save last 3 windows open. to change this, type on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.sessionstore.max_windows_undo. Double-click it and change its value to 4 (or more).
http://KB.mozillazine.org/browser.sessionstore.max_windows_undo
-
I can't download IOS 9.3.1 the download starts but then an error message appears and it stops. I have enough storage, so don't know why this is happening?
Does anyone else have this problem?
It often happens when the screen times out and goes to the lock screen, when I connect to my phone that the error message is re-appeared?
I have the same problem!
Maybe you are looking for
-
Since the update of Firefox for windows 10 I cant get onto certain websites.All I get is the error message. Tried removing Firefox firewall and adding back on. Don't agree.Never had any problem until I updated. I have triewd the removal of Firefox an
-
Satellite L100-179 - possible to use a WLAN PC card?
Is it possible to use expansion wireless PC card? If so do what card you recommend, I need to connect to a local network. Thanks Dan.
-
Hello people, I just got myself one of these little gems (incredible value/spec) but I would buy one of the two accessories for it.More importantly, I would like a lens cap/cover.My second question would be a practical bag designed for its size.The s
-
Run Vista64 installation without back to their original factory condition?
Is there a way to run a Vista64 OS repair without having to return to their original factory condition? I cloned my HD 600GIG that came in my a6530f to a GIG HD 1000 Pavilion and uses the original HD as an external drive for backup using an eSATA in
-
I need the network card driver for my desktop sff EVO 510 with XP pro, Ive tried the HP/Compaq downloads and none of these work