Problem: Animation publishing incorrectly, but working in Cp overview.

Hello

I've created an animation in Flash CS5 with a code in it (see below for the code). What does the code is that it allows the user play/pause the film by pressing the space bar. It allows this keyboard shortcut be used on all the slides except some of them (in this case: slides, 9, 13 and 15). I just need to drop this animation on the first slide in my project of Cp, and the service works in the rest of the project. When I hit F4 to preview, it works fine, but when I publish it, he has problems: it won't work, for beginners, but also, when I go to a slide, press the SPACEBAR, and then return to the previous slide, the play/pause button down on the playback bar shows the icon of 'play' (which means that the video should be paused) , but the video keeps playing. The button play/pause in the playback bar and the keyboard shortcut do nothing. Remember that it works perfectly when I "F4" it, just not when I publish and open the SWF file. Usually when the trick works in Cp but not when published, its something in the settings of publication that is the problem, but I don't find anything in there that would help. In addition, F4ing the project within the Cp must factor into the publication settings. Just to be clear, all that I need help for deploys the published file works just like the F4 preview. The code is below and thanks to all those who can help.

Shortcut key: Play/Pause (space)

stage.addEventListener (KeyboardEvent.KEY_DOWN, keypressPause);

function keypressPause(event:KeyboardEvent):void

{

Switch (Event.keycode)

{

case Keyboard.SPACE:

var myRoot:MovieClip = MovieClip (root);

var mainmov:MovieClip = MovieClip (myRoot.parent.root);

If (mainmov.cpInfoCurrentSlide! = 9 & &)

mainmov.cpInfoCurrentSlide! = 13 & &

mainmov.cpInfoCurrentSlide! = 15)

{

If (mainmov.rdcmndPause == 1)

{mainmov.rdcmndResume = 1 ;}

on the other

{mainmov.rdcmndPause = 1 ;}

break;

}

}

}

It is the way in which the code is the main time line obtaining of Captivate (mainmov).  When you F4 film, it is loaded differently when you preview web F12... the line of main time is reclassified differently.  Here is a way to search the main time line and the rest of the code:

import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.utils.describeType;
import flash.display.MovieClip;

var mainmov:MovieClip = findMainMovie();

// Keyboard Shortcut: Play/Pause (Space)
stage.addEventListener(KeyboardEvent.KEY_DOWN, keypressPause);
function keypressPause(event:KeyboardEvent):void
{
    switch(event.keyCode)
    {
                    case Keyboard.SPACE :

                    if (mainmov.cpInfoCurrentSlide != 9 &&
                              mainmov.cpInfoCurrentSlide != 13 &&
                              mainmov.cpInfoCurrentSlide != 15){

                                        if (mainmov.rdcmndPause == 1){
                                                  mainmov.rdcmndPause = 0;
                                                  mainmov.rdcmndResume = 1;
                                        }else{
                                                  mainmov.rdcmndPause = 1;
                                                  mainmov.rdcmndResume = 0;
                                        }

                    }
                    break;

    }

}

//Returns the Captivate MainTimeLine
function findMainMovie():MovieClip
{
          var cpMovie:MovieClip;

          //cpMovie = parent.parent.parent;
          cpMovie = findParentByType(this.parent, "CaptivateMainTimeline") as MovieClip;

          return cpMovie;
}

//Iteratively finds a parent object by type
function findParentByType(source:DisplayObject, parentType:String):DisplayObjectContainer {
          var currentTarget:DisplayObjectContainer = source.parent;
          while (currentTarget != null) {
                    if (describeType(currentTarget)[email protected](parentType) >= 0) return currentTarget;
                    currentTarget = currentTarget.parent;
          }
          return null; // We're at the root
}

The code to search for the main time line has been gleaned CpGears written by Whyves

I encourage you to think about what in fact in a static Captivate widget using the framework of the CpGears or the WidgetFactory by Tristan Wardframe.  Or the other framework will make your life a lot easier.

I usually put two variables in tandem: rdcmndPause and rdcmndResume for that all variables are kept synchronized.

When I dropped the animation in the Cp project, I had to show for the "rest of project" to make it run on all slides.

Make account and let us know how it goes.

Jim Leichliter

Tags: Adobe Captivate

