Another Hex to Unicode Question

public static void main(String[] args) {
      char ch = (char)Integer.parseInt("672c",16);
      System.out.println(ch);
      System.out.println("木"); //Character meant to show up in Hex - > Unicode print
}According to the other questions and answers that I've read on the forum about changing a string hex into its equivalent Unicode character, what I have there should work. But it doesn't.
I'm not sure if it'll be visible to everyone, but the second println() statement is the character that should be represented from the hex, but when I run the program in console the 1st print statement (Hex-> Unicode) outputs a "?" but the second works fine outputing exactly what I put it as.
Is this a charset problem?
Thanks

By default most consoles print a very timited subset of the available unicode character set. You will have to make sure that they (the consoles) use a font capable of displaying the unicode characters that you wish to display. Since I have never had to do this I can't help you here but the following Swing example shows how it might be done in a Swing or AWT application.
import java.awt.*;
import javax.swing.*;
public class Fred503 extends JPanel
    public Fred503()
        super(new GridLayout(0,2));
        char ch = (char)Integer.parseInt("672c",16);
        String[] fontNames =
            "Kochi Gothic",
            "Kochi Mincho",
            "Baekmuk Dotum",
            "Baekmuk Batang",
            "Baekmuk Gulim",
            "AR PL SungtiL GB",
            "AR PL KaitiM Big5",
            "AR PL KaitiM GB",
        for (int fontIndex = 0; fontIndex < fontNames.length; fontIndex++)
            JLabel label = new JLabel(fontNames[fontIndex] + " : ", JLabel.RIGHT);
            add(label);
            label = new JLabel(Character.toString(ch));
            label.setFont(new Font(fontNames[fontIndex], Font.PLAIN, 20));
            add(label);
    public static void main(String[] args)
        JFrame frame = new JFrame("Fred503");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(new Fred503());
        frame.pack();
        frame.setVisible(true);
}

