How to attach a Callto Link to a swf-file?

Hi,
I'm currently working on an animated skype button (swf-file) which I included into my website and I'd like to attach the following command to it:
Callto://myskypeid
It would be perfect, if - when hovering on it - it shows that it contains an active link (showing the "hand") and when clicking on it, it calls the user's skype app. to phone me on skype
So, in the adobe tutorials I found the following code for inserting a "hyperlink" to a button.
import flash.events.MouseEvent;
function gotoAdobeSite(event:MouseEvent):void
   var adobeURL:URLRequest = new URLRequest("http://www.adobe.com/");
   navigateToURL(adobeURL);
linkButton.addEventListener(MouseEvent.CLICK, gotoAdobeSite);
I customised the code:
import flash.events.MouseEvent;
function openskype(event:MouseEvent):void
   var Skype:URLRequest = new URLRequest("Callto://myskypeId");
   navigateToURL(Skype);
linkButton.addEventListener(MouseEvent.CLICK, openskype);
But the problem is that there occur "linkbutton not defined property or method" errors when running the code.
My swf or rsp. my fla file contains 10 movieclips which run one after another on the timescale, all in different layouts so that the colour changes during the "run".
I tried it with the first movieclip - layer1 - and named its instance "linkButton".
Didnt work.
Then I tried to insert another layer and attached another picture with alpha=0, converted it into a button and gave its Instance the name "LinkButton", but also didnt work.
Can someone please help me here? I suppose its just a "small" mistake and I couldn't be "so far away" from succeeding...
That would be great! Thanks for the help in advance!!

Hi Ned and all the others,
ok ...the problem isn't really fixed so far.
But the first step is done! :-) with the following code:
import flash.events.MouseEvent;
function openskype(event:MouseEvent):void
   var Skype:URLRequest = new URLRequest("Callto://myskypeId");
   navigateToURL(Skype);
linkButton.addEventListener(MouseEvent.CLICK, openskype);
I replaced the "Callto://myskypeId" with "skype:myskypeId?call" as the first syntax shows a wrong Skypname resp. the name will be shown with a "/" in the end.
But now i'm faced with the problem, that
1st: there's no "hand" shown, when hovering the button on the website.
2nd: I have to doubleclick on it to open the skype application.
3rd: after i doubleclicked on the button there opens up always an additional blank page shown in the browser. And now I try to fix that - I tried it with navigateToURL(Skype, "_self"); or "_parent" and so on...but didnt work.
Meanwhile I think the because of not all of the pictures - MCs - are attached to the instance of "linkButton" that there's the missing "hand" when hovering with the mouse the button. On testing i found out that some of the pics are still bitmaps although i converted them all in the beginning to MCs (??dont know what i did there...).
Think the "missing hand" problem will be fixed more easily.
The bigger problem is, how to avoid the additional blank page in the browser when clicking on the swf on the website?
It seems to me, that on the one hand, I'd like to have an "active" link on that swf (or button) that shows the "hand" in the mousepointer - but on the other hand, it's not really a website which I'd like to open up then but just an application. So maybe here's the main problem.
Alternatively I thought about replacing the sequence with the URL request in the code by something rather appropriate for lauching applications e.g. FS Command or something like that. (read that somewhere).
If someone knows/had similar problems/could help me again - or at least to the next step that would be perfect!
Thanks again, Ned for your helping advice (I learned something!!!) - maybe you could help me with the above probs?
Best regards
steff

