Vcam AS3: Killer of buttons!

I am having trouble getting my buttons to work in a platform that uses the AS3 VCam. Does anyone know if there is a way to get buttons to work with it?

*SOLVED*

Similar Messages

  • ANN vCam AS3

    Announcing vCam AS3 for Flash. For those of you who are
    unfamiliar with vCam, I’ll give you a brief explanation. In
    2005, Sham Bhangal and Dave Dixon released the original vCam or
    “virtul camera” for Flash. Let’s say you are
    working on an animation and you want the animation to pan from left
    to right. Normally you would have to create tweens for all the
    layers in your timeline. However, the vCam allows a Flash developer
    to animate a single vCam instance on the timeline to create the
    same pan. Simply place the vCam on left side of the stage and
    create a motion tween to the right side of the stage. Publish out
    your file and bam! You’ve just made your scene pan with a
    single tween. Pans aren’t the only thing you could do with
    vCam. You could also change it’s size and add color
    transformations.
    Now vCam AS3 brings a whole new list of features, including:
    - Rotation
    - Blur
    - Brightness/Contrast
    - Hue/Saturation
    - and more!
    Visit
    www.bryanheisey.com for more
    information and download the source for free.

    As this does sound nice, please refrain from advertising
    here. Read the posting guidlines
    "We gave at the office! No advertising or solicitation is
    permitted on Adobe's Online Forums. However, if you have an
    announcement to make that is of direct interest to a particular
    forum topic - a single post is acceptable, as long as you add 'ANN'
    (for 'announcement') to the beginning of your subject line. This
    way people who are not interested can easily skip past your post."
    So, maybe you could change your topic title to read "ANN vCam
    blah blah". However, it really should be in the ActionScript 3
    forums, and not under general.

  • Beginner Question: controlling AS3 with Flex button

    Hi
    I am learning Flex and AS3 and was hoping someone here could
    tell me what I am doing wrong. I have a basic fLex application that
    plays an flv. For the purposes of my application I do not want to
    use a videoDisplay Flex component, so I am using an AS3 class to
    play the flv. Here is my flex application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import flash.display.Sprite;
    public var _video:Sprite = new simpleFlv();
    public function init():void
    rawChildren.addChildAt(_video,2);
    public function playPause():void
    ns.pause();
    ]]>
    </mx:Script>
    <mx:Button label="Pause" click="playPause()" right="10"
    bottom="10"/>
    </mx:Application>
    and here is my simpleFlv class:
    package
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.media.Video;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.display.Stage;
    public class simpleFlv extends Sprite
    public function simpleFlv(){
    var nc:NetConnection= new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    var vid:Video = new Video(320,240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    vid.smoothing=true;
    ns.play("foo.flv");
    ns.addEventListener(NetStatusEvent.NET_STATUS,netstat);
    function netstat(stats:NetStatusEvent):void
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object):void
    trace(meta.duration);
    ns.client = netClient;
    The video plays when I run the application without including
    the pause button, but I get the following error when I try to run
    the application as coded above:
    1120: Access of undefined property ns
    I know I am missing something totally obvious here. How would
    I code a flex button to tell the flv to pause when I press it?
    Thanks in advance

    Try this to add simple pause and resume features for a video
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import flash.display.Sprite;
    public var _video:simpleFlv = new simpleFlv();
    public function init():void
    rawChildren.addChildAt(_video,2);
    ]]>
    </mx:Script>
    <mx:Button label="Pause" click="_video.playPause()"
    y="10" x="403"/>
    <mx:Button x="472" y="10" label="Resume"
    click="_video.resumeVid()"/>
    </mx:Application>
    package
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.media.Video;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.display.Stage;
    import flash.events.AsyncErrorEvent;
    public class simpleFlv extends Sprite
    private var ns:NetStream;
    public function simpleFlv(){
    var nc:NetConnection= new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    var vid:Video = new Video(320,240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    vid.smoothing=true;
    ns.play("foo.flv");
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    asyncErrorHandler);
    private function
    asyncErrorHandler(event:AsyncErrorEvent):void {
    // ignore AsyncErrorEvent events.
    public function playPause():void {
    ns.pause();
    public function resumeVid():void {
    ns.resume();
    Vygo

  • Virus Killed Mute Button - Want to Re-Enable

    A virus fried the mute button on my A505, although I have mute functionality via the FN/ESC key.  BTW, it also killed my touchpad on/off button, which also works using the FN/F9 key.  Any ideas how to recovered use of these buttons?

    Satellite A505-S6965 
    Try uninstalling and reinstalling the TVAP.
       Toshiba Value Added Package for Windows Vista/7 (64)
    -Jerry

  • Trying to make a hyperlink with AS3 on Arcade button

    Hello all,
    I do not know really anything about ActionScript. I have completed a tut on it but that is all. I am trying to make a hyperlink from a classic arcade button but the code I found is apparently from AS2.
    My question is can anyone help me create this button for my website?

    Hi,
    Below is the AS3 code to navigate to adobe.com upon button(whose instance name is 'myButton') click
    myButton.addEventListener(MouseEvent.CLICK, gotoPageFunction);
    function gotoPageFunction(event: MouseEvent) {
    var request:URLRequest = new URLRequest("http://www.adobe.com");
    navigateToURL(request, '_blank');
    Thanks!
    ps: please mark this post as Answered if this is of help to you

  • AS3, Flash CS6 Button Issue

    I'm using the code below to have button "legalBtn" access the layer and instance name of "legalOverlay." Then after the legalese has been read, the enduser can close the "legalOverlay" via "closeBtn" and return to the last frame of the banner ad.  The code below has no compiler errors, but the "legalBtn" is still not working. Any ideas?
        import flash.events.MouseEvent;
        function init(){
            legalBtn.addEventListener(MouseEvent.CLICK, legalClick);
            legalBtn.visible=true;
            legalOverlay.clickthru.addEventListener(MouseEvent.CLICK);
            legalOverlay.clickthru.buttonMode=true;
            legalOverlay.closeBtn.addEventListener(MouseEvent.CLICK);
            legalOverlay.closeBtn.buttonMode=true;
            legalOverlay.visible=false;
            function legalClick(e:MouseEvent){
                if(legalOverlay.visible==true){
                legalOverlay.visible=false;
                } else {
                legalOverlay.visible=true;
        stop();

    Seems too easy, but I don't see that you're calling init() in order to actually add the listener to legalBtn.

  • Buttons in AS3??????

    I used to use a script like this in a frame on the timeline
    to add functionality to my buttons.
    btn_01.onRelease = function(){
    _root.targ_Main.loadMovie("oranythingelseineededthebuttontodo");
    Now in AS3 I have no clue!!!!!!!!!!
    And apparently you have to be some sort of uber programmer
    just to read the documentation. Can anyone tell me how to make a
    simple button work?

    leodsmith,
    > Now in AS3 I have no clue!!!!!!!!!!
    Yes, things have changed, but keep in mind, you don't *have*
    to use AS3.
    Your publish settings (File > Publish Settings) let you
    configure any FLA
    for ActionScript 3.0, 2.0, 1.0, and even older versions
    (precursors, really)
    of the language.
    > And apparently you have to be some sort of uber
    > programmer just to read the documentation.
    I realize it can feel that way, but there's a trick to
    figuring out the
    documentation, and it call comes down to something called
    classes. In a
    nutshell, classes are like recipes, or blueprints, for the
    objects you now
    and use every day in Flash. If you're using a button symbol,
    you're
    actually dealing with a button object; that is, an instance
    of the Button
    class in AS2 or the SimpleButton class in AS3. If you're
    using a movie
    clip, you're dealing with an instance of the MovieClip class,
    regardless of
    the version of AS. Text fields are defined by the TextField
    class. Sounds
    are defined by the Sound class, and so on.
    ActionScript 3.0 has a larger API (more classes) than
    previous versions,
    but it's structured the same way. For example, AS3 provides a
    set of
    companion classes for audio: Sound, SoundChannel,
    SoundTransform, and
    SoundMixer. AS2 only provides a Sound class. On the face of
    it, that may
    seem easier because it's less to deal with ... but every coin
    has two sides.
    In AS2, the concept of a sound channel is present (this is
    the thing that
    lets you differentiate between different "sound banks"), but
    there is no
    SoundChannel class. Instead, AS2 associates Sound instances
    with a
    particular timeline (that is, with a movie clip) ... so even
    if AS2 is more
    familiar, it isn't always as intuitive as it should be.
    Okay, back to classes. So classes define objects, and as a
    general
    rule, classes are categorized into three headers: Properties,
    Methods, and
    Events. Sometimes you'll see a few more, but those three are
    the main ones.
    Properties refer to an object's characteristics (width,
    height, number of
    letters, volume, etc.). Methods refer to things the object
    can do
    (gotoAndPlay(), setTextFormat(), attachAudio(), etc.).
    Finally, events
    refer to things the object can react to (mouse ups, the end
    of an audio
    file, the passing of a timeline frame, and so on.)
    So if you're looking up something about buttons, try the
    SimpleButton
    class in AS3, or the Button class in AS2 (usually, the class
    names are the
    same for both versions; this happens to be an oddball). Look
    up events, to
    see what sort of "can react to" opportunities exist for
    buttons, then check
    out the sample code. Granted, that may be easier said than
    done -- new
    stuff is always bewildering until you get familiar with it --
    but I hope
    that at least helps you get your bearings. Be aware that most
    classes
    inherit functionality from each other (just like genetics in
    humans), so
    when you see hyperlinks in the documentatoin for showing
    inherited
    properties, methods, or events, be sure to click them!
    In this case, as NedWebs correctly pointed out, you're going
    to use the
    addEventListener() method to associate a particular
    MouseEvent with a custom
    function. In principle, this is the same way it happens in
    AS2 (unless
    you're attaching code directly, which AS3 doesn't support).
    AS2:
    btn_01.onRelease = function() {
    // something to do
    Here, you're using an anonymous function (meaning, the
    function isn't
    named). You could also do this:
    btn_01.onRelease = clickHandler;
    function clickHandler() {
    // something to do
    ... which, on a certain level, is pretty much the same thing.
    Giving your
    function a name is arguably better, becuase if you ever need
    to kill that
    event handler, you can set it to null:
    btn_01.onRelease = null;
    ... and then, if you ever need to re-enstate that event
    handler, you can
    simply re-associate it with the same previously named (and
    already declared)
    function:
    btn_01.onRelease = clickHandler;
    So in AS3, you're doing the same thing:
    btn_01.addEventListener(
    MouseEvent.CLICK,
    function(evt:MouseEvent) {
    // something to do
    ... or, for more control, use a named function:
    btn_01.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(evt:MouseEvent) {
    // something to do
    See the similarities? In AS3, the event actually sends
    itself to the
    receiving function, which is where there's a parameter inside
    the function
    (I used "evt", but you can use whatever variable name makes
    sense for you).
    This parameter is typed as an instance of the MouseEvent
    class because, as
    you can imagine, it's an instance of the MouseEvent class.
    Like any other
    class, MouseEvent has properties (listed in the MouseEvent
    class), and one
    of those properties lets you refer back to the object that
    dispatched the
    event in the first place.
    It's all in there; you just have to dig a bit and see what
    your options
    are.
    Here are some links that might give you a hand:
    Colin Moock
    http://www.insideria.com/2008/01/actionscript-30-is-it-hard-or.html
    http://www.insideria.com/2008/07/the-charges-against-actionscri.html
    One of my blog entries ...
    http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3
    (written for Flash CS3, but it's about AS3, so it still
    applies)
    Obviously, these Web references are free, but you might also
    get
    something out of an AS2-to-AS3 migration book I recently
    co-authored for
    O'Reilly:
    The ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/2s28a5
    (only two Amazon reviews so far, but they're both 5 out of
    5)
    David Stiller
    Co-author, Foundation Flash CS4 for Designers
    http://tinyurl.com/5j55cv
    "Luck is the residue of good design."

  • How to send the Event Listener arguments in AS3?

    In MXML
    <mx:Button click="clickHandler();"
    mouseDown="downHandler(event);" mouseOver="overHandler(btn);"
    mouseMove="moveHandler('RAJAN');"/>
    but AS3
    var btn:Button = new Button();
    btn.addEventListener(MouseEvent.CLICK, clickHandler, flase,
    0, true);
    only this kind of AS3 event only added, any other possibility
    to pass the arguments to handler function.
    please help.

    From that link:
    If you define an event listener inline (inside the MXML tag),
    you can add any number of parameters as long as the listener
    function's signature agrees with that number of parameters.
    If you add a listener with the addEventListener() method (in
    ActionScript), you cannot pass any additional parameters to the
    listener function, and that listener function can declare only a
    single argument, the Event object (or one of its subclasses).
    To pass additional parameters to listener functions defined
    in AS, you must define the parameters in the listener function and
    then call some other method passing it the additional parameters in
    the call from the listener.
    You can also define your own custom events, and then you are
    free to define what args your event listeners take, and access the
    data from the event object.

  • Linking buttons to a URL

    I am tring to make a flash web site and i got stuck. i need
    to knew how to link a button to a URL. i resently switched to Flash
    CS3 but i am having to save all of my file as flash 8 files to get
    the action script to work. i usauly use AS1&2 i tried switching
    to AS1&2 in the CS3 file format but that did not work. So i
    need to now how to do it in AS1&2 fomat. Also if you now how to
    do AS3 code for buttons and sutch, i could really use some help.
    Thanks. <3

    use the Code below :
    replace your address with " YOR URL ADDRESS ".
    on(press) {
    getURL("YOR URL ADDRESS", _self);
    }

  • Flash as3 code in Cap 7

    I would like to add a flash AS3 movie and buttons in my Cap project that would goto certian slides. I've looked everywhere to find  some code that would help me on my way, but no luck. Can anyone here help?
    THanks

    If you create a new widget in Captivate it will supply with the code to access Captivate. This should get you there.
    http://www.infosemantics.com.au/widgetking/category/captivate-variables/

  • Major Problems with _self in AS3

    Okay, so I'm pretty much a self-taught Flash newb, so please bear with me if this question has an obvious answer.  I've searched different fixes, and none of them have worked.
    I am making a simple button in Flash CS4 with AS3.  The button has a hover effect and that's it.  I am wanting the button to link to a different webpage when clicked on in the same window.  I am using this code:
    Button.addEventListener(MouseEvent.CLICK, onMouseClick);
    function onMouseClick(e:MouseEvent):void
        var request:URLRequest = new URLRequest("http://www.mysite.com);
        navigateToURL(request, "_self");
    When I test the movie in Flash, it works fine.  It takes me to the webpage.  However, when embedded online, it does nothing.  I can click on it, and I will remain there on the same page.  Like it's just a pretty image with a hover effect and no link.  I've tested the button in both IE and Firefox, and it does not work in either.
    Now here's the funny thing....when I use _blank instead of _self, it works just fine in both Firefox and Explorer.  Any ideas of what I am doing wrong?
    Thank you.

    why you are adding the event listener to Button it is one of the cless names flash provides.
    Make sure
    You have the code where you have your button.
    you have named your button instance properly.
    and you attach your event listener to the instance with the same name.

  • Keyframe Caddy breaking VCAM Error: 5004

    I am new to Flash and I just started using extensions.
    I am trying to use Keyframe Caddy and VCAM AS3 but when I "Load keyframes" I get this error:
    Warning: 5004: The file 'C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\ActionScript 3.0\FP9\playerglobal.swc', which is required for typechecking ActionScript 3.0, could not be found. You may need to reinstall Flash.
    I have tried reinstalling Flash and it didnt work. And once I get that Error, it makes VCAM give the same error...but if I dont use Keyframe Caddy, VCAM works just fine.
    I know VERY little about the inner workings of Flash, so I don't know how to mess with AS or internal files...I am just hoping there will be someone out there who has seen this problem and found an easy fix, as I really want to be able to use both extensions.
    Thanks in advance!

  • Bizarre display/UI behavior scripting Entourage 2004

    Hello, Everyone!
    I’ve been working on this script a long time... it is designed to be used with Microsoft Entourage. In order to slim down the email database size, it saves attachments in a specified path (~/Documents/Archived Attachments/[current year]/[current date]), links the email to the newly saved version of the attachment, and then finally (assuming the save was successful) deletes the attachment from the email. I have a nearly identical version working with the older version of Entourage (version X), and it runs fine (mostly). However, this one, for the 2004 version of Entourage, has a really strange issue, which I can not figure out:
    As the script is running, even though no windows are told to open (in fact, the script closes ever Entourage window before it begins the archiving procedure), little portions of message windows start appearing here, there & everywhere on the screen. Not complete windows, just small pieces of windows. You can not close them by any normal means, as they are not normal windows. The only way I’ve found to get rid of all these little window pieces that show up is to use Exposé. Hit F9, then F9 again, and all the artifacts that were there are gone... but new ones show up shortly again.
    The code is below... and it is a ‘SAFE’ version. That is, the line where the script deletes attachments from your email is commented out, just in case anyone would be willing to try out the script to help me out. If you do, please do make a backup copy of your current Entourage identity, just in case, though I can say I’ve done extensive testing and have never had a lost/damaged email, attachment, database, or what have you.
    Can anyone tell me what I’m missing?
    Thanks so much!
    Features to add:
    Link archived attachment(s) to the message it came from. **DONE**
    Progress box (better yet, a bar) with constantly updating attachment count.
    Bugs:
    1) Throughout script, fragments of message windows appear for no apparent reason!
    Pre-Production Changes:
    1) Set duration before attachments are archived (6 months?)
    display dialog "Entourage is about to archive your attachments. You may continue working in other applications, but it is best if you can avoid using Entourage." & return & return & "Another message like this one will come up when the archiving process is complete." buttons {"Go!"} default button 1
    --declaration of global variables:
    global totalAttachmentCount
    --We're starting at 0 attachments archived.
    set totalAttachmentCount to 0
    --Generate the appropriate path to save attachments in:
    set svPath to createSavePath()
    tell application "Microsoft Entourage"
    try
    close every window
    on error errMsg number errNum
    display alert "Error: Failed close every window command." & return & errMsg & return & errNum
    end try
    try
    set outerFolders to every folder
    on error errMsg number errNum
    display alert "Error: Failure to set outerFolders to every folder." & return & errMsg & return & errNum
    end try
    try
    set outerFolderCount to (count outerFolders)
    on error errMsg number errNum
    display alert "Error: Failure to set outerFolderCount to (count outerFolders)." & return & errMsg & return & errNum
    end try
    try
    set todaysDate to (current date)
    my archiveandsave(svPath, outerFolders, outerFolderCount, todaysDate) --Main routine call
    set doneDate to (current date)
    set timeToRun to (doneDate - todaysDate)
    display dialog "All done!" & return & return & totalAttachmentCount & " attachments were archived in just " & timeToRun & " seconds." buttons {"Killer"} default button 1 with title "Spyder Attachment Archiver"
    open main window
    on error errMsg number errNum
    display alert "Error: Failure in archiveandsave sub call." & return & errMsg & return & errNum
    end try
    end tell
    -- SUBROUTINES SUBROUTINES SUBROUTINES SUBROUTINES
    on archiveandsave(savePath, outsideFolders, outsideFolderCount, todaysDate)
    tell application "Microsoft Entourage"
    repeat with i from outsideFolderCount to 1 by -1
    try
    set theFolder to item i of outsideFolders
    on error errMsg number errNum
    display alert "Failure to set theFolder to item i of outsideFolders." & return & errMsg & return & errNum
    end try
    try
    my extract_attachments(theFolder, savePath, todaysDate)
    on error errMsg number errNum
    display alert "Failure in extract_attachments call." & return & errMsg & return & errNum
    end try
    end repeat
    end tell
    end archiveandsave
    on extract_attachments(thisFolder, save2Path, todaysDate)
    set bogusPath to save2Path & "BOGUS:"
    tell application "Microsoft Entourage"
    try
    set thisFolderCount to (count folders of thisFolder)
    on error errMsg number errNum
    display alert "Error - unable to set thisFolderCount to (count folders of thisFolder). Setting folder count to 0." & return & errMsg & return & errNum & return & "Folder Name: " & (name of thisFolder)
    set thisFolderCount to 0
    end try
    try
    if thisFolderCount is greater than 0 then
    try
    set innerList to every folder of thisFolder
    set innerListCount to (count innerList)
    on error errMsg number errNum
    display alert "Failed to set innerList to every folder of thisFolder, or to set innerListCount to (count innerList)." & return & errMsg & return & errNum
    end try
    repeat with m from innerListCount to 1 by -1
    try
    set innerFolder to item m of innerList
    my extract_attachments(innerFolder, save2Path, todaysDate)
    on error errMsg number errNum
    display alert "Failure in recursive extract_attachments call." & return & errMsg & return & errNum
    end try
    end repeat
    end if
    on error errMsg number errNum
    display alert "Failure in repeat digging into folders, recursively calling extract_attachments subroutine." & return & errMsg & return & errNum
    end try
    try
    try
    set folderMsgs to every message of thisFolder
    set messagesCount to (count messages of thisFolder)
    on error errMsg number errNum
    display alert "Failure to set folderMsgs to every message of thisFolder." & return & errMsg & return & errNum
    end try
    repeat with k from messagesCount to 1 by -1
    try
    set thisMsg to item k of folderMsgs
    on error errMsg number errNum
    display alert "Failure to set thisMsg to item k of folderMsgs." & return & errMsg & return & errNum
    end try
    try
    set howOldIsIt to ((time received) of thisMsg)
    on error errMsg number errNum
    display alert "Failure to set howOldIsIt to ((time received) of thisMsg)." & return & errMsg & return & errNum
    try
    set howOldIsIt to ((time sent) of thisMsg)
    on error errMsg number errNum
    display alert "Failure to set howOldIsIt to ((time sent) of thisMsg)." & return & errMsg & return & errNum
    set howOldIsIt to current date
    end try
    end try
    try
    try
    set attachmentCount to (count attachments of thisMsg)
    on error errMsg number errNum
    set attachmentCount to 0
    display alert "Failure to set attachmnetCount to (count attachments of thisMsg). Setting attachment count to 0." & return & errMsg & return & errNum
    end try
    -- CHANGE THIS FOR PRODUCTION VERSION FROM 6 MINUTES TO 6 MONTHS OR 9 MONTHS!!!!!!!!!
    if (attachmentCount is greater than 0) and ((((current date) - (howOldIsIt))) > (minutes * 6)) then
    try
    set msgAttachments to every attachment of thisMsg
    end try
    repeat with l from attachmentCount to 1 by -1
    try
    set thisAttachment to item l of msgAttachments
    on error errMsg number errNum
    display alert "Failure to set thisAttachment to item l of msgAttachments." & return & errMsg & return & errNum
    end try
    try
    save thisAttachment in bogusPath
    set totalAttachmentCount to totalAttachmentCount + 1
    set attachName to name of thisAttachment
    set safeAttachName to my replacecolons(attachName)
    set newFileLocation to (save2Path & safeAttachName)
    link thisMsg to alias (newFileLocation)
    --Below is the DELETE ATTACHMENT line... please un-comment this for real use.
    --delete thisAttachment
    on error errMsg number errNum
    display alert "Failed to save thisAttachment in bogusPath." & return & "Message: " & (name of thisMsg) & return & "Attachment: " & (name of thisAttachment) & return & errMsg & return & errNum
    end try
    set thisAttachment to null
    end repeat
    end if
    on error errMsg number errNum
    display alert "Failure:" & return & errMsg & return & errNum
    end try
    end repeat
    on error errMsg number errNum
    display alert "Failure:" & return & errMsg & return & errNum
    end try
    end tell
    end extract_attachments
    --This subroutine simply creates and returns the path for saving attachments to
    on createSavePath()
    set todaysDate to (current date)
    --Format months for save path
    if (month of (todaysDate) as integer) < 10 then
    set theMonth to 0 & (month of (todaysDate) as integer) as Unicode text
    else
    set theMonth to (month of (todaysDate) as integer) as Unicode text
    end if
    set theDay to day of (todaysDate) as Unicode text
    set theYear to year of (todaysDate) as Unicode text
    set theDate to ((theYear) & "_" & (theMonth) & "_" & (theDay)) as Unicode text
    -- Try to create Archived Attachments folder, simply fails out if it already exists.
    set docsPath to (path to documents folder)
    try
    tell application "Finder"
    make new folder at docsPath with properties {name:"Archived Attachments"}
    end tell
    end try
    --Create a folder for the year
    try
    do shell script "mkdir ~/Documents/Archived\\ Attachments/" & theYear
    end try
    --Create a folder for today's archive.
    try
    do shell script "mkdir ~/Documents/Archived\\ Attachments/" & theYear & "/" & theDate
    end try
    set svPath to ((docsPath as text) & "Archived Attachments:" & theYear & ":" & theDate & ":") as text
    return svPath
    end createSavePath
    --This routine borrowed from Paul Berkowitz's 'Save Attachments 2004'
    to replacecolons(someText)
    set AppleScript's text item delimiters to {":"}
    set textItems to text items of someText
    set AppleScript's text item delimiters to {"-"}
    set someText to textItems as Unicode text
    set AppleScript's text item delimiters to {"/"}
    set textItems to text items of someText
    set AppleScript's text item delimiters to {"-"}
    set someText to textItems as Unicode text
    set AppleScript's text item delimiters to {""}
    return someText
    end replacecolons
    Mac OS X (10.4.10)
    MacBook Core Duo (2GHz)   Mac OS X (10.4)  

    Hi,
        i do not have the solution but there is some thigs that can help.
        You can use "Run\Stack Trace"(CVI/IDE menu) to check the way of program flow to actual (break) point.This can be useful to check if Ring callbak is called in time when your plot function i s already in run(assuming you call ProcessSystemEvents() or similar)
      When you found where problem is, you can eventualy protect you function or callback to be called in only one instance by something like this:   (not multithread safe)
    void func()
    static int runonce=0;
    if (runonce!=0)return;
    runonce=1;
    //... some code
    //... some code
    runonce=0;
    return;
       be careful to insert runonce=0; before any return; in function;
    Two tips about changed value of Ring:
        a)if control callback return value 1 , some event is swallowed and control change its value back like before the user click.
        b)maybe on some other place in program you call SetCtrlVal/SetCtrlAttribute with wrong panel handle/control value
           It seems to me that you use "Tab" control, maybe it is related to it, do you corectly get panel handle by GetPanelHandleFromTabPage on all places?

  • IE8 Error when opening Pop-up with Flash Content

    I am running into a problem creating a webpage.  I am very new to AS3 and not quite a novice at Dw CS3.  I have audio files and flash content that is downloadable from my page.  The audio is made available by clicking on a flash button that links to an mp3 or wav file.  The player then opens and plays the file.  I also created some flash animations that are accessed by flash buttons I also created and put on my webpage.  I added scripting (AS3) for those buttons that defines a pop-up window size and points to an html page to put into the pop-up window.  I'm really not sure if this script is the most efficient.  It probably isn't. The script is below: (Note: I could not paste it in so I retyped it.  Don't know why, but the script works even though there might be syntax errors below.)
          //define variable "jscommand" that has URL to open and pop-up window parameters
    var jscommand:String="window.open('Multiplication.html,'miniwindow','height=440,width=605,toolbar=yes,scrollbar=no');";
          //define variable "openflashURL" which runs "jscommand"
    var openflashURL:URLRequest("javascript"+jscommand+"void(0);");
          //define function "openflashdown" that initiates URL request
    function openflashdown(Event:MouseEvent):void{
    NavigateToURL(openflashURL,"_self"};
          //define button listener
    Mult_FlashPlayer_btn.addEventListener(MouseEvent.CLICK,openflashdown);
    The problem is as follows:  When I click on the flash buttons that use the above script, I get a pop-up window with the .swf in it and everything runs fine.  Next, when I click on an audio button, the mp3 file downloads and the player (Real) begins to play it.  But if I try to open up the flash animation again I get this error message from IE8 "Unspecified Error  Internet Explorer cannot download".
    I tried to find anwsers on-line and I found another person with a similar problem.  Their solution was to take the javascript code out of the flash button coding and put it in the html page directly.  I took the first line on code in the above and put it in the html code.  Dw did not recognize it as code but as text.  I don't know where to go from here.  Does anyone know what to do?  I'm a beginner so please be as clear as you can be.

    Try uninstalling your sound card driver in Device Manager and reboot your PC.

  • ThinkPad W530 Review

    Just wanted to give a heads up about a review of the W530 that's written by a user who owns the W520, so it's heavy on comparisons which is kind of helpful if you're familiar with that machine.  I'll quote the whole review below sans all the images to prevent bandwidth warnings!   Also truncated and removed some sections to get under the 20,000 character count limit Full review with images is here: http://www.laptopreviews.com/lenovo-thinkpad-w530-review-2012-07
    Just like last calendar year, Lenovo is ahead of Dell and HP in releasing a workstation equipped with the latest and greatest Intel Core processors and nVidia Kepler professional graphics. Starting at $1,299 on Lenovo.com (which is the same starting price as the W520 when it was introduced), the Lenovo Thinkpad W530 can be configured with processors ranging from the Intel Core i5-3320M to i7-3610QM to the top-end i7-3290XM, supports up to 32GB RAM and 270 nit 95% color gamut FHD display for demanding business customers. The W530 is like the W520 in many ways as a professional workstation laptop.
    The Thinkpad W530 under review comes with the following specs:
    Processor: Intel Core i7-3520M (2.9GHz, TurboBoost to 3.6GHz, 4MB L3 cache)
    Graphics: nVidia Quadro K1000M
    Memory: 8GB RAM DDR3-1600MHz
    Display: 15.6” 1600 x 900 resolution, matte finish
    OS: Windows 7 Professional
    Storage: 500GB 7200RPM
    Battery: 6-cell Li-Ion, 57Whr
    Wireless: Intel Centrino Advanced-N 6205
    Ports: Gigabit Ethernet, VGA, mini-DisplayPort, powered USB 2.0, USB 2.0, USB 3.0 (x2), combination headphone/microphone jack, ExpressCard slot (34mm), SDHC reader, 1394
    Weight: 5.95lbs (2.7kg)
    Keyboard
    Let’s just start off with the most obvious change. The new keyboard is the most radical change in the ThinkPad line since…forever, really. Up until now, the ThinkPad series has had the same keyboard style since introduction, with minor changes here and there. Replacing the traditional 7-row ThinkPad keyboard is the island-style 6-row keyboard, found on the whole range of ThinkPad's, from the 12” X230 all the way up to this 15.6” workstation.  Even with the changes, the surface of each key has stayed the same during the transition (1.5cm by 1.5cm for the alphanumeric keys) as well as the spacing between each key (roughly 0.4cm). Other keys, such as Caps Lock, Enter, Shift, Backspace, etc., have stayed the same size as well, though the Caps Lock key no longer has an indicator light. Notable differences include shape changes in the Esc key, Delete key, moving the power button from top-center to top-right, and the lack of a dedicated Menu key.  However, the most important changes in key layout are as follows:
    The layout of the “special keys” (Delete, Home, End, PgUp and PgDn) has been dramatically rearranged on the new keyboard
    The dedicated Forward/Back buttons are now gone.  These buttons used to be located to the right/left of the Up Arrow key and are now replaced with the PgUp/PgDn keys
    The Print Screen button is now located where the Menu button should be.
    The Scroll Lock and Pause buttons have disappeared, though they have been relegated to near-oblivion in today’s world
    And just for change’s sake (as far as I know), Lenovo decided to paint the Enter key black instead of the traditional ThinkPad blue and the Windows key is bigger on the W530 than the W520 (1.5cm squared vs. 1cm squared).
    To those coming from an older ThinkPad, the newer keyboards are either something to love or something to hate. The older keyboard in previous generations were renowned for their quality and keyboard feel (certainly, they were one of the best laptop keyboard on the market) and is so popular that it has an almost religious following among ThinkPad users. On the flip side, the newer keyboard has a lot to prove to the ThinkPad community. While the common-used alphanumeric keys have the same area and spacing as the old keyboard and the typing quality on it is above average (compared to other island-style keyboards), Lenovo’s choice to move and kill off some special function keys fly in the face of what most ThinkPad users would want. I love using the Forward/Back buttons while browsing the internet and using Windows Explorer, for example, but with the current and likely future ThinkPad's killing those buttons off, I will miss being able to navigate with just my right pinkie. The choice to move the Print Screen button to the bottom of the keyboard just baffles me, period. It would have been nice if Lenovo had kept the 7-row layout while designing the new keyboard and if the keys had stayed in pretty much the same positions during the change (for example, “special keys” staying in the top-right, bringing back the Forward/Back buttons), I wouldn’t make too much fuss over the new style even though I personally prefer traditional keyboards. At least the Fn button stays in the bottom-left corner, an odd quirk that’s been featured on ThinkPad's for as long as I can remember.
    Build and Design
    Just like the W520 before it, the newer W530 is a tough machine, built well and meant to last. The outside casing of the laptop is made using ABS plastic, while the inside contains an internal rollcage to protect internal electronics in case of a drop or other accident. It also makes the laptop all but impossible to flex (there’s maybe a millimeter or two of flex when twisting the display). There is a keyboard draining system that will protect the laptop in the event of a small liquid spill onto the keyboard as well. Sturdy, metal hinges attach the display to the body of the W530, and they are firm enough to hold any angle they are set up despite any typical vibrations or other movements, and if the W520 is any indicator, they will stay firm for years to come.
    As I’ve mentioned in my Thinkpad W520 review, Lenovo’s business laptops are certainly capable of withstanding a few drops onto the floor. Even with repeated drops, having the power brick fall onto the palm rest from several feet above, and traveling with the notebook unprotected in a backpack for just over a year, I’m sure that the W530 will be able to survive prolonged abuse for years to come.
    One thing to note about the W530 (and workstation laptops in general) is the power brick. The version with the K1000M GPU comes with the 135W power adaptor and it’s just slightly smaller and lighter than an actual brick of the clay variety, coming in at 6in by 2.5in by 1.4in and 1.83lbs. Those considering buying a W530 with the K2000M will receive the 170W power adaptor (like my W520), which measures 6.5in by 3in by 1.4in and actually weighs less (1.7lbs) oddly enough.
    Display
    While the review unit came with a 900p, 220 nit HD+ display, the W530 is also available with a 768p 220 nit display (which I recommend against; 768p needs to stay in netbooks and bargain-bin laptops, not workstations) and a 1080p, 95% color gamut, 270 nit FHD display. Depending on the configuration options, either the 768p is the default and the 900p is a $50 upgrade, or the 900p is the default; the 1080p display is a $250 option, though after owning a W520 with said display, I highly recommend it if it’s in the budget. Both the W520 and W530 use the same model displays.
    With the 1080p display to the left and 900p display to the right, the 50 nit difference shows. Compared to the HD+ display, the FHD appears to be noticeably brighter (though in photos, it shows as being more white-washed, though this is due to the camera and not the displays). Colors on the 95% gamut FHD are also more saturated than the HD+ display, though the HD+ display still has colors that pop out well. Black reproduction on either display is good, with both being very dark. Being TN panels, viewing angles on either is just average, though better than on glossy display found in most consumer laptops. Tilt either screen back far enough (they go just past 180 degrees) and colors turn into shades of black or extremely darker versions.
    Sound
    This is where the W530 makes the W520 look shameful. Owners of the W520 workstation laptop would either have to use an external speaker set, headphones, or have to perform modifications in order to have a laptop that sounds half-way decent. The W520 speakers were low volume (even when at 100%), had no depth, and would sound tinny when playing near 100% and/or playing high-pitch noises.
    In contrast, the W530 actually sounds amazing. In my review of the Thinkpad W520, I contrasted the W520 to a Dell XPS 15 with JBL speakers, concluding that the only way to get good sound from a W520 was to use a different sound solution from the internal speakers. However, I feel that the W530 can compete with media center laptops in terms of audio performance, a major plus over the previous generation Lenovo workstation. This is in thanks to different audio drivers (the W520 uses the Conexant 20672 SmartAudio HD drivers, and the W530 uses Realtek High Definition Audio) and Lenovo’s inclusion of Dolby Home Theater v4 software, which I went into detail about in the Ideapad U310 review. In a nutshell, this software includes a few factory-shipped sound profiles and settings appropriate for different usage scenarios, which allow a user to enhance voice quality (in the Movie profile) or to enjoy rich sound when listening to music (in the Music profile and various settings). While the W520 was tinny and lacked bass, the W530 can reproduce sounds from any pitch found in music and gives great bass for a laptop lacking a subwoofer.
    Software
    Unlike the previous W520, Lenovo’s ThinkPad W530 comes with a bit of bloatware out of the box. Of course, there is the typical trial AV software, Intel WiDi, and Microsoft Office Starter 2010, though this is to be expected in pretty much any laptop bought today. Also included is a trial of Nitro Pro 7, a PDF editing suite, and Corel DVD MovieFactory (Lenovo Edition). Lenovo also includes a cloud storage solution called “Lenovo Cloud Storage by SugarSync”. Skype is also included on the W530 and with the integrated camera, the video coming from the W530 user looks clear and colorful.
    Lenovo also includes some excellent software as well. My personal favorite is the Lenovo Power Manager 6, which is like the default Windows power manager on steroids. A user can change system settings (CPU deep sleep, display brightness, ODD power, etc.), idle timers (when to stop the HDD, dimmed display brightness, standby and hibernation), advanced settings (allow/disallow hybrid sleep and wake timers, power management for PCIe, USB, CPU, and system cooling), events and alarms. By default, it comes with six power profiles (Power Source Optimized, Max. Performance, Max. Battery Life, Video Playback, Energy Saver (which actually drains more power than Max. Battery Life, oddly), and Timers off (for when a user wants to use the W530 in a presentation).
    The best I can describe Lenovo SimpleTap as being is a Metro-like interface on top of Windows 7; either launching it from the Start menu or the blue ThinkVantage button on the keyboard will activate it, resulting in the traditional Windows desktop being replaced with a Metro-style tile system and a toolbar on the top-right corner. The user can always exit out of this interface by either pressing the Escape key or clicking on the SimpleTap background. The included Thinkpad-branded fingerprint software is also excellent, allowing for a simpler and more secure way to log into Windows; I use it exclusively on my personal W520, though there is a setting to allow a user to log in with a password en lieu of a fingerprint. Last but not least is the ThinkVantage Tools suite, which includes the above ThinkPad applications, plus: Password Vault, Update and Drivers, Airbag Protection (an active protection system for the HDD), Factory Recovery Disks, Messages from Lenovo, Enhanced Backup and Restore, Internet Connections System Health and Diagnostics, and Web Conferencing.
    In the case of a fresh Windows install, a user can always download the Thinkpad-branded software from Lenovo’s website. If anything, I recommend keeping the Power Manager software.
    Battery Life
    Not using Power Manager’s Battery Stretch, the Lenovo Thinkpad W530 was able to last six hours and 46 minutes while having the display brightness set to 5 out of 15 and only using the Intel GPU (Optimus disabled). The 6-cell battery was also able to last five hours and 25 minutes under those same conditions, but also included a 45 minute YouTube video. Using the same settings, but running solely on the K1000M, the W520 manages a battery life of three hours and 52 minutes.
    Out of curiosity, I tried installing my W520’s 9-cell battery into the W530, and while it fitted correctly, there were some issues. If a user tries booting with the older battery, the W530 will stop booting and display the following message:
    The battery installed is not supported by this system and will not charge. Please replace the battery with the correct Lenovo battery for this system. Press the ESC key to continue.
    What that means is that even if the W530 is plugged into its charger, the laptop will still not recharge the battery. This is because the older batteries lack an authentication chip inside of them (found in OEM batteries in the -30 series of Thinkpads). A user can still use an older battery with the system, but will have to find some other means to charge up other than the W530.
    User Upgradability
    If you know how to use a screwdriver, you can upgrade the W530 yourself with aftermarket parts. Lenovo, in a way, even encourages this by publishing their service manuals online. To access RAM slots 3 and 4 and to access the hard drive bay, all that’s needed is to remove the only two doors on the underside of the laptop, three screws total. This ThinkPad ships with a Hitachi Z7K500 500GB 7200RPM hard drive and no RAM in the last two slots (out of a total of four slots, allowing 32GB of RAM maximum).
    To gain access to the rest of the components, there are two additional screws located on the bottom that must be undone. One is located right next to the RAM module door (towards the front edge of the laptop) and the other is located within the RAM module area itself. When these are gone, all one needs to do to remove the keyboard is to slide it towards the display, lift from the bottom edge near the trackpad, and carefully move towards the trackpad. First thing I noticed was that the size, shape, and connector is the same for both the W530’s keyboard and W520’s keyboard, so it might be possible to put an traditional ThinkPad keyboard into this Ivy Bridge system. However, there are additional keys on the W520’s keyboard that are not found on the W530 (Screen Lock, Forward/Back keys, etc.) and the BIOS probably would not know how to handle those extra keys. Anyway, Lenovo ships out this particular system with two sticks of generic Samsung memory (4GB each), an Intel 6205 WiFi card, and a slot for either a WWAN card or mSATA SSD (only one can be installed at a time). If an end user must have both, they could install the mSATA SSD and use an ExpressCard 3G cellular data card externally.
    Conclusion
    Like its predecessor, the W530 is a functional workstation laptop that’s first out of the gate with an array of Ivy Bridge processors to choose from. It can pack up to an Extreme Edition i7-3920XM, nVidia Quadro K2000 GPU, 32GB of RAM, 1080p display, and up to three system drives -- mSATA SSD, primary HDD bay, and another drive if you replace the optical bay with an Ultrabay HDD caddy.  While not equipped with the more expensive options, our review unit is certainly a great workstation that will serve a professional well in any CUDA-based work (CAD, video or photo editing, graphics design, etc.). The most noticeable change between the W520 and W530 is the keyboard, and for a lot of potential buyers it will be a love it or hate it situation. For those buying into the ThinkPad line for the first time, it may not bother you too much. Those who are long-time ThinkPad users (such as myself) will probably be disappointed in the direction Lenovo has gone with the new design, but ignoring the odd arrangement of non-alphanumeric keys the new ThinkPad keyboard is actually a joy to type on. The curved keys fit well around the fingers, just like the old keyboard, and since the spacing between keys are the same it shouldn’t feel too different for those upgrading to a newer ThinkPad.
    If history is any indicator, the ThinkPad W530 should not only be the first Ivy Bridge mobile workstation, but will also be the lightest of the bunch as well (the W520 was 5.95lbs, Dell’s Precision M4600 was around 6lbs, and HP’s Elitebook 8650w started at 6.5lbs). My only objective complaint about the W530 (ignoring the keyboard) is that Lenovo did not introduce an option for users to purchase one with a FirePro professional GPU (Quadro’s competition), found in workstations offered by Dell and HP. For those that do not need CUDA, it would have been a great, cost-effective solution while still staying with the legendary ThinkPad line.
    Pros
    Business-quality durability
    Multiple storage drive options
    Over 6.5 hours of battery life
    IBM warranty support
    Vastly improved sound quality (compared to the W520)
    Cons
    No Forward/Back keys, other missing keys
    Cannot use previous-generation Lenovo OEM batteries

    I think no one "normally" working will use touch specific elements of Win8! Metro is one part of Win8, but i think normal desktop mode will be preferred by 99 %  of the users.
    With the new upcoming Microsoft Surface, touch might work well, but i just don't see myself touching my laptop's screen.
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------W520 4276CTO i7-2860QM Quadro2000M 1920x1080 16GB RAM - 160 GB Intel 320 SSD

Maybe you are looking for

  • Get all values from multi select in a servlet

    Hello, I have a multi <select> element in a HTML form and I need to retrieve the values of ALL selected options of this <select> element in a servlet. HTML code snippet <select name="elName" id="elName" multiple="multiple"> Servlet code snippet respo

  • How can I set up dynamic parameters in a CMC schedule?

    Just need some help to set-up a month-end schedule in CMC (Central Management Console ). The schedule will contain a number on Crystal reports. These report should be run for the month just gone. eg If the schedule is run on 30.09.14, I'd like the FR

  • Types of Mapping

    Hi Masters, I have Small Dought.. We have 4 Type of Mappings, <b>Genera Message Mapping, JAVA Mapping, XSLP Mapping and ABAP Mapping... </b> <b>My Dought is ...In which Scenarios we are using this all mappings....</b> Please give me Clear Idea... Reg

  • Error Message on Redirect

    Hi all, I have configured an error page in web.xml when an error occurs - e.g. the file size limit exceeded. This is a plain html page as I have not found a way to use a jsp. Is it possible to give a detail error message? I want an error page similar

  • Problem with PDF export format

    Using Mavericks and the latest version of Numbers, I have a problem when exporting a spreadsheet as a PDF.  The spreadsheet is very simple and everything in it is formatted with a border around each cell (more like a 10 line/10 column table with bord