How can I make a button that will work on iPads? (animate only on Mousedown)

I am making an interactive page in Adobe Edge Animate. It will double as a low-mem website and also as an iPad page and is part of a larger flash website which is highly animated.
This website sports two kinds of buttons; the ones linking to a label in the timeline and the ones linking to a URL.
The problem is that I do not want the buttons to work on mouseover because that will be completely useless on iPads and similar devices. That is why I want the thing to animate on mousedown.
What I did initially was to load the on and off states of the button to my timeline and made them into a symbol, after that I made two labels inside of that symbol; one for the on state and one for the off state. Below the first label there is a "sym.stop("ONstate");" action  and then my off-state button graphic has a mousedown "sym.stop("skipON");" action. Then comes the tricky part, I wanted to reference the label on which it should land in a onclick action on a root level. It didn't work at all. I used "_root.stop("label");". As you can see my programming abilities are extremely poor, I'm a graphics guy.
Next, I decided to leave the mousedown action inside the symbol and do the onclick action on the main timeline, which did work for the most part, however it behaved weirdly. First off, the mousedown action worked perfectly, but not at the same time with the onclick action; You would click on the mousedown thing and it would stop on the frame and then you would need to click it a second time to go to the label.
There must be either something  I'm doing wrong or this function is not supported by the Edge Animate beta. But my programming abilities are so poor to pinpoint the real cause of the problem.
Can anyone help me please?

Hi, redcrowdesign-
Part of the problem is that you're using ActionScript syntax in a JavaScript environment.  Instead of using _root, you can access the Stage object.  If your symbol is only one level down, you can use sym.getParentSymbol().stop("label");.  If you have a nested symbol, you may find sym.getComposition().getStage().stop("label"); more effective.
That being said, you might want to rethink your UI model and focus your iPad interactions on the touch events, which are much more performant than the mouse events.
Hope that helps,
-Elaine