Similar Messages

  • How do you add a link to a .swf file?

    Is there a way to add a link/URL to a .swf file, without embedding into the original .fla file?
    Is there any way to do that with just the .swf file alone, and without actually editing the .fla or re-creating it?

    I won't be providing lessons, but here's the basics...  to load the other swf file using AS3 you will use code like the following in the main timeline...
    var my_loader:Loader = new Loader();
    my_loader.load(new URLRequest("theOther.swf"));
    addChild(my_loader);
    addChild(myBtn); // described next but coded here
    To add a link, you can create an invisible button and place whereever you like in the timeline, or if its a text link you can assign the link to the dynamic textfield via the properties panel.  To create an invisible button just create a button symbol and draw a shape for it only in its Hit frame, leaving all other empty... that way you can still see the button to work with it on the stage, but it will be invisible when the file plays.  You could also have the button include text or any other visual you desire if you don't need/want it to be invisible.
    If you use the button approach, then you need to assign the button an instance name (I use "myBtn" for this example)  Then you have to assign an event listener and event handler function for the button...
    myBtn.addEventListener(MouseEvent.CLICK, clickBtn);
    function clickBtn(evt:MouseEvent):void {
         navigateToURL(new URLRequest("http://www.yourlinksurl.com/etc"));
    The reason I addChild for myBtn after I addChild the Loader is so that it will sit above the Loader.  Without that line, the Loader would have the loaded swf sitting atop the button blocking access to it.
    If you plan to use a Textfield instead of a button, then you don't need the event code but you still need the addChild() line to bring it in front.  As mentioned already you can link it via the properties panel field for a link.  To make life simple per these instructions just assign the textfield an instance name of myBtn.

  • How can I create a link from a CHM file to a webhelp file?

    How can I create a link from a CHM file to a webhelp file?
    The CHM output (accreditation.chm) is stored in a parent directory, and the webhelp output (index.htm) is stored in a child directory.

    Open the usual Link dialog and enter the relative path from where the CHM will be installed to where the webhelp will be installed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do you make a link in a .pdf file? (Adobe Acrobat 8 Professional)

    Dear Adobe Acrobat Forum,
    I would like to add a link to my .pdf file.
    Once clicked on, I would like the link to send the user to another place in the same .pdf file
    or open a separate .pdf file.
    I've tried to resolve this on my own by going to both Acrobat help section and the InDesign help section as well as Googling "Acrobat 8 link" or something similar.......but to no avail.
    So, can you please tell me how I can add a link to a .pdf file?
    I'm using Adobe Acrobat 8 Professional.
    I have been creating .pdf files using the File > Export feature in Adobe InDesign CS3 (for the Mac).
    Thanks!

    Have you tried in Acrobat 8 to:
    Choose Link tool.
    Then choose as shown on as on this Graphic
    Then when clicking next you should be greeted with this:
    Choose open a file or open a weblink depending upon what you want to do.
    You try some of the other choices. once you select what to do save as a copy and try. If This one doesn't work try some of the other choices in the first graphic. other panes will open up similar to second graphic except there will be other choices.

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • How to live stream vp6 from a browser/swf file.

    Hello,
    Currently we have a swf file application that runs in a browser and takes the live video stream from the camera on the computer and streams a live sorenson spark stream to the fms 3.5 server.
    Question is:
    How to live stream vp6 from the browser/swf file on the camera computer, instead of the sorenson spark. (We seem to be stuck only on sorenson spark).
    Thank you.

    Hi Vince,
    Jay has explained it about as best as can be done.  What you have now is a
    SWF that lives in a browser.  With Flix, you can eliminate the SWF
    altogether.  Or if there is logic that still will require the SWF, then both
    Flix and the SWF will live in the browser at the same time (and can talk via
    ExternalInterface).
    fyi .. When using Flix, if Flix does not eliminate the SWF altogether, you
    will remove from your SWF all logic for acquiring Camera and Microphone.  As
    Jay has reiterated, Flix Publisher will now be doing all that.
    If your SWF includes logic other than video/audio, e.g. maybe text chat,
    then you may need logic in your SSAS to associated the video from Flix with
    anything else from the SWF since each will have its own NetConnection to the
    FMIS application.
    In case it might help, following is On2's heavily commented JavaScript for
    invoking Flix Publisher:
    http://publisher.on2.com/fp_doc/3-1-5-5/samples/scripts/flixpub_conf.js
    And the full docs for the Flix SDK are here:
    http://publisher.on2.com/fp_doc/3-1-5-5/index.html
                    hth,
                    g

  • How to attach sound using link to any button?

    Hi,
    am using this code to call sound file after click on button.
    PAdha1.onRelease = function () {
    mySoundC = new Sound(this);
              mySoundC.attachSound("PAdhaSound1");
             mySoundC.start(0, 99);  //10 represents the number of loops
             gotoAndPlay("play2");
                          _global.myTaalLaya = "High1";
    My problem is I have more than 100 buttons and their own sound files.Now ,this buttons are on separet scene so, it creates separet image for each button and separet sound for each button which is in liblary.Now,my problem is there are huge sound files and button images.So,flash is not supporting this.It does not show .swf file(Output result).
    I think this is beacause of a lot of images and sound files.
    Is there any other way to call sound file through link function.Now sounds files are called through "linkage".from liblary.
    am using flash cs 5 with as 2.

    I found some refrance it,works.But another thing is every code i found is applied on button.But,I cant use this code b.coz I have n number of buttons,it will again create problem.Can u suggest me anything more?
    I want something like it will attch sound through folder path (link).And 1 button should abale to play more than 10 sounds with diffrent click.
    Thanks.

  • How can I create a link to download a file in Captivate?

    So, in my Captivate file, I want people to be able to download an XML file to their machine.  If I create a hyperlink to "open a file", then when a user clicks on it, captivate attempts to open the xml file in a browser window instead of downloading it.  I can't figure out how to use the download attribute for an href in captivate and I'm not sure if javascript to do this would execute properfly.  Anybody know the best way to accomplish a force download of a file from a captivate presentation (Captivate 6)?
    TIA.

    If you want to really do this so that it is consistent for all browsers, you'll need to implement this at the server level.  I did this with the Dynamic PDF Export Widget.  Typically, a PDF will be displayed in the browser, but I added the ability to download it instead.  It does require a PHP file (or some other server side script).  In the PHP file, you'll want to set the response header for Content-Disposition to "attachment"... that's the key.
    The elbow grease part has to do with managing how the browser handles the link.  You'll want the Captivate hyperlink to open a new window so that the student does not navigate away from your course in the current window.  But since you are opening a PHP file, you can inject javascript into the document of the new window/tab to close itself.  The download will still continue eventhough the window/tab was programmatically closed.  However, most modern browsers will automatically close the window/tab for you when downloading a file.  If you want to see an example of a PHP file that implements this, go ahead and download the trial version of the Dynamic PDF Export widget.  You'll see the create.php file in the zip package.
    http://captivatedev.com/2012/07/25/adobe-captivate-6-x-widget-dynamic-pdf-export/
    If you want to go simple as TLC Media Design suggested, just zip it and let your students unzip the xml file, or just rename the xml file with a .zip extension and tell them to rename the file back to .xml after downloading.

  • How can I create a link to a pdf file and show it in the same webpage or in a new tab

    It is no problem to create a link. But the formats are limited and  - unbelievable -  the pdf format is not supported??!
    Where are the parameter (_blank or _self) to show it for example in the same webpage or in a new tab??!

    PDF is media.  It is not a web document.  Your end users must have plug-ins and helper apps installed on their device to see PDFs in browsers.  Depending on their settings, the PDF file may or may not launch in the browser window.  On my system, PDF files download and launch inside Acrobat Professional; not my browser.
    The safest approach is to provide a screenshot on your page with a direct link to the PDF file so people can handle it as they wish.  See example:  http://www.adobe.com/manufacturing/3dpdfsamples/3dsolutions/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • How do you add a controller to a SWF file?

    I am a newbie.
    How would I add a controller for play and pause to a SWF
    file? I want to put several SWF files up on a website but want to
    be able to control them. Instead they all play once the web page
    loads.
    Please help.
    Thanks

    > What is need is a %LinksDir% variable.
    I have no client available with links redirected, but basically, this
    should result in a registry value containing the new path. Simply
    regedit and search for your "links" redirection path.
    Then use Item Level targeting "registry value" to store this path in a
    temporary variable that you can use in the target path for your shortcut.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How to get poster image (from_movie) when placing SWF file with JS?

    I am able to place the poster from movie (flv) file. SWF files seems to belong to Movie class. I can place the generic posters (standard, none and proxy_image), but not "FROM_MOVIE".
    I am getting the following error message:
    "Error 81926" "The poster image could not be changed to the requested image".
    I will attach my code (sligtly modified from the sample "placeMOVIE" which is coming with CS5) containing also code for other property settings to be tested.
    Hoping to find a good solution for this, thanks in advance!
    Erkki
    /PlaceMovie.jsx
    //An InDesign CS5 JavaScript
    //Shows how to import a movie  file.
    main();
    function main(){
        mySetup();
        mySnippet();
        myTeardown();
    function mySetup(){
        var myDocument = app.documents.add();
        myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
        myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
        myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
    function mySnippet(){
        var myDocument = app.documents.item(0);
        var myPage = myDocument.pages.item(0);
        //<fragment>
        //Given a page "myPage"...
        var myFrame1 = myPage.rectangles.add({geometricBounds:[72, 72, 288, 288]});
        //Import a movie file (you'll have to provide a valid file path on your system);
        var myMovie = myFrame1.place(File("~/Desktop/SWFsivut/a1.flv"))[0];
        //alert("myMovie.name: " + myMovie.name)
        //alert("myMovie.visibleBounds: " + myMovie.visibleBounds)
        var mySWF_bounds = myMovie.visibleBounds;
        myFrame1.remove();
        var myFrame2 = myPage.rectangles.add({geometricBounds:mySWF_bounds});
        var myMovie2 = myFrame2.place(File("~/Desktop/SWFsivut/01.swf"))[0];
        //alert("myMovie2.name: " + myMovie.name)
        //alert("myMovie2.constructor: " + myMovie.constructor.name)
        //alert("myMovie2.moviePosterType (DEFAULT), 1852796517 = NONE" + myMovie.moviePosterType);
        //myMovie2.moviePosterType = 1852796517; //NONE
        //alert("myMovie2.moviePosterType, 1852796517 = NONE: " + myMovie.moviePosterType);
        //myMovie2.moviePosterType = 2020623970; //STANDARD
        //alert("myMovie2.moviePosterType, 2020623970 = STANDARD: " + myMovie.moviePosterType);
        myMovie2.moviePosterType = 1298558310; //FROM_MOVIE
        //alert("myMovie2.moviePosterType, 1298558310 = FROM_MOVIE: " + myMovie.moviePosterType);
        //myMovie2.moviePosterType = 1299216505; //PROXY_IMAGE
        //Add a preview image. You'll have to provide a valid path on your system.
        //myMovie2.posterFile = "~/Desktop/SWFsivut/a1.flv"; // this path works with colons !!!!
        //myMovie2.posterFile = "EkinHD/SWFsivut/01b.jpg"; // this path dont with slahes !!!!
        //alert("myMovie2.moviePosterType, 1299216505 = PROXY_IMAGE !!!: " + myMovie.moviePosterType);
        //</fragment>
    function myTeardown(){

    ... still continuation to my question...
    You can put the poster for SWF using UI Media panel as shown here. So does this mean that there is a bug in a scripting environment?

  • URL, email links in Flash swf files shows up in search engine

    Hi, can you please help? I post this problem a while ago.
    My problem is: I developed a website in Flash 8 on the Mac.
    The Flash swf file is displayed via Dreamweaver doc. When I do a
    search and, when the site is found in Google, all the links used in
    the Flash swf file appears in the snippets below the main title. I
    would like to know where I'm going wrong, and how can I prevent
    Google from displaying the URL and email details.
    Do I need to use a preloaded, or do I need to put the Flash
    swf movie file in a table in Dreamwever.
    Many thanks,
    Blue_Mac

    >I don't know how this is happening then. Search engine
    spiders don't
    >read through compiled files like Flash.
    Thanks, this is reassuring. Although it seems to have done
    just that.
    The following action script is where the details are coming
    from. I've used the name 'whatever" as an example. I don't mind the
    URLs on view as much as I mind my email address because of security
    issues.
    on (release) {
    //Goto Webpage Behavior
    getURL("mailto:[email protected]","_blank");
    //End Behavior
    I'll check my files again to see if I've miss anything out -
    I have done this so many times already.
    Regards,
    Blue_Mac

  • How can I make a transparent square box swf file in flash cs4?

    Hi,
    I have one picture imported into flash cs4 and would like to make a rectangle box which should be transparent. Finally I will save it as .swf file for later use. But the box should be transparent (without any background). How can I do that? Please do help.
    Thanks.

    Hi just a shot in the dark..
    Have you fiddled with movieclips and the alpha property?
    Best regards
    Peter

  • How can i detect if the picture or swf file is produced from legal flash?

    I have recently bought images and swf files from a student for my website.
    I've just realized that the images and swf might be from pirated flash product because i found out that
    the original flash is really and i mean really pricey! I don't believe he bought an original product.
    How do i detect if it is from a legal product? I'm worried as i'm going to put it in my website.
    I can't get the guy who did this for me as he is in another country already.
    If it is possible to detect this and it is indeed from pirated product, how can i make it legal again?
    Please help.

    Hey Rob,
    Its the same question, just that i want to know if it is possible to trace the source if the file is an image.
    If it is not possible to trace the source be it a swf or an image file, then i will just upload it to my website.
    I wouldn't bother to check if it came from a pirated flash product.
    The image is created from flash 8 just for me. It is not downloaded from another source.
    Thanks.

  • Links missing in SWF file

    For some reason our linked areas don't appear in our swf
    flash file when viewed with computers that don't have the JAVA
    update. When these computers are updated, the linked areas
    suddently appear. Anyone know why? Is there a way to avoid this?
    I was assuming that Flash files only need flash plugins to be
    viewed in a browser.

    I think you need to add your local foloder to trust location of adobe security panel, try following steps:
    1. Open the swf.
    2. Right click and select Settings... and Adobe Flash Player Settings pops up.
    3. Click Advanced... and a new IE page opens (Adobe - Flash Player : Settings Manager - Global Security Settings Panel). Close the swf.
    4. On the left of the Adobe page, select Globel Security Settings Panel to open the panel.
    5. In the panel at right of page, select Always allow and add your local foloder which stores the swf file to the location box below.
    6. Close the page.
    7. re-open the swf and refresh the QaaWS connections.
    Now the BOE login dialog should be poped up.

Maybe you are looking for

  • How do i set up a dual boot with windows

    I am trying to set up a dual boot system with both the snow leapard and win 7,  I have partioned the drive and have windows booting up.  How do I get the drivers for the machine that windows will recognize.  I am researching this for my dad his I mac

  • How to place an image on the dashboard in obiee 11.1.1.5  version

    Hi All, I am using obiee 11.1.1.5.I want to place an image on the dashboard.Can anyone help me on how to achieve this. Thanks, Praful

  • Adjusting speed in iMovie 10.0

    I have been importing my Gopro 3 video directly into Imovie 9 without problems, once I optimized the video (which I did as part of the importing process) I could adjust the speed of the film, usually for slow motion shots, etc.  Now that I have upgra

  • "cannot find the scanner on the bus"

    I attached Epson 2450 scanner via firewire but when I open Photoshop I get the message "cannot find the scanner on the bus, Please ensure that it is switched on, ready to scan and that the cables are attached correctly." That message stays on top of

  • Driver update configuration error

    When i try to update my driver software for my iphone when registering to a non apple computer, it says that one of the drivers for my device cannot be installed. when i go into properties it says my device is not configured correctly so i cannot upd