Similar Messages

  • Another Unlimited Data Upgrade Question

    (Yes, it's another one of those questions.  I'm sorry, but searching - on here, or on Google - only left me with conflicting information.)
    Here's my question:
    A friend of mine is interested in selling me his Galaxy Nexus phone.  Would I be able to keep my single-line, grandfathered, unlimited data plan if I buy his phone and switch to it, or is that only possible if I were to buy the phone new, directly from Verizon?
    Here's my story:
    I have an HTC Thunderbolt that I purchased when it launched.  A few months after buying it, it turned into the HTC Bad Dream, and now it's the HTC Nightmare.  Random heat issues, battery draining, random reboots... It's the same song and dance we've heard before.  These are design issues with the phone; not something a replacement or a repair would fix.
    The real annoyance, though, is the mobile hotspot.  I pay $30/month to use the hotspot legitimately, unlike the users who root their phones to use it without paying for the option, but ever since Verizon started blocking the third-party wireless tethering apps, I've had to choose between using the stock mobile hotspot app and unleashing the above-mentioned Phonemageddon, or simply going without.  I could drop the option from my plan, but seeing as the unlimited data plan no longer exists, I wouldn't be able to get it back without switching to a tiered or shared plan.
    Switching to a more stable phone would alleviate my issues, hopefully, but the difference between Verizon's retail prices and other retailers is hundreds of dollars.  Giving up my unlimited plan, however, wouldn't make the venture worth it.  A definite answer to the question of buying used - either from a Verizon representative, or a customer who's been in the same scenario before - would be very helpful.
    Thank you very much.

    Hi,
    If you provide your own equipment (your friend's Nexus or from ebay etc) then YES you can keep unlimited data. Another wayto keep unlimited would be to pay full retail for a new phone. But I'm sure your friend will give you a better deal than that
    Hope that helps!

  • Another "get album artwork" question

    another "get album artwork" question
    I notice that when I click "get album artwork" it seems to go through the whole library and look for cover jpegs. (in my case, that's going to take a long time!)
    here's my question: it's looking for artwork, yes, but it's NOT going to do anyything to the many, many albums for which I have already (manually) added artwork, is it? If it does - I am in trouble! Please, somebody, reassure me that the artwork I have painstakingly added manually to zillions of albums is safe!
    w

    Updade...
    So, as another test, I uninstalled iTunes, then checked the hard drive again.
    All the icons have now turned into Quicktime icons, which leads me to believe that when you look at your music in finder, it shows the icons related to your default music player.
    So, my next step is to find a new default player, and maybe my album covers will show up again.

  • [AS CS3] Another MathType Baseline Shift Question

    Hi Guys,
    I am using the below script to place MathType Equations into an InDesign File
    Basically it searches for tags <<Filename.eps>> and replaces it with a inline graphic.
    My question is:
    Is there anyway I can get it to read the height of the InLine Graphic Box and then get it to baseline shift so it's centered height wise on the line, instead of the set amount of -10pt that is uses now?
    We have to open the MathType Equations in Illustrator to change font and colour to Pantone etc, so they are save back as Illustrator EPS's
    Below is the Script:
    tell application "Adobe InDesign CS3"
    tell document 1
    set baselineVar to "Yes"
    set countVar to 0
    set imageCount to 0
    set docPath to file path as alias
    tell application "Finder"
    set imageFolder to folder (choose folder with prompt "Please choose the folder containing the appropriate MathType files") --"MathType" of artFolder
    end tell
    activate
    set allStories to stories
    repeat with s from 1 to count of items of allStories
    set theStory to item s of allStories
    if class of theStory is story then
    set theLim to count of words of theStory
    try
    repeat with i from 1 to theLim
    if word i of theStory contains "<<" then
    set theText to contents of word i of theStory as Unicode text
    set theOffset to (offset of "<<" in theText)
    set endOffset to (offset of ">>" in theText)
    set imageName to characters (theOffset + 2) through (endOffset - 1) of theText as string
    set imageFolderPath to ((imageFolder as string) & imageName)
    set wholeTag to characters theOffset through (endOffset + 1) of theText as string
    if baselineVar = "Yes" then
    set baseline shift of characters theOffset through (endOffset + 1) of word i of theStory to -10.2
    end if
    delete characters theOffset through (endOffset) of word i of theStory
    tell theStory
    tell word i
    tell character theOffset
    place imageFolderPath as alias
    set countVar to (countVar + 1)
    end tell
    end tell
    end tell
    end if
    end repeat
    end try
    end if
    end repeat
    end tell
    activate
    if countVar = 0 then
    display dialog "No Images were found" buttons "OK" default button 1 with icon 2
    else if countVar = 1 then
    display dialog "1 lonely Images has been placed." buttons "OK" default button 1
    else
    display dialog (countVar as string) & " Images have been placed." buttons "OK" default button 1
    end if
    end tell
    Thanks
    Marcus

    The place command will return a list containing a reference to the placed<br />image. You can then get the bounds of its parent, compare them with the<br />baseline, and change them accordingly.<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

  • URGENT: Unicode questions

    Hi experts out there
    We need to have a unicode system soon.
    At the moment we have a non unicode R/3 Rel. 4.7 Enterprise.
    My questions are:
    1. Are there patches that upgrade the non unicode R/3 Rel. 4.7 Enterprise to the unicode R/3 Rel. 4.7 Enterprise?
    2. Should we better upgrade it to ECC 6.0? What is the effort here?
    Any suggestions/responses would be very appreciated.
    Thanks
    HW

    There cant be patches because the data must be converted from a certain code page to unicode.

  • Another simple classpath problem question

    Hi All
    Yes I know, there are a lots of questions about this matter, but I couldn't found a solution to my problem.
    I have a simple program:
    public class prueba {
            public static void main(String[] args) {
                    System.out.println("Ahi va...");
    }placed in /tmp/javier/prueba.java
    After compiled, I've tried to run it from / and then problems started:
    cd /
    java /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    I said, ok...it could be a classpath problem...then:
    java -cp /tmp/javier/ /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba
    Damn, another try...
    java -cp .:/tmp/javier/ /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    Jesus Christ....may be the last slash....
    java -cp .:/tmp/javier /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    Oh...no.... may be classpath to java classes..
    java -cp .:/usr/java/j2sdk1.4.2_01/lib/jre/:/tmp/javier/ /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    Well, I don't know why this error happens....
    Please, could somebody help me !!!
    Thanks in advance...
    <jl>

    It's not too early to start following the Sun coding
    conventions for Java:
    http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.
    tmlHi
    thanks for your reply.
    Yes, I agree. I use conventions with my programs. But my real problem was with a real application and then I did quickly this simple code to help others to understand the problem and give a fast reply...
    Let me know if that works. (It was fine on my
    machine.) - MODYes it works fine, thanks.... and Damn...Murphys law again, the only option I didn't tried is the solution to my problem... :)
    Thanks again...

  • Unicode question (# in file)

    Hi,
    I am uploading a file with GUI_UPLOAD and downloading this file again on the SAP Server with OPEN DATASET IN BINARY MODE / TRANSFER / CLOSEDATA SET on a UNICODE system.
    When I look in AL11 to the downloaded file I see a lot of # (#<#?#x#m#l# #v#e#r#s#i#o#n#=#"#1#.#0#"#?#>#<#L#I#S#T# ...) (In HEX it shows 00)
    I have to do some conversions with this file, but the # will still be in the file.
    How can I get rid of these signs??
    Ron

    Hello Ron,
    The hash/pound signs (#) that you see are just the way that special characters (like tabs) are displayed in the SAP GUI (as it does not cater for all special characters).
    Before you do anything else, just take a look at the file on the server (I assume you are running on some UNIX variant). Telnet to the server, and display the file using cat or more or vi. Better yet, ftp the file back to your workstation and open it to see if any harmful conversion occurred when you transferred it to the server.
    Cheers,
    Martin

  • Another After Effects 2D Question

    So, I have read different forum posts here as well a other communities. I always read that I need specifics, so I will try to be as specific as possible.
    I want to know if After Effects is the right program for the type of 2D animation i'm trying to achieve.
    I also should make it clear that I am new to motion graphics and may get some terminology wrong. I would say I have a pretty firm grip on Photoshop and Illustrator; I'm a designer for a screen printing shop by trade. I also have a limited but functional knowledge of Premiere and am in the midst of editing 2 music videos. I have always been interested in animation and video but did not have the resources ($23,000 for 2.5 years) to study it at the Art Institute of Houston. I am mainly self taught by way of lynda.com. I have NO PROBLEM doing the training and taking a long time to develop my skill to the level I believe they need to be, but I don't really want to learn 2 different animation software programs unless absolutely necessary.
    I would like to produce an animated music video for a band that will have about a 4 minute run time. The style of animation is NOT Disney, but more or less South Park (cut-out?). More specifically, the intro sequence to the 2014 season. I have read that SP uses Maya, which with my limited knowledge seems a little bit overkill. The intro sequence looks at times 3D, but I am confident I can fake the look with proper texture, shading, placement, shadows and zooming.  In reality, what I want to accomplish is somewhere between the look of the intro and the actual show. The end result is a video for view on YouTube, Vimeo, etc for view on desktop computers and smartphones/tablets. TV is not the goal (although I guess it would be nice).
    I think I would create the characters as vectors in AI, and perhaps bring them into Photoshop for texture.
    Is AE the right software to accomplish this, or would i be better off learning something like ToonBoom Harmony, Blender or Animation Studio 10?
    (or another I am unfamiliar with)
    Perhaps an Adobe forum is not the most neutral place to ask this question, but I'm not giving up Photoshop, Illustrator, Premiere or Speedgrade, so any and all honest opinion are welcome.
    - Can I import "real" vectors into AE and use them for characters, or would everything need to be rasterized?
    - Does AE have a "bones" rigging system or anything comparable?
    - Does AE have a "bullet-physics"-style option? (I'm getting that terminology from Poser, which I purchased while it was on sale but have not even installed yet.)
    - Can I import 3D objects from Poser?
    - Does AE offer any true 3D features, or do I need Maya or a similar program?
    Thanks in advance for any insights anyone can offer.
    (edit: I know I asked about 2D then asked a few 3D questions at the end, but I am just curious. My MAIN concern is 2D)

    Thank you for that. I started reading the comments, and it looks like this video was uploaded by someone other than the creator, and the creator calls him out on it! So here is the link to the original from the creator.
    http://cgi.tutsplus.com/tutorials/create-your-own-south-park-style-animation--cms-19982
    EDIT: So I went on a tirade here about how sh**ty millennials are, even though I am one myself. While I still believe every word I said, this in not the time or place for that discussion. The only thin I will keep is: HEY FELLOW MILLENNIALS:  have some respect for other peoples creations and stop thinking you are entitled or owed ANYTHING, and finally stop taking selfies and posting pictures of your food; no one cares.

  • One more Unicode question

    So here's the story so far:
    By enabling Unicode through the LabVIEW.ini (UseUnicode=true), I've been able to develop quite a nice translation package.  Furthermore, when I build an executable and run it, it works also.  But when I deploy it on another computer - either by running it from the release folder or actually installing it with an installer - it displays garbage.  Not even pseudo-Chinese garbage - just squares that I think means unprintable characters.
    Anyone know how to work around this issue?  I'll be actively trying stuff and letting you know my progress.
    Oh, dev machine is Win7 and target is WinXP.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
    Solved!
    Go to Solution.

    Drew_H wrote:
    Do you have the proper languages enabled on the XP machine?  I *think* they're disabled by default, but I haven't touched XP in quite awhile.
    Control Panel >> Regional Options and Language Settings >> Languages
    You know, I was thinking the same thing when I got in this morning.  Only problem is - I can't find anyone who has an install disc!!!  Thanks for confirming my suspicions.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Calculated Hex to Unicode for display in label

    Hi
    I want to calculate an integer, convert to unicode and display the appropriate character in a label. I can display the correct chinese character if I pass a string literal e.g. "\u4e00" to the setText method. But I dont want to have hardcoded string literals in my program. Of course the compiler insists on having the complete string before hand (i.e. cannot add the "\u" to my calculated hex string). So how can I get the label to display the actual character using just the hex number? Is it possible?
    TIA

    I want to calculate an integer, convert to unicode and display the appropriate
    character in a label. I can display the correct chinese character if I pass a
    string literal e.g. "\u4e00" to the setText method. But I dont want to have
    hardcoded string literals in n my program. Of course the compiler insists on
    having the complete string before hand (i.e. cannot add the "\u" to my
    calculated hex string). So how can I get the label to display the actual character
    using just the hex number? Is it possible?Sure it is; don't be misled by all that hexadecimal stuff. A character is just an
    integer value in the range 0x000 - 0xffff (two bytes unsigned numbers). Here's
    a small example:JLabel lab= new JLabel();
    char c= 0;
    do {
       lab.setText("A char: '"+c+"'");
       // do something with the label;
    } while (++c != 0);kind regards,
    Jos

  • Another hard drive swap question - re: 8GB partition for OSX in iMac 266

    I have a Tangerine iMac 266 that I am setting up for a neighbor's son. The original 6GB hard drive was toast, so I swapped in an old 10GB drive that had previously been removed from an iMacDV 400. The 10GB "new" drive had OSX 10.3.1 and OS 9.1 on a single partition. I am aware that these early iMacs need OSX in a first partition of less than 8GB, so I expected that I would need to partition the "new" drive. However, while I was loading an install CD after powering up, the iMac booted fine into OSX, despite it NOT being located in a first partition of less than 8GB (and has continued operating well - booting multiple times in OS X and 9, surfing the net, etc...the only weirdness is a refusal of Word X to run).
    I thought this was impossible, and in researching this I found that the Apple support site says that, for this computer, "Mac OS X must be installed on a volume that is contained entirely within the first 8 GB of its ATA hard disk." see http://docs.info.apple.com/article.html?artnum=106235
    My Questions:
    Is the 8GB limit only related to iINSTALLING OSX on these machines (and not RUNNING OSX)?
    Will the machine run into problems later if a portion of the OS (i.e., during an update) gets installed outside of the first 8GB of the disk?
    One of the log files says that the driver is out of date for the RageproC, and Classic applications that require more than 4MB of VRAM say that I don't have enough VRAM to run, yet the iMac has 6MB of VRAM (2 on MB and 4 in slot as listing by the system profiler) - do I need to (or should I) reinstall the system software (I already tried loading the latest ATI drivers, but it did't help)?
    P.S. - to add more data points on the subject of RAM upgrades in these iMacs, my iMac 266 would not accept a 256MB PC-100 SO-DIMM that worked fine in an iBook and in the upper slot of a Rev. A iMac 233. Well, it accepted it, but only recognized the first 128MB.

    I believe Duane is correct. Even with Mac OS 9, you can run fine as long as all OS components used during startup are within the first 8GB of space. However, (even with Mac OS 9) as soon as something used during startup ends up beyond that limit, you will get open firmware or a gray screen at startup. The Mac OS X does not allow the installation target to exceed the limit as a preventative measure, not because it won't work at all.
    The best "non-technical" explanation I have heard as to why, is this... The IDE hardware (and its driver) can only "see" the first 8GB of space during the initial start up process before the OS is loaded. Once start up completes, control is handed to the OS, which can see the entire drive. Therefore, apps have no problem running from beyond the limit. Only components needed before the hand-off is constrained to the 8GB limit.
    FYI - On my iMac and 120GB drive, 7.78 GB (as shown in a Finder window) is the precise point where the Mac OS X Installer allows the volume to be the install target. "Precise" to with a few hundred MB's.

  • Yet Another ASA VPN Licensing Question :)

    I have a pretty good understanding of ASA VPN concepts, but not sure about this scenario.  Two questions regarding 5525 VPN SSL Anyconnect Premium Licensing.
    1.  Assuming we already own a ASA 5525-x with 750 Anyconnect Essentials and Mobile ( p/n ASA5525VPN-EM750K9 ) and want the ability for 200 Clientless (Anyconnect Premium) VPN connections, including mobile devices, what part number do I need?  
    2.  Assuming we do not yet own a ASA5525, but want the same 200 clientless VPN connections plus mobile device connectivity, what part number do I need?   I'm assuming this is correct  >>  ASA5525VPN-PM250K9
    Thanks!

    It's no problem - I sometimes look for an answer to a question myself and find my own 2 year old post explaining the answer. As long as I don't find my 2 week old answer, I'm OK with that. :)
    Anyhow, no there's not a SKU to upgrade Essentials to Premium. All the Premium upgrade SKUs are between Premium licensed user tiers (10-25, 25-50, 50-100 etc.).
    If you're a persuasive customer and make a strong case with your reseller they may be able to get a deal with Cisco outside the normal channels to get some relief as a customer satisfaction issue. That's very much a case by case thing though and not the normal fulfillment method.

  • Another "using another person's upgrade" question

    Sorry in advance if this question has been covered 100 times before.  I spent some time trying to find an answer that fits my scenario in the forums but didn't find an exact fit.
    My Droid Incredible touch screen stopped working this past week (no drops, no water, no reason to stop working) and since I am 1yr and 3months into owning the device and have no insurance the local store said I'm pretty much SOL and to contact HTC.  Dealing with HTC has been the worst customer service experience of my life and they pretty much said the same thing since they only cover their devices for 1 year.  (Said I could send it in to their repair facility on my dime for 2 weeks minimum and they would determine the repair cost and contact me).  So I can't upgrade until April on my account and am trying to figure out a way to get a new phone (not at full price).
    My girlfriend has been up for an upgrade for months now (she uses a basic phone, no data) and isn't in any hurry to use it.  She does't ever want a smart phone and said that I should just use her upgrade.  So, the details and questions are as follows:
    1. We are not on the same account (family plan).  We have individual plans.  My plan is 400 or so mintues of talk and unlimited data.  Her plan is 400 minutes or so of talk.
    2. I would like to use her upgrade to get an iphone 4s.
    3. We do not want to change her plan (its something like $30 a month grandfathered plan).
    4. I would like to keep my current plan as well.  (unlimited data)
    Is it possible to make all of these things happen?  I have read that it is simple if you are on a family plan to do this.  Can we go down to the local store and get an iphone 4s and activate it on my account instead of hers?
    As a side question (and to make things more complicated)... Does anyone know if we can we combine our accounts together into 1 account and save money or minutes.  We both hardly use our minutes at all and aside from me using the data plan for work we toss out hundreds of minutes per month.
    Thanks in advance for any replies!
    J

    jmskennedy wrote:
    Sorry in advance if this question has been covered 100 times before.  I spent some time trying to find an answer that fits my scenario in the forums but didn't find an exact fit.
    My Droid Incredible touch screen stopped working this past week (no drops, no water, no reason to stop working) and since I am 1yr and 3months into owning the device and have no insurance the local store said I'm pretty much SOL and to contact HTC.  Dealing with HTC has been the worst customer service experience of my life and they pretty much said the same thing since they only cover their devices for 1 year.  (Said I could send it in to their repair facility on my dime for 2 weeks minimum and they would determine the repair cost and contact me).  So I can't upgrade until April on my account and am trying to figure out a way to get a new phone (not at full price).
    My girlfriend has been up for an upgrade for months now (she uses a basic phone, no data) and isn't in any hurry to use it.  She does't ever want a smart phone and said that I should just use her upgrade.  So, the details and questions are as follows:
    1. We are not on the same account (family plan).  We have individual plans.  My plan is 400 or so mintues of talk and unlimited data.  Her plan is 400 minutes or so of talk.
    2. I would like to use her upgrade to get an iphone 4s.
    3. We do not want to change her plan (its something like $30 a month grandfathered plan).
    4. I would like to keep my current plan as well.  (unlimited data)
    Is it possible to make all of these things happen?  Yes.  I have read that it is simple if you are on a family plan to do this.  Can we go down to the local store and get an iphone 4s and activate it on my account instead of hers? Most likely - if it is a corporate store.  If it's an "authorized reseller" or a third party store, it amy be more difficult and they may tell you they can't do it.
    As a side question (and to make things more complicated)... This MAY make it more simple!  Does anyone know if we can we combine our accounts together into 1 account and save money or minutes.  We both hardly use our minutes at all and aside from me using the data plan for work we toss out hundreds of minutes per month.
    You can get a family plan with 700 shared minutes, 2 lines, for $70, and the data plan on your phone would be $30.  I'm not sure if you would be able to keep your unlimited data though - you might be if you do this in stages.  First, combine your two accounts into one family plan and do nothing about upgrading for now.  Let that "settle"; your upgrade dates and eligibilities will remain the same as they were on your individual plans.  If you can make this transition and keep your unlimited data, then you're good to go upgrade the eligible line (your girlfirend's) to the iPhone, but activate it on your line.  Her line's contract will be extended for two years, but she can use her old phone and you can use the iPhone.  If the unlimited data did carry over, it will remain for the iPhone too.
    Thanks in advance for any replies!
    J

  • Replace hex character in a string with another hex character

    Hi Guys,
    Heres a problem scenario, hex character 92 looks very much like hex character 27 (apostrophe).
    I need to write a program that can replace all hex character 92 to hex 27 in a string.
    Being a novice on the regular expressions, I would appreciate if somebody can show
    the exact syntax to to perform this replacement.
    Many Thanks
    -Anil

    I don't think you need to use regex to do this:
    String s = something();
    char a = 0x27;
    char b = 0x92;
    s.replace(a,b);
    And don't forget that since Strings are immutable you need:
    s = s.replace(a,b);to do anything useful.

  • Another escape the room question.

    I'm working on placing objects around the room, as well as in the inventory. When the player clicks on an object in the room, I want that instance of the object to disappear, and the instance of the object in the inventory to appear.  For right now, I'm trying to make the objects in my inventory disappear.  Here's the code I'm using:
    var squarelocated:String;
    squarelocated = "hidden";
    square2_mc.DisplayObject.visible = false;
    var ovallocated:String;
    ovallocated = "hidden";
    oval2_mc.DisplayObject.visible = false;
    var circlelocated:String;
    circlelocated = "hidden";
    circle2_mc.DisplayObject.visible = false;
    But I'm getting the following output error messages:
    TypeError: Error #1010: A term is undefined and has no properties.
    at escapegametutorialnew_fla::MainTimeline/frame1()
    TypeError: Error #1010: A term is undefined and has no properties.
    at escapegametutorialnew_fla::MainTimeline/frame1()
    at flash.display::MovieClip/gotoAndPlay()
    at escapegametutorialnew_fla::MainTimeline/startMovie4()
    Thanks in advance!  And sorry for the simple questions, I'm working off a tutorial that is based off of Actionscript 2.

    If you at least change it to a boolean, then  you can save code.  The difference would be...
    using a String... "hidden"
         if(somevar == "hidden"){...
    using a Boolean... true or false
         if(somevar){...
    But don't sweat it for now.   It's something good to know when it comes to having to implement conditional tests.

Maybe you are looking for

  • Adobe Bridge CS6 ツールメニューから「Photoshop」が消えてしまいました

    Adobe Bridge CS6を使用していました. OS X Mavericksにしてからしばらく経つのですが. 最近になって「イメージプロセッサー」を使用したいと思い「ツール」メニューを見た所. 「Photoshop」の項目そのものがなくなっていました. 新OSとCS6との相性が良くないと聞いたことがあったので. すぐにCCを入れてみましたが.こちらも項目が消えていました. こういったケースは調べても出ておらず.途方に暮れています. イメージプロセッサー機能自体はPhotoshopのスクリプ

  • Why my Macbook Pro keeps freezing & having kernel panics ?

    Hello there, I have 2 problems with my MacBook Pro and i can't find what is causing them. First problem, is that my computer completely shuts down. I think it happens only when I'm on battery & it gets at a precise percentage (22%, and 69%). Also, wh

  • Update Query For Hierarchy Table

    Hi All I have a Hierarchy table that has news categories. I want use a query than when user deactivate a category, all child category has been deactivated. For example 1- Politics 1-1- National Politics 1-2- International Politics 1-2-1- Asia 1-2-2-

  • "Ignore SSL errors" not an option in my version of Windows Mail for 8.1

    I have had problems connecting to my org's EAS using the Mail/Calendar/People apps since being forced to upgrade to 8.1.  I used Microsoft Remote Connectivity Analyzer and see there's a problem with these apps accepting the Go Daddy certificates used

  • Chroma - Why are there wavy lines?

    I'm using a green screen behind an actor among some crates. I'm using Adobe Premiere 5.0's Chroma Keying effect to drop different background images behind the actor. The problem? After applying the Chroma effect, if you look at different crates and a