Duplicate functionality of viewer toolbar

<span style="font-size: 9pt; font-family: Verdana"><p>With Webelements is it possible to duplicate some of the functionality of the Crystal viewer toolbar. </p><p>Such as:</p><p>Export - We want the user to be able to export to Excel and rtf only. Can we use Webelements create a link button to export to either Excel or rtf?</p><p>Page Navigation - while the Crystal viewer toolbar has page navigation, we want to limit what the user can do, so we want the page navigation buttons, but not print or refresh. Can this be done?</p><p>Thanks</p></span>

hello,
below is some later syntax (beta syntax so you'll be a test subject) for hiding the above mentioned buttons. for your test report, replace the syntax in your weviewer custom function with the syntax below. the switches for hiding / showing the buttons are in the function itself and are not function parameters...i.e. the buttons are on by default, but for a particular report if you want to hide the buttons, disconnect the function from the repository and change the "true" to "false" for the applicable buttons.
let me know what you think. also, this does not negate the user from refreshing a report using the right click menu or the f5 button. you should also disable refresh in the cmc at the object level. see your admin person on that one.
// WEViewer 2.1 last revision February 23, 2007, JWiseman
Function (stringvar ToolbarDisplay, stringvar ScrollbarsDisplay)
// the following can be customized
booleanvar showprintbutton:= true;
booleanvar showrefreshbutton:= true;
booleanvar showexportbutton:= true;
// the code below should not be modified
stringvar output;
ToolbarDisplay:= lowercase(ToolbarDisplay);
ScrollbarsDisplay:= lowercase(ScrollbarsDisplay);
if ScrollbarsDisplay = "hide" then ScrollbarsDisplay:= "hidden";
if ScrollbarsDisplay = "show" then ScrollbarsDisplay:= "visible";
output:= output <br />&#39;<DIV ID="tbCustomizer" NAME="tbCustomizer">&#39;
'&#39;<br />&#39;[&#x25B3; | ]&#39;
'&#39;<br />&#39;<SPAN ID="tbShow" NAME="tbShow" STYLE="display:none;position:absolute;top:0;text-align:right;height:26;width:expression(crvObj.width);padding-right:6px;">&#39;
&#39;[&#x25BD; | ]&#39;<br />&#39;</SPAN>&#39;
'&#39;<br />&#39;[|| | ]&#39;
'&#39;<br />&#39;</DIV>&#39;
&#39;<br />&#39;var tbState; var sbState;&#39;
&#39;if (tbState == null){tbState = "&#39;ToolbarDisplay&#39;"};&#39;<br />&#39;toolbarObj=document.getElementById("cridfulltoolbar").style;&#39;
&#39;crvObj=document.getElementById("cridreportpage").style;&#39;<br />&#39;hideObj=document.getElementById("tbHide").style;&#39;
&#39;showObj=document.getElementById("tbShow").style;&#39;<br />&#39;bodyObj=document.body.style;&#39;
'sbdObj=document.getElementById("sbDiv").style;' +
(if ToolbarDisplay = "show" then 'sbdObj.top=-20;') +
(if ToolbarDisplay = "hide" then 'sbdObj.top=0;')
if showprintbutton = false then
output:= output <br />&#39;printbuttonObj=document.getElementById("crprint").style;&#39;
'printbuttonObj.display="none";';
if showrefreshbutton = false then
output:= output <br />&#39;refreshbuttonObj=document.getElementById("refresh").style;&#39;
'refreshbuttonObj.display="none";';
if showexportbutton = false then
output:= output <br />&#39;exportbuttonObj=document.getElementById("exportdlg").style;&#39;
'exportbuttonObj.display="none";';
if ToolbarDisplay in ["hide", "show"] then
output:= output <br />&#39;if (tbState!="show") {toolbarObj.display="none";showObj.display="";hideObj.display="none";}&#39;
&#39;else {showObj.display="none";hideObj.display="";}&#39;<br />&#39;function delToolbar(chgState) {&#39;
&#39;   if (chgState=="show") {tbState="show";toolbarObj.display="";showObj.display="none";hideObj.display="";}&#39;<br />&#39;   else {tbState="hide";toolbarObj.display="none";showObj.display="";hideObj.display="none";}&#39;
'Â Â if (tbState=="show"){sbdObj.top=-20;}else {sbdObj.top=0;}'+
if ToolbarDisplay = "suppress" then
output:= output +
'toolbarObj.display="none";showObj.display="none";hideObj.display="";';
if ScrollbarsDisplay in ["hidden", "visible"] then
output:= output <br />&#39;sbdObj.display="";&#39;
&#39;if (sbState==null){sbState="&#39;ScrollbarsDisplay&#39;"};&#39;<br />&#39;if (sbState!="visible"){bodyObj.overflow="hidden";}else {bodyObj.overflow="";}&#39;
'function delScrollbar() {'+
&#39;   if
(sbState=="hidden"){sbState="visible";bodyObj.overflow="";}&#39;<br />&#39;   else {sbState="hidden";bodyObj.overflow="hidden";}&#39;
if ScrollbarsDisplay = "suppress" then
output:= output +
'bodyObj.overflow="hidden";';
output:= output + '';
if ToolbarDisplay = "suppress" then
output:= output <br />&#39;<style type="text/css">&#39;
&#39;.crtoolbar &#39;+
output;

Similar Messages

  • Error message: 1021: Duplicate function definition.

    Hi All,
    First let me start by saying that I know next to nothing about Flash.  I have inherited a website maintenance project that has a Flash rotating image banner.  I have managed to get the images to fade-in and fade-out correctly, but now I need to make these images clickable - linking images to pages in the website.  I have read many posts here and have reviewed the video tutorials.  I have been able to get the first image clickable using this AS3 action:
    mars_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
    function buttonClickHandler(event:MouseEvent) :void {
            navigateToURL(new URLRequest("http://somewebsite/mars.php"));
            trace("I'm clicked");
    However, when I attempt to make another image clickable by using a different instance of a button I get the error message:
    1021: Duplicate function definition.
    I have a separate instance of a button with this AS3 action:
    jupiter_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
    function buttonClickHandler(event:MouseEvent) :void {
            navigateToURL(new URLRequest("http://somewebsite/jupiter.php"));
            trace("I'm clicked");
    Obviously I'm not understanding how I'm supposed to do this so that I don't create a duplicate function definition.  Any help would be most appreciated.

    excuse me , I have a question i hope that you help .. ( im new in here )
    we were asked to create an interactive application on flash in two languages..
    so i created two different fla files same exact codings ... i was wondering how can i combine them so the viewer can be able to choose the language from a button ?
    when i try to combine them i get lots of errors of duplications in the actionscript
    PS : MY MAIN PAGE INCLUDES A CAROUSEL with images ..
    I was thinking of saving one of the fla  as a movie and then add it some how to the second fla and combine it with a button but i can't figure it how..
    i hope i was clear enough.. but is there any possibility to help me please ?!
    when i tend to change names or something it creates error.. ( IM NOT A PRO IN AS3 ) and when i dublicate the scenes it give duplication errors.. WHAT IS THE SOLUTION ??
    this is the code of the actionscript in the main page.. ( the carousel's code i took from someone ) and i used it on my project
    import com.ccanvas.carousel.*;
    var centerX:Number = stage.stageWidth/4;
    var centerY:Number = stage.stageHeight/4;
    var carc:Carousel = new Carousel(centerX, centerY, 256, 75, "icons.xml");
    carc.addTooltip(new tooltip); // use 'tooltip' movieclip for item tooltip
    addChild(carc); // add carousel to stage
    function down(event:MouseEvent):void {
    trace(event.currentTarget.toolText); // simple click interaction
    function destroyCarousel(event:MouseEvent):void {
    carc.destroy(); // remove all item in carousel as well as tooltip
    function removeNextItem(event:MouseEvent):void {
    if(carc.numOfItems > 2) {
      carc.removeItem(2); // remove the item next to the remove item icon
    create.addEventListener("mouseDown", createCarousel);
    function createCarousel(event:MouseEvent):void {
    if(carc.CREATED == false) {
      // recreate the carousel
      carc = new Carousel(centerX, centerY, 256, 75, "icons.xml");
      carc.addTooltip(new tooltip);
      addChild(carc);
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Tools_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);
    function fl_ClickToGoToScene(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Toolse");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    games_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToGames);
    function fl_ClickToGoToGames(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Gamese");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Identity_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToIdentity);
    function fl_ClickToGoToIdentity(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Identitye");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Reviews_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_13);
    function fl_ClickToGoToScene_13(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Reviewse");
    }/* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Facts_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_20);
    function fl_ClickToGoToScene_20(event:MouseEvent):void
    MovieClip(this.root).gotoAndPlay(1, "Factse");

  • Adding History list and saved reports to info view toolbar

    Hello All,
    We want to write a new u201CJSPu201D program to display a new info view toolbar with an option to view saved reports and another option to view history list of reports  .
    Is it possible to use Bobj java api and add this functionality to all the reports?
    Thanks
    Nir

    Adding functionality to Infoview may be possible, but there is no documentation on how to do this as it is not supported.
    For creating your own application, I would suggest looking at the [samples|http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaBusinessObjectsEnterpriseSDKSamples] and [developer guide|http://help.sap.com/businessobject/product_guides/boexir31/en/boesdk_java_dg_12_en.zip].

  • 1. Why doesn't the "Show Duplicates" function ever work?  It's always grayed out.

    1. Why doesn't the "Show Duplicates" function ever work?  It's always grayed out.

    do you have the current itunes? the option is under view "show duplicate items. Maybe you just dont have any duplicates.

  • Crystal Reports Viewer Toolbar Images missing

    I have Crystal Reports XI R2 installed on a windows server 2008 R2 Enterprise server and when a when I browse to my asp.net page withe the crystal reports viewer I get the red x's for the toolbar images.  The viewer and web.config entries all reference the 11.5.3700.0.  When I view the source of the page the source is "../aspnet_client/system_web/2_0_50727/crystalreportviewers115".  At first the crystalreportviewers115 was not in subfolder at my sites root aspnet_client folder and so I copied it there.  But it still doesn't work.
    What seems odd is that we I was using the embedded version from VS 2008 (10.5.3700.0) the view source of the page showed the image path as "/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer4" and this worked fine but when I use XI R2 (11.5.3700.0) the path is "../aspnet_client/system_web/2_0_50727/crystalreportviewers115" so where and why is there ".." for the XI R2 version.

    CR 11.5 is not supported on WIn 2008 server. See [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki.
    You may also want to take a look at the article [Viewer toolbar images appear as red u2018X on Crystal Reports VS .NET web viewer|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a]. It may help, but if not, you'll have to move on to a supported version of CR.
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • My roboform (ver 7.5.7) toolbar does not show since i updated firefox to 7.0.1 in the troubleshooting info. it shows as enabled. it does not appear in the menu of view/toolbars

    as above, when i updated firefox to 7.0.1 the toolbar for roboform disappeared. updating roboform did not fix it. it does not show up as a tool bar in the view/toolbar tab. i made sure the firefox browser option was enabled in roboform.

    Try to read raq here;
    * http://www.roboform.com/support/faq/roboform#toolbar

  • Bookmarks toolbar Firefox 10.0.2/OSX 10.6.8 - gone. View Toolbars Bookmarks Toolbar - checked. Dragging URL's to bookmarks toolbar area no longer works. Gray area appears/disappears when checked/unchecked but will not show any or accept new bookmarks.

    My bookmarks toolbar in Firefox 10.0.2 Mac OSX 10.6.8 suddenly disappeared. View>Toolbars>Bookmarks Toolbar is checked. Dragging URL's to the bookmarks toolbar area no longer works. The gray area appears and disappears when checking/unchecking under View/Toolbars menu, but will not show any or accept addition of bookmarks.

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    *Open the Customize window via "View > Toolbars > Customize"
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    *If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How can you add your own print and export buttons to the CR viewer toolbar?

    I posted a previous question that was asking how to get around the Information Bar in IE7 when you export and print.  Unfortunately the CR viewer file download code gets blocked by IE7 because the buttons don't directly download the file.  However, I have been able to get a regular button that calls the following code and streams the file to the client and IE7 does not block it. 
    Sub PrintPDF(sender As Object, e As System.EventArgs)
         Dim crReportDocument as ReportDocument
         Dim crExportOptions as ExportOptions
         Dim crDiskFileDestinationOptions as DiskFileDestinationOptions
         Dim Fname as string
         CrReportDocument = New ReportDocument()
         CrReportDocument.Load(Server.MapPath("estactionlist.rpt"))
         Fname = Server.MapPath("./") & Session.SessionID.ToString & ".pdf"
         CrDiskFileDestinationOptions = New DiskFileDestinationOptions()
         CrDiskFileDestinationOptions.DiskFileName = FName
         CrExportOptions = crReportDocument.ExportOptions
         With crExportOptions
              .DestinationOptions = CrDiskFileDestinationOptions
              .ExportDestinationType = ExportDestinationType.DiskFile
              .ExportFormatType = ExportFormatType.PortableDocFormat
         End With
         CrReportDocument.Export()
         Response.ClearContent()
         Response.ClearHeaders()
                    Response.AddHeader("content-disposition", "attachment;filename=test.pdf")
                    Response.ContentType = "application/pdf"
                    Response.Charset = ""
                    Response.WriteFile(Fname)
                    Response.Flush()
         Response.Close()
         System.IO.File.Delete(Fname)
    End Sub
    So here are my questions?
    1. Is it possible to add a custom print control/icon to the CR viewer toolbar?
    2. If one is not possible, then is it possible to override the CR viewer print and export buttons with your own subroutines like the one above?
    I just want my page to look nice and hate to have print and export buttons outside of my CR viewer. 
    Thanks,
    Kevin

    It might be possible to replace the buttons in a windows app since you can retrieve the toolbar as a toolbar object in the winform viewer  ( ToolStrip toolBar = (ToolStrip) crystalReportViewer1.Controls[3]; )  however with a web app, it's a lot more difficult.
    The problem is that that you need to parse the Request string to try and figure out if the print / export button was clicked.  The code below makes the print button disappear if you click it, so you should be able to modify it to call your custom printing / exporting code instead  (You have to do this check in a postback)
            Dim I As Integer = 0
            If Request.Form.AllKeys.Length > 0 Then
                For I = 0 To Request.Form.AllKeys.Length - 1
                    Response.Write(Request.Form.Keys(I).ToString & "<BR>")
                    If Request.Form.Keys(I).ToString = "CrystalReportViewer2:_ctl2:_ctl2.x" Then
                        CrystalReportViewer2.HasPrintButton = False
                    End If
                Next
           End If
    Shawn

  • Issue with Duplicate FUNCTION

    Hi Guys:
    I am experiencing some issue with DUPLIATE FUNCTION.  What happen is that I have create some BUTTONS on the stage that was used througth out difference scence.....those buttons has same action that point page to particular scence.  And this is when I found the DUPLICATE FUNCTION issue.
    I found that I could get away by changing the name of the FUNCTION, but as I have quite a lots of those buttons so I really don't think this method is very pratical and organized.  So does anyone have any better idea how this can be solved?
    Many Thanks!

    Thanks so much, this did solve the problem.  Studpid me that were trying to add same FUNCTION on each Scene that has the same button.  Initially I thought it's more complex in AS3, but seems AS3 is actually trying to make thing easier and more praticler.
    Not really good at previously AS, but decided to spend some time on learning AS3.0 now.  Hope I could help people like me on the forum with question about AS3.0 soon. Just like the favor you did for me.
    Many Thanks!!

  • Create sequence, function and view all at once -script or something similar

    Hi I would like to know in what way can I write a script or something like that which would define names for a sequence, function and a view in the beginning (for example TEST_SEQ, TEST_FJ, TEST_VIEW...) and after that create this sequence, function and view with definitions like
    CREATE SEQUENCE  TEST_SEQ
    MINVALUE 1 MAXVALUE 999999999999999999999999999
    INCREMENT BY 1 START WITH 1 NOCACHE  NOORDER  NOCYCLE;
    create or replace FUNCTION TEST_FJ RETURN NUMBER AS
    tmp number;
    BEGIN
    select TEST_SEQ.NEXTVAL  into tmp from dual
    RETURN tmp;
    END TEST_FJ;
    and so on...
    In the end I would also like to grant some rights on these objects I just created:
    grant select on TEST_SEQ to public;
    grant execute on TEST_FJ to public;
    So my question is how to package all these things together so I can execute them from a single file in SQL Developer, and if i need to change the names of these tables I want do it in one place in the beginning of this script (or something like a script, I'm not sure what)...
    Thanks in advance!

    hi,
    hope help you...
    this is my basic generic solution...
    create or replace procedure createSequence( psequenceName in varchar2 ) is
    begin
    execute immediate 'create sequence ' || psequenceName ;
    execute immediate 'grant select on ' || psequenceName || ' to public ';
    end ;
    create or replace function getNextVal( psequenceName in varchar2 ) return number is
    queryText varchar2(100) := 'select <sequence_name>.nextval into :next_value from DUAL' ;
    next_value number ;
    begin
    queryText := replace(queryText,'<sequence_name>',psequenceName);
    execute immediate queryText into next_value ;
    return( next_value ) ;
    end ;
    Edited by: edogt on Nov 27, 2008 5:33 AM
    Edited by: edogt on Nov 27, 2008 5:35 AM
    Edited by: edogt on Nov 27, 2008 5:35 AM

  • Duplicate function definition error on buttons

    Hi there!
    Ok first I'm a complete beginner when it comes to Flash so please bare with me.
    What I'm looking to do is create a banner that transitions between different photos while there are small square buttons on the side that when the user clicks on them, it jumps to the corrosponding frame where a new photo begins showing. I've seen it a bunch of times on other websites.
    After following the advice found here: http://forums.adobe.com/thread/781826?tstart=0
    Everything was going well until I hit a snag. When trying to preview my movie I got the following error:
    1021: Duplicate function definition
    Now, I know there is a very obvious error here in my button scripts, but as I said, I have no idea what I'm doing. Can someone look at my code and tell me what's wrong and what I should change? I'll post all five scripts.
    The instance names by the way are "sidebutton1" thru "sidebutton5" if that's any help.
    Here's my codes for each of the five buttons (one of these code bits per button):
    sidebutton1.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndPlay(1);
    sidebutton2.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndPlay(100);
    sidebutton3.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndPlay(200);
    sidebutton4.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndPlay(300);
    sidebutton5.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndPlay(500);

    sidebutton2.addEventListener(MouseEvent.CLICK,f2);
    function f2(e:Event):void{
    gotoAndPlay(100);
    sidebutton3.addEventListener(MouseEvent.CLICK,f3);
    function f3(e:Event):void{
    gotoAndPlay(200);
    Each function must have a special name...

  • Using Max Function in View Criteria

    Hi
    I am having a requirement where by i need to make use of max function in view criteria but not able to see any such option. Can someone please help me over it. Here is the requirement.
    In table i will be having multiple rows for an employee and i need to pick latest row based on a column say request_id For e.g.
    Emp RequestId
    A 1
    A 2
    A 3
    A 4
    So if i pass the employee id i should get Row Number 4. In simple SQL language I want something like this
    select * from emp where empid=A and requestid=( select max(requestid) from emp where empid=A)
    Just wanted to know is there any approach that i can use to do all this as part of View Criteria or any other way.
    Any help is appreciated!!!
    Thanks
    AJ

    One way is this -
    1)https://blogs.oracle.com/adf/entry/using_groovy_aggregate_functions_in (You might need to create a self-referencing VL for this , try if it works using a ViewAccessor too)
    OR
    Order by RequestId descending in your SQL for the VO if thats ok , then have the ViewCriteria for the EmpId and programmatically pickup the first row...

  • Can we call custom functions in view objects?

    Can we call custom functions in view objects?these custom functions are from my backing bean...
    Please help.....

    User,
    You can certainly add code to your view objects to do whatever you like.
    However, it would be considered a very bad practice to call something in the backing bean from your view object. It violates the whole MVC design principle of ADF.
    Perhaps if you can share your real use case, someone will give you ideas about the best way to do it, but I, for one, would advise you to forget about calling a backing bean function from your view object.
    Best,
    John

  • Customize option is missing under menu button. It is missing under View Toolbars as well. Please help!

    Customize option is missing under menu button. It is missing under View > Toolbars as well. Please help!

    Screenshot:

  • 1021: Duplicate function definition I am lost... please advise

    I am obviously new to as3... So I have 3 buttons (all in the same scene) that each need to go to a different scene. I put the script's on the same frame. Here is the script's:
    btn_pg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
    gotoAndStop(1, "photo_gallery");
    btn_vg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
    gotoAndStop(1, "photo_gallery");
    This is the error message it gives me:
    home_1, Layer 'actions', Frame 1, Line 8 1021: Duplicate function definition.
    What do you have to do to use the same function for different buttons to get to different scenes?
    Thank you for any consideration and help,
    Thomas

    I tried to ad another button to that same code and it does not give an error but when i publish it doesn't do anything...
    This is the code after I added:
    btn_pg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    btn_vg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void
    var nameOfButton:String = event.currentTarget.name;
    if (nameOfButton == "btn_pg")
      gotoAndStop(1, "photo_gallery");
    else if (nameOfButton=="btn_vg")
      gotoAndStop(1, "video_gallery");
    else if (nameOfButton=="btn_b")
      gotoAndStop(1, "blog");
    Can you not have an infinite amount of buttons with this code?
    Thanks again
    Thomas

Maybe you are looking for

  • Nvidia 8600M GT PCI-E problem on GX600 notebook.

    Hello, I've got MSI GX600 notebook with Nvidia 8600M GT video card. The problem is, that the notebook has a low performance in 3D. It's caused by that 8600M GT video card, because the GPU-Z shows, that the card runs only in PCI-E 1x mode, but it is i

  • Under summary tab with device attached, text overlaps in window. How can I fix this?

    After launching itunes and I attach iphone4 via usb I select my device under the library. I select the summary tab at top of window and the blocks of info and options overlap each other. I can't select any otions. Cant expand blocks either. Uninstall

  • IPod Classic 120GB freezes, won't add more songs

    Hi Guys! I was wondering if anyone can help me, I've been reading through some posts and it seems some people may have the same problem as me. A friend of mine kept my iPod plugged in and was transferring all my music onto her Macbook pro, and I'm no

  • I have an iPhone 3 and I'm having trouble updating it to 5.1. Any suggestions?

    Any suggestions?  As it tries to backup my phone, it takes forever.  I let it sit overnight and it barely moved.  When I sync my phone to download my podcasts, it backs up in seconds.  There's something about updating the software.

  • Lock cells in Spreadsheet

    I want to lock some cells in spreadsheet programatically. The document is stored in Sharepoint library. Is there any way to lock the cells?