Recommendation about 'strict mode'

Hi All,
The line:
newChildObject = myMC;
produces an error ("Access of undefined property newChildObject") when my I have 'strict mode' checked in my Advanced Actionscript 3.0 Settings window but not when I have that unchecked.
(I'm assuming that I'll need a 'var' in front of that variable to keep it from throwing an error in 'strict mode.' )
Should I keep my 'strict mode' checked? Will it help prevent some problems down the road (like in SWF versions)?
Thanks

Yes, learning and coding in strict mode will save you headaches... and not necessarily that far down the road.

Similar Messages

  • Debugging in "strict mode" while using external library assets

    Hi everyone. A new ActionScript-3 user here with a question on strict mode.
       I have multiple Flash pages which use the same art assets. To support modularity and possibly decrease total download time, I have implemented this by placing the shared assets into the library of a shared .swf file (the other .swf files all load this shared .swf file). The shared .swf contains ActionScript routines to place instances of the assets onto the stage and to perform other common functionality.
       A drawback to this strategy is that, correct me if I'm wrong, "strict mode" can not be used to debug calls to functions which exist in external .swf files. That is, if the parent .swf makes a call to a function which is defined within an externally loaded .swf, that function call will be reported as an error in strict-mode because Flash is unaware of the contents of an external .swf at compile time (though it is aware at run-time.)
       My understanding is that shared code can be compiled under strict-mode if the shared code exists purely as an external .as file, not as an external .swf file. However, again please correct me if I'm wrong, art assets which are shared at run-time must exist in an external .swf file. Therefore, by my understanding, if run-time shared assets are desired, then strict mode will not properly compile the projects.
       Is my understanding correct?
       Thanks for any help,
         - Rashid

          Posting an update.
          I have since found a way to compile in strict mode a project which loads an external .swf and acesses its functions. This external swf is able to have a library of its own which is accessed in the external swf's own ActionScript.
          Unfortunately, the solution I have found increases the size of the project's compiled swf. If anyone knows of a way to solve this problem without increasing swf size, I would be quite grateful if you were to share your knowledge.
          Posted below is the solution I am aware of, which increases file size. In these steps, “main project” refers to the top-level Flash project which is attempting to load other swf's. “External project” refers to an swf which is to be loaded by the main project.
    1) Publish the external projects as swc files. “Swc” is a class file, and is to be accessed by the main project when debugging under strict mode. The .swc presumably contains information about external project's library items which are to be exported for ActionScript.
          To create an .swc file, head to “File->Publish Settings...->Flash”. Check the “Export SWC” box.
    2) In the main project, add the external projects' .swc files to the external library path. This is found in, “File->Publish Settings...->Flash->Settings->External library path”. Either individual swc files can be added here (via the SWC file button) or the name of the directory where they reside (via the Path button). Both approaches should work.
    3) Somewhere in the main project's ActionScript, the external project is likely being loaded via a line of code similar to myLoaderObject.load( myURLRequest ). For this new approach, it is now necessary to make use of the second parameter to load(), the loader context. Here's the new line of code:
    myLoaderObject.load( myURLRequest, new LoaderContext( false, ApplicationDomain.currentDomain ) );
          If the LoaderContext parameter is NOT passed, then Flash unfortunately shall not report this as an error. Instead, you may observe strange behavior when the external swf attempts to use its exported library items.
    4) If the main project's code refers to the external project's class by name, then that class will need to be “import”ed into the main project's code. Without this, the compiler will complain about not recognizing the class.
    5) In the main project, edit  “File->Publish Settings...->Flash->Settings->Source path”.  Add the path to the external project's .as class file. Without this, the main project shall give a run-time error of not being able to find the external class.
       This final step, 5, is what increases the size of the main project's swf. I have a project with a few nested .swf loads, and the main project's swf increased by about 10Kb when using this solution.
          This does not seem proper. That is, one would desire the sizes of the final swf's to remain unchanged regardless of the level of compile-time error reporting. If my interpretation of an .swc class file is correct, then it seems logical to presume that step 5 above should not even be necessary, because the class information is given to the compiler/debugger through the .swc.
       Anyone know what I am doing wrong, or otherwise how to get around this problem?
       Thanks bunches.

  • Mysql Strict mode issues

    hello sir,
    Please turned off the MySQL strict mode of server,i am getting a lot of error,column name doesn't have a default value,and i am not able to access my website,please resolve this issue as soon as possible.

    Hi Funtivity LLC,
    Since the forum regards Windows SQL Azure database, if there are some error in your MySQL database, I recommend you post the issue on the MySQL forum(
    http://forums.mysql.com/ ). It is appropriate and more experts will assist you.
    In addition, if you want to turn off the MySQL strict mode, there is instructions in the following article. You can refer to it.
    https://my.kayako.com/Knowledgebase/Article/View/472/149/how-to-turn-off-mysql-strict-mode
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Turning Off Strict Mode in MySQL 5 ??

    I was just wondering if anyone knows the Terminal Command to Turn Off Strict Mode for MySQL 5?
    I've looked around but I can't seem to find the Answer.
    Thanks!

    I was just wondering if anyone knows the Terminal Command to Turn Off Strict Mode for MySQL 5?
    I've looked around but I can't seem to find the Answer.
    Thanks!

  • [svn] 2236: Allow implicit conversion of Vector. * to Vector. T in strict mode.

    Revision: 2236<br />Author:   [email protected]<br />Date:     2008-06-25 11:48:59 -0700 (Wed, 25 Jun 2008)<br /><br />Log Message:<br />-----------<br />Allow implicit conversion of Vector.<*> to Vector.<T> in strict mode.<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/Context.java

    For some reason it just started to work now. Have no idea what didn't work before.

  • Question about BART - mode of the manifest

    Good Day,
    I have looked into the manifest of the bart generated as follows, get confused about the mode(which is permissions), why there is a prefix (3 bits normally, for example 100, 120, 106) before the permissions (such as 755, 600, 777), what are those bits meaning? Appreciate for any help!
    /etc D 3584 40755 user::rwx,group::r-x,mask::r-x,other::r-x, 3c6803d7 0 3
    /etc/.login F 524 100644 user::rw-,group::r--,mask::r--,other::r--,
    3c165878 0 3 27b53d5c3e844af3306f1f12b330b318
    /etc/.pwd.lock F 0 100600 user::rw-,group::---,mask::---,other::---,
    3c166121 0 0 d41d8cd98f00b204e9800998ecf8427e
    /etc/.syslog_door L 20 120777 user::rw-,group::r--,mask::rwx,other::r--,
    3c6803d5 0 0 /var/run/syslog_door
    /etc/autopush L 16 120777 user::r-x,group::r-x,mask::r-x,other::r-x,
    3c165863 0 0 ../sbin/autopush
    /etc/cron.d/FIFO P 0 10600 user::rw-,group::---,mask::---,other::---,
    3c6803d5 0 0

    Simon2k7 wrote:
    > But why doesnt DW8 automatically
    > insert the mark of the web all the time.
    Because it works only when testing the file locally. You
    should remove
    it before uploading the file to your remote server as it has
    no effect
    on the way others see your pages.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • About  "Append mode" of cs6, cc & cc2014 project file in order to insert xml sequence which is sent from 3rd-party tool

    let me ask you all something about  “Append mode” of cs6, cc & cc2014 project file in order to insert multiple xml sequence  which is sent from 3rd-party tool  into specific project file .
    Finalcut pro 7 & x  was supported this , but i am not sure will support this on cs6, cc & cc2014 .
    is this possible ??
    could someone  let me know about this - append mode possible or not ?? 

    let me ask you all something about  “Append mode” of cs6, cc & cc2014 project file in order to insert multiple xml sequence  which is sent from 3rd-party tool  into specific project file .
    Finalcut pro 7 & x  was supported this , but i am not sure will support this on cs6, cc & cc2014 .
    is this possible ??
    could someone  let me know about this - append mode possible or not ?? 

  • Write some recommendations about iOS

    Hello! I wanted to write some recommendations about iphone and it's operation system iOS, so that developers of apple company could fix some functions in iphone.
       It is a problem about dictionary in iOS. Obviously,we can use dictionary throughout the system by selecting the word in the text so that we can se the definition of word. But when i read the definition, it may also consist some unknown words and i can not select them to see the definition. I hope that you understood me.Thus, i would like to wait the answer

    http://www.apple.com/feedback

  • I have a newer MacBook Pro with an AMD processor.  It is my understanding that Parallels can only be used on Mac's with Intel Processors.  Is that true and if so does anyone have recommendations about how to have a windows side to my Mac

    I have a newer MacBook Pro with an AMD processor.  It is my understanding that Parallels can only be used on Mac's with Intel Processors.  Is that true and if so does anyone have recommendations about how to have a windows side to my Mac

    Then it either is a pirate clone or you are misinformed.
    Apple Computer has never used AMD processors in its products.
    However, the Graphics Processing Unit (GPU) is a Radeon unit, which is an AMD subsidiary. Parallels, VMWare, VirtualBox will all work fine with the Intel Core i7 or i5 CPU that powers the Mac, and use the AMD Radeon GPU that drives the displays.

  • Flash CS3 Compiler in Strict Mode errors out 1120: Access of undefined property

    Hi,
    I am following a code example in a book and have the final fla and as files, so I know the project works when fully coded.
    This is my problem:
    In the book, it tells me I can test the movie to make sure that it is working so far. When I do that, I get the error 1120: Access of undefined property.
    The "property" is a component instance. If I take the example completed code and remove everything up to the point I am at, I receive the same errors, so I know it's not a spelling/syntax mistake.
    I have a feeling it is the Compiler in Strict Mode. But, when I change it to Standard Mode, then I get error 5001: The name of package 'com.foundastionAS3.ch12' does not reflect the location of this file. etc.
    So, in the end, I feel if I can't check my code until everything is completely finished, how do I check it as I am working?
    Can someone help?
    Thanks.
    note:: attached is a file of the compiler when it gives me multiple 1120s.

    It's funny. I checked the code from the book, it does not have it imported, but it still works. When I complete the code without the import, it works.
    When I do add the import (which is the first thing I did when the errors were thrown) while building the code, it removes that error, but the same 1120's are there. I checked the properties of the components to make sure they are runtime, and also the properties of the actionscript is runtime, so what is it?
    All of the more complex examples in the book are throwing these errors while building the code. The problem is, how do I check my code while creating it... That's why when I found this post "http://forums.adobe.com/message/2844566#2844566" I replied.

  • Here on the site given a recommendation about appltai they found themselves crooks and stole my $ 600

    here on the site given a recommendation about appltai they found themselves crooks and stole my $ 600 ??

    Dirty Vegas wrote:
    razmee209 wrote:
    What? what is appltai?
    Looks like some bogus site.  My browser won't even load the link.
    You're a brave man clicking on the link...  I figure OP got dupe with a fake website.

  • Doubts about Hibernation Mode in imac

    Hi!
    I have some doubts about hibernation modes in my imac.
    Some times the hibernation led pulses, sometimes just stays on.
    Can anyone explain if there are any diference between this two hibernation modes?
    Thanks a lot.
    Vidal

    If it is in hibernation, it should pulse. If the machine has got to the point where the screen has turned off but the computer has not gone to sleep yet, the light will not pulse. Check your energy saver settings in your system preferences.
    Some applications can prevent a proper hibernation and while the screen will turn black, the system will not sleep properly and the light will not pulse.
    Karn.

  • Questions about TDM mode on an iMac

    Hi!
    I'm thinking about buying 2009-2010 27" iMac, it should replace my home server, display and audio system.
    Primarily, I will use it in TDM mode, and have some questions about it.
    Firstly, what about sound? iMac receives it over Mini DP, right? And if I'll connect HDMI device to iMac (PS3, looking forward to Xbox One, and MacBook Air over hdmi adapter), sound will be played over desktop's speakers, as it should?
    Second, and most interesting part: if connection scheme is MacBook Air->Mini DP to HDMI adapter->HDMI cable->HDMI splitter->HDMI to Mini DP cable->iMac in TDM, everything will work fine?
    Also interested about cables. For example, this cable http://dx.com/p/cy-dp-021-mini-displayport-to-hdmi-audio-extender-cable-white-1- 8m-177527 supports up to 1920x1200, but basically, both DP 1.2 and HDMI 1.3b supports 2560x1600. Should I look for another cable or this one will support 2560x1440 resolution?)

    Beta software is always a risk. Some beta releases are close to finished status and quite polished and bug-free, while others have significant and often crippling bugs. Not that software in official release may not also have problems, but the entire point of beta releases is to identify bugs prior to an official release, so bugs are much more likely. Sometimes you won't encounter any problems, but other beta software may take your machine down completely; it all depends on what the software is intended to do, how skilled the programmers are, and where in the beta cycle the software may be. A "public preview" release from a major developer such as Microsoft, Apple, or Mozilla is less likely to have major problems, but it's no guarantee.
    It's always wise to be very cautious about using any beta software, and to take extra precautions, particularly making backups much more often and preferably not using your main computer, when running any beta software. I would recommend never, repeat never, running beta software on any computer on which you depend on a daily basis for work or critical schoolwork. If you must, make a clone of your entire hard drive to another volume before installing any beta, so you can recover your system in case of major problems.
    Message was edited by: Dave Sawyer

  • NAT is Strict/Mod, multiple xboxs, at my wits end with routine TS'ing not working....

    Problem:
    Network test always shows NAT as Moderate or Strict.
    Question:
    How do I get the Xbox consoles to get an OPEN NAT?
    Troubleshooting I have done:
    I have opened ports 53,80,88,3074 to static console IP (per standard advice) still shows as strict or moderate in console network test, or in multiplayer lobbies (like shown in GoW2)
    UPnP is enabled.
    Router firewall is disabled.
    DHCP both ON and Off (static IPs for consoles)
    Network topography:
    Comcast coming into an ARRIS (DOCIS 2.0) Touchstone Telephony Modem (HW Rev 32)
    Linksys WRT310N router connects to Modem
    Connected devices (on Router):
    3 Xbox 360 consoles connected to Router (2 wired, 1 wireless)
    1 Wii connected wirelessly
    3 Laptops (wireless), 1 PC wired
    3 smartphones (wireless)
    Complications as I see them:
    1. Port forwarding seems to be out, as you can only port forward to a single IP device, and I need open NAT on all 360 consoles.
    2. DMZ will only open a single address/single device
    3. Port Range Triggering on the Router is GREYED OUT!  I cannot turn on Port Range triggering!

    Cross posted to Xbox.com forum:
    http://forums.xbox.com/33167009/ShowPost.aspx#33167009
    Flattened the network completely. Everything to defaults.
    Router Frmwr is 2.0.01bld4 (latest).
    Started with all factory defaults
    Xbox1 on wired Network test comes up OPEN
    brought Xbox2 up on the wired network, comes up Moderate.
    there are no other devices on the wired/wireless network. NONE!
    Switched network cables/locations of Xbox 1 and Xbox 2.
    Brought up Xbox1, network test shows OPEN on swithced location
    Brought up Xbox2, network test shows Moderate on swithced location
    Both Xboxs are fully updated, as both connect to Xbox LIVE, so console dash/firmware software isn't an issue.
    absolutely befuddled here....
    Brought up the wireless network, added all the remaining wireless devices, and Xbox1 still connnects as OPEN.  I guess that's some serious progress so far.....
    (Mod note: Edited post for guideline compliance. Thanks!)

  • Explain about transparent mode, single mode, multiple context mode

    You can explain about the differents of transparent mode, single mode, multiple context mode in ASA 5500? Thank you very much.

    Great question. Hope the below helps:
    Transparent Mode: In this mode, the ASA will filter traffic without requiring L3 on the ASA. This means that in your config you will not put IPs on the interfaces to be used for traffic filtering. Thus, filtering is transparent to the traffic as the traffic isn't directly routed to the firewall. Think of it like you have a server plugged into a switch. In transparent mode, you place the ASA between the server and the switch and no configuration change is required to the server. In routed mode, you place the ASA in the same physical location between the server and switch, but have to change the server to use the ASA as a default gateway.
    Single Mode: Default mode of an ASA. The ASA acts as a single firewall and all interfaces are provisioned to be managed through a single firewall configuration.
    Multiple Context Mode: The ASA is split into multiple virtual configurations. With the ASA now virtualized, you provision the physical interfaces on the ASA to the virtual firewall configured. Each context has it's own configuration seperate from the rest of the firewall. Multi-context is meant for enterprises to invest in a single piece of hardware and scale it for use as multiple security devices.
    Hope this helps. Let me know if you have anymore questions!
    -Mike
    http://cs-mars.blogspot.com

Maybe you are looking for

  • Passing params to XSLT in OSB 11g

    Hi all, I was just trying to pass a bind variable to xslt in OSB. It actually works for simple types like string etc. But I am not able to pass complex XML types to it. There kind of usage actually works in BPEL and mediators but the same thing is no

  • Engineering logical subtypes to Relational model

    I have a logical model with subtype (box in box). When I forward engineer to a relational model there is nothing in the model to represent the subtypes. I was expecting (as in old Designer) to see a differentiator "type" column to be generated with a

  • How do I stop Dreamweaver from automatically adding P Tags on Enter?

    How can I change Dreamweaver CS5 preferences so that it doesn't automattically add <p> tags when I hit "Enter"? And please don't tell me <p> tags are important and I should just style them differently with CSS.

  • Error in importing data from multiple ASCii files, Concatenat​e

    I am trying to use the "Importing Data From Multiple ASCII FIles.VBS" and the "Concatenate Groups.VBS" scripts downloaded from here, http://zone.ni.com/devzone/cda/epd/p/id/3870. When I run the importing data script and test it by highlighting the ex

  • Aperture 3: Lion Server Photo Storage

    I'm attempting to store my photo library, which is referenced, on our Lion server here at home. I've ran into a problem; I cannot delete files. When I attempt to empty Aperture's trash I get the following error message: I've ran out of ideas on how t