Similar Messages

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • I accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions???  plz help!!!

    i accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions??? plz help

    As already provided, if you don't have such in your iTunes library, on your computer, then there is no way to put it back on your phone. Apps are DRM protected, so even if you found a copy somewhere, you wouldn't be able to use it.

  • I am trying to use an education program that needs Java applets to install and use and it will not use Safari. When I download IE from the web it will not install. How can I get a browser that will work on my MacAir for travel use of this program?

    I am trying to use and education program that needs Java applets and it will not run on Safari. IE will not install from the web. How do I get a browser that will work to install so I can use this program when I travel.

    Try using FireFox. IE will only run on a Mac if you run Windows on the Mac.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How can I have a button that will show/hide a text box and images on the same page?

    I have a page like below:
    I want to make so that those 3 buttons show different text under them when they are each pressed. How can I achieve this?
    Thanks.

    Hello,
    Please try using Tooltip Composition Widget to achieve that..
    You need to customize  the trigger as the button  and you can use the target to insert desired text box or images.
    you can find this in Widgets library panel > composition
    Please let me know in case you need any other clarification on that.
    Regards
    Vivek

  • How can I make a timer that will record elapsed time up to 15 hours with a PCI-6503E DAQ card?

    I'm a beginner LabVIEW programmer, but need to take measurements of elapsed time from the start of data acquisition for up to 15 hours. I'm using a PCI-6503E card. Looking at examples on the web and LabVIEW, itself, I was only able to find a way to take time measurements with a DAQ card up to 167 s, unless two counters were tied together, but there are no instructions on how to do that. Could someone help me? Thanks.

    I suggest you to look in the Resouce Library: inside it there is plenty of useful examples.
    I found this VI with two cascaded timers in the Measurement hardware > Counter/Timer > Event/Time Measurement cathegory:
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?​openagent&5293158F4EC950C4862568C1005F6CD9&cat=C70​29C9ACBD3DF7386256786000F8EE6
    Hope this helps.
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Can Compressor make MPEG2 files that will work on a Princeton Video server?

    I am responsible for selection of equipment and software for the local Public Access studio. I am trying to be sure if Final Cut Studio will output the format we need.
    We need to output video files that are compatible with our Princeton Server Group B1400 Digital Video Server. We have found it is very difficult to be certain if a particular program will generate what we need. Below are the specs for our server.
    Basically it is a a rather specific form of MPEG2. I see on the Apple web site that Compressor will do MPEG2, but that is qualified with "Quicktime", and is mostly described as being for DVD production. It seems that those are not necessarily compatible with our server. It wants a plain MPEG2 file in the format given in the specs. The server is a Linux system and its software does not know about special formats like say Quicktime or DVD might wrap around the basic data. It seems to want just plain files of MPEG2 video (and audio of course) data.
    One of my sources of my concern is that in spite of what Apple says about Compressor doing MPEG2, the makers of the server say FCP does not create output for it.
    I need to be assured about this before we invest in software and possibly new hardware.
    These are the specs for the encoding the server needs:
    Princeton Server Group
    B1400 Digital Video Server
    Encoding Requirements
    In order to ensure optimum video playout quality on the B1400 Digital Video Broadcast Server, MPEG video and audio content must be encoded as follows.
    • Video files for play-out must be encoded in multiplexed MPEG-2 program stream (PS) or MPEG-1 system stream format. Video can be encoded at rates up to 15 Mb/s.
    • Use 4:2:0, not 4:2:2 encoding.
    • Audio must be encoded as MPEG1 Layer II, AC-3 Stereo, or Linear PCM.
    • The video and audio presentation time stamp (PTS) values in a file must be continuous and increasing. The time between the first and last time stamps in a file should reflect the actual duration of the file.
    Encoding Recommendations
    • Resolution: 720 X 480 or 704 X 480 in NTSC
    • Closed GOP (Group of Pictures) with an “I-frame” every 15 frames
    • Audio bit rate of 256 kbps
    • Sampling rate of 48 kHz
    • Program stream files should have one end code (00 00 01 b9) at the very end of the file.
    • Recommended bit rates for various types of video content are as follows:
    o 4 Mbps for good quality video with low motion
    o 6 Mbps for good quality with average motion
    o 8 Mbps for good quality with high motion and
    o 10 Mbps for high quality with high motion content.
    • MPEG2 files are constructed from multiplexed audio and video streams. The length of video and audio stream segments within the MPEG file should be identical.
    G4   Mac OS X (10.4.7)  

    Hey Terry
    in the corporate world wee have to contend with clients who are all windows based and prevented from installing anything on their systems.
    I use Flip4Mac, Studio Pro HD, with the following mix of settings;
    Open clip in QT, I do also use compressor but for some reason I like using QT for exporting to WMV.
    File/Export
    Export:movie to windows media
    Use: One pass VBR, Presentation (high), 16:9
    Options>
    Advanced... input type: interlace Lower field first(DV), output type: progressive
    Coding method: Two pass VBR
    Give this a shot and then tweak to suit your needs, oh and you can save your settings as a preset for QuickTime.
    Within Compressor there is no export to WMV, so you have to start with another setting and create your own saving it for future use.
    Tony

  • Can I create a button that will take me to a random slide in a sequence?

    Let's say I have three simulations setup and the simulations start on slide 5, 15, and 23. Can I make a button that will randomly jump to one of those slides?

    You have to execute that script using an event, in this case you'll use the Success event of the button that you created to 'jump'. And it will probably be an advanced action, unless you execute the JS with the On Enter event of the slide. You have two commands: first to execute the script, second to jump to that slide, for which you'll have to use a system variable cpCmndGotoSlide and the value of the variable returned by the JS. Slide numbering starts with index 0.
    http://blog.lilybiri.com/system-variables-in-captivate-6
    http://blog.lilybiri.com/events-and-advanced-actions
    Lilybiri

  • In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email?

    In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email? like when you tap a recipe in Marth Stewart Every Day Food for example....

    http://forums.adobe.com/message/4190932

  • How can I make it so that my songs don't go on her iPod and her songs ....

    Me and my mother just got iPods for christmas and hers was a U2 ipod and mine was a 30gb ipod. I have downloaded some songs and have imported some cds but my mother doesn't want those songs on her ipod. How can I make it so that my songs don't go on her iPod and her songs don't go on mine.Do i need to create another itunes?

    The computer can tell the difference between your two iPods. When you first plugged each one in, you named them and the computer recognizes each one as a separate disk.
    Now, when you plug in your iPod, and you are looking in iTunes at your iPod contents, you will see four buttons in the bottom right corner of iTunes - the first one is to display iPod options. Click on this, and under the music tab, select "Automatically update selected playlists only". Then, you scroll through your playlists and select only those you want to be transferred to your iPod. Your mother can do the same thing. Now you can each make your own playlists from the same music library, and only those songs you want to go onto your iPod will transfer when you plug it in. You can make the same selections for all the other options too (video, podcats. photos, etc), so that you only have to have what you want on each iPod.
    I have two iPods, a new 5g video iPod and an ancient 1g iPod, and have no problems syncing each of them with different playlists and options.

  • How can I make a button "react"?

    This is probably a super silly question, but you know how it is, sometimes we sit on the answer and still can't find it... How can I make a button react to a click? I just want the simple effect of the button changing colors or looking like the user pushed it. Right now it's just the same old plain button, no matter if I click it or not, you can't really tell the difference. How can I give it the "pushing the button" effect? Thanks guys!

    You can choose image button and then choose from the available image buttons, or click on the folder icon when you select the image button and choose from the Gallery of Captivate 6.
    Few image buttons change color on hover or onclicked, these effects are predefined in them.
    Or you can edit that button on which you are working, from properties Panel.
    The Post and Cancel button on this thread seems like a transparent button in Captivate with different fill and stroke color, and transparency is also less, and with corner radius of 0.
    You will find these all optionns, when you will click on that button and then click on the properties panel.
    Thanks.

  • How can I set the page that will open, when I open a new tab, to be the same as the homepage?

    How can I set the page that will open, when I open a new tab, to be the same as the homepage?
    An app changed it to some other search engine, before installing the app, I the tab that would open was the homepage I set.
    In my case it is Google, and I want my new tabs to open on Google like they did before the installation.
    thank you,
    Asaf Privman.

    You can middle-click or Ctrl left-click the Home button on the Navigation toolbar to open the Home page in a new tab.
    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and Itunes store. How do I make one password that will be recognixed by all these devices?

    I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and itunes store. How do I make one password that will be recognized by all these devices? My apple id is constantly not working.

    Hi Lrwill,
    If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
    Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
    Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
    Cheers,
    GB

  • How can I make a shortcut which will enter my email address in an input widow of a web page?

    how can I make a shortcut which will enter my email address in a website window.

    That is controlled by the web browser you are using. It is called Auto Fill in most of them. I don't use Safari so I'm not sure how that works in that browser.

Maybe you are looking for

  • Is inDesign the best product for publishing an interactive training manual?

    I am building an interactive training manual for a fire department and I need to find out the best way to publish this document for use on an iPad or other tablet.  I will be embedding video, text, and photos, along with stacking photos for the 360 d

  • Error in dbtier cloning

    Hi All, We are cloning a new test instance from the cold backup of our production. Production is single instance/archive log enabled. However, the target instance is single instance/no archive log. the DB version is 11.1.0.7 When i am running adcfgcl

  • Unsupported Video Format

    I have 3.1.3 version of Aperture and am running Lion. Since the upgrade movies I shoot on the iPhone are showing in Aperture as "Unsupported Video Format" and I cannot view them. Sure one would think that and Apple phone and Apple software would work

  • How to unlock my internal HD?

    This is the problem, I bought a MacBook Pro in 2010 with Snowleopart installed with the OS CD in the box. I installed Mountainlion two months ago.  Recently I had a problem with my HD. I saved my files to an external HD and ran a test on my internal

  • Image, from JTextPane to RTF

    Hi, i need to convert the text in a JTextPane in a file .RTF, but there is the problem, the image in TextPane there are not in a file RTF, why? Thanks for help goodbye PS sorry for my language