Question about keyboard control in Flash presentation

I created a presentation in Flash. And I embedded the following keyboard control scripts so that I can pause the slide by pressing "Spacebar" and play it again by pressing "Enter".
keyListener = new Object();
var isStopped : Boolean = false;
keyListener.onKeyUp = function() {
    var keyCode = Key.getCode();
    if (keyCode == 13) {
       _root.play();
if (keyCode == 32) {
       _root.stop();
Key.addListener(keyListener);
I also embedded getTimer script to delay the speed of the flow so that key-point can be loaded one by one.
stop();
t = getTimer();
onEnterFrame = function(){
    if(getTimer()>= t+3000){
        play();
        onEnterFrame = undefined;
Other than the above keyboard control, I also add four buttons at the right bottom so that I can play and pause, fast forward and rewind by clicking those four buttons.
Problems:
1. the 1st and 2nd slide cannot be paused by the above keyboard control command.
2. the play and pause buttons at the right bottom is not functional in the 1st and 2nd slide
(i attached the fla for easier understanding of the above descriptions. appreciated if you can help me to figure out what goes wrong.
http://www.beyondmusic.net/AdBanner/rm_dummy.zip

remove all your code except your key listener code:
keyListener  = new Object();
var isStopped : Boolean = false;
keyListener.onKeyUp  = function() {
    var keyCode = Key.getCode();
    if  (keyCode == 13) {
       _root.play();
if (keyCode  == 32) {
       _root.stop();
Key.addListener(keyListener)
then change your frame rate so your slides display at the rate you want.

Similar Messages

  • Question about fan control MSI MPower

    Hi, Cosimo from Italy, sorry for my bad english.
    I have a question about fan control with the MSI MPower.
    The MPower site says: All 4-pin PWM fan connector Onboard
    But the manual says: SYSFAN1-4 pin 4 No Use
    My question is: the Control Center Fan Utility support the fan connect SYSFAN1-4 3 Pin voltage controled or 4 Pin pulse width controled or both?
    Thanks Cosimo.

    Quote from: Bernhard on 03-October-12, 01:55:19
    The fans will run as per your percentage setting in the BIOS.
    I can't find the percentage setting in BIOS... 

  • Using Microsoft Notebook presenter mouse 8000 to control a Flash presentation

    Hi,
        I am building a Flash presentation and would like to control it by using the "next"and "previous" keys on my mouse...  I know that it should be something like "on (release) ...", but I am not sure....
    Any tips on how to create this in action Script 2.0 ?
    Thanks in advance for your help !
    Gilbert Gour

    I'm running into that problem right now. I really like the mouse, but I've got to get it working with Keynote, else, I'll have to return the product.
    I've tried using Steermouse, but it doesn't seem to be able to remap those those "Presenter" keys. The analysis is able to read the button presses, but the driver isn't able to remap.
    If anyone knows of a workaround, please let me know! I'll try Applescript and some other things, but I'm about to give it up and just get a separate presentation tool.
    Thanks in advance.

  • Question about ARD / Mac Mini christmas present from Parents / Remove it???

    Few weeks ago, my parents gave me a new Mac Mini 2.53 Intel 4GB 320HD, wireless keyboard and mouse, and even bought iWorks extra. The problem is my parents are too controlling and go to the point of being crazy so I moved 200 miles away. I am in my 30s. This Mac Mini they gave me seemed fine at first, but after installed the iWorks on it, it started behaving strange. I did research on Apple Remote Desktop, and found that directory in /System/Library/CoreServes, my Disk Utility prompted me that something was changed in the directory and the changed would be repaired. In the directory, it is full of Apple Remote Desktop stuff, My Airport connection at the top of my screen now has a seperate area under connections listed Devices with hpsetup listed as connected. Under CoreServices some of the follwing: AddPrinter, boot.efi, ACRCPAgent, CCacheServer, DiskImageMounter, Directory Utility, DumpPanic, Encodings (Folder), Expansion Slot Utility, File Sync, FileSync Agent, Finder, Firmware Updates (Folder), FixupResouceForks, FolderActionsDispatcher and Setup, Installer, Java Launcher / Web Start / Javaversion.plist, KerbrosAgent.bundle, login window, lonelist, manged client, mDNSResponder.bundle, Momory Slot Utility, Menu Extras (folder), MLTEFile.bundle, NetAuthAgent, Network Diagnostics and Network Setup Assistant, OBEXAgent, ODSAgent, pbs, PreferenceSyncClient, Problem Reporter, Report Crash/Panic, Resources (File), RFBEventHelper.bundle, Screen Sharing, searching.bundle/agent, securityagentplugins(folder), smbfileserver.bundle, submitdiaginfo, systemfolderlocialozations(folder), systemuiserver, systemversion.bundle and .plist, ticket viewer, unmountassistant agent, upgrade user, useraccountupgrader, usernotication center, voiceover, workflowserverunner, serverjoiner and scanner, security fixer and proxty and deleted rcd and folder of remotewhatever with ARD files including curtins and tons of files about remote desktop.

    /usr/share/derby that can be repaired, is repaired, but shows up again when I verify over and over.
    Also a normal error message that can be ignored.
    I still can't understand what problem you are finding that leads you to believe that your system is being controlled remotely. I find it very difficult to imagine that your parents or anyone else is controlling your system. Problems with disk permissions, particularly if it involves "hundreds" is far more likely to be a problem with the operating system on your computer, not someone remotely changing things.
    Anyway, the test is simple; if your Mac is connected to the Internet, either via wireless or a wired connection, just disconnect it for a while. Then while it's disconnected, make whatever changes you need, etc. If things continue to have problems, then the problem will not be any remote monitoring or control.
    Or if you're really concerned, back up any documents, music, photos, etc. you may have on the system, boot it from the Mac OS X installation disks, erase the drive, and reinstall Mac OS X and your applications, and restore the documents from your backup. If there was any sort of "remote monitoring" going on, erasing the drive and reinstalling the OS would remove it.

  • Question about frame rates in Flash

    If I create a Flash animation using 12 frames per second set in the Flash properties and I then export the timeline as a quicktime movie at PAL settings (25 frames per second) so that I can use it in a Premiere Pro timeline with other PAL video clips shot with a camcorder, does that affect the speed at which the original Flash timeline will play when converted to a quicktime movie?
    I don't want to have to animate the Flash clip at 25 frames per second in Flash because it requires about twice as much drawing, but I also want to preserve whatever sense of action timing there is in the Flash action and not have it play too fast or too slow when incorporated into a video project.
    Thanks for any advice on how best to do this.

    For what you show so far, you can probably create it all in Flash without concern for slicing and whatnot..  For starters....
    First create the buttons... select Insert -> New Symbol -> Button.  Buttons have 3 visual frames... one for Up, one for Over, and one for Down.  The 4th frame is useful for defining a larger Hit area for small items.  So create a new button symbol and draw the different views you want for the button.  When you are done you should be able to make the button work visually without the need for any code.  You will want to add code to control the feature displays.

  • Question about keyboard on new MBP compared to older ones

    I have had a MacBookPro3,1 for almost two years now. Mostly I like it but the keyboard has always been somewhere between bad and terrible. My 12 inch AiBook had the best keyboard I've even seen on a laptop, this current MBP one of the worst. It was always kind of squishy feeling, but within about 6 months the "C" key quit working entirely so I bought a stand alone apple keyboard that i have been using since then. That's another story since several of the letters have worn completely off, some keys stick, etc. but my question is whether the new MBP have any better keyboard than the two year old on, or if it's the same squishy one that was there on mine. And yes, I know i could have sent it back for a repair under the warranty for the broken key, but I was in a position where I couldn't afford to be without it for even a single day at that time.
    Thanks for all replies

    iyacyas wrote:
    I would have to totally agree with EWW...
    I also agree that the 12" not only has the best keyboard but is the best Mac ever, and I am not looking forward to the day that I have to put the ol' girl down.
    I still mourn mine. One tiny solder connection on the motherboard broke, and it is $800 to replace, but I sure loved that computer. Bought it the week it was introduced and it was wonderful.

  • Questions about remote control and infrared port Qosmio F20

    Hi again,
    My Toshiba Qosmio F20 comes with a remote control funcioning through a infrared device on the front of the computer.
    Regarding this I have 2 questions:
    1. How do I configure additonal functionality through the remote control? (Like launching and controlling Winamp?)
    2. How do I connect other devices, like my cellular phone, pdas etc., to the infrared device on my computer?
    Kind regards,
    Vegard

    Hi,
    the Remote Control delivered with the Qosmio F20 is designed only for Windows XP Media Center Edition (all Remote Control's which are designed for Windows XP Media Center Edition work only with Media Center or Windows Media Player). Other program's like Winamp were not supported by these Remote Control's.
    I believe, the Remote Control's are made by Microsoft and for a wide palette of product's (the Infrared Transceiver is on nearly all Media Center PC's e.g. Siemens-Fujitsu, the same). So it's a little bit tricky to support more program's then Media Center or Windows Media Player.
    For other program's you need a second Remote Control like this one:
    http://www.logitech.com/index.cfm/products/detailsharmony/GB/EN,CRID=2084,CONTENTID=9193
    br, Ben

  • The question about HTML ENtities in flash

    Hello guys. Some problems with « entities. My movie
    extracts data from XML. HTML data im my XML converted to html
    entities format so I use this piece of code do decode them:
    intro_txt.htmlText=_root.suek_framework.peoplexml.firstChild.childNodes[1].firstChild;
    intro_txt.htmlText=intro_txt.text;
    It works fine for < > symbols. But it don't work for
    another entities like quotes. So in the output i have valid html
    code but with & l a q u o ; symbols instead of simple quote ".
    Maybe im doing somethin wrong? Maybe some one have idea how to
    decode this & l a q u o ; too?
    Thanks to all and sorry for my broken english!

    For what you show so far, you can probably create it all in Flash without concern for slicing and whatnot..  For starters....
    First create the buttons... select Insert -> New Symbol -> Button.  Buttons have 3 visual frames... one for Up, one for Over, and one for Down.  The 4th frame is useful for defining a larger Hit area for small items.  So create a new button symbol and draw the different views you want for the button.  When you are done you should be able to make the button work visually without the need for any code.  You will want to add code to control the feature displays.

  • Question about Grid Control Agents on a Veritas Cluster (or any cluster)

    Hi, I'm seeking advice on how to setup Grid Control agents on a Veritas Cluster.
    My cluster is made up of two Sun M4000 servers running Solaris 10 x64 (node1 and node2), and 8 virtual hosts setup to fail between the nodes. Each of these virtual hosts has several mount points from a SAN, and contain Oracle 9 and 10 homes as well as databases. The versions are 9.2.0.8 and 10.2.0.3.
    I have a full grid control agent install on each node to mount points that don't fail over to the other nodes. These agents monitor the nodes themselves.
    Now for my question, is it better to do full intalls of the grid agent in each virtual host or to use the "emctl deploy agent" from the full installs already on node1 and node2 to the virtual hosts? Or is there some other, better way to do this.
    Either method results in 9 grid control agents on a node if all the virtual hosts are on that box. I've experimented with both agent deploys and installs a bit and found that the cpu usage goes though the roof with that many agents on one server. Maybe I don't have them configured correctly, but every now and then they spike cpu usage to 100%, and these servers have 8, dual core processors in them with 32GB of RAM.
    Thanks for any tips!
    Currently, my setup looks something like this, if it helps:
    ORANODE1...........................................ORANODE2
    user: oracle..........................................user: oracle
    full agent install....................................full agent install
    VirtualHost1
    user: ora_user1
    Oracle 10G Home
    repository database
    OMS install
    full agent install
    VirtualHost2
    user: ora_user2
    Oracle 9i Home
    production database
    full agent install
    VirtualHost3
    user: ora_user3
    Oracle 9i Home
    production database
    full agent install
    VirtualHost4
    user: ora_user4
    Oracle10g Home
    production database
    full agent install
    VirtualHost5
    user: ora_user5
    Oracle10g Home
    production database
    full agent install
    VirtualHost6
    user ora_user6
    Oracle10G Home
    production database
    full agent install
    VirtualHost7
    user: ora_user7
    Oracle10G Home
    production database
    full agent install
    VirtualHost8
    User: ora_user8
    Oracle10G Home
    production database
    full agent install

    Will the agent 10.2.0.3 work with Grid Control 10.2.0.1
    Yes.

  • Question about pencil tool in  Flash CS4

    The thing that I am having difficulty with is the pencil tool.It does not render a line as I draw it but only after I release the  mouse. How do I correct this?
    thanks
    Mango

    AlMostabed wrote:
    > up :)
    open flash - Help - search "Stroke Hinting"
    with the ""
    read technote
    Using the Stroke Color and Fill Color controls in the
    Property inspector
    To see difference you will need to adjust the size to larger,
    like 8 to 10 pixels.
    Than you will see differences in setting
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Questions about AS2 Tree Component (Flash CS3)

    I have Flash application with a Tree component on the Stage. I'm using an XML file to create the structure of the Tree component.
    Each entry on my XML has the attributes id, label, heading, desc, and icon.
    My problem is that I can't seem to be able to set the Tree to default with the first node open.
    My code is:
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    mTree.setIsOpen(mTree.getTreeNodeAt(0), true);
    My tree populates fine, and the handler I retrieve whatever item is clicked works great. However, the tree refuses to default to having that first node open.
    I'm also interested in placing custom icons into certain nodes via the icon attribute I've set in the XML, but that will have to come later I guess.

    I've never used the Tree component, so I'm just guessing here....
    There is a slight delay before the xml file loads and your tree has its data provider.
    Perhaps during that time there is no node at mTree.getTreeNodeAt(0) to open? Try adding this just before the last line of your code:
    trace("the node is: "+mTree.getTreeNodeAt(0));
    What do you get?
    You might need to move that code inside the xml's load event handler.
    Another thing is that the Flash components tend to work on an invalidate-then-wait-one-frame-to-redraw kind of model. So it is possible you will need to wait one frame after the xml has loaded and then tell it to open that node.
    The doLater method might help with that.
    var home:MovieClip=this;
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    mTree.doLater(home,"delay");
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    function delay(){ 

  • Question about project manager on Flash CS4

    1 It seems that CS4 can not open flp, so how can I use CS4 to manager a project builded by CS3?
    2 if you choose a folder to found a new project in CS4, when you want to publish the whole project, you need to choose all the fla of that project...that will cost a lot of time if the project includes hundreds of files. But I didn't find out any quicker solution except check every fla by manpower. Is there any solution to publish a project faster?
    I am beginner of both CS3 and CS4, and thank you for anyone who can answer my questions.

    I'm planning on burning 1 master to a Taiyo Yuden White Inkjet Hub Printable 16X DVD-R disc.
    Make a disk image instead. It will be faster than a disc to disc copy.
    I have burnt tons of discs with the setting on "As fast as possible" with a 16x drive and discs. Never a problem. Some say that burning at a lower speed will increase reliability and decrease the chance of turning out a dud. Can't say that I have seen a difference.
    does it matter if I burn first and then print or should I print first and then burn?
    I would burn, check the disc and then print. If you do happen to get a bad batch, that's a lot of wasted time and ink if the discs don't work.

  • A question about table control

    Hello Expert,
    I have created a table control with wizard using internal table. I can display the data in the table successfully. Now the new requirement is to add two buttons to sort the data in ascending or descending. But it seems that it's impossible to select the column that the user want to use as sort field.
    Does any expert tell me how i can select the column?
    Thanks & Regards, Johnny

    After doing the steps mentioned by sap fan you have to use below approach for coding.
    Your table control has structure  CXTAB_CONTROL defined in the type group CXTAB in the ABAP Dictionary and
    CXTAB_CONTROL contains a table of the structure CXTAB_COLUMN which has the attributes of a column of table control.
    Lets say you have defined table control as
    CONTROLS tab1 TYPE TABLEVIEW USING SCREEN <scr> then you have can read variable tab1-COLS[ ] into one internal table
    of type CXTAB_COLUMN (lets consider this table as tab2) then check this tab2-SELECTED, if column is selected then
    it will be 'X' else space. Accordingly sort your internal table of table control.
    Regards,
    Pawan

  • Question about Delegate Control to Desktop Support

    I am working on delegating control to a newly formed/reclassified position in my company. This role will primarily provide Desktop Support. They will have little to no need to log into servers.
    I have already gave them admin rights to the end users machines, now I just need to grant them the proper rights in ADUC/Exchange so they can properly perform their role.
    Here is what they will need to do:
    User account lifecycle management (Create, change, delete, change password, etc)
    Computer account lifecycle management (Create, change, delete)
    Security & Distribution Group membership management (Create, change, delete)
    Exchange mailbox creation (Exchange Recipient Administrators)
    Run RSOP for GPO
    Basically, I want them to have full control over user, computer and group objects. This way they can create users, change group memberships,  add computers to domain, delete computer objects, etc.
    The problem I am having, I am not sure what rights I need to grant them via the delegate control wizard to accomplish all of that. I know I could just grant them "Full Control" of the OU structure containing all of our user, computer and group
    objects, but would like to avoid that unless its really what I need to do in the end.
    Any assistance would be appreciated!
    Thanks!

    I would not recommend providing Full control over user, computer and group objects. Provide permission based on the tasks that they need to perform. The following articles
    should help you:
    User/computer/Add remove members to Groups Delegation
    http://kpytko.pl/2012/05/16/active-directory-rights-delegation-overview/
    http://kpytko.pl/2012/05/26/active-directory-rights-delegation-part-2/
    http://social.technet.microsoft.com/wiki/contents/articles/6477.how-to-view-or-delete-active-directory-delegated-permissions.aspx
    Exchange Mailbox Delegation :
    http://blogs.technet.com/b/matabra/archive/2011/09/16/how-to-create-a-custom-recipient-management-group-using-exchange-2010-rbac.aspx
    Run RSOP for GPO Delegation:
    http://technet.microsoft.com/en-us/library/cc758756(v=ws.10).aspx

  • Simple question about pen tool in Flash vs Photoshop

    Hi,
    After years of fumbling with the pen tool, I devoted my holiday weekend to mastering the pen tool in Photoshop. Though not necessarily a grand master of the pen tool, I'm happy to report that I've turned a corner and have transformed my pen tool feelings from fear/anger/hate into love/happiness/accomplishment. At long last, it all makes sense.
    I think.
    Today, I zipped into Flash to experiment with a tracing assignment I'm giving to my students in an upcoming Flash class. As I started to trace the path with the pen tool, I realized that it was behaving differently than it does in Photoshop. My specific problem is this:
    I place an anchor point and draw a line. Then I draw another line. Then I draw another line. Then, I decide to adjust one of the handles and try to draw another line. But it won't let me just go back to adding things to the path with the pen tool if any part of the process is disrupted.
    This seems like pretty basic functionality! What am I doing wrong?
    To make sure that I wasn't crazy, I went back to Photoshop and tried to do the same thing. It works just fine in Photoshop. At any time, I can hop away from the pen path and then back over to the pen tool. All I need to do to extend the path with the pen tool in Photoshop is to click on the last anchor point in the path. Surely, this must also be possible in Flash.
    I would be grateful for any advice!
    Aaron

    both in flash authoring tool not flash player.

Maybe you are looking for