Help with possible mouseEvent/Keyboard Event problem

Hi guys, I am having trouble with a game I am creating right now.  The problem seems to lie on mouse / Keyboard event.
Basically, I have a character that the player can control using the  keyboard arrow keys and it works perfectly fine on its own.  Whenever the game starts,  the player can control the character instantly with the keyboard. Here's the problem now, after I added another page (at frame 1) and created a start game button, those keyboard events  won't start immediately anymore.  The player must click on the stage  again before it works.  Is there any method to solve this?
Right now, here is my Start button page.
var start_btn:Start_btn = new Start_btn;
start_btn.addEventListener (MouseEvent.CLICK, goGame);
function goGame(event:MouseEvent) {
gotoAndStop("game"); //The game's frame
this.removeEventListener(MouseEvent.CLICK,goGame);
Here's some code for the actual game part.
stage.addEventListener(KeyboardEvent.KEY_DOWN,keyP  ressed);
function keyPressed (e:KeyboardEvent) :void {
//character movement code...like charcter.x++, x-- etc
Thanks in advance

How about trying:
     stage.focus = stage;
in goGame().

Similar Messages

  • Please can anyone help with the continuing password rejection problem with email.Ipad and other systems work fine but despite reloading my password on imac it bounces back.Apple store has been visited and I have tried everything they suggest.

    Please can anyone help with the continuing password rejection problem with email on my imac.My Ipad and other systems work fine but despite reloading my password on imac it bounces back.Apple store has been visited and I have tried everything they suggest.

    I use free Yahoo mail webMail access because folders I created in webmail access doesn't get set up in Apple Mail. While I was searching for post about password and keychain issues, I stumbled on several threads that complain about Mail folder issues, so I'm holding off on Apple Mail.
    On the password and keychain issue that your post is all about.  I've been using login keychain to save and automatical fill my login screens for a year or so successfully, with Safari and Chrome. Automatic form fill also works for Facebook login. Unfortunately, about 4 to 6 months ago, automatic password form fill stopped working with Yahoo webmail, while still worked for GMail (Safari and Chrome). I tried deleting the password entry for my two Yahoo email accounts to start fresh, but neither Safari not Chrome will even ask me if I want to save the password. I was so frustrated that I eventually installed the keypassX 0.43 (password manager) that is quite primitive sompare to OS X's keychain (when it works). Probably no surprise to you yet.
    The surprise, to me at least, is that, for whatever reason, password auto form-fill from keychain started working again for Yahoo webmail login on Safari about 5-7 days ago. Still doesn't work on Chrome!
    Two tips I can share, at least with webmail access:
    1. Password is save only for one of my yahoo mail accounts. When I login in with my other yahoo account, I get no prompt to save the password, and form fill doesn't work when I try to log in a second time with my other Yahoo mail account.
    2. On inspection of my login keychain, I see a webform password item saved for my Yahoo account that works with keychain. The name of the password is: login.yahoo.com(MyAccountName1#). When I open the password item and look in the Access Control tab, I see Safari and Chome are listed as allowed to access this password item..
         I also an "Internet password" item with a name of just login.yahoo.com. When I open the the password item, it looks just like the password item created for MyAccountName#1, but the MyAccountName#2 is listed in the Account field. Inside the Access Control tab, no apps are listed in access permission. I added Safari and Chrome to the lists of allowed app, saved the password item.
    Now when I bring up the Yahoo login page(by bookmark) on Safari, form fill fills in MyAccountname#1 for name and the proper password and I can login in. When I change the name to MyAccountName#2, the correct password is retrieved and I can log in! Alas, it still doesn't work on Chrome.
    BTW, I changed the password item type from "Internet password" to "Web Form password" and saw no difference! I also edited the name to be "login.yahoo.com (MyAccountName#2)" to look like the web form password item that works, but it has no effect either.
    From my experimentation, here's my observation:
    1. A Web Form password item is created for the first account name(MyAccountName#1) for login.yahoo.com and typed as Web Form password. When I log in using MyAccountName#2, an Internet Password is created, but no applications are listed as allowed to access the password item, even when the password item was created after just logged in and logged out to yahoo with the account name and password for MyAccountName#2.
    2. Manually adding Safari as an app that is allowed to use the password item works. Doesn't work with Chrome!
    The version of Safari I'm using is Version 5.1.7 (6534.57.2). My installed version of Chrome is Version 21.0.1180.79 beta.

  • New Mac user looking for help with Finder, Preview, Keyboard, & Dock

    So about a month ago I switched over from a lifelong Windows user to a brand new MacBook Pro, and while I am adjusting pretty well, there are still some things that I haven't quite figured out.
    First up on the list is Finder! I like my files to be arranged just like how they are in Windows Explorer--folders first alphabetically, then files alphabetically. I've managed to acquire this setting by messing around with the "clean up by" and "arrange by" functions but I don't really know the specific combination. Most of the time these preferences are saved and set as the defaults under "View Options" but every once in a while it resets and I have to tinker around with the settings all over again. Does anyone know of a way to fix this? It's only happened twice so far, but I'd rather not have it happen again. Also, occasionally when I delete an item, there is a blank space left where the icon was instead of all the files following it bumping up a space. Any quick fixes for this bug?
    Next up is Preview. Again, I like the Windows Way and I like to be able to browse between the files in a folder while using Preview/Windows Photo Viewer. I know that there is a way to browse between files if you select the whole folder and stick it in Preview, but is there a way to achieve the same result without having to do that? An app or "extension" of some sort that adds arrows in to browse between photos? I've had no luck finding anything other than the aforementioned option. Is there a good free alternative to Preview that will function similarly with the browse between photos option?
    One of my favorite things about my new Mac is the backlit keyboard function. My old laptop didn't have it and as someone who is online more often at night it is super helpful. But is there a way to turn it off during the day/in bright settings? A way to put it on a timer? In System Preferences I selected the option "Adjust keyboard brightness in low light", which I assumed to mean would have the keyboard NOT very bright when there IS light, but it continues to light up just the same. Any apps or extensions to help with this one?
    And finally, the dock! This question is more about aesthetics than functionality but help is appreciated all the same. Currently, my dock looks like this: http://i42.tinypic.com/35ktxlz.png It is rather opaque and the indicator lights can barely be seen. However, in a lot of tutorial videos I've been watching, many people have docks that look like this: http://i.i.cbsi.com/cnwk.1d/i/tim/2011/07/19/Lion_LaunchPad.png It is a darker shade of gray, the divider is dashed rather than a straight line, and the indicator lights are clearly visible. Does anybody know how to get this look for the dock? I've looked in the dock preferences but there's not really anything in there other than magnification/size/effects.
    That about sums things up! I'm sorry if any of these seem like "silly" questions but they are all things I have been unable to find answers for. Any and all tips, tricks, and help is appreciated! Thanks in advance for all your help!!

    congratulations on coming over from the dark side.
    Seems like you are interested in column view, which would show you the hierarchy of folders and files:  Column View in Mac OS X Mountain Lion - For Dummies Not sure what's going on if your finder settings don't stay put. May be a corrupted preferences file, which is easy to fix, but is perhaps a topic for another discussion.
    What I'd suggest is to have an open mind and try to see what the mac can do, rather than force it to look like your windows machine. I mean, if you just want it to look like windows, then why bother switching? If you give it a little time, you'll start to appreciate the mac way of doing things, and see how it is infinitely more awesome, powerful, creative, intuitive, and better designed (and the software way better written)  than what you left behind. But that's your call.
    There are some threads on this forum with complaints about the backlight. Keyboard backlight settings query...: Apple Support Communities  Evidently it depends on the angle of the screen and the light sensor relative to the light. Some suggest that a SMC reset may help: Intel-based Macs: Resetting the System Management Controller (SMC)  This is not an issue for me, I just adjust the brightness with the keyboard buttons if I want. Real men shift their own gears, drink their coffee black, and adjust their own keyboard brightness. I am not aware of any software to exert more control over this feature but a search of macupdate  Download Apple Mac Software & iPhone Software : MacUpdate may help. I mean, it's up to you what is important. I can waste a lot of time playing around with the GUI and with unnecessary software, or I can just get my work (and play) done.
    You might prefer the no-glass dock, that removes the shelf, and makes the indicator lights like more discrete orbs. You can do this with the terminal. Using the terminal is also, perhaps, a topic for another discussion.I like the 2D dock much better. If you want I'll give you some directions for how to do it. Otherwise, here's a reference: 2D Dock - MacRumors Forums

  • Help with "gapless plaayback " and "syncing" problems

    ok....i just restored my ipod to factory settings after it would restart at random intervals. After everything was erased, it loaded only my playlists, and then went on a "analyzing gapless playback Info" for a bit, then upload 2 or 3 more songs, then pop up an error message saying that "SONG "a" COULD NOT BE IMPORTED TO CRUCHIES IP" and would not load anymore songs. then, it would start cutting songs in half to different tracks..i only have 325 out of 3000 and i am angry.i need help with this... i dont want to have to re-install itunes, because i figure it would erase my perchases fron the itunes store.?/?/?/? or do i not haave a choice? has anyone else had this problem??? please give any info you can.

    *I'm at work at the moment*
    I bought 2 kits of the Corsair value ram (see sig for part number), 512 mg sticks, total 4 sticks. When you say just put 2 matching ones in, I think I did that. I tried 2 sticks at a time, switching them out so I'm pretty sure I tried all combinations of them and the pc wouldn't boot using 800fsb and 667 ram speed. It will boot and run ok at 667 FSB and 400 ram speed, because I've been using it like that since about the 2nd week of Nov. Will try again to just boot using 2 mem modules at full FSB/Mem speed but I know I've tried that before and the pc would lock. Not for sure what you meant by 'matching' as all 4 are the same brand/model etc.
    As for the EIT? or whatever it was, I don't recall clicking that anywhere , is that a BIOS option? I'll check when I get home but I'm not recalling choosing that option. Google showed that to be some some of processor power saving option or something.
    As for linking where I bought them at, I got them from Newegg. Newegg doesn't have the MB anymore, they have a refurbished unit but here's the link to the MSI page
    http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=663 , here's a link to the refurb one on Newegg
    http://www.newegg.com/Product/Product.asp?Item=N82E16813130501R
    The ram is http://www.corsairmemory.com/corsair/valueselect.html#ddr2dimm the 2nd one under pc2-5300, the VS1GBKIT667D2. I bought 2 of those kits. Newegg link http://www.newegg.com/Product/Product.asp?Item=N82E16820145568
    What I've read on the support pages, MSI supports that ram and the ram shows that MB as being supported.
    Appreciate the replys.

  • Need Some Brain Storming Help WIth a Long Distance Mail Problem

    I would really appreciate anyones input on this...
    Here's the situation. I'm trying to solve a mail problem for my somewhat elderly Mother. The biggest problem is that she is 3800 miles away from me and nowhere near any sort of help or tech support (Rural Alaska) so I'm trying to sort this out over the phone.
    Anyway, she somehow screwed up her mail. All of a sudden the mail she sends comes from MY account! It shows up in my mailbox as having been sent by me. She is using an iBook G4 that I gave her a year or so ago and I suppose it's possible that somehow my mail account was on there somewhere (?). It's like she accidentally switched users or something.
    I have sent her Email to her normal .Mac email address and it does indeed show up in her mailbox when I check the web mail. She is running Tiger and I'm running Leopard.
    I just can't for the life of me figure out what she would have done and I'm hoping that someone might have an idea. She says that the font sizes all changed as well which leads me to believe that she is indeed using my old settings and mail account.
    Once again, any help really appreciated. I'm heading out of town for a week and she really depends on her email. I'm trying desperately to get this solved before I leave. Thanks!

    It looks like Mail has reset its preferences, including the account settings. What follows is a more thorough explanation that should allow you to determine whether that’s really what happened and what your options would be in that case. I’ll provide the full instructions I usually provide to solve this problem when having direct access to the computer, even though you may find some of them not practical or unnecessary.
    Under some circumstances (e.g. lack of available disk space, filesystem corruption, repeated crashes), Mail may discard the current ~/Library/Preferences/com.apple.mail.plist preferences file and create a new one. This file is where all the account settings are stored. As a result, all the non-.Mac account settings are lost. If you have a .Mac account, however, that account would appear to have been preserved because Mail would set it up automatically using the System Preferences > .Mac settings — but may result in a different .Mac account being automatically set up if for some reason the System Preferences > .Mac settings differ from what until then were the Mail account settings...
    What’s the capacity and space available on the startup disk? Take a look at the comments about disk space in the following article, in case they apply to this case:
    Problems from insufficient RAM and free hard disk space
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what’s it all about?
    After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), quit Mail if it’s running, and make a backup copy of the ~/Library/Mail folder (e.g. by dragging it to the Desktop while holding the Option (Alt) key down), just in case something else goes wrong while trying to solve the problem. This folder is where all your mail is stored.
    There are at least three ways to restore the account settings:
    (1) Restore ~/Library/Preferences/com.apple.mail.plist from a backup if you have one. Mail shouldn’t be running while you do this.
    (2) Set up your mail accounts again (you may want to quit Mail and trash the new com.apple.mail.plist first to start over). If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done. You’ll also have to re-configure some of the Mail > Preferences settings. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    (3) Mail may have renamed the old preferences file to com.apple.mail.plist.saved. If that’s the case, you may try trashing the new com.apple.mail.plist and renaming the old com.apple.mail.plist.saved back to com.apple.mail.plist. Again, be sure Mail isn’t running while doing this. Given the circumstances, there exists the possibility that com.apple.mail.plist.saved became corrupt, but that often is not the case and the settings can usually be restored by just renaming the file back to com.apple.mail.plist.
    As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library.

  • Help with Hiss Removal / Basic Audio Problems

    Hey guys.  I have a Panasonic HDC-TM700 with an attached Azden High-performance (SMX-10) Stereo Condenser Microphone.  I use it to record a person talking about 6 feet away in small room.  However the audio always sounds horrible on playback.  By horrible I mean there is always a loud hiss, and they sound so flat.  Since I have to do this on a weekly basis now I am hoping somebody here can give me some pointers on how to fix these issues.  I assume it a fairly issue fix in Adobe Audition CS 5.5 (which I have).  I start my production in Premiere Pro CS5.5 and then export the audio to Adobe Audition for editing.  My problem is ive never been a sound guy so I really don’t understand what all the filters and settings do (in Premiere or Audition).  I was able to “capture the noise” and have Auditon “remove it”.   That does an ok job of removing the hiss… but then the already flat voice left over, sounds very tinny.  
    So is there any advice or direction you can give me on what settings to use or apply to get audition to make the audio sound better?  Or is there anywhere (for beginners) to learn how to use the settings?  I think my problem is that I don’t understand the basics of audio like what EQ or a compressor does, and how the settings effect things.  But everything I read is so technical and it just confuses me more. 
    Or are there any other microphones (under $200.00) anybody could suggest that would be able to be added to this camera that could get me better audio for my situation?  
    I would really appreciate any advice, or a point in the right direction.  Thanks guys.

    I'm afraid my answer isn't going to make you happy.  A microphone mounted on a camera six feet away from a speaker isn't ever going to give you the results you're after.  Audition may be able to help a little but the real trick is to get the mic much closer to the speaker, especially in a small room which is going to sound hollow and boomy.  Effectively what you're asking is like "if I shoot on a wide angle lens, how can I zoom into a closeup in editing without losing resolution".  Sound is just as unforgiving.  When I was working as a sound guy for video, the trick was always to get the mic in as close as possible without getting into shot--even with a thousand dollar mic, I couldn't just stand by the camera and get good results--well, at least not without a long fish pole!
    How you do this is going to depend on the details of your shoot.   You might try a shotgun mic on a fishpole boom--the cheapest shotgun I know is the Rode NTG2 but this with a fishpole will blow your $200 budget.  (There's also the NTG1 but this needs phantom power and I'll assume you can't provide that.
    Or, in a static situation, there are various clip on lavalier mics you could try--Sennheiser do at least one within your budget (or used to--haven't checked lately) that can be powered with a little button battery.
    Either way, though, the trick is to get the mic much closer to the subject.
    For material you already have, the only suggestion I have is to do your hiss reduction in several small steps rather than trying to do it all at once.  This should result in the remaining voice sounding less "processed" but it's still not the same as getting the recording right to start with.

  • Problems with Droid Pro keyboard backlight problem

    The keyboard backlight on the Mororola Droid Pro goes out when it is totally dark ever since OTA to 2.3.3.  Any suggestions for a fix (don't say battery pull, yada, yada (doesn't work), or click home twice then backspace (not a true fix, but a workaround) or rooting the phone (doesn't fix).    Seems to be a software glitch.  Backlight qworked well in 2.2.

    Why cant Verizon pushout OTA update to fix the problem instead of making all of us come to the store for a reflash? It would make more sense IMHO.
    John
    JohnB_VZW wrote:
    I understand your frustration and I'm here to help.
    I have researched the issue with the backlight on the Droid Pro and found that other user have had this same issue after the software update. Other users have found that performing a hard reset and then taking the phone into a store and having the device software flashed has fixed their issue with the backlight. I suggest you try the hard reset and then take your phone in to a VZW store to have flashed. 
    If you continue to have issues after the hard reset and flash, please post back and I will be more than happy to further assist you. 

  • I need help with an email WiFi sending problem on my iPad 2

    I’m having an email WiFi sending problem on my iPad 2     Model:  MC774C/A;  IOS VERSION: 6.1.3 (10B329). 
    While I use 4 email accounts on the iPad -- Hotmail, Gmail, iCloud and ns.sympatico.ca ( a division of BellAliant) – the sending difficulty only relates to the ns.sympatico.ca.  The settings for this account are:         pop.bellaliant.net            and      smtp.bellaliant.net
    I first noticed the problem about 3 weeks ago while travelling across the country (Canada).  (I do recall about that time there was an update of my IOS and I also for my wife purchased from the Bell store an iPhone which shares my Apple account.)  Prior to that everything worked well for a couple of years.
    I noticed earlier this month that the iPad received mail fine but would not send at night using the motels’ WiFi.  During the day, using my 3G account, all worked fine.  I phoned Bell but was told that my experience was normal so I thought no more about it until I returned home and found the same problem at the house.  I called Bell again and worked for 2 hours with 3 Bell technicians who succeeded in getting the iPad to neither send nor receive and gave up advising me to take the iPad into a Bell store to have it looked at.  I did that and the young technician got the iPad sending and receiving by changing the        smtp.bellaliant.net      to         mail.1xbell.ca
    However, when I returned home again, I realized that it was working on my 3G and still doesn’t send on my WiFi
    I’m looking for any suggestions that might solve this annoying problem?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Help with possible STISIM GUI

    I am working in a psych lab and we use a STISIM drive sim to do some research. The problem is that this sim uses a weird proprietary code that scenarios must be written in. Its simple enough, but a huge time suck.
    I was hoping there would be some way to develop a GUI with simple fields that could be filled out for each event, and then once all events were in place, the code exported in a simple text format.
    I know very little about objective-c and xcode, but I was hoping someone could point me toward the kind of code I should be looking at to accomplish this kind of task. What functions can be used to take a bunch of single field inputs, convert them to another form, and then lump them all together in one big file?

    Take a look at using AppleScript and Automator.

  • Need help with Rollover Image cross browser problem

    Hello,
    I am having a cross browser problem with my websites rollover nav links.  The trouble is, while they work perfectly fine in IE8 and IE9, I’ve also attempted to use them through Opera, and they simply don’t work.  They don’t link nor do they do their rollover effect.  And I was trying to figure out what I have done wrong.  Currently the site is not completed, but the first two pages are, the “news” and “about me” pages are currently (as of right now) working.  The address to the site is below.
    http://maxmetal.xsustudios.com/index.html
    I hope that someone can help me with this, if needs be I can put the code for the CSS and HTML into this part if it will save some time for everyone.  Sorry too about the PNG images, I have to change those over to semi-transparent GIF’s yet so the site does take a while to load…
    Hope someone can help me with this!
    PALADIN

    When I disable CSS in my browser, the rollover buttons work just fine.  This tells me your CSS is messed up and you've layered something over your menus which is making them inaccessible to users.
    I noticed you've applied relative positioning to just about everything on your page.  Why?   Default CSS positioning (unspecified or static) is all you need for 98% of layouts.
         Learn CSS positioning in 10 Steps
         http://www.barelyfitz.com/screencast/html-training/css/positioning/
    My advice would be to start over using a pre-built CSS Template with all the divisions and columns you're likely to need for this project.  Below are some good links to get you on the right track.
    For professional CSS Templates that are rock solid & perform well in all browsers, visit Project Seven:
    http://www.projectseven.com/products/index.htm
    Ultimate Multi-Column Layouts
    http://matthewjamestaylor.com/blog/ultimate-multi-column-liquid-layouts-em-and-pixel-width s
    Not Just a Grid CSS Framework
    http://www.notjustagrid.com/demo.asp
    EZ-CSS Templates (watch the screencast to see how it works)
    http://www.ez-css.org/css_templates
    Dreamweaver CSS Templates for beginners
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
    New DW Starter Pages
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Good luck with your project!
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Help with possibly noobish question

    Hello,
    I need to make some complex graph structures such that this format will not do
    1: 2 ->4
    2: 4 ->2
    I have several additions to each node to take care of that is the main problem.
    each node has aarity which I could hold as a separate array to be accessed for each object instance of a node
    Part 1:
    The problem is that i have to know which node is connected to which arity element and then I have to search for the free elements and label their indexes with characters. I think I can solve this
    Part 2:
    The second problem is maybe a little worse as I have to translate certain groups graphs to something like this and then connect them to any graph as needed. Will i need to make a separate object for this purpose??
    | ..................| n input wires connected |
    |???????????????????????????????????|
    | Wires maped to edges from graph |
    |___________________________________|
    | ..................| n output wires wires connected |
    Part 3:
    To compound this I have to find a way to implement a menu selector to choose random graphs or parts of graphs for a Genetic Algorithm. Selection is not the problem here its is mapping the structures into a chromosone which is causing me the problem.
    Part 4:
    Each connection has the graphs triggers different application specific rules that cause the graph to reduce or change connections.
    Any help on strategies for these problems would greatly be appreciated
    kind regards
    Prashant

    Hello all and thanks for the replies positive or not. Sorry if I offended you bbritta. I guess its not such and easy question after all.
    Well its not due tomorrow and I am doing some research into a wierd topic so you guys are along the right lines. The topic I am researching is non-determinstic interaction nets. I don't know too many people doing this. Interaction Nets invented by a guy named Yves Lafont and you can google this and the topic I am researching.
    All the code written thus far exists in C and is very hard to interpret as it uses a Lex and Yacc parser to implement the creation of tokens and syntax rules of the Interaction Nets programming language.
    Basically its a high level visual graph programming language however it can also be used on low level based on interpretation. Thus the need for graph data structures. Essentially I have to modify this programming language for non-determinism and demonstrate this in a Genetic Algorithm. The latter would be no problem if I could get the data structure sorted. People familiar with Lamda calculus, Linear Logic and Process Calculus might have seen this in some research papers.
    However I have not had a very good theoretical background so finding the data structures to map the complexity of the graphs is a little problematic. I will outline my idea and what I have done a little clearer below.
    So far I have broken the prob into smaller steps as suggested by someone, I hope the pseudo code helps a little more.
    class Symbol
    convertASCIItoINt( char value) : return int
    getChar() : return char
    checkAvailability() : return boolean;
    //each Symbol is assigned to a free port and is traditionally input.
    //several instances of this obj are used to
    class Port  implements Symbol
      initialisePort( num);
      checkFreePorts( ) : return boolean;
      setPortSymbol (port [num])
      private ports [ num ];
      setEndPortAsSpecial( ports [ num ]) // each node has a special port called principal port
    // each node has a set of port and each port can have a label as a string
    class Node
    setNodeSymbol()
    getnodeSymbol()
    public Port node_obj [ port_num ];
    setSpecialSymbol( string)
      //destructor to delete node connected to
      //duplicator to create a copy of cell value
      //constructor create a copy of the cell
    getSpecialSymbol() : return string symbol;
    checkSpecialSymbol(node_obj [ port_num ]): return string symbol;
    //so far as a typical graph goes i think its acceptable to connect the nodes in an vector with
    //a list at each element although this is not shown below.
    class Net
      connecNodes( node_obj [ port_num], node_obj [ port_num] )
      checkDeadlock(): return boolean; //check for cycles
      public Node net_obj [ node_num ];
      checkConnected( node_obj [ port_num], node_obj [ port_num] ): return boolean;
    //this is where the execution engine will be placed
    class InteractionRules
    ruleTrigger( )
      Node n = new n
      n.checkSpecialSymbol()
      // its here where things get complicated with the data structure as according to the rules I have to delete
      // add or copy a value of a particular node in a Net
      determineReduction()
        //if (ports [ num ] = num )
        // a reduction occurs according to the rule in the method above ruleTrigger();
       //at this point the relevant nodes will be removed and new nodes will be added according to the rules
    storeCopyofOriginalNet()
       //needed to rollback if rules are infeasable or deadlock occurs.
    }I desperately still need help to complete the data structure I have also considered manipulating the complex associations between the sets as multimaps and maps
    Sorry if I am not clear I am trying my best to explain something I have had little background and almost no help in as I am creating the special rules as I go along such as keeping an copy of a net / graph before modifying it in the Genetic Algorithm.
    Kind Regards and Best Wishes
    Prashant

  • Help with at-line selection event...

    Hello experts,
    I am currently modifying my report to let the users click on either the asset number or
    the equipment number and go to its respective transaction. If he clicks the asset number,
    it would take him to transaction AW01N and if he otherwise clicks on the equipment number,
    it would take him to transaction IE03. But there are couple of problems that I am facing.
    First is, I have hotspotted my field which is named asset_subnum which contains the asset and
    the asset subnumber. So it would look like this:
    1234567879-0000
    Now, can I split it at '-' then put those in 2 variables lets say lv_asset and lv_asset_sub
    then I will hide those 2 variables?
    Also, I am using field-symbols as my 'work area' of my internal table. How can I declare it in at
    line-selection?
    Anyway, below is my code guys:
    LOOP AT it_output ASSIGNING <fs_output>.
    IF <fs_output>-parent IS INITIAL.
            WRITE: (17) <fs_output>-asset_subnum    CENTERED.
          ELSE.
            WRITE: (17) <fs_output>-asset_subnum    RIGHT-JUSTIFIED.
          ENDIF.
          FORMAT HOTSPOT OFF.
          WRITE: (17) <fs_output>-parent_subnum     CENTERED,
                 (30) <fs_output>-funcloc           CENTERED,
                 (40) <fs_output>-description       CENTERED.
          IF p_equip = 'X'.
            FORMAT HOTSPOT ON.
            WRITE: (18) <fs_output>-equip_num       CENTERED.
            FORMAT HOTSPOT OFF.
          ENDIF.
          WRITE: (15) <fs_output>-asset_sub         CENTERED,
                 (40) <fs_output>-location          CENTERED,
                 (15) <fs_output>-accq_cost         CENTERED,
                 (20) <fs_output>-acc_dep           CENTERED,
                 (20) <fs_output>-asset_book_val    CENTERED,
                 sy-vline.
    endloop.
    When I try to hide my fields like:
    HIDE <fs_output>-equip_num.
    it is giving me a dump saying:
    HIDE is not allowed for lines of internal tables.
    Help would be greatly appreciated.Thanks a lot guys and take care!

    Hi viraylab,
    Minor Problem.
    1. U are using field-symbols,
       and the definition must be of this type
    FIELD-SYMBOLS : <fs> <b>STRUCTURE</b> T001 DEFAULT T001.
      (so that u are able to directly use the field names
      <FS>-fieldname
    2.  Hence,
    3.  instead of
      LOOP AT it_output ASSIGNING <fs_output>.
      just use
    LOOP AT it_output .
    (The problem is coming bcos of ASSIGNING)
    4. the field symbol will automatically have
      the data of the internal table in the loop.
    5. To verify this point,
       just copy paste my small code.
    6.
    report abc.
    data : t001 like t001 occurs 0 with header line.
    FIELD-SYMBOLS : <fs> STRUCTURE T001 DEFAULT T001.
    START-OF-SELECTION.
      select * from t001 into table t001.
    *------ UNCOMMENT TO GET ERROR / COMMENT 2ND LINE THEN
    *loop at t001 ASSIGNING <fs>.
        loop at t001 .
          write :/ <fs>-bukrs.
          hide <fs>-bukrs.
        endloop.
    AT LINE-SELECTION.
      WRITE T001-BUKRS.
    regards,
    amit m.

  • Can somebody please help with Javascript. 2 small problems.

    Hi. I have created a dynamic PDF form with fields. I have 2 problems that i am sure someone can help me with. (I can email anyone this PDF upon request).
    PROBLEM 1. In this form I have a table (actually i think its a sub form) which has 3 buttons associated with it ('Add Row', 'Delete Row' and (Clear Row'). One button adds a new row. It works but it effectively duplicates the row (and all text fields/cells contained in the row) and places this new row at the bottom of any existing rows. What i require is for this button (the button gets duplicated along with the row) to place the new row immediately below the row from where it is clicked. ie, imagine you open the document, fill out the row (at this stage there is only one) and hit the 'Add Row' button. You now have 2 Rows (great), so you fill out the second Row. Now here is my problem, if you hit the 'Add Row' button on the first Row, a new 3rd Row is added to the bottom and not in between Row 1 and Row 2.
    Effectively if you have dozens of Rows filled out and you need to insert a Row for an amendment, currently it cannot be done without deleting all Rows up to the point where you want to make the addition/insertion.
    PROBLEM 2. Within this Row of text/numeric fields are two fields (called 'Rate' and 'Loading') where dollar amounts are entered. As the form is filled out (the Rows can be dynamically generated and it's fields manually filled out by the user) there can potentially be dozens of Rows in a completed form and, as each Row has many text/numeric fields, one can imagine Columns forming once there is more than 1 Row. At the end of the form, totals are automatically calculated. I have created a button to reset (erase) all amounts entered into these two specific fields (Columns) but in every Row. Unfortunately there is something wrong with my script syntax as this button does not do this. ( i want this facility as when the form, which is a budget proposal, is completed i need to send two copies - one to accountants with figures and logistics and a second copy to another department whom i do not want to give the figures, so i need the button to erase figures without having to clear each cell individually).
    Any help that someone can give would be much appreciated.
    Please email me at
    [email protected] if you would like me to send you the file.
    Cheers
    Bradd

    Send the form to
    [email protected] and I will give it a go ....include a reference back to this forum posting.
    Paul

  • Can anyone help with an invalid sibling link problem?

    Following the computer not getting through to admin sign up today, I ran Disk Utility from the start up disk. It revealed an invalid sibling link that couldn't be repaired. I've trawled the web for a solution, which had me sign in with single user mode (currently logged in as such).
    In this mode, I did the following:
    Typed umount /dev/disk0s3, which seemed to have the HD mounted on it.
    Typed fsck_hfs -r /dev/disk0s3
    It says: The volume Macintosh HD could not be repaired.
    Q: how do I remount the volume and then safely shut down to get a techie on this? I'm not sure I'm confident enough to fix the problem or attempt to retrieve files with Firewire. The problem computer is a Powerbook G4, the potential target to use as an external hard drive is an imac 7.1.
    I'm not sure if the volume is mounted. If I type 'ds' it lists /dev/disk0s3 as mounted on /
    Whereas devfs is on /dev, fdesc is on /dev and <volfs> is on /.vol. I don't really understand this - a bit out of my depth. I wondered if mount /dev/disk0s3 would remount it?
    Any help appreciated.

    When confronted with an issue that Disk Utility can't fix, most people get Disk Warrior or TechTool Pro may be able to help too. Or you could try wiping the disk clean, writing zero's to the surface, and restore from backup.
    Here's the mount format for 10.5. If you have 10.4 or earlier, you can choose it at the top of the page:  http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/ 10.5/man8/mount.8.html

  • Can anyone help with a CS5 Audio Sync problem?

    making a simple game with video stills matching a running audio track
    my audio is an MP3 i built in GarageBand
    all works well in flash, but when rendered to QT, the audio and video go out of sync, and some video drops out too
    have put all audios on their own layer and streamed them all too, set settings in Publish to 64, but still have same problem
    any help?

    Sorry, can't help.  But misery loves company.  I have the same problem with Premiere.

Maybe you are looking for