Similar Questions

  • keyboard seems to be faulty in msn, messenger, hotmail, but works in other applications well, that someone else has had this problem?

    Hello, I have problems with my keyboard, but only in some programs, such as windows live messenger, hotmail, when sending emails mainly. It seems to work ok in most other programs, so I guess it's not a keyboard error real but maybe a driver issue? any help or advice would be appreciated, it would probably be preferable to mention now that I'm not very computer and it would be better to keep it as simple as possible, so I do not overheat and possibly malfunction myself :) Thank you for reading this any help appreciated.

    swellgeeza,
    Thank you for visiting the Microsoft Answers community forum.

    It would be useful to know exactly what type of dysfunction, you meet be better able to help you.
    You are not able to use the keyboard at all, it's set up keys wrong, repeating keys, error messages, etc.. ?  Without this information we don't really know where to start to fix this problem.  Here are some general things to check.

    If it is a USB keyboard, try to plug it into another USB port on the computer.
    Try to remove the keyboard from the Device Manager, and then restart the computer to reinstall Vista.
    Try to run the System File Checker:
    To run the System File Checker tool, follow these steps:
    Click Start and type cmd in the box start the search.
    Right click on cmd in the list programs, and then click Run as administrator.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue
    At the command prompt, type the following line and press ENTER:
    sfc/scannow
    When the analysis is complete, test to see if the problem you are experiencing is resolved.

    If it is a recent problem, try to do a system restore to a point in time before the problem appeared.
    To restore the operating system to an earlier point in time, follow these steps:
    Click Start, type system restore in the search box, and then click System Restore in the list programs.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    In the System Restore dialog box, click on choose a different restore point and then click Next.
    In the list of restore points, click a restore point created before you started having the problem, and then click Next.
    Click Finish.
    The computer restarts and system files and settings are back to the State they were in when the restore point was created.

    Let us know if you still need help.
    Thank you
    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I was not able to open my my Adobe Illustrator application after update. He says there are a few problems with the preference but after following the instructions, Illustrator still does not work and it keeps giving the samei question. Help, please.

    I was not able to open my my Adobe Illustrator application after update. He says there are a few problems with the preference but after following the instructions, Illustrator still does not work and it keeps giving the samei question. Help, please.

    I think you are talking after upgrade to CC 2015 you're not able to launch I. Also, I believe you speak for read only matter of preference.

    After following the instructions please do not launch Illustrator and check your file preference if the permissions have been set correctly. A good way would be to get inside the preferences folder and then try to create a file manually. If it succeeds, please write to [email protected]

    A few external links to help you set permissions:

    MAC

    OS X Yosemite: set permissions for items on your Mac

    WIN

    Set, view, change, or remove permissions on files and folders

    r-and-file-permissions/465f2b42-63dd-4486-8dd1-c870290efeed http://Answers.Microsoft.com/en-US/Windows/Forum/windows_vista-Files/How-do-i-change-folde

    Kind regards

    Ashutosh

  • Problem with Photos Soft - error message the application built with PhotoLibraryPrivate version 215.65.00 but works with version 209.52.00

    Hello, hope someone can help with my MacBook Pro sluggish.

    I'm in OS X Yosemite 10.10.3 version and tried to upgrade to El Capitan 10.10.5 on a Macbook Pro 13inc mid-2012.  He said it has already downloaded twice, but when I open the software it is still sitting at 10.10.3 without modification, download seems to take a lot of time - been sitting for about 6 hours.

    Now I trying to open the photos app but get the following error coming - the application built with PhotoLibraryPrivate version 215.65.00 but works with version 209.52.00.

    Any advice on what are the options for my new photos app! Have you tried different time machine backups and the computer does not like it either

    Upgrade to El Captain OS X 10.11.2 which includes Photo 1.3

    I have no idea of what you see on "El Capitan 10.10.5" as far as I know is not exiat

    LN

  • Problem with catalyst 12.8 working set memory?

    I run a system Win7 Ultimate x 64 with dual ATI HD5870s inside. After update Catalyst 12.8 today, I noticed a problem with the memory what work has been used by Firefox 14.0.1.

    IS REPRO STEPS
    (1) run Firefox
    (2) open Taskman, sort of working set
    3) http://www.kotaku.com
    (4) use mousewheel to scroll the pane to the right down - load the additional articles for review.

    If you scroll down a bit, you should see Firefox eat a few GB of working set memory in short order. The page starts answers incorrectly at the time and Firefox becomes unstable.

    Note: This problem only repros when Crossfire is enabled. Crossfire is off, there is no problem at all.

    I don't know if it's a v Crossfire Firefox thing, or something new, sent by 12.8 catalyst... but whatever it is, keep your eyes open. I don't have a way to solve this problem yet apart from the stop of Crossfire, which denies the reason why I went with a double solution map in the first place.

    Deactivation of Firefox > Options > advanced > General > browsing > use hardware acceleration when available solves the problem until Mozilla and AMD solve this problem

  • How is it, my original keyboard does not work on my desktop, but works on my laptop? And my keyboard works for both laptop and desktop?

    Hello

    I have a desktop computer Windows 7 Home Premium 64-bit with an ASUS M4A87TD EVO motherboard. Recently, I have a problem with my Wired Saitek Eclipse PZ30AU keyboard: when I type, the typical button does not appear on the screen. In other words, the keys are unresponsive. The keyboard is turned on, if the office is enabled/disabled. Even if, at the time, while he was working, the light is always disabled whenever the office is off. I don't know why it is informed, even if the office is off.

    My wired mouse usb works fine. I even tried my USB adapter for wireless network in two USB ports, and I still have the signal, so I guess it works very well too. The on-screen keyboard works.
    However, I tried to connect the keyboard desktop on my laptop and for some reason, what works. I also tried to use a different keyboard on my desk, and it actually works.
    I downloaded the chipset, the driver M4A87TD EVO BIOS 2001 driver and a driver of NEC Electronics Corporation USB 3.0 controller. But first, I had to install the Akamai NetSession Interface. After that I downloaded all three files, I installed the chipset driver and USB driver in uncompressing them, by clicking on each file, by clicking on Setup. For some reason, the BIO 2001 pilot had only a ROM file, so I just deleted total. After installing and restarting the computer, the keyboard does not.
    I want to emphasize that, before even manually, download the drivers, I tried using WIndows Update to install all important and recommended updates. After the computer restarts, the guarded keyboard lights flashing on and outside.
    So, I ask two things:
    1.) how does my original keyboard does not work on my desktop, but works on my laptop? And my keyboard works for both laptop and desktop?
    2.) can I keep I have installed the drivers or uninstall them?
    Thank you.
     
    Original title: keyboard problem

    Hello

    This problem can occur because of incorrect keyboard layout settings.

    Please follow the instructions from the link and check that it works very well.

    Check out the link:

    Mouse, touchpad and keyboard with Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/Mouse-touchpad-keyboard-problems-in-Windows#V1H=tab05

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • Adobe will open not downloaded aliant bell bills no problem with internet explorer, but I do not use it

    Adobe will open not downloaded aliant bell bills no problem with internet explorer, but I do not use it

    The current versions of Firefox have allowed a built-in PDF Viewer that has all of the features that other PDF as Adobe Reader readers have or can not work properly otherwise.

    You can change the action for Portable Document Format (PDF) to Preview in Firefox to use Adobe Reader software or set always ask in "Firefox > Options/Preferences > Applications.

    You can set the pref pdfjs.disabled true on the topic: config page to disable the build-in the PDF Viewer.

    You can also check the value of the plugin.disable_full_page_plugin_for_types pref and remove the part application/pdf, if any.

    See also:

  • Parachuting works not with my laptop and iphone at home but works at my office?

    So, it's interesting.

    At work my MacBook Pro and the iPhone have no problem with Airdrop. But when I come home they will not see each other. They are on the same network Wifi and Bluetooth and Wifi turned on!

    Make sure that the MacBook Pro and iPhone are connected to the same Wi - Fi network. When you use a parachute, I suggest to change the settings to "everyone" where it says "who can see me?" while you are at home. Do this peut rectify the problem. If not, let me know simply by replying to this and I will send through additional assistance.

  • iPad flashing constant Air... can't even thug off the coast.  Upgrade the software, but worked for a while.  Can't do anything else.

    iPad constant Air flashing... cannot even turn off.  Upgrade the software, but worked for a while.  Can't do anything now.

    MY husband fixed this problem by pressing power and home buttons.  Duh...

  • Taken helmet Mac Mini internal hum but works fine

    My Mac Mini made headphones humming internal but works very well. The hum is not constant. When I boot it is quiet so if I play a sound in ANY format or any program that there is a strong buzz that starts and the kind of "" did ramp up the tone. If I stop then the sound of the source of the hum lasts almost exactly: 30secs and then all stops. Again, it is only through the headphone jack, the Interior is fine and works as usual.

    I had plugged in a new audio line just before it happened... I wonder about a failure/problem of grounding. I have also used an IO just before Scarlett and the audio output. It is no longer connected.

    I have "waved it a little" cleaned, tried headphones and speakers, disconnect the power source and replaced by another source and of course turned on again with and without the connected headphones.

    It is a Mac Mini from 2012.

    Thanks for any help.

    Could be a ground loop in your power connections. Try unplugging all unnecessary devices in power and to change the socket where the Mac is connected

  • Silent allways orange but work and volume/tone are not displayed.

    I have a 1100-DV8T running win7 pro.  Product #vf836av.  Once Microsoft fixed a few issues that I noticed that the Mute button is still orange but works correctly.  Settings mute, volume and tone do not appear on the screen when you use the touch buttons which makes it difficult to know what is happening.  I guess that's probably a driver issue since it occurred when the pilot for a hard drive problem.  I already tried a hard reset with no luck.   Any suggestion?  Any help would be appreciated.

    Hello

    Regarding the status of the mute LED, try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp48501-49000/sp48945.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When finished, restart the laptop.

    Allow Windows to fully - charge it will automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  When this has completed, restart the computer again.

    On-screen display for volume etc is provided by HP MediaSmart SmartMenu which can be downloaded from the following link.

    http://ftp.HP.com/pub/SoftPaq/sp48501-49000/sp48552.exe

    Once the installation is complete, you will need to restart the laptop.

    Kind regards

    DP - K

  • Keyboard not typing special symbols above the number keys online, but works fine otherwise

    Original title: keyboard problem

    Keyboard not hitting that special symbols above the number keys online, but works fine otherwise. When the shift button is held and you press a number key he type the last letter, which was typed any symbol, you try to type. Keyboard worked fine before, tried another keyboard and got the same results.

    Hi Patrick,

    1. what type of keyboard you use? Is it wireless or wired?

    2. did you of recent changes on the system?

    3. what web browser do you use?

    Method 1:

    If you use Internet Explorer, you can use another web browser and check if the problem occurs.

    Method 2:
    Step 1:

    You can start the computer in safe mode with network and check if the problem persists.
    Startup options (including safe mode)

    Step 2:

    If you do not experience the problem in safe mode with networking, you can perform a clean boot and check.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    After the troubleshooting steps, please refer to clean the boot link to put the computer to normal startup mode.

    Hope this information is useful.

  • His work on Alpha to Dev, but works only on Z10

    Hey there everyone! First of all, thank you for this forum, I had some problems in the past and I found some solutions here. Well, this time I couldn't find any, so I'm making my own post!

    Well, me and my team, we have a problem. Our application has multiple sounds on it. We do this with HTML5, JS, CSS3, Phonegap. The sound works fine on my PC when it should play and it works also on our Dev Alpha. We have a Z10 to test the application subsequently a final device to make sure that the app works very well. But when we put on the Z10, wow! The sound does not work and worse, there is a good chance that the application stops working, it is frozen. Once she even restarted the Z10!

    Then, someone has an idea? We do not use libs like jQuery. And also, I have another doubt. How can I make the screen do not resize when the background is double clicked and how lock screen allowing the user to change the vertical view to horizontal view, I want to block to vertical view only.

    Thanks in advance!

    Audio rendering

     

    For audio, this probably has to do with the limits of the audio channel of OMAP (Dev Alpha B, Z10 STL100-1) and Qualcomm (Z10 STL100-2/3/4). Most likely, the Z10 test you on is STL100-3, which is the set of Qualcomm.

    For the OMAP material, there are 64 contexts of available multimedia rendering, which is a good amount.

    For Qualcomm (and this is a limitation for any device based on this material) there are 6 audio streams available on the scale of the device. Every time you the preload/play a new audio file, it takes an additional audio stream. You can see how this would cause problems quickly.

    If overwrite/reset is a pretty dramatic effect, and I would be a JIRA issue against this newspaper because, in the worst case, I expect the audio does not play. not to crash the machine.

    The current solution is to use an OpenAL extension, we have currently available as a plugin of Cordoba:
    http://devBlog.BlackBerry.com/2013/07/pglowlatencyaudio-port-for-BlackBerry-10/

    If you don't want to use of Cordova and direct WebWorks, you will need to explore your own custom extensions. OpenAL bypasses the mm-engine layer rendering and is not supported by the same limitations.

    Unfortunately, the decline in performance and the side effects of mixing too many simultaneous sounds on chipset Qualcomm is radical enough. Being a hardware problem, the problem becomes very complex, but our teams are working to improve I just don't have a timeline on it yet.

    Resizing of the screen

    To avoid this, there are two options. The first is to assign a room when you lock the initial-scale, scale minimum and maximum scale values. Along the lines of:

    
    

    It's also a good idea to wrap your content inside a

    container. Example:

    
    
        
            ...
        
        
            
    ...

    And use some of the styles on this container to ensure that the content does not exceed the dimensions of the screen. Example:

    ...
    
        ...
        
    
    ...
    

    The second option is to operate the touch-event mode which should theoretically disable the zoom:

    http://developer.BlackBerry.com/HTML5/documentation/touch-event-mode.html

    However, it was until recently brough and seems to be broken. A JIRA is recommended for this question.

    Orientation lock

     

    This can be done in the config.xml file in the blackberry.app and specifying applicable element:

    http://developer.BlackBerry.com/HTML5/documentation/param_element.html

  • So, my cousins both got two netbooks for Christmas so I took it upon myself to put in place. However, I seem to have problems with getting Homegroup to work.

    original title: incorrect Homegroup password

    So, my cousins both got two netbooks for Christmas so I took it upon myself to put in place. However, I seem to have problems with getting Homegroup to work.

    All computers:
    Have enabled IPv6
    Use Microsoft Security Essentials with the last update
    Are connected to the same router (Linksys WRT54GX2)
    Have no other third-party firewalls or AV installed and have been neatly eliminated via their respective tools when they had their
    Can be seen in the network and can access any other files via 'network '.
    Have the correct date and time and are all in sync with time.nist.gov.
    Have the same network sharing settings (network discovery on, files and printers sharing folders public, sharing, streaming, wide, 128-bit encryption, sharing password protected, to allow windows to manage the homegroup connections)
    Network is set at home, not in public

    The computer that has implemented the homegroup is connected via ethernet to the router while other computers use to access the router 802.11 g I tried to delete and redo the residential group as well.

    Despite all this, it is said that the homegroup password is incorrect for both netbooks (where it says it has encountered an error). I realize that it is case sensitive and I entered the password correctly. I also ran the resolution of the problems of the homegroup on all 3 machines and still no luck. I also tried to change the password and restarting of machines.

    Any suggestions? I was _really_ hoping it will work right out of the box. Maybe it's something with the router? I don't really know. Any help is appreciated. Merry Christmas! : D

    Hello

    check out this link.

    http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-create-a-HomeGroup

    http://Windows.Microsoft.com/en-us/Windows7/create-a-HomeGroup

  • MsWinsock.ocx does not work with Visual Studio 2010 on Windows 7, but works with VS 2005 on Windows 7

    Recently, we had the updates below...

    VS 2005 for VS 2010

    .NET framework 2.0 to 4.0

    Infragistics 8.2 to 11.2 (controls)

    OS - Windows XP to Windows 7

    After the updates above, MSWinsock.ocx created problems with windows 7 that worked Flory with windows XP. Then, we solved this known issue (by registering as an administrator). Basically, we use MSwinsock.ocx for the purpose of generation/report view. Now after you resolve the issue of registration MSwinsock, reporting works very well for VS2005/.net Framework 2.0/infragistics8.2 in machine windows 7 but it does not with VS 2010/.net framework 4.0/infragistics 11.2 in the windows machine 7. Is there something that we are missing to make this work in VS 2010 as well?

    Hi Renon,

    I suggest you to post the question on the forum of Visual Studio support on the link below.

    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?category=VisualStudio

    Feel free to write us if you have any related issue of Windows. We will be happy to help you.

Maybe you are looking for

  • Screen roration and glide above and below

    I have a s i6. screen is locked in the same position and rote cannot slide down from the top or the bottom of the phone to see if the lock is on.when phone is turned on, scene is small and must el nlarge size normal

  • New NB550D clean system and TOSHIBA recovery on the HARD drive.

    Hello I was wondering, if I install a new clean Win 7 on my NB550D I keep TOSHIBA recovery on the HARD drive and when I need to use it. If so, how can I do?

  • How to find the print screen prints.

    I know how to do screen printing, but where can I find plans? I need to send one to a software support technician. Thank you!

  • IRQL_NOT_LESS_OR_EQUAL

    Has started occurring from the end when I run my fortinet vpn client on a starhub wireless modem.

  • moving the lines of a 2D array

    Hello evryone! I have a table called 2D message that appears in the attached VI. example: 11011001 10011011 I have another 1 d array called offsets that generate random numbers from 0 to 5 for the number of lines in the message... example: 5 2 I now