What do we Inherit?

Hello again,
Guys I've read this tutorial :
http://java.sun.com/docs/books/tutorial/java/IandI/subclasses.htmlas one of you suggested in one of your replies to my question on topic about inheritance and that's fine. Unfortunately in this tutorial two sentences contradict each other:
1. A subclass inherits all the members (fields, methods, and nested classes) from its superclass. Constructors are not members, so they are not inherited by subclasses, but the constructor of the superclass can be invoked from the subclass.
2. A subclass does not inherit the private members of its parent class.
Moreover in netbeans while debugging it shows that private members of superclass are inherited by child class.
So what's going on? Which sentence is true? And really, but on sun's official website this kind of error shouldn't have place.
Looking forward to your reply

atch7 wrote:
Well it's not really semantics.Yes, it is just semantics. Most likely, you don't know exactly what the definition of "inheritance" is in Java. You probably have some general OO notion of it, as we all do, but chances are your general notion is not the same as mine, and neither is likely to be a perfect match for Java's definition. So when you ask, "Are private members inherited?" it's not whether they're inherited that matters, because that question is answered by which definition of inheritance you use. Hence, it's just semantics. What matters is what the rules and mechanisms are in Java.
Its fundamental very important concept. Well you saying that it makes no difference but I cannot agree. It is fundamental to know and understand how the mechanism of inheritance work and in order to understand that one has to know about basic concepts like inheritanceIt's important to understand the mechanisms.
and which members are inheritedIt's not really that important what the exact definition of inheritance is in Java.
and I really wish that sun would make it clear Yes, it would be nice if the JLS was clear, precise, and consistent. But if they did make it clear, precise, and consistent what exactly is inherited, that would NOT clear up any of the mechanisms, only what Java's particular definition of inheritance happens to be.
You seem to be approaching this from the perspective of, "There is one universal, standard, precise definition of inheritance in OO languages. What in Java fits that definition?" I don't think such a definition exists.
and do not make any more such a basic mistakes. Is there in java (I'm sure there is) a method which will allow me to check size of an object of any class? Doing so I would answer to my question myself but logically thinking every member is inherited otherwise on what member would we operate in derived class through public methods?See, here you're assuming that the definition of "inherited" is essentially "present." It's not that simple.

Similar Messages

  • Jobs turned down due to what you would inherit

    Throughout my career, since the mid-1980's, I have managed the projects of over 350 networks (I quit counting after documenting 350). More likely the project count is around 500 +/- 50.  
    I only objected to one. It was a large law firm where the mission critical server was at 99% capacity. They wanted to expand the storage not just because of the lack of space, but because of disk errors on the RAID 0 system. Yes RAID zero at 99% capacity with questionable backup sets.
    My risk assessment put this network in danger of imminent failure and I did not want to be in the same room.
    I declined and do not know what ever became of that system. I'm pretty sure some heads rolled...

    The sad part is that those really bad networks need help, really bad.My inspections typically follow the OSI model. Start with the physical layer, and work your way up.I look at the wiring closet, client wiring, server wiring, and switches.Then UPS / backup systems and router(s)...Then look at the servers and clients. (The big problem here is "Do you have the passwords?")Then see what services the servers and/or clients provide.Finally talk with the users to get a feel for what their top 3 issues are.The big kicker for me comes with one question. "Is the company leadership willing make the required changes, and are they willing to provide the appropriate resources to make the changes. If the answer is "Yes", I'm in. If they hesitate, or say "No", I tell them that they are wasting their time with me, and here are the top 5 issues they...

  • Adding multiple artwork files to several items on iTunes 11

    Hi all.
    in previous versions of itunes one could add artwork in several ways one of which allowed for easily adding several artwork files to more than one item at once without replacing the existing artwork.
    I am talking about the little square that was on the left bottom corner of the screen and you could chose if you want to watch the artwork for the currently playing song or the selected song. you could paste into it or simply drag onto it. it would add the art work in appose to replace the existing one as happens when you do it from the info window.
    this little square disappeared from version 11 and now I am unable to add several files to several items at once.
    anyone solved this pickle?

    treyer11 wrote:
    IThe point is, I could drag and drop previously and have gone backwards in capability which is supposedly against what Apple platforms inherently stand for.
    The point is it has not gone backwards in capability. It works just fine. I can drag & drop to multiple selected items just fine.
    Something is wrong wtih your install.

  • Scrollable picture with other pictures attached to it?

    Any ideas how and with what classes this should be done?
    I want to make a GUI with largish picture in the background.
    The size of the picture exceeds the size of the window
    so it needs to be scrollable.
    Then I want to have other smaller images on top of that.
    These images should also move when the background is scrolled
    and my plan is to be able to drag them around with mouse
    (i.e. change their position in relation to the background picture).
    I managed to create the scrollable picture, but weren't
    able to display anything on top of it.
    I'm using JDK 1.3.1 (and Borland's Java Builder 7)

    All right, I managed to do it all. This Java is pretty quick to use
    (when you know what class to inherit ;)
    Here's the sollution for those draggable pictures
    public class DraggablePic extends JLabel implements MouseMotionListener, MouseListener {
      int clickPositionX;
      int clickPositionY;
      // constructors
      public DraggablePic() {
        super();
        addMouseMotionListener(this);
        addMouseListener(this);
      public DraggablePic(Icon image) {
        super(image);
        addMouseMotionListener(this);
        addMouseListener(this);
      // mouse motions
      public void mouseDragged(MouseEvent e) {
        super.setLocation(e.getX()-clickPositionX+this.getX(),
                          e.getY()-clickPositionY+this.getY());
      public void mouseMoved(MouseEvent e) {
      // mouse events
      public void mouseClicked(MouseEvent e) {
      public void mouseEntered(MouseEvent e) {
      public void mouseExited(MouseEvent e) {
      public void mousePressed(MouseEvent e) {
        clickPositionX = e.getX();
        clickPositionY = e.getY();
      public void mouseReleased(MouseEvent e) {

  • Color calibration video?

    Just wondering if there's such thing for Apple TV. I may have calibrated my projector for my DVD player but the same calibration can't be apply to the Apple TV. And it seems that all the videos (TV Shows, music videos and movies) color are all over the place.

    it should give you the maximum potential performance. using test material is the only way to properly calibrate a monitor. people who do it by eye, either have a lot of experience, or are going by non-scientific methods. often times, doing a calibration randomly or w/o a reference image will end with innacurate results.
    on the other hand, some people simply don't care... true videophiles are more rare than audiophiles it seems.
    just 1 word of caution, I find that these tests do in fact allow one to set up a monitor with "perfect" or at least reference video... within the capabilities of the monitor, however these tests and calibration methods were developed with the CRT in mind. although most of the test do tranlate over to LCD, DLP, and other fixed panel devices, i find that many of these modern displays are not capable of the samer performance envelope as CRT displays. in the case of fixed panel devices that have poor black levels, make sure that you take this into account when doing the calibration... in other words, you can't make a device's black level performance exceed what it is inherently capable of, so in some cases you should not calibrate to the theoretic test pattern, but adjusting for its imperfections. for example, on the PLUGE pattern, if you know that your display suffers from imperfect black levels... back off the calibration a little bit. making the brighness level too dark, so the PLUGE is coherent, will result in an overly dark image, that you will then try to attempt to compensate for by overdriving the contrast... getting a less detailed end result. just something to keep in mind.

  • Data Load Best Practice.

    Hi,
    I needed to know what is the best way to load the data from a source. Is the SQL load the best way or using data files better? What are the inherent advantages and disadvantages of the two processes?
    Thanks for any help.

    I have faced a scenario that explaining here
    I had an ASO cube and data is being load from txt file daily basis and data was huge. There is some problem in data file as well as Master file (file that is being used for dimension building).
    Data and master file has some special character like ‘ , : ~ ` # $ % blank spaces and tab spaces, even ETL process cannot remove these things because this is coming within a data.
    Sometimes any comment or database error were also present in data file.
    I faced problem with making rule file with different delimiter, most of the time I find same character within data that is used as a delimiter. So its increases no of data field and Essbase give error.
    So I have used sql table a for data load .a Launch table is created and data is populated in this table. All error are removed here before using data load into Essbase
    This was my scenario (this case I find SQL load the second one is better)
    Thanks
    Dhanjit G.

  • What is the use of inherit and push in FR

    Hi Gurus
    1. what is the use of inherit and push option while providing report permission in Financial Reporting?
    regards
    Sarilla

    Yes, but you have no way of knowing whether what you find on Google is right or not.We can say its right as long google places oracle docs at the top when you type some thing related to oracle.
    I aways see something else on the top. I dont believe people stopped hitting or reading or searching oracle docs.
    Regards,
    G.

  • Inherit backups in a unique migration situation

    We had two Macs running Snow Leopard. Old Mac A (2006 MacBook Pro 17") was connected direclty to an external drive and used Time Machine there. Old Mac B (2006 MacBook 13") mounted the same drive to use for Time Machine backups by first connecting to Old Mac A across the network, and so its Time Machine backup was stored in a sparsebundle on that drive.
    We upgrade both Macs, New Mac A (2012 MacBook Pro 15") replacing Old Mac A, New Mac B (2012 Mac Mini) repalcing Old Mac B. However, because of some changes we wanted to make, the Time Machine backup drive is now connected directly to New Mac B (stationary Mini allowing it to stay connected permanently).
    I discovered information in places like http://pondini.org/TM/B6.html and http://simon.heimlicher.com/articles/2012/07/10/time-machine-inherit-backup-usin g-tmutil that pointed me to tmutil which could help me with inheritbackup and associatedisk. However, New Mac A was not able to inherit Old Mac A's backup across the network, and I'm concerned more generally about the fact that the machine's have swapped roles in terms of which one is connected directly and which is connected across the network.
    Any advice on exactly what steps I should take to properly connect New Mac A to Old Mac A's Time Machine Backup, and New Mac B to Old Mac B's? Could this possibly include moving Old Mac A's backup into a new sparsebundle (for use across a network) and/or moving Old Mac B's backup out of its sparsebundle to the drive's root directory (for use with a direct-connected drive)?

    The pondini.org link says that sometimes the associatedisk command will work over a network. More importantly, the only reason I even disocvered there was such a thing as the possibility of inheriting a backup is that when I first connected the external drive to the Mini, fully expecting to have to start a new TM backup from scratch, TM suddenly popped up asking me if I wanted to inherit the backup. It found it on its own, somehow knew there was an association between the backup set and the data on its on drive (which I had restored via Setup Assistant), even though the backup it had found now direct-connected was the very same one that was in a sparsebundle and used to only be run across the network.
    I haven't yet allowed the computer to actually backup, since I wanted to be sure about everything being connected/inherited/associated properly first. However, the fact that TM found that used-to-be-across-the-network backup on its own, asked me to inherit it, and the fact that I did successfully run the inheritbackup command on the Mini, all lead me to believe that there is somewhat more to the story than what you just said, even if that may be the official claim about how TM works.

  • Whats the difference between a combo update and using software update?

    I keep my Macbook up to date by checking regularly via software update, so far with no mishaps, but I have seen people on these forums mentioning that a it is better to download the combo updates direct from Apples website. Is this true, if so why, and what is the difference? I am thinking of installing Leopard which would then probably need updating to the current version, so what is the correct way of doing this?

    There are no guarantees, but following this procedure when installing updates and upgrades on your Mac, or even re-installing them, will go a long way towards avoiding unpleasant after effects and ‘post-update stress disorder’.
    It is also worth noting that it is an extreme rarity for updates to cause upsets to your system, as they have all been extensively beta-tested, but they may well reveal pre-existing ones, particularly those of which you may have been unaware. If you are actually aware of any glitches, make sure they are fixed before proceeding further.
    So before you do anything else:
    If you can, make a full backup first.
    Turn off sleep mode for both screen and hard disk.
    Disconnect all peripherals except your keyboard and mouse.
    1. Repair Permissions (in Disk Utility)
    2. Verify the state of your hard disk using Disk Utility. If any faults are reported, restart from your install disk (holding down the C key), go to Disk Utility, and repair your startup disk. Restart again to get back to your startup disk.
    At least you can now be reasonably certain that your system does not contain any obvious faults that might cause an update/upgrade to fail.
    3. Download the correct version of the COMBO update from the Apple download site. If your car runs on gasoline you would not want to fill the tank with diesel, so don’t try to install the PPC updater on an Intel Mac!
    The 10.4.11 Combo Updater for PPC Macs is here: http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eppc.html
    And for Intel Macs: http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eintel.html
    If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall.
    More information on using Software Updater here:
    http://support.apple.com/kb/HT1338
    Using the Combo updater ensures that all system files changed since the original 10.4.0 are included, and any that may have been missed out or subsequently damaged will be repaired. The Delta updater, although a temptingly smaller download, only takes you from the previous version to the new one, i.e. for example from 10.4.10 to 10.4.11. Software Update will generally download the Delta updater only. The preferable Combo updater needs to be downloaded from Apple's download site.
    Now proceed as follows:
    4. Close all applications.
    5. Unplug all peripherals except your keyboard and mouse.
    6. Install the update/upgrade. Do not under any circumstances interrupt this procedure. Do not do anything else on your computer while it is installing. Be patient.
    7. When it ask for a restart to complete the installation, click restart. This can take longer than normal, there are probably thousands of files to overwrite and place in the correct location. Do nothing while this is going on.
    8. Once your Mac is awake, repair permissions again, and you should be good to go!
    If your Mac seems slightly sluggish or ‘different’, perform a second restart. It can’t hurt and is sometimes efficacious!
    9. Open a few of your most used applications and check that all is OK. In this connection please remember that not all manufacturers of third party applications and plug-ins, add-ons, haxies etc, will have had time to do any necessary rewrites to their software to make them compliant with the latest version of your operating system. Give them a weeks or two while you regularly check their websites for updates. This applies particularly to plug-ins for Safari 3.
    N.B. Do not attempt to install two different updates at the same time as each may have different routines and requirements. Follow the above recommendations for each update in turn.
    Lastly, Apple's own article on the subject of Software Update may also be useful reading:
    http://docs.info.apple.com/article.html?artnum=106695
    If you are updating Safari (or just have):
    Input Managers from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up. If you have installed an OS update and Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level /Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 used Safari 3.0.4 which was not a beta. If Safari 3.1.2 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 3.0.4 (or worse still, version 2) when running 10.4.11 or 10.5 can have repercussions, as Safari 3.1.1 uses a completely different webkit on which other applications like iChat, Mail and Dashboard Widgets etc also rely, and may entail you having to reinstall an earlier operating system.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Two such add-on that have been frequently mentioned here for causing such problems are Piclens and Pithhelmet. If you have them, trash them.
    Additional tips on software installation here:
    http://docs.info.apple.com/article.html?artnum=106692
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    • /Library/InputManagers
    • ~/Library/InputManagers
    especially prior to system updates (they can always be added back one-by-one later).

  • What's the best way to keep two hard dives synced?

    I've been looking at the best way to protect my data and I've learned a few things. My first thought was RAID but a bit more research showed RAID is not a fix-all. It has it's own problems and even if I use a RAID1 or RAID10 array (depending on the number of drives) a failure in one drive can actually set off another drive, killing multiple drives and still destroying my data. There are a few other issues I've seen, such as the way you need to manage a RAID system that don't overly appeal to me.
    So what I'm thinking now is two separate hard drives that are synced in some manner. Both of these drives are going to be sitting on the back of my iMac at all times so there's no real worry about their needing to be connected to back up. The question is how best to do it?
    So far my options are:
    Chronosync: Software wise, I know this can sync across drives and as such has been something that interests me. However, I'm not sure how powerful it is and I'm still curious about how I would have to use it.
    SuperDuper: Same thing as Chronosync, really, just a different piece of software.
    Rsync: To be honest, this is the one that interests me the most. I need to look into it a bit more I'm starting to think this might be a great choice for me. With some caveats.
    Basically, here are the things I'm going to use it for:
    Two 3–4 TB HDDs or RAID0 arrays.
    Storing of general project archives, images, documents, movies, music, that kind of thing.
    Possibly for system backup with Time Machine.
    Now, how I'd prefer it to work is:
    I keep both hard drives plugged in via FireWire cables.
    Ideally, whenever I edit, add or delete a file on one hard drive the change is immediately made to the other.
    Once the syncing is set up I never touch it again, don't have to.
    The only time I ever have to come back to it is if I'm swapping out one or both of the drives for larger ones.
    All of this is controlled by some sort of GUI
    I'm willing to accept terminal commands if I have to... But I'd really prefer not to. Also, if the syncing has to be done every hour or once a day or some other similar schedule I'm willing to accept that as well, though it's not preferred.
    So that's what I'm looking at doing. I'd love to hear what you guys think.

    True, it's not technically backup in the traditional sense. What I'm looking for is data protection and redundancy, which is a factor of backups. So in that sense it kind of is, but I see your point.
    Anyway, the reason I'm avoiding RAID is because:
    1. It can be a pain to manage.
    2. It's horribly inflexible.
    3. It's protection is limited.
    4. It brings it's own set of hazards.
    5. RAID arrays can be very expensive once they start getting complex.
    I will likely end up going RAID partially in the end simply because I have a 2 TB external and it's filling fast. I can grab a 3 TB now but I've heard reliability issues so instead I'm thinking two 4TB (2x2TB) RAID0 arrays that I sync.
    This gives me the benefit of RAID in a simple form, which bypasses the larger array complexities, while leaving me still fully protected and highly flexible. It also doesn't have the inherent risks of RAID because if one of the arrays goes down it will in no way effect the other.
    Honestly, I'm not worried about file changes. At all. I'm the only one who's touching the files (well, not true, but everyone else only has read-access). I also tend to not delete things (which is why I have a 2 TB drive that's filling fast). Expansion is my main concern and RAID expansion can be a nightmare unless you go for some of the more expensive systems that are easier to manage. With ease of management comes a hefty price.

  • How do I get a new iMac to inherit Time Machine backups from my old iMac?

    After successfully migrating from my old iMac to my new iMac, I connected my Time Machine drive (containing the backup files from my old iMac).  Following the instructions from my Apple Genius Desk guru, I opened System Preference>Time Machine and selected the Time Machine drive to be my designated Time Machine for my new iMac.   I was presented with a dialog asking if I wanted to "Inherit the backup files that existed on the drive" (or words to that effect).  I selected "Yes".  I was told that this would create a continuous backup record, so that I would be able, using the "Enter Time Machine" command, to access all the backups going forward for my new iMac, but also all the files from my previous iMac, in a "seamless" chain of backups.  However, it didn't work out as I expected.  Looking in the Finder at the contents of my Time Machine drive, I saw that both the current and the prior backup files appeared to be there, all inside one folder, as I expected.  But using the "Enter Time Machine" command from the Time Machine drop-down menu I could not go back any further than the moment of migration to the new iMac.  On the upside, it seems like I will be able to recover old backup files using the Finder, but, on the downside it appears that I will NOT be able to use "Enter Time Machine" to return to search the backup files from my old iMac, in a "seamless" fashion as I had expected.  Did I miss something???  Or is this just the way it is???

    Without knowing what you have tried please open System Preferences - Sharing - File Sharing and select File Sharing. If you still have trouble you can call AppleCare in the morning when they re-open. You have 90 days of telephone support if you haven't already bought AppleCare.

  • HT201250 My MacBook Pro (using OSX 10.7.5) suddenly can't find the Time Machine backup disk, which is on the harddrive of my desktop iMac. What to do?

    My MacBook Pro (using OSX 10.7.5) suddenly can't find the Time Machine backup disk, which is on the harddrive of my desktop iMac. What to do?

    Inherit a Backup
    Inherit a Backup (2)

  • What is wrong with as3

    this is not a question about 'how i do X'. is rather a 'discussion' (flame or whatever, but to defend or argue about aspects, not people) about 'what is wrong with as3' and what aspects whould be taken into consideration for updates. right now i am using as3, and since i paid for this license, i choose this tool over some alternatives and i am using it to do stuff for other people who pay me to do it, i think it can be helpful for all of us if some actions are started in the right direction. i have already posted about 'all people in adobe are dumbasses that do not know how to make a scripting tool and are messing up my work', but i was pissed at the time (i still am pissed) but i believe this is not the right aproach. instead, if this goes to the right people in adobe, we all may get something in the future, like better and easier todo apps and web presentations.
    pre: not only about the as3 specification, but COMPLY with the specification that you set. for example, some time ago there were problems with matrix transforms. this was corrected later with a patch. but this means it is not even doing what is is supposed to do
    1. scriptable masks and movement, sprites and child sprites: there is a sprite with a mask, the mask is a shape drawn via script, something like
    somemask=new shape();
    somemask.graphics.beginfill();
    (...etc)
    somesprite.mask=somemask;
    just like that. now add some child sprites to 'somesprite', and make 'somesprite' move, scale and rotate. there you will have something like a kaleidoscope, but not what you expected to do with your script. as the child sprites move in the parent mask, you will see that the child sprites appear or dissapear kind of randomly, and if the child sprites are textfields, it may be that the text is rendered outside the mask, or partially rendered outside the mask (as in only part of the text), rendered with the wrongf rotation or in the wrong place. some child sprites are clipped correctly, some dissapear totally when only a part should dissapear (clipped) etc.
    way around: have not tried it yet, but i have the impression that bitmaps have different criteria for clipping, so i am thinking of trying this: appli an empty filter (a filter with params so it does not have any effect on the sprite or in the textfield) so the sprite is rendered as bitmap before doing anything else with it. as i said, i have not done it yet, but it may be a way around this problem, to avoid all this inconsistency with clipping
    1-b. inconsistency between hierarchy and coordinates, specially masks: you apply a mask to a sprite, yet the sprite has a set of coordinates (so 'x' in the sprite means an x relative to its container), yet the mask applied to the very same sprite, as another reference as reference for coordinates (like the stage)
    2. painting via script: in any other languaje, in any other situation, something like:
    beginFill(params);
    (...stuff 1)
    endFill();
    beginFill(params);
    (...stuff 2)
    endFill();
    (...etc)
    means: render region of block 1, then render region of block 2 etc, and no matter what, it should be consistent, since there is noplace for ambiguity. if you read it, you may think what that means, even if you dont run it you may have an idea of the picture you want to draw, but not with as3. as3 somehow manages to screw something that simple, and mixes all the blocks, and somehow uses the boundaries of one block as boundaries for other block. is like all blocks are dumped into whatever, and then uses all lines defined into it as boundaries for a unique block. it changes all boundaries and generates inconsistency between what is shown and redraw regions of the resulting picture, like lines that go to the end of the screen and then dont go away in the next frames, even tough the beginfill endfill block should prevent it
    3. event flow: i dont know what was the policy behind as3 event flow design. it is in no way similar or an extension to previous event flow, neither with any event flow in any other plattform. i dont know how most people start with as3; in my case, i unpacked, installed and when i tried to do something with what i already knew i could not, so i started reading the as3 docs, and since is like 800 pages long, i just read the basics and the rest i would 'wing it'. in the part of the event flow, there was something about bubbling and stuff, it was not clear at all and when i tried to do what is was said in the documentation (like preventing events to 'bubble', as is called in the documentation), i could not see any effect but i could see it was a mess. flash is not the only thing out there to work with pictures or to work with mouse events, but is the only one that deals with things like 'target' and 'currentTarget'. my first experience on needing this was when i was dealing with my own event handlers (so the only thing that had control over mouse was the stage, and i would admin everything via script). there were events generated everywhere, the stage got events that were not genrated directly over the stage, but got there not with stage coordinates but the coordinates relative to the sprite that generated the event. so if i hover the mopuse over the stage, and the stage has some things on it how does it work? i get multiple event calls, like it was hovering multiple times over the stage in a single frame, but in each call with different coordinates? and what if i set all child sprites as mouseenabled=false or compare like 'if (event.target != event.currenttarget)', what if i move the mouse over a child, does it prevent the move mouse event at all? or does it filter only the event call with only stage coordinates? in my case, every time i move over another clip (with mouseenabled = true), the stage gets it as 'mouse up', even tough there was never a mouse release, what the hell? do even the people at adobe know how to handle events with their own tool when they require it? why does an event 'bubble' when i have not specifically tell it to do it? mi thought is that this event flow was very poorly conceived, and tough the intention may have been that there were different cases and it shopuld cover all cases, they actually introduced new problems that were not present in traditional ways to handle it, and it is neither the easier way to handle things, and this way, a very simple problem turns into a very ugly thing because it must handle things that were not neccesary to handle, or were implicit in other situations.
    4. legacy: since as3, all interaction is different, and if you want to do things in the new plattform, using the new features, what you already knew just goes to the garbage can. when a new tool arrives, it should be an extension to previous tools (which is a reason to update instead of just buying a new tool from a different vendor). if everything i had or knew just means nothing from now on, then i can not say 'i know flash script', and my previous knowledge gives me no advantage when aproaching the new version. as3 is a new aproach that requires doc reading and stuff, even if you knew something about previous as specifications or other oo languajes. if you decide to change things from now on, like the things mentioned in this post, instead of just throwing away everything the users alerady knew about the tool, do like in java releases, they mark some things as 'deprecated', they keep working as they should, give a warning, but also a message saying this feature is deprecated, we suggest you use this library instead.
    5. lack of previous functionality: if you 'update' something, it meand all previos functionality is still there (probably improved, but not with bugs if it was working fine), plus something else. now it seems backwards, there are some things that could be done in previous versions but not in this one, like 'duplicatemovieclip'
    6. inconsistency with scripting/programming paradigms: (ok, fancy work, but fits perfectly here): as3 proposed ways to handle things, but the people who designed it got 'too creative', and they did something that is not consistent neither with previous versions of as or with other languajes. the documentations is full of things like 'it looks like x languaje or languaje family, but instead of using XXX word, you must use YYY'. great, what is this? namespaces 'work like', but 'differently' for example from java, .net, .c. its got the idea that a namespace means a grouped functionality but there are rules about where should be placed the file (ok, java has this also, .net takes care of it automatically if all files are registered in the project), but what you got is a mess that 'if you know other languajes you got the general idea, but nonetheless, even if you knew this or previosu versions of as, you still have to read whatever we decided arbitrarily just to be different'. namespaces, event handling, vars definition which is not like previous scripting neither like fully typed languajes.. is just a mess.
    7. lack of scripting and graphics integration: unlike flash and adobe tools that just got on the graphics side leaving all the scripting integratuion apart, most tools from other vendors integrate very well interacton with what is on the screen. the script editor: very poor. autocompletion? a drop down list that does not heklp at all, appears in the wrong places, and when you need it to go, it does not go (so if i want to move away from the uncalled drop down list, i have to click somewhere else, making developement slowewr instead of helping, so the drop down list does not capture all events when i dont want to). in other ides you double click somewhere and it will go to the part of code relevant to that event or whatever. for example microsoft tools, ok i am antimicrosoft, and one of the reasons was that when windows 95 got to market proposing itself as the ONLY pc os you could use if you wanted to keep useing the apps you already had, it was a lousy product full of flaws but you had to keep using it because you had no choice. what is so different from what is happening with flash just now? yet the ide of c# is awesome, works very well and seems reliable.
    adobe people: not all user are designers that just make pretty pictures. if it is not intended for scripting then why is it there. and if there are corrections to be done, they should patch all versions, not only the last one. previous version users also paid for their versions.

    Well, there is no point in arguing.
    I personally believe AS3 does exactly what it promises to do within limits (read: reasonable limits) of ECMA type of language. And sometimes it doesn’t do what we expect it to for it cannot possibly emulate everyone’s thinking process. The task, I guess, is to learn to think in terms of AS3 – not to try to make AS3 think like us. No language covers all the grounds. And no, it is not Java - with no negative or positive connotation. It is what it is. Period. I just hope that AS5 will be more Java like.
    You are right about the fact that it is not necessary to know all the aspects of language in order to perform the majority of tasks. But it is paramount to have a clear idea about such fundamental concepts as display list model and events. For instance, depth swap has no meaning in terms of AS3 because display list object stacking is controlled automatically and there is no need for all these jumping through hoops one has to perform in order to control depth in AS2. There no more gaps in depths and one always know where to find things.
    Similarly, there is no point in having duplicateMovieClip method. More conventional OOP ways of object instantiation accomplishes just that and much more. Just because OOP object instantiation needs to be learned doesn’t mean past hacks have place in modern times. duplicateMovieClip is a horse carriage standing next to SUV. What one should choose to travel?
    Events are implemented to the tee in the context of ECMA specifications. I consider Events model as very solid, it works great (exactly as expected) and never failed me. True, it takes time to get used to it. But what doesn’t?
    By the way, speaking about events, contrary to believe in Adobe’s inconsideration to their following. Events are implemented with weakly reference set to false although it would be better to have it set to true. I think this is because there are smart and considerate people out there who knew how difficult it would be for programming novices to deal with lost listeners.
    I think AS3 is million times better than AS2. And one of the reasons it came out this way is that Adobe made a very brave and wise decision to break totally loose from AS2’s inherent crap. They have created a totally new and very solid language. If they had tried to make it backward compatible – it would be a huge screw up, similar to how our friends at Microsoft are prostituting VB and VBA – extremely irritating approach IMHO.
    Also, Flash legacy issues shouldn’t be overlooked. Flash did not start as a platform for programmers. Entire timeline concept in many ways is not compatible with the best OOP practices and advancements. I think for anyone who is used to writing classes the very fact of coding on timeline sounds awkward. It feels like a hack (and AS2 IS a pile of hacks) – the same things can be nicely packaged into classes and scale indefinitely. As such I wouldn’t expect Adobe to waste time on hacking timeline concept issues by making smarter editor. They have made a new one – FlexBuilder – instead. Serious programmers realize very soon that Flash IDE is not for developing industrial strength applications anyway. So, why bother with channeling great minds into polishing path to the dead end?
    I would like to state that all this is coming form a person who knew Flash when there was no AS at all. And I applaud every new generation of this wonderful tool.
    I believe Adobe does a great job making transition from timeline paradigm to total OOP venue as smooth as possible. And no, they don’t leave their devoted followers behind contrary to many claims. They are working on making developing Flash applications as easy as possible for people of all walks. Welcome Catalyst!
    Of course there is not enough information about AS3 capabilities and features. But, on the other hand, I don’t know any area of human kind activities that does.

  • What I would like from Cisco is the meaning of all level 3 or lower email messages my Router can send to me. So, that I can take the appropriate actions.

    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    My Small Business Router has been sending me email messages. This is a RVS-4000 version 1.
    I just want to understand what my Router is emailing me or telling me...
    The last message I received from my RVS-4000 was:
       Oct 30 13:44:09 - IPSEC EVENT: KLIPS device ipsec0 shut down.
    IPSEC EVENT sounds important. Whatever it is... And what is a KLIPS device ipsec0 shutdown????
    I have Log Levels 0-3 selected...
    Log Level
    Setting which level log Router should recorder. Level from 0 ~ 7 means:
    0: LOG_EMERG(system is unusable)
    1: LOG_ALERT(action must be taken immediately)
    2: LOG_CRIT(critical conditions)
    3: LOG_ERR(error conditions)
    4: LOG_WARNING(warning conditions)
    5: LOG_NOTICE(normal, but significant, condition)
    6: LOG_INFO(informational message)
    7: LOG_DEBUG(debug-level message)
    So, when I get any messages... I'm a little concerned. Because the RVS-4000 thinks it's an Error or better.
    What I would like from Cisco is the meaning of all level 3 or lower email messages my Router can send to me. So, that I can take the appropriate actions.
    I know Cisco inhered these Small Business Routers. When they bought Linksys. However, they have not discontinued them totally and they are still for sale. And Cisco has released a new version 2 of the same Router. So I believe Cisco should support them as well.
    Yes, I'm a pain to Cisco. However, I think you understand I'm being scared by my Routers messages to me... And would like some relief.
    Bruce

    Great suggestions. Problems is this is not the forum for your "wish list" as Apple does not read these USER forums.
    Send your feedback to http://www.apple.com/feedback/iphone.html

  • I want to create a TTL pulse. The stepper motor I'm trying to control responds to a high to low edge, when the low pulse width is greater than 0.5 microsecon​ds. What is the best way to go about creating a pulse like this?

    I'm using the NI PCI-6025E card connected to an SCB-100 wiring peripheral. I'm programming the DAQ card using LabVIEW 6.0.2 on a win95 box.
    My first attempt has yielded some surprising results.
    I created a vi with a single while loop set to true. Within that while loop is a two frame sequence. Both frames use the "Write to Digital Line.vi".
    The first frame sets the line in wire to false.
    The second frame sets the line in wire to true.
    The device channel on both frames has been set to my user defined channel nam
    e -> clock.
    clock --> sets the DIO0 channel to be digital write out.
    Using an oscilloscope and some wires I hook ground to the SCB-100's digital ground and I hook the probe to the DIO0 channel. What I see are two different pulses alternating between one another. One has a pulse width of 5ms and the other has a pulse width of about 50ms. You seem to get a grouping of one type of pulse followed by a grouping of the other type of pulse.
    Obviously this is very strange and not what I want. It is also far too slow. So I'd like to know if anyone knows how to do this properly. Remember I only need a low pulse width of 0.5 microseconds.
    Thanks,
    Any help or guidance would be much appreciated.
    Scott

    Scott,
    You don't need to use a digital line to create a TTL pulse. The PCI-6025E has two onboard general purpose counters. You can use one of these counters to create a single pulse of the desired pulse width. For an example of how to program the counters on your board, refer to LabVIEW's Search Examples>>I/O Interfaces>>Counters>>Pulse Generation>>DAQ-STC based.
    The advantage of using a counter over the digital line is that it allows you to control the timing of the pulse through hardware and not software. Thus, it is inherently faster, and the timing resolution is more accurate. The counter will count down an internal 20 MHz timebase to create the pulse delay and the pulse width.
    For more information on the hardware capabilities of your board, you can refe
    r to the User Manual online at www.ni.com/manuals.
    Hope this helps.
    Regards,
    Erin

Maybe you are looking for

  • F.19 - criteria for creation of documents?

    Hi All, I am looking for the specific criteria that creates multiple documents after F.19 is run. Example - when I run F.19, I get multiple documents in my adjustment a/c and target a/c. These documents do not seem to follow any logic (such as by Tra

  • Full screen hsync & refresh out of range on LCD monitor

    Hi When I try to run some games in full screen mode, my screen says 'mode not supported.'  I had this problem before with xorg, so I put modelines into my xorg.conf to match the supported modes in the monitor's manual. Is there any way to make full s

  • Small cusom class with generic dataypes.

    I'm working on a little project for a class in algorithm analysis. I have to use Java to create a simple list data type from scratch (BasicList); it has 8 functions + constructor. The implementation must be self-contained (no import declarations) and

  • Setting up macbook pro with garage band and a mixing desk. NEED HELP ASAP!!

    Hi everybody i have an issue which has been an issue for some time now. i have a Behringer XENYX1222fx mxing desk, and a new macbook pro with the software 10.6.2 i am also using Garage band 09. when using this i am trying to set up my bass guitar thr

  • When will you offer full screen for Lion?

    I was curious if/when you'll be adding a full screen Lion option? I use Firefox 7 and would like this added. :)