BUG? :: Short Hand IF BUG cause flash compile engine to go haywire x_x

var MyCurrentValue:String = "TEST";
var MyOperatorBug:Boolean = !(MyCurrentValue != null ? MyCurrentValue.length > 0 : false); 
trace(MyOperatorBug)
Copy paste the above script into your ActionScript 3.0 Flash CS 4 IDE
What this script do is , it checks variable MyCurrentValue if it is null or not
if it is not null then it will check if its length is more then 0
try running the above code will result the flash does not produce any compile / warning error, it will not result in run time error either
it will not trace the MyOperatorBug variable either..
Is it a bug ? or i am just missing something?!
Cheers and God Bless,
Chowi

thanks for the speedy reply
but can you tell me whats wrong with my first code? and why if it is an error, the flash did not print out any warning / run time error
here is my other experiment that makes me even more curious, if i put the BOLD Text into a variable first, it works!
NOT WORKING (WHY NO ERROR? No Warning , No Runtime ERROR, NOTHING, it simply does nothing)
var MyCurrentValue:String = "TEST";
var MyOperatorBug:Boolean = !(MyCurrentValue != null ? MyCurrentValue.length > 0 : false); 
trace(MyOperatorBug)
WORKING
var MyCurrentValue:String = "TEST";
var MyBoolean:Boolean = MyCurrentValue != null ? MyCurrentValue.length > 0 : false;
var MyOperatorBug:Boolean = !(MyBoolean); 
trace(MyOperatorBug)
i am actually not looking for a solution, since i know how to get around with this, what i am asking is why is the first code not working, and not only that, it cause the flash to stop compiling without reporting any error x_x
Cheers and God Bless,
Chowi

