A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: disable Zoom and Print option

Hybrid View

  1. #1
    Toronto's courtesan
    Join Date
    Apr 2002
    Location
    Toronto/NYC
    Posts
    82
    Thanks so much everyone here, i got, it was so simple, i had it right the first time , but forgot to save before i tested. duh.

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Posts
    2
    I know that this thread is old as dirt, but I wanted to add some info for others who are having trouble trying disable zoom and other options in the right click menu. This info is coming from someone (me) who has no flash actionscript experience, but a decent amount of experience with Dreamweaver and programming. I used Dreamweaver CS3 to add flash text to my web pages, but wanted to prevent users from zooming in on the text.

    When inserting flash text from within dreamweaver, the script/code below is inserted into your web page:

    <script language="javascript">

    if (AC_FL_RunContent == 0) {
    .....
    }

    else {
    AC_FL_RunContent(
    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
    'width', '200',
    'height', '200',
    'src', 'Untitled-1',
    'quality', 'high',
    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'transparent',
    'devicefont', 'false',
    'id', 'Untitled-1',
    'bgcolor', '#ffffff',
    'name', 'Untitled-1',
    'menu', 'false',
    'allowFullScreen', 'false',
    'allowScriptAccess','sameDomain',
    'movie', 'Untitled-1',
    'salign', ''
    ); //end AC code
    }
    </script>
    <noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="200" height="200" id="Untitled-1" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="Untitled-1.swf" />
    <param name="menu" value="false" /><param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#ffffff" />

    <embed
    src="Untitled-1.swf"
    menu="false"
    quality="high"
    wmode="transparent"
    bgcolor="#ffffff"
    width="200"
    height="200"
    name="Untitled-1"
    align="middle"
    allowScriptAccess="sameDomain"
    allowFullScreen="false"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </noscript>

  3. #3
    Junior Member
    Join Date
    Oct 2007
    Posts
    2
    I know that this thread is old as dirt, but I wanted to add some info for others who are having trouble trying disable zoom and other options in the right click menu. This info is coming from someone (me) who has no flash actionscript experience, but a decent amount of experience with Dreamweaver and programming. I used Dreamweaver CS3 to add flash text to my web pages, but wanted to prevent users from zooming in on the text.

    When inserting flash text from within dreamweaver, the script/code below is inserted into your web page:

    <script language="javascript">

    if (AC_FL_RunContent == 0) {

    ...if code...

    }

    else {

    AC_FL_RunContent(

    ...AC_FL_RunContent code...

    ); //end AC code

    }
    </script>
    <noscript>

    <object
    ...object code...
    />

    </object>
    </noscript>


    ================================================== ========

    Now, in order to disable right the zoom, and other options when right clicking on the flash text/object just inserted by dreamweaver, you add the following two bits of code to the the respective areas:

    1) add the code: 'menu', 'false',
    where to add it: in the function?/parameter? AC_FL_RunContent( );
    example:

    AC_FL_RunContent(
    ...
    'menu', 'false',
    ...
    );

    2) add the code: <param name="menu" value="false" />
    where to add it: within the <noscript></noscript> tag
    example:

    <noscript>
    ...
    <param name="menu" value="false" />
    ...
    </noscript>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center