GetUrl in a movie

Hi - I know this has to have been posted but I can't find it.
Sorry for the
duplicated post.
Its been a long time since I've done any coding.
I have a button within a movie - a box pops up with an error
message:
**Error** Symbol=partners_mc, layer=Layer 1, frame=5:Line 2:
')' or ','
expected
getURL(
http://www.hvac-consultants.com/default.asp);
Total ActionScript Errors: 1 Reported Errors: 1
This is my code:
on (release) {
getURL("
http://www.hvac-consultants.com",
"_blank");
Thanks in advance for the help!
Tim

Is this code on the button?
Put this code on the main timeline:
myMovieClip.myButton.onRelease=function(){
getURL("
http://www.hvac-consultants.com",
"_blank");
Dan Mode
*THE online Radio*
http://www.tornadostream.com
*Must Read*
http://www.smithmediafusion.com/blog
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
"Tim A. Setliff" <[email protected]> wrote in
message
news:eaom6i$1h7$[email protected]..
> Hi - I know this has to have been posted but I can't
find it. Sorry for
> the
> duplicated post.
> Its been a long time since I've done any coding.
>
> I have a button within a movie - a box pops up with an
error message:
>
> **Error** Symbol=partners_mc, layer=Layer 1,
frame=5:Line 2: ')' or ','
> expected
> getURL(
http://www.hvac-consultants.com/default.asp);
>
> Total ActionScript Errors: 1 Reported Errors: 1
>
> This is my code:
>
> on (release) {
> getURL("
http://www.hvac-consultants.com",
"_blank");
> }
>
> Thanks in advance for the help!
>
> Tim
>
>

Similar Messages

  • Right click on flash movie / SWF file

    Why we get flash default menu when i right click on a flash
    movie?.
    When i enable video bookmark (videomark). user is suppose to
    right click on flash movie and select videomark.
    is the flash default menu is customizable?. Please let me
    know.

    Here is a sample script to customize the right-click menu.
    Put it in frame 1 of your movie.
    var myContextMenu = new ContextMenu();
    myContextMenu.hideBuiltInItems();
    var thisTitle:ContextMenuItem = new ContextMenuItem("My
    prison movie", bla);
    var thisCredit:ContextMenuItem = new ContextMenuItem("created
    by Paris Hilton", bla, separatorBefore=true);
    var thisCopyright:ContextMenuItem = new
    ContextMenuItem("© My Intelligence Is Ltd.", bla);
    myContextMenu.customItems.push(thisTitle);
    myContextMenu.customItems.push(thisCredit);
    myContextMenu.customItems.push(thisCopyright);
    function bla() {
    //insert your function here
    this.menu = myContextMenu;
    The function can be anything: getURL, load a movie clip, turn
    sound on/off, etc. You can add as many ContextMenuItems as you
    want. Each one can have a separate function assigned. It seems that
    some sort of function is required by the class, so I use an empty
    function like in this example if I want nothing to happen when the
    user clicks the menu item.

  • EXE to fullscreen w/ pdf links?

    Hi, I'm using the code fscommand("fullscreen", "true"); to
    make the movie jump to fullscreen, but whenever i use the getURL
    command the movie gets knocked back out of fullscreen mode.
    I'm using CS3. If i convert the movie to FLash 8 then it
    plays fine.
    Can anyone help to get round this issue? Thanks in
    advance

    Here is a work around
    http://www.flashjester.com/?section=faq&cPath=14_56_26#414
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Automatically getURL at the end of a movie?

    I’ve been using Swift3D to create a splash page.
    I’ve imported the movie into Flash and worked out how to
    [stop();’] my movie from repeating. At the end of the movie I
    want it to another webpage in the same window.
    I’ve tried adding the getURL script in the last frame
    of my movie but I get this error in the output window:
    **Error** Symbol=movie.swf, layer=Layer 1, frame=59:Line 1:
    ')' or ',' expected
    getURL(http:/www.mysite.com/);
    The movie plays but the [stop();’] action is ignored
    and the movie continues to loop. I’ve tried putting the
    getURL before and after the [stop();’] action but I get the
    same error.
    So what am I doing wrong? I’m really new to this.
    Trying to learn DremWeaver at the same time and my head is fried.
    Can someone help?
    Many thanks in advance.
    s

    Thanks Rapatski & dzedward it works but I now get an
    error saying that Flash Player has stopped a potentially unsafe
    operation. The following local application on your computer or
    network is trying to communicate with this internet-enabled
    location.
    Is this just because I’m testing the file on my local
    desktop? Will this error go away when I upload my files to a
    server? Or is there a way of changing the security settings in my
    Flash movie?

  • GetURL AFTER movie plays

    i'm trying to play a .flv file that is called from within a
    .swf
    i've got that part working using flash by just importing the
    video into scene 1. it plays the video.
    now when the video has finished playing -- and not until then
    -- i then want to do a getURL to splash.htm in order for the viewer
    to be taken to another page on the site where there is a nice
    looping graphic for them to see but only AFTER the video has
    finished playing
    i don't know where to put the getURL. i assume i'm not
    expected to figure out precisely on which frame number the movie is
    going to finish playing and put the getURL there right?
    isn't there a way for it to do the getURL after and only
    after the .flv movie has finished playing, whenever that may be?
    as it is now, it does the getURL before the video has
    finished playing with the frame i've got it on now or if i put the
    getURL in the next scene it just does the getURL before the video
    has had a chance to play through
    is there a way for it to know that the video is playing and
    not launch the getURL until it's done?
    i'm looking for a way to do this using the guided script, i
    don't know code

    How am I playing it? I opened up a New Flash Document in
    Macromedia Flash Professional 8. I did a File > Import Video and
    then specified the .flv file and opted for 'Progressive Download
    for a Web Server' option. It processed that and I had a video on
    the stage, that's it.
    Then File > Export Movie creates a .swf file that
    apparently automatically calls and plays the .flv file. I didn't
    add any code or actions or anything and it plays.
    Does that tell you how I'm playing the video or might I be
    leaving something out?
    I looked up NetStream.onStatus but I don't know code and it's
    pretty Greek to me...what exactly am I supposed to do to get it to
    do a getURL action after the movie has played? I'm not even sure
    where the code would go, like on which frame...within the same
    scene where the video is playing I assume?
    For comparison on ease of use, the swishvideo program I was
    using has a toggle button on the export options that you just click
    and then type in the URL you want launched, so this is pretty far
    removed for me in terms of complexity...

  • GETURL not working in exported movie

    I hate to beat a dead horse but I'm at my wit's end. I've
    tried everything I have read online and it still doesn't work...
    I have created a keyframe at the end of my flash with...
    getURL("www.blahblahblah.ca/underconstruction.html");
    I export the flash and then in my web page builder I add a
    flash to the main site www.blahblahblah.ca/index.html
    the flash plays wonderfully but then the next page doesn't
    load.
    all I want to do is have a webpage come up AFTER the flash
    plays.
    somebody please help !!!!

    make sure you put
    http:// before www.blahblahblah.ca/index.html
    maybe thats why it doesn't work

  • (Click and move to next scene).  Need help with a simple action, just need a little guidance.

    I am building a simple flash movie clip in Flash cs4. All I want to do is run the play head through a one 5 frame scene and stop, and then you press a button that will send the play head to the next 10 frame motion tween scene.
    When I run the movie all I get is a movie clip that pauses for a millisecond then loops back around.
    I have three different books on flash action script, read all three still not doing so hot. I am using the navigational button concept maybe that is what I am doing wrong. Can someone show me the right method or lead me in the right direction.
    farosgfx ( [email protected] )

    You can just place an invisible button on the top layer of
    the flash time line and code it to getURL. When you said "hyperlink
    to another page", are you referring to an html page or another swf
    file? To make an invisible button in Flash, you can hit Ctrl+F8 to
    bring up the dialog box to create a new symbol, name your button,
    make sure you select the type of button, hit ok, now you are inside
    the button and need to create a "hit" area. Click on the "hit"
    state and press F7 to create a blank key frame. Using the drawing
    tools, select the square, no stroke, and any fill color you want,
    draw a square shape, click on the shape and in your Info Panel,
    change the size of this shape to match the size of your stage,
    lastly, make sure the registration point is (0,0) by using the
    Align Panel. Go back to your main time line, add a layer on your
    time line and make sure it's at the top, drag your new button from
    the library to the stage and align it to (0,0).
    There are two ways to code the button, so to make it easier,
    click on the button once to select it, hit F9 to bring up the
    actions panel and type this
    on(release){
    getURL("
    http://www.someWebsite.com",
    "_blank");// you can also use "_self" //
    If some of this isn't new to you, disregard parts of it. If
    you have any buttons in your Flash application, this will cause
    problems because the invisible button will counter-act anything
    below it. Let me know if this works for you. Of course, this all
    assumes you have access to the flash file.

  • Force flash to open file download box in front of the flash movie

    Folks,
    I'm making a dvd title using flash to auto start when people
    pops the dvd disc in.
    I have a button 'Click here to download the movie' and
    clicking the button should pop up a file download box so people can
    save the movie file(.mov) to their desktop.
    Problem is that the file download box shows up behind the
    flash movie so people won't be able to see the download box since
    it's hidden behind the flash. This is critical since I intend the
    flash to open as a full-screen mode.
    Is there a way to force the flash to open the download box in
    front of the flash movie?
    I tried getURL and fscommand ("exec", "filename.exe") and
    even fileReference commands to try different way of linking the
    movie file, and they all open download box behind the flash.
    Please help~~~

    Please do not post the same topic in multiple forums. The
    only thing I can suggest is when they click on the button to
    download, you take flash out of full screen while they download the
    video, you can use fileReference to control and monitor the
    download. Use a listener object to monitor when download is
    complete, then set flash back to full screen.
    How are you scripting the full screen?

  • New browser window from single movie frame?

    Sorry but I am a total newbie>
    I have a 4 frame movie imported into one layer and want to
    specify a different URL to be opened in a separate window for each
    frame. So I have made each frame a keyframe and added from the
    behaviors a geturl event for each frame. When this is published it
    loops the movie and opens a new browser window for every frame for
    every loop, resulting in dozens of browser windows. How can I make
    this a mouse clickable event so only when I click on a frame will
    the new browser window launch?
    I am trying to use onrelease, but I am not sure how this
    should work as I can't find a good example.

    1) you can't 'click on a frame' in the SWF file when it's
    running, you must click on a 'button' or 'movieclip' instance the
    you construct ON a particular frame, or all in the same frame with
    different buttons on theStage.
    2) you need to add a 'stop()' action to your actions layer to
    stop the SWF from 'playing' which is why it continues to open more
    windows, MovieClip timelines play and loop by default.
    3) more information that you will ever need is located in the
    Flash Help files(F1) along with many tutorials to learn the basic
    concepts, open them and go to 'Getting Started in Flash' to learn
    some basics.

  • GetURL not working when swf is loaded into another swf

    Ok, I need some help for something relatively simple which
    for some reason I've not been able to find any information on at
    all?
    Hopefully it will be something easy to fix.
    Essentially I have the following:
    my main movie "Home.swf"
    another movie "Sub.swf"
    I've loaded "Sub.swf" into "Home.swf" via an empty movieclip.
    Within "Sub.swf" I have some links which when clicked call
    getURL and open a HTML page in the browser.
    But for some reason the getURL isn't working and I believe
    its because the getURL is called from a loaded movie within
    "Home.swf".
    I've tried changing the actionscript to:
    _root.getURL('/mypage.html');
    _parent.getURL('/mypage.html');
    but neither (_root / _parent) seems to work?
    Need help here please.
    Many thanks.
    Kind regards,
    M.

    Hi kglad,
    Yes the button is definitely firing ok.
    In the "Sub.swf" movie, on the second frame of the timeline
    (the first frame is some preloader code) there is the following
    code:
    imgMC.mascara.onPress = function() {
    //trace('mc[activo] = ' + mc[activo]);
    switch(mc[activo])
    case _level0.imgMC.MC0:
    trace('0 - ' + mc[activo])
    break;
    case _level0.imgMC.MC1:
    trace('1 - ' + mc[activo])
    break;
    case _level0.imgMC.MC2:
    trace('2 - ' + mc[activo])
    break;
    case _level0.imgMC.MC3:
    trace('3 - ' + mc[activo])
    break;
    case _level0.imgMC.MC4:
    trace('4 - ' + mc[activo])
    break;
    case _level0.imgMC.MC5:
    trace('5 - ' + mc[activo])
    break;
    If I run this movie in Flash (ctrl-enter) then the trace
    works fine.
    But the trace stops working when I run the main "Home.swf"
    movie in Flash (ctrl-enter) when the "Sub.swf" is loaded into an
    empty movie clip.
    And when I change the trace for a getURL and test in a
    browser it still doesn't work?
    What do you reckon?
    Thanks.
    M.

  • Help needed to rewrite code so main menus move down to make way for subs

    Can anybody please help me (slightly) alter some code.
    I am working on a vertical menu with sub's and need to alter the AS so that when a sub menu is selected, the main menus below it move down to accommodate the new sub menu.
    This is the code I am currently using is
    GenerateMenu = function(container, name, x, y, depth, node_xml) {
        // variable declarations
        var curr_node;
        var curr_item;
        var curr_menu = container.createEmptyMovieClip(name, depth);
        // for all items or XML nodes (items and menus)
        // within this node_xml passed for this menu
        for (var i=0; i<node_xml.childNodes.length; i++) {
            // movieclip for each menu item
            curr_item = curr_menu.attachMovie("menuitem","item"+i+"_mc", i);
            curr_item._x = x;
            curr_item._y = y + i*curr_item._height;
            curr_item.trackAsMenu = true;
            // item properties assigned from XML
            curr_node = node_xml.childNodes[i];
            curr_item.action = curr_node.attributes.action;
            curr_item.variables = curr_node.attributes.variables;
            curr_item.name.text = curr_node.attributes.name;
            // item submenu behavior for rollover event
            if (node_xml.childNodes[i].nodeName == "menu"){
                // open a submenu
                curr_item.node_xml = curr_node;
                curr_item.onRollOver = curr_item.onDragOver = function(){
                    var x = this._x + this._width -76;
                    var y = this._y + 55;
                    GenerateMenu(curr_menu, "submenu_mc", x, y, 10, this.node_xml);
                    // show a hover color
                    var col = new Color(this.background);
                    col.setRGB(0xf4faff);
            }else{ // nodeName == "item"
                curr_item.arrow._visible = false;
                // close existing submenu
            curr_item.onRollOut = curr_item.onDragOut = function(){
                // restore color
                var col = new Color(this.background);
                col.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});
            // any item, menu opening or not can have actions
            curr_item.onRelease = function(){
                Actions[this.action](this.variables);
                CloseSubmenus();
        } // end for loop
    // create the main menu, this will be constantly visible
    CreateMainMenu = function(x, y, depth, menu_xml){
        // generate a menu list
        GenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
        // close only submenus if visible durring a mouseup
        // this main menu (mainmenu_mc) will remain
        mainmenu_mc.onMouseUp = function(){
            if (mainmenu_mc.submenu_mc && !mainmenu_mc.hitTest(_root._xmouse, _root._ymouse, true)){
                CloseSubmenus();
    // closes all submenus by removing the submenu_mc
    // in the main menu (if it exists)
    CloseSubmenus = function(){
        mainmenu_mc.submenu_mc.removeMovieClip();
    // This actions object handles methods for actions
    // defined by the XML called when a menu item is pressed
    Actions = Object();
    Actions.gotoURL = function(urlVar){
        getURL(urlVar, "_blank");
    Actions.message = function(msg){
        message_txt.text = msg;
    Actions.newMenu = function(menuxml){
        menu_xml.load(menuxml);
    // load XML, when done, run CreateMainMenu to interpret it
    menu_xml = new XML();
    menu_xml.ignoreWhite = true;
    menu_xml.onLoad = function(ok){
        // create main menu after successful loading of XML
        if (ok){
            CreateMainMenu(10, 10, 0, this);
            message_txt.text = "message area";
        }else{
            message_txt.text = "error:  XML not successfully loaded";
    // load first XML menu
    menu_xml.load("menu1.xml");
    Any help/feed back - even if its just to tell me Im asking for too much, would be incredibly appriciated.

    onclipevent(load)                                           
    total=_root.getbytestotal();                             
    onclipevent(enterframe)
    loaded=_root.getbytesloaded();
    current=int(loaded/total*100);
    p=""+current+"%";
    if(loaded==total)
    gotoandplay("Scene 2",1);
    sorry for getting the code and coment mixed up.

  • Can an swf movie be opened on a specific frame?

    When I call up an Flash-generated swf movie in its own
    browser window via a navigation bar button, it always open on its
    first frame. Is there a way to tell the browser in conjunction with
    the getURL command to open at a specific frame other than frame 1?
    I can't find an Actionscript code sample that allows this while
    using getURL. Or is there some other way -- e.g. appending the swf
    file with frame number in its HTML page in some way, using
    Javascript, FSCommand, etc?
    Jody

    Maybe this will help
    http://www.adobe.com/devnet/flash/articles/deep_linking.html

  • Buttons in movie clip don't work consistently

    I'm using Flash navigation in Dreamweaver. Most of the
    buttons work, except for a bunch that are in a movie clip. They
    sometimes load the right page, sometimes not at all. I'm using
    Flash CS3 and ActionScript 2.0.
    This is what I have on the buttons:
    on (release) {
    getURL("This is where I have the URL", "_self");
    }

    first and foremost. For testing, add a trace to your
    function.
    on(release){
    trace("The release is triggering");
    getURL("TheURL","_self");
    If this traces out when you test the movie, then you know
    that the release is getting triggered. If it does not, then it is a
    problem with the release not getting triggered.
    If it is getting triggered, then the problem is in the getURL
    statement. I would try _root.getURL(); to force the getURL to
    happen on the main timeline.
    If it is not getting triggered, then I may consider using
    timeline actions in the root timeline. To do this, give the
    movieClip that they are embedded in an instanceName, and give each
    button an instanceName. Then use code like the following on the
    first frame of the root timeline:
    myMovieClip.myButton.onRelease = function(){
    getURL("TheURL","_self");
    }

  • Animated drop down buttons not working in movie clip

    Hi,
    I am working on this site: (AS2)
    http://www.steamandclean.com/Index_w_1.html
    I have two types of drop down menu. One under Commercial and one under Technical
    The buttons are movie clips. The drop downs are also movie clips that start in frame 2 and are triggered on rollover.
    The child buttons are buttons living on the drop down movie clips. They are set to getURL
    As you see they are not willing to neither link to any url or will they run their move clip animation. One is a button and one is a movie clip.
    The left movie clip has a mask, but it makes no difference if I remove the mask . It also has a emboss filter and no difference is I take that away either.
    All of it is in one flash movie right now, but I will be splitting it up in a master navigation movie and individual swf's soon.
    Right now I have the main movie, then the button MC then the dropdown MC and in the drop down MC I have placed either a animated (button) MC or a button. So it nested in nested in.......
    In both cases I scripting the child buttons like this:
    on (rollOver) {
    gotoAndPlay(2);
    on (rollOut) {
    gotoAndPlay(6);
    on (release) {
    getURL("http://steamandclean.com");
    I have also tried to use
    _parent.getURL and _root.getURL in stead of just get URL, but it does not work.
    The drop down buttons seem to be buried. In the left side the whole drop down panel seems to act like a link?
    What am I doing wrong?
    Can you help?
    ggaarde

    Hi Ned
    Thank you for your reply again.
    I figured it out.
    Your reply prompted me to have my main button on rollover to go to a frame number on the main time line and then move the content of the drop down movie clip to that frame.
    The drop down panel now work and the child buttons animation now work as well. I just had to find a way to make the drop down panel disappear on rollout. Since I could not script the actual drop down panel I created three skinny invisible buttons and placed them on the right, left and button of the drop down panel. I scripted them to go back to frame 1 on both rollover and rollout. Done.
    See the result there:
    http://www.steamandclean.com/Index_w_1.html
    (Left side only)
    Thank you for your help.
    ggaarde

  • Do Flash getURL links work when SWF is embedded in Director?

    I’ve got a simple test rig that says no, the links
    won’t work. Anybody get this to work?
    My test rig has two buttons in Flash, one gets a pdf from a
    remote server, the other opens a local PDF on my hard drive.
    When played from the Flash player the local link works fine,
    the remote link looks like it would work if I were willing to
    change my security settings and restart.
    When embedded in Director both links are inactive.
    And, although this is not terribly relevant, when the SWF is
    played remotely through a browser, the remote link works

    Your Flash .swf is expecting to be housed in an HTML doc, and
    so a getURL function is trying to reach out to the browser. When
    you import your .swf into a Director movie, that Director movie is
    taking the place of the browser window. So your function fails to
    reach a browser. This is compounded if you are playing the .swf
    from a Director projector as there's no browser immediately
    available.
    There is a simple solution. You can use the on getURL
    me,string function in Director to intercept the url.
    So, if your Flash movie has something like this:
    myButton.onRelease = function() {
    getURL("www.disney.com",_blank);
    Then in your Director movie, write a behavior something like
    this:
    property thisSprite
    on beginSprite me
    thisSprite = me.spriteNum
    end
    on getURL me,link,target
    gotoNetPage link,target
    end
    Then attach that behavior to the Flash sprite.

Maybe you are looking for

  • How do I switch Apple ID users to get music from one computer to an iPad?

    My iPad doesn't let me change my Apple ID to let me sync music and I don't know if deleting the current account on the iPad will permanantly delete it, which I do not want to do....... How can I switch users without deleting the current one?

  • Minecraft not working after previous deletion.

    I had recently cleared out some space on my SSD, and Minecraft was deleted with it. I had deleted not only the .app file but also the folder under "application support." Now, upon re-downloading the .zip file and attempting to execute the .app an err

  • Oracle 11g OMS: Database Instance Home Tab:  Page Refreshed Timezone Issue

    Hi all...I've searched the forums and search engines for specific information on this issue, but have not seen a viable solution so far. We have Oracle 11g Grid Control 11.1.0.1 installed on a Solaris V490 using Solaris 10, with an Oracle 11.2.0.1 da

  • Where used List for Packages (from Transport connection)

    Hi SDN, If objects , such as queries, or webtemplates, are incorrectly allocated to a BEx package at the beginning, my question is as follows: Can we find out which objects/queries/templates have been allocated to a particular package? Via some table

  • Oracle 10g for Developers

    Hi , Trying to understand what are the features availabe in Oracle 10g for developers. Happy with links too.Thanks.