Similar Messages

  • Possible Stage3D bug causes flash content to not redraw?

    Hi all,
    I am developing a mixed Stage3D application with flash content for the UI. It happens that since a certain flash version the flash content is not being redrawn/refreshed. For example, if I create a popup (or close it) the flash content is not refreshed until I move the mouse.
    If I remove the Stage3D content from my App it works well.
    It works well on chrome with flash 11,5,31,139 but it does not work on the latest flash version 11,5,502,146 on Firefox and IE.
    Is it a bug? or I am missing anything?
    Best regards.

    Could you give this a try with our recently released Flash Player 11.6?  If it still occurs, please open a new bug report on this issue over at bugbase.adobe.com.
    Once the bug has been added, please post back with the bug URL or bug number so that others effected can add their comments and votes.  I'll also follow up internally.
    Thanks,
    Chris

  • Is this a bug in Flash Player or Flex?

    Compile and run this code (it is generated when you select New MXML Application) with FlashBuilder4.5:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    </s:Application>
    If you are using IE, you will see a blue player control panel. But there should be nothing displayed because there is no
    visual components in the code above.
    If you are using FireFox, there is nothing displayed.
    Same behaves for mx:Application.
    I think it is a bug with Flash Player or Flex. How can Flex behave differently with different browsers?

    This is what I see in IE 9.0.8112.16421, but not in FF.

  • Small Bug in Flash 8: loading swf that´s a vectorized image in many layers

    Hi! There´s a small bug in flash 8. If you load a swf
    that it´s a vectorized image in many layers, when you give it
    an action in onLoadInit, like mc.onRelease, the mc don´t
    "catch" that action. You can try loading an image (it works), a lot
    of swf (it works), but with this kind of swf the actions onRelease,
    onPress, etc... don´t work.
    The
    swf
    I´ll make a different vectorized image to make it works
    (if there is only one layer it works)

    Seems odd it will only run once. Usually if a cache problem
    you get the same
    results even when you update the movie or server scripts.
    If it is
    http:// it is not local even if from the browser
    cache.
    Verify the html is validated.
    Check to see if this applies to all swfs. Create a simple
    hello world swf
    that connects to a JSP script that returns a simple value to
    Flash. If that
    seems to work, then the problem is in the JSP or
    Actionscripting coding.
    Check you can load the JSP script repeatedly using a direct
    call to it on
    the browser line using
    http://.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "srikanth_s_india" <[email protected]> wrote
    in message
    news:e6obld$lfb$[email protected]..
    > Thanks for the article link.
    >
    > I can't provide the URL as it is within our application
    which requires
    > logging
    > in. However, one more interesting thing about it is that
    it always works
    > for
    > the first time (in the browser/machine) but not from the
    next time.
    >
    > My doubt is whether it is because of the caching? When
    it loads for the
    > first
    > time, the HTML and SWF files load from our server and
    hence are allowed to
    > communicate with our JSP. However, when it loads the
    subsequent times, it
    > probably loads from the cache and hence considered as a
    local file and not
    > allowed to communicate with our JSP file which is on the
    Internet.
    >
    > Can anybody tell me how to enable a local SWF file to
    load SWF files from
    > the
    > Internet & access URLs from the Internet in Flash 8
    pluggin?
    >

  • Bug in flash 8 authoring?

    I have a fairly big flash project with a number of classes. I
    have a problem when changing code in some .as files, the result is
    not shown in the published swf. I need to close flash altogether,
    reopen the fla, republish, then I see the result of the changed
    code in the swf.
    Has anyone encountered this bug in flash 8 before?
    Thanks,
    Paul

    Howdy. I'm having a very similar problem. I'm working with 21
    languages (including EN) on the strings panel in Flash 8. I've
    found that my languages get corrupted -- EN strings get substituted
    in for some, not all localized strings in the panel -- when I
    publish or test the movie. I was publishing for Flash 7. When I
    changed my publishing settings to Flash 8, the problem went away.
    Have you gotten any answers to your problem?

  • Bug in Flash 8 when using Strings Panel?

    A problem with the strings panel in Flash 8 I have found is
    that, when working with 6 languages, if you save and close down
    your Flash file with the Strings panel hidden, and re-open the FLA
    and then view the strings panel/view your text on the stage (or
    open the xml file) that, in my cae, some EN strings have been
    corrupted/mutated to other languages.
    This is obviously a bug in Flash which corrupts one of the
    XML files if the strings panel is closed. Why does it do this? Its
    very annoying having to remember to open the strings panel whenever
    I load that specific project, even if I am not going to use it. And
    the panel takes up a lot of space as it is so can't leave it open
    all the time for other projects.
    Any ideas?

    Howdy. I'm having a very similar problem. I'm working with 21
    languages (including EN) on the strings panel in Flash 8. I've
    found that my languages get corrupted -- EN strings get substituted
    in for some, not all localized strings in the panel -- when I
    publish or test the movie. I was publishing for Flash 7. When I
    changed my publishing settings to Flash 8, the problem went away.
    Have you gotten any answers to your problem?

  • Is this a bug whith Flash Player 9?

    Hi everybody!
    I´m with a bug in Flash Player 9 plugin in IE 6.
    The problem is that when a page with flash ins loaded by the
    browser and if this page contains a swf, its not loaded. When i
    click whit the right button in movie, the popup menu exibit "Movie
    not loaded". In Firefox this doens´t happens.
    What can it be?
    Thanx!

    This is what I see in IE 9.0.8112.16421, but not in FF.

  • Why Doesn't SKEW Work? Bug in Flash???

    Does anybody know why it is impossible to "Skew?" Holding
    "control" and dragging the corner of an object with the Transform
    tool shows an outline of your skew, but let go of the button and
    nothing happens.
    This is giving me a major headache. What is going on here?
    Is this a bug in Flash????

    I created a Movie Clip, dragged the video onto the movie
    clip's timeline.
    Then I created a new Scene, and dragged the movie clip onto
    the scene's only layer. Transform doesn't work on the movie clip.
    ***Clarification: Skewing doesn't work. Other transform actions,
    like Rotate, work fine.***
    Any ideas why?

  • Huge bug in Flash CS4 verify

    Could any one please verify this bug and let me know if it is a bad install or acualy a hugh bug in Flash:
    This is what is happening...if I do not give instance names to the buttons on frame 1, frame 2 buttons WILL NOT work even if they are named...also doing a trace of objects shows they are given the flash default names...as though I hadnt named them...here is the FLA I saved it as CS3 :
    http://alphagraphicdesigns.com/help/Flash_bug.fla
    these are the steps to get it to happen:
    1. Create a new document using Action script 2
    2. Draw out a vector rectange using the rectangle tool
    3. Right click and turn it into a button (dont give it a name leave the default)
    4. Copy and past it 5 times on frame one (do not name any of the buttons)
    5. Name only one of the buttons "navigate_bnt"
    6. Past the below code on frame 1
    navigate_bnt.onPress = function() {
    gotoAndStop(2);
    ///Loop and find all objects
    for (var Object_Name in this) {
    trace("frame 1: "+Object_Name);
    stop();
    5. Create a frame on Frame 2 of the timeline
    6. Past the button 5 times on frame 2
    7. Name 1 of the buttons "navigate_bnt."
    8. Name 4 of the buttons  on frame 2 : "bnt_1","bnt_2" ect..
    9. Past the below code on frame 2
    navigate_bnt.onPress = function() {
    gotoAndStop(1);
    bnt_1.onPress = function() {
    trace(this._name)
    bnt_2.onPress = function() {
    trace(this._name)
    bnt_3.onPress = function() {
    trace(this._name)
    bnt_4.onPress = function() {
    trace(this._name)
    ///Loop and find all objects
    for (var Object_Name in this) {
    trace("frame 2: "+Object_Name);
    stop();

    Hi Ned,
    Thank you for verifying this and the suggestion...
    The issue with adding the "blank frames" is the flash player slows to about 4 times slower to render out the new frame.
    I have decided to place the code directly on the buttons, because I have found that sometimes a button's name will change as well and call on the wrong function....So this is very weird that I can dynamically change a buttons name hardcoded in! I cannot take the risk of the button firing off the wrong function as this could seriously injure someone. This program controls some big machinery.
    The issue seems to stem pretty deep into the flash engine and effects all "Objects".
    For example:
    1. On Frame 1 name all of the objects
    2. On Frame 2 rename all of the objects
    3.On Frame 3 do not name the objects
    On frame 1 gotoAndStop(3)
    all of the buttons are named from frame 2 !!!!
    So even though I have skipped frame 2 the unnamed objects pick up frame 2's names and label the unnamed objects.
    So I would think the player would skip over frame 2...like a hard drive would indexing....but rather the flash player acts like a tape recorder having to seek to a position in the timeline.

  • Is this a bug of flash cs4?

    Hi, all:
    I've noticed that when I place a MovieClip element on both key frame1 and key frame2 from the content library, and let the instance on frame1 has no instance name, then the instance name which I give to the instance on frame2 has no effect at all——namely I can't refrence it by action script code on frame2 of the main timeline.
    I checked the content of the binary-file outputed by flash cs4, and got that after the first ShowFrame Tag, the instance was modified by the PlaceObject2 Tag, but the PlaceFlagHasName was not set, is this a bug of flash cs4? Has anybody else encountered this problem?

    Now, that was extremely odd ..
    I do not have any idea, why your movieclip returns 'undefined'
    When I create a new movieclip on the stage (your stage),
    and trace it, I get the expected result..
    Doing the same on your movieclip on the exact same stage
    gives undefined...
    I cen't event reproduce the problem on my own.  Only with your
    movieclip.. Extremely weird indeed..
    Sorry dude, I'm clueless on this one.
    Best regards
    Peter

  • Have You Any Knowledge of Bugs in Flash Player 10?

    I have custom software that was developed for me by a Flash animator using Flash Player 8. Everything was working fine. It also worked on Flash Player 9. Now there is a part of the website that doesn't work. I checked with my animator and he says that the problem is a bug in Flash Player 10. He said that he found mention of it on Adobe.( https://bugs.adobe.com/jira/browse/FP-1028). He says that the remedy that they suggest is to transfer everything from Actionscript 2 to Actionscript 3. That would cost me about $2500. I am just launching this website and don't have $25 let alone $2500 to fix this issue and yet the sound is critical in this section.
    Here's what doesn't work. There is a section where the kids click and drag  "pieces" and put them into photographs and when they release the pieces, they makes a sound. For example, click and drag a chick and put it into the photo and when it is released, it peeps. It doesn't do that now.
    Does anyone have any suggestions for me that are less expensive than the one that I already know about??
    Thank you so much!

    Posted on another by Don Moir
    Goto this link for a fix for your problem:
    http://forums.adobe.com/thread/199162?tstart=0

  • Looking for previous post!! Windows update causing flash to not work?

    A few days ago i finally fixed my problem where some automatic updates from windows caused flash to not work on some videos.  I uninstalled these updates, but can't find the question/answer that helped me with my solution.  It had to do with uninstalling 2 windows updates, KBsomething... can anyone direct me to that post??

    Was it this post?
    http://forums.adobe.com/message/4865912#4865912

  • Hi, i bought a ipad2 3mos. ago and every time i full charge it to 100%, i only get around 4 to 6hrs. out of it! our friends from Apple said 9 to 10hrs. is there any way this could be remedy? hope you guys understand getting short handed by 3 to 4hrs.

    Hi, i bought a ipad2 3mos. ago and every time i full charge it to 100%, i only get around 4 to 6hrs. out of it! our friends from Apple said 9 to 10hrs. is there any way this could be remedy? hope you guys understand getting short handed by 3 to 4hrs.

    It depends on how you are using your iPad.  If you are streaming videos or music, or playing interactive games which require internet access a lot, you may not get a full 9 hours from your battery.  In addition, have you closed unused apps?  To do so, double tap your home button to bring up the Task Bar (most recently used apps).  Hold your finger on any of the apps on the Task Bar until they all start to jiggle and you'll see a sign on the upper left corner of each app.  Tough the to fully close them.
    Finally, location services, push for mail and it's frequency can have a dramatic effect on battery usage.  Turning them off, as well as not using your screen at 100% will help reduce battery usage.

  • Vulnerability Scanner causes Flash Remoting Status Description to return null

    I'm having an issue with Flash Remoting that we have been able to track down as being cause by our vulnerability scanner.  About 2 minutes into the scan process it causes flash remoting to fail and it does not recover until the ColdFusion Application Service is restarted.  What's worse is that I'm not seeing any errors in the log to identify that there is a problem and it's a error the end user is seeing and reporting to notify me of the issue.
    Any thoughts of what might be causing this?  Is there any logging I can enable to help troubleshoot / identify when I have a problem?
    Bellow is a modified snippet of the code we are using to do the call. In alert("Error while calling cfc:" + stat.description); is where we are seeing the error.
      function getCurrentDate()
       mx.managers.CursorManager.setBusyCursor();
       var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/flashservices/gateway/");
       var zService:mx.remoting.NetServiceProxy;
       var responseHandler = {};
       var dmLAST_MOD_DATE= dmLAST_MOD_DATE;
       responseHandler.onResult = function( results: Object ):Void
        mx.managers.CursorManager.removeBusyCursor();
        _root.sessionTime = 0;
        _root.realSessionTime = 0;
       responseHandler.onStatus  = function( stat: Object ):Void
        mx.managers.CursorManager.removeBusyCursor();
        alert("Error while calling cfc:" + stat.description);
       zService = connection.getService("X.Y.z_dao", responseHandler);
       zService.getToday();
    I am runnning ColdFusion 11 on Win Server 2012 R2 and IIS 8.5.

    Did you get a resolution to this? I'm having the same
    issue.

  • Flash.text.engine.TypographicCase.CAPS_AND_SMALL_CAPS

    In AS3,  flash.text.engine.TypographicCase.CAPS_AND_SMALL_CAPS  seems to not have the desired effect (Specifies that all lowercase characters use small-caps glyphs on  output.). It only makes everything upper case. I've searched the forums and Google and my conclusion is that this is a bug in AS3. Can someone confirm that? If not a bug what is the trick? I am using the code prrovided by Adobe here:
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/text/engine/ElementFormat.html#typogra phicCase for class ElementFormatExample and I changed
    ef1.typographicCase = flash.text.engine.TypographicCase.UPPERCASE;
    to
    ef1.typographicCase = flash.text.engine.TypographicCase.CAPS_AND_SMALL_CAPS;
    also tried SMALL_CAPS with no luck.
    What I need is to output the first letter as uppercase and larger than the rest of the letters in the words, and 2nd letter to end also in uppercase but smaller font size (the smal caps glyph).
    Thanks.

    Did you ever figure out a work-around or find out if this just isn't an option? I've tried applying my small-caps style every way I can possibly think of to no avail. If I take away the <cfdocument...> the HTML renders fine and even passes validation on W3C. I'm assuming that PDFs just don't support that style. I just wanted to see if you had any other info on this since I can't seem to find any other posts from users trying to do this.
    Thanks!

Maybe you are looking for

  • I want to display static data in table in web dynpro for java

    Hi, I have to display static (textview )data in table . So what im doing is that i have created a node of name "table" then created its attribues and binded it to the table and in table, under "column editor" option of "text"  is there where i can wr

  • Does System Architect or Project leader need to know DB skill?

    Hi, this question may require Experienced System architect or project leader to help me. Currently i am working as a normal programmer. I hope i can be System Architect in future (probably for J2EE platform). So, beside my system design skill, do i n

  • Color wheel keeps appearing

    Hi, In the last two weeks the color wheel started to appear when browsing, etc making the system very slow. I ran EtreCheck and below are the results.  I see a couple of fails but i don't know how to fix this. Any ideas? Thanks!! Problem description:

  • Integrate live cycle designer with Dev environment

    Hello All, We are implementing adobe forms for the first time. We are in process of installing the adobe live cycle designer 8.0. My first question is that we can purchase this directly from the adobe site right ? Also, I read that this live cycle de

  • Request response as xml

    I have been given an xsd file and asked to create a web service whose request/response is based on this provided xsd. and the requirement is to have request/response of web service in xml doc. This complete XML cannot be a sent as string. So, please