Quick ColorTransform Fix

Hi everyone,
I wrote a simple class to tranform the color of the btn clicked to a random color everytime its clicked but my lack of understanding of AS3 is giving me deadends, I was hoping someone with more knowledge could help me out...
I'm not sure how to set it up and my current set up its giving me the following error:
ReferenceError: Error #1069: Property event not found on flash.geom.Transform and there is no default value.
at colorChanger$iinit()
at mainBeta2_fla::MainTimeline/setName()
---- So this is my colour transform class:
package {
import flash.display.MovieClip;
import flash.events.*;
import flash.geom.*;
public class colorChanger extends Sprite {
// Not sure if I should put e:MouseEvent or a pass a variable to the function
   public function colorChanger(colorPass) {
     //Color Randomizer!!!
     var colour:Number=Math.random()*0xFFFFFF;
       var colorInfo:ColorTransform=colorPass.transform.colorTransform;
       colorInfo.color=colour;
      colorPass.transform.event.target.content.colorTransform=colorInfo;
And this is how I have it setup in main movie:
btn_mc.addEventListener(MouseEvent.CLICK, setNew);
function setNew(e:MouseEvent):void {
fileName=e.currentTarget.name as String;
var colorName:* = e.currentTarget; //Tried holding the target in a variable to pass to function...
var myColorChanger:colorChanger = new colorChanger(colorName); // Tried putting e:MouseEvent but gave me errors so trying to pass variable
addChild(myColorChanger);
fileName=fileName.replace("_mc",".swf");
// Calls Movie loader with given paremeters
loadSWF(fileName);
So to make a long story short, I need the button to change to a random color everytime its clicked and I'm using a custom class because I have over a dozen buttons in one time line... Can any one please help or at least point me in the right direction??
very much appriciated,
Sam

use;  colourPass.transform.colorTransform=colorInfo;

Similar Messages

  • Adobe 8 flash quick download fix?

    My adobe 8 crashes on vista home premium 32x when 2 players
    are running at the same time. A quick fix download appeared one
    time automatically which fixed it. Since then the comp. was reset
    to default and fix has been lost. Can't find it now. Anyone?

    This is a user-to-user forum, and we're all volunteers, here, so there isn't someone monitoring the posts 24/7.
    That said, Windows 8 comes with Flash Player installed (for Internet Explorer). If you're seeing notices that you need to update your Flash Player, and you DON'T have another browser (like Chrome or Firefox) installed, Windows Update should download the latest Flash Player and install it for Internet Explorer.
    If that doesn't do it, download the Adobe Flash Player installer directly by right clicking the following link and selecting "Save target as".
    Flash Player for ActiveX (Internet Explorer)
    When asked, choose to Save the file - DO NOT run it.
    Reboot, and BEFORE opening Internet Explorer, go to your downloads folder and run the installer.
    If even that doesn't work, follow the instructions to do a "clean install".

  • Please Help! There has to be a quick .js fix for Spry dropdown to work for iPads...

    I know I can upgrade, download, purchase or any combination of these to get and use a new dropdown menu format that would work, but that is not what I want to work on learning today.  Our top coder/developer is out of town right now, and I am just trying to fix a menu bar that was done in CS4 with Spry 1.6.1, and I have to believe that someone out there knows the fix to get it to work on an ipad.  I can make the parent li not a link and it still does not work.  Here is my .JS code:
    // SpryMenuBar.js - version 0.12 - Spry Pre-Release 1.6.1
    // Copyright (c) 2006. Adobe Systems Incorporated.
    // All rights reserved.
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions are met:
    //   * Redistributions of source code must retain the above copyright notice,
    //     this list of conditions and the following disclaimer.
    //   * Redistributions in binary form must reproduce the above copyright notice,
    //     this list of conditions and the following disclaimer in the documentation
    //     and/or other materials provided with the distribution.
    //   * Neither the name of Adobe Systems Incorporated nor the names of its
    //     contributors may be used to endorse or promote products derived from this
    //     software without specific prior written permission.
    // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    // POSSIBILITY OF SUCH DAMAGE.
    SpryMenuBar.js
    This file handles the JavaScript for Spry Menu Bar.  You should have no need
    to edit this file.  Some highlights of the MenuBar object is that timers are
    used to keep submenus from showing up until the user has hovered over the parent
    menu item for some time, as well as a timer for when they leave a submenu to keep
    showing that submenu until the timer fires.
    var Spry; if (!Spry) Spry = {}; if (!Spry.Widget) Spry.Widget = {};
    Spry.BrowserSniff = function()
              var b = navigator.appName.toString();
              var up = navigator.platform.toString();
              var ua = navigator.userAgent.toString();
              this.mozilla = this.ie = this.opera = this.safari = false;
              var re_opera = /Opera.([0-9\.]*)/i;
              var re_msie = /MSIE.([0-9\.]*)/i;
              var re_gecko = /gecko/i;
              var re_safari = /(applewebkit|safari)\/([\d\.]*)/i;
              var r = false;
              if ( (r = ua.match(re_opera))) {
                        this.opera = true;
                        this.version = parseFloat(r[1]);
              } else if ( (r = ua.match(re_msie))) {
                        this.ie = true;
                        this.version = parseFloat(r[1]);
              } else if ( (r = ua.match(re_safari))) {
                        this.safari = true;
                        this.version = parseFloat(r[2]);
              } else if (ua.match(re_gecko)) {
                        var re_gecko_version = /rv:\s*([0-9\.]+)/i;
                        r = ua.match(re_gecko_version);
                        this.mozilla = true;
                        this.version = parseFloat(r[1]);
              this.windows = this.mac = this.linux = false;
              this.Platform = ua.match(/windows/i) ? "windows" :
                                                      (ua.match(/linux/i) ? "linux" :
                                                      (ua.match(/mac/i) ? "mac" :
                                                      ua.match(/unix/i)? "unix" : "unknown"));
              this[this.Platform] = true;
              this.v = this.version;
              if (this.safari && this.mac && this.mozilla) {
                        this.mozilla = false;
    Spry.is = new Spry.BrowserSniff();
    // Constructor for Menu Bar
    // element should be an ID of an unordered list (<ul> tag)
    // preloadImage1 and preloadImage2 are images for the rollover state of a menu
    Spry.Widget.MenuBar = function(element, opts)
              this.init(element, opts);
    Spry.Widget.MenuBar.prototype.init = function(element, opts)
              this.element = this.getElement(element);
              // represents the current (sub)menu we are operating on
              this.currMenu = null;
              this.showDelay = 250;
              this.hideDelay = 600;
              if(typeof document.getElementById == 'undefined' || (navigator.vendor == 'Apple Computer, Inc.' && typeof window.XMLHttpRequest == 'undefined') || (Spry.is.ie && typeof document.uniqueID == 'undefined'))
                        // bail on older unsupported browsers
                        return;
              // Fix IE6 CSS images flicker
              if (Spry.is.ie && Spry.is.version < 7){
                        try {
                                  document.execCommand("BackgroundImageCache", false, true);
                        } catch(err) {}
              this.upKeyCode = Spry.Widget.MenuBar.KEY_UP;
              this.downKeyCode = Spry.Widget.MenuBar.KEY_DOWN;
              this.leftKeyCode = Spry.Widget.MenuBar.KEY_LEFT;
              this.rightKeyCode = Spry.Widget.MenuBar.KEY_RIGHT;
              this.escKeyCode = Spry.Widget.MenuBar.KEY_ESC;
              this.hoverClass = 'MenuBarItemHover';
              this.subHoverClass = 'MenuBarItemSubmenuHover';
              this.subVisibleClass ='MenuBarSubmenuVisible';
              this.hasSubClass = 'MenuBarItemSubmenu';
              this.activeClass = 'MenuBarActive';
              this.isieClass = 'MenuBarItemIE';
              this.verticalClass = 'MenuBarVertical';
              this.horizontalClass = 'MenuBarHorizontal';
              this.enableKeyboardNavigation = true;
              this.hasFocus = false;
              // load hover images now
              if(opts)
                        for(var k in opts)
                                  if (typeof this[k] == 'undefined')
                                            var rollover = new Image;
                                            rollover.src = opts[k];
                        Spry.Widget.MenuBar.setOptions(this, opts);
              // safari doesn't support tabindex
              if (Spry.is.safari)
                        this.enableKeyboardNavigation = false;
              if(this.element)
                        this.currMenu = this.element;
                        var items = this.element.getElementsByTagName('li');
                        for(var i=0; i<items.length; i++)
                                  if (i > 0 && this.enableKeyboardNavigation)
                                            items[i].getElementsByTagName('a')[0].tabIndex='-1';
                                  this.initialize(items[i], element);
                                  if(Spry.is.ie)
                                            this.addClassName(items[i], this.isieClass);
                                            items[i].style.position = "static";
                        if (this.enableKeyboardNavigation)
                                  var self = this;
                                  this.addEventListener(document, 'keydown', function(e){self.keyDown(e); }, false);
                        if(Spry.is.ie)
                                  if(this.hasClassName(this.element, this.verticalClass))
                                            this.element.style.position = "relative";
                                  var linkitems = this.element.getElementsByTagName('a');
                                  for(var i=0; i<linkitems.length; i++)
                                            linkitems[i].style.position = "relative";
    Spry.Widget.MenuBar.KEY_ESC = 27;
    Spry.Widget.MenuBar.KEY_UP = 38;
    Spry.Widget.MenuBar.KEY_DOWN = 40;
    Spry.Widget.MenuBar.KEY_LEFT = 37;
    Spry.Widget.MenuBar.KEY_RIGHT = 39;
    Spry.Widget.MenuBar.prototype.getElement = function(ele)
              if (ele && typeof ele == "string")
                        return document.getElementById(ele);
              return ele;
    Spry.Widget.MenuBar.prototype.hasClassName = function(ele, className)
              if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1)
                        return false;
              return true;
    Spry.Widget.MenuBar.prototype.addClassName = function(ele, className)
              if (!ele || !className || this.hasClassName(ele, className))
                        return;
              ele.className += (ele.className ? " " : "") + className;
    Spry.Widget.MenuBar.prototype.removeClassName = function(ele, className)
              if (!ele || !className || !this.hasClassName(ele, className))
                        return;
              ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
    // addEventListener for Menu Bar
    // attach an event to a tag without creating obtrusive HTML code
    Spry.Widget.MenuBar.prototype.addEventListener = function(element, eventType, handler, capture)
              try
                        if (element.addEventListener)
                                  element.addEventListener(eventType, handler, capture);
                        else if (element.attachEvent)
                                  element.attachEvent('on' + eventType, handler);
              catch (e) {}
    // createIframeLayer for Menu Bar
    // creates an IFRAME underneath a menu so that it will show above form controls and ActiveX
    Spry.Widget.MenuBar.prototype.createIframeLayer = function(menu)
              var layer = document.createElement('iframe');
              layer.tabIndex = '-1';
              layer.src = 'javascript:""';
              layer.frameBorder = '0';
              layer.scrolling = 'no';
              menu.parentNode.appendChild(layer);
              layer.style.left = menu.offsetLeft + 'px';
              layer.style.top = menu.offsetTop + 'px';
              layer.style.width = menu.offsetWidth + 'px';
              layer.style.height = menu.offsetHeight + 'px';
    // removeIframeLayer for Menu Bar
    // removes an IFRAME underneath a menu to reveal any form controls and ActiveX
    Spry.Widget.MenuBar.prototype.removeIframeLayer =  function(menu)
              var layers = ((menu == this.element) ? menu : menu.parentNode).getElementsByTagName('iframe');
              while(layers.length > 0)
                        layers[0].parentNode.removeChild(layers[0]);
    // clearMenus for Menu Bar
    // root is the top level unordered list (<ul> tag)
    Spry.Widget.MenuBar.prototype.clearMenus = function(root)
              var menus = root.getElementsByTagName('ul');
              for(var i=0; i<menus.length; i++)
                        this.hideSubmenu(menus[i]);
              this.removeClassName(this.element, this.activeClass);
    // bubbledTextEvent for Menu Bar
    // identify bubbled up text events in Safari so we can ignore them
    Spry.Widget.MenuBar.prototype.bubbledTextEvent = function()
              return Spry.is.safari && (event.target == event.relatedTarget.parentNode || (event.eventPhase == 3 && event.target.parentNode == event.relatedTarget));
    // showSubmenu for Menu Bar
    // set the proper CSS class on this menu to show it
    Spry.Widget.MenuBar.prototype.showSubmenu = function(menu)
              if(this.currMenu)
                        this.clearMenus(this.currMenu);
                        this.currMenu = null;
              if(menu)
                        this.addClassName(menu, this.subVisibleClass);
                        if(typeof document.all != 'undefined' && !Spry.is.opera && navigator.vendor != 'KDE')
                                  if(!this.hasClassName(this.element, this.horizontalClass) || menu.parentNode.parentNode != this.element)
                                            menu.style.top = menu.parentNode.offsetTop + 'px';
                        if(Spry.is.ie && Spry.is.version < 7)
                                  this.createIframeLayer(menu);
              this.addClassName(this.element, this.activeClass);
    // hideSubmenu for Menu Bar
    // remove the proper CSS class on this menu to hide it
    Spry.Widget.MenuBar.prototype.hideSubmenu = function(menu)
              if(menu)
                        this.removeClassName(menu, this.subVisibleClass);
                        if(typeof document.all != 'undefined' && !Spry.is.opera && navigator.vendor != 'KDE')
                                  menu.style.top = '';
                                  menu.style.left = '';
                        if(Spry.is.ie && Spry.is.version < 7)
                                  this.removeIframeLayer(menu);
    // initialize for Menu Bar
    // create event listeners for the Menu Bar widget so we can properly
    // show and hide submenus
    Spry.Widget.MenuBar.prototype.initialize = function(listitem, element)
              var opentime, closetime;
              var link = listitem.getElementsByTagName('a')[0];
              var submenus = listitem.getElementsByTagName('ul');
              var menu = (submenus.length > 0 ? submenus[0] : null);
              if(menu)
                        this.addClassName(link, this.hasSubClass);
              if(!Spry.is.ie)
                        // define a simple function that comes standard in IE to determine
                        // if a node is within another node
                        listitem.contains = function(testNode)
                                  // this refers to the list item
                                  if(testNode == null)
                                            return false;
                                  if(testNode == this)
                                            return true;
                                  else
                                            return this.contains(testNode.parentNode);
              // need to save this for scope further down
              var self = this;
              this.addEventListener(listitem, 'mouseover', function(e){self.mouseOver(listitem, e);}, false);
              this.addEventListener(listitem, 'mouseout', function(e){if (self.enableKeyboardNavigation) self.clearSelection(); self.mouseOut(listitem, e);}, false);
              if (this.enableKeyboardNavigation)
                        this.addEventListener(link, 'blur', function(e){self.onBlur(listitem);}, false);
                        this.addEventListener(link, 'focus', function(e){self.keyFocus(listitem, e);}, false);
    Spry.Widget.MenuBar.prototype.keyFocus = function (listitem, e)
              this.lastOpen = listitem.getElementsByTagName('a')[0];
              this.addClassName(this.lastOpen, listitem.getElementsByTagName('ul').length > 0 ? this.subHoverClass : this.hoverClass);
              this.hasFocus = true;
    Spry.Widget.MenuBar.prototype.onBlur = function (listitem)
              this.clearSelection(listitem);
    Spry.Widget.MenuBar.prototype.clearSelection = function(el){
              //search any intersection with the current open element
              if (!this.lastOpen)
                        return;
              if (el)
                        el = el.getElementsByTagName('a')[0];
                        // check children
                        var item = this.lastOpen;
                        while (item != this.element)
                                  var tmp = el;
                                  while (tmp != this.element)
                                            if (tmp == item)
                                                      return;
                                            try{
                                                      tmp = tmp.parentNode;
                                            }catch(err){break;}
                                  item = item.parentNode;
              var item = this.lastOpen;
              while (item != this.element)
                        this.hideSubmenu(item.parentNode);
                        var link = item.getElementsByTagName('a')[0];
                        this.removeClassName(link, this.hoverClass);
                        this.removeClassName(link, this.subHoverClass);
                        item = item.parentNode;
              this.lastOpen = false;
    Spry.Widget.MenuBar.prototype.keyDown = function (e)
              if (!this.hasFocus)
                        return;
              if (!this.lastOpen)
                        this.hasFocus = false;
                        return;
              var e = e|| event;
              var listitem = this.lastOpen.parentNode;
              var link = this.lastOpen;
              var submenus = listitem.getElementsByTagName('ul');
              var menu = (submenus.length > 0 ? submenus[0] : null);
              var hasSubMenu = (menu) ? true : false;
              var opts = [listitem, menu, null, this.getSibling(listitem, 'previousSibling'), this.getSibling(listitem, 'nextSibling')];
              if (!opts[3])
                        opts[2] = (listitem.parentNode.parentNode.nodeName.toLowerCase() == 'li')?listitem.parentNode.parentNode:null;
              var found = 0;
              switch (e.keyCode){
                        case this.upKeyCode:
                                  found = this.getElementForKey(opts, 'y', 1);
                                  break;
                        case this.downKeyCode:
                                  found = this.getElementForKey(opts, 'y', -1);
                                  break;
                        case this.leftKeyCode:
                                  found = this.getElementForKey(opts, 'x', 1);
                                  break;
                        case this.rightKeyCode:
                                  found = this.getElementForKey(opts, 'x', -1);
                                  break;
                        case this.escKeyCode:
                        case 9:
                                  this.clearSelection();
                                  this.hasFocus = false;
                        default: return;
              switch (found)
                        case 0: return;
                        case 1:
                                  //subopts
                                  this.mouseOver(listitem, e);
                                  break;
                        case 2:
                                  //parent
                                  this.mouseOut(opts[2], e);
                                  break;
                        case 3:
                        case 4:
                                  // left - right
                                  this.removeClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
                                  break;
              var link = opts[found].getElementsByTagName('a')[0];
              if (opts[found].nodeName.toLowerCase() == 'ul')
                        opts[found] = opts[found].getElementsByTagName('li')[0];
              this.addClassName(link, opts[found].getElementsByTagName('ul').length > 0 ? this.subHoverClass : this.hoverClass);
              this.lastOpen = link;
              opts[found].getElementsByTagName('a')[0].focus();
            //stop further event handling by the browser
              return Spry.Widget.MenuBar.stopPropagation(e);
    Spry.Widget.MenuBar.prototype.mouseOver = function (listitem, e)
              var link = listitem.getElementsByTagName('a')[0];
              var submenus = listitem.getElementsByTagName('ul');
              var menu = (submenus.length > 0 ? submenus[0] : null);
              var hasSubMenu = (menu) ? true : false;
              if (this.enableKeyboardNavigation)
                        this.clearSelection(listitem);
              if(this.bubbledTextEvent())
                        // ignore bubbled text events
                        return;
              if (listitem.closetime)
                        clearTimeout(listitem.closetime);
              if(this.currMenu == listitem)
                        this.currMenu = null;
              // move the focus too
              if (this.hasFocus)
                        link.focus();
              // show menu highlighting
              this.addClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
              this.lastOpen = link;
              if(menu && !this.hasClassName(menu, this.subHoverClass))
                        var self = this;
                        listitem.opentime = window.setTimeout(function(){self.showSubmenu(menu);}, this.showDelay);
    Spry.Widget.MenuBar.prototype.mouseOut = function (listitem, e)
              var link = listitem.getElementsByTagName('a')[0];
              var submenus = listitem.getElementsByTagName('ul');
              var menu = (submenus.length > 0 ? submenus[0] : null);
              var hasSubMenu = (menu) ? true : false;
              if(this.bubbledTextEvent())
                        // ignore bubbled text events
                        return;
              var related = (typeof e.relatedTarget != 'undefined' ? e.relatedTarget : e.toElement);
              if(!listitem.contains(related))
                        if (listitem.opentime)
                                  clearTimeout(listitem.opentime);
                        this.currMenu = listitem;
                        // remove menu highlighting
                        this.removeClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
                        if(menu)
                                  var self = this;
                                  listitem.closetime = window.setTimeout(function(){self.hideSubmenu(menu);}, this.hideDelay);
                        if (this.hasFocus)
                                  link.blur();
    Spry.Widget.MenuBar.prototype.getSibling = function(element, sibling)
              var child = element[sibling];
              while (child && child.nodeName.toLowerCase() !='li')
                        child = child[sibling];
              return child;
    Spry.Widget.MenuBar.prototype.getElementForKey = function(els, prop, dir)
              var found = 0;
              var rect = Spry.Widget.MenuBar.getPosition;
              var ref = rect(els[found]);
              var hideSubmenu = false;
              //make the subelement visible to compute the position
              if (els[1] && !this.hasClassName(els[1], this.MenuBarSubmenuVisible))
                        els[1].style.visibility = 'hidden';
                        this.showSubmenu(els[1]);
                        hideSubmenu = true;
              var isVert = this.hasClassName(this.element, this.verticalClass);
              var hasParent = els[0].parentNode.parentNode.nodeName.toLowerCase() == 'li' ? true : false;
              for (var i = 1; i < els.length; i++){
                        //when navigating on the y axis in vertical menus, ignore children and parents
                        if(prop=='y' && isVert && (i==1 || i==2))
                                  continue;
                        //when navigationg on the x axis in the FIRST LEVEL of horizontal menus, ignore children and parents
                        if(prop=='x' && !isVert && !hasParent && (i==1 || i==2))
                                  continue;
                        if (els[i])
                                  var tmp = rect(els[i]);
                                  if ( (dir * tmp[prop]) < (dir * ref[prop]))
                                            ref = tmp;
                                            found = i;
              // hide back the submenu
              if (els[1] && hideSubmenu){
                        this.hideSubmenu(els[1]);
                        els[1].style.visibility =  '';
              return found;
    Spry.Widget.MenuBar.camelize = function(str)
              if (str.indexOf('-') == -1){
                        return str;
              var oStringList = str.split('-');
              var isFirstEntry = true;
              var camelizedString = '';
              for(var i=0; i < oStringList.length; i++)
                        if(oStringList[i].length>0)
                                  if(isFirstEntry)
                                            camelizedString = oStringList[i];
                                            isFirstEntry = false;
                                  else
                                            var s = oStringList[i];
                                            camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
              return camelizedString;
    Spry.Widget.MenuBar.getStyleProp = function(element, prop)
              var value;
              try
                        if (element.style)
                                  value = element.style[Spry.Widget.MenuBar.camelize(prop)];
                        if (!value)
                                  if (document.defaultView && document.defaultView.getComputedStyle)
                                            var css = document.defaultView.getComputedStyle(element, null);
                                            value = css ? css.getPropertyValue(prop) : null;
                                  else if (element.currentStyle)
                                                      value = element.currentStyle[Spry.Widget.MenuBar.camelize(prop)];
              catch (e) {}
              return value == 'auto' ? null : value;
    Spry.Widget.MenuBar.getIntProp = function(element, prop)
              var a = parseInt(Spry.Widget.MenuBar.getStyleProp(element, prop),10);
              if (isNaN(a))
                        return 0;
              return a;
    Spry.Widget.MenuBar.getPosition = function(el, doc)
              doc = doc || document;
              if (typeof(el) == 'string') {
                        el = doc.getElementById(el);
              if (!el) {
                        return false;
              if (el.parentNode === null || Spry.Widget.MenuBar.getStyleProp(el, 'display') == 'none') {
                        //element must be visible to have a box
                        return false;
              var ret = {x:0, y:0};
              var parent = null;
              var box;
              if (el.getBoundingClientRect) { // IE
                        box = el.getBoundingClientRect();
                        var scrollTop = doc.documentElement.scrollTop || doc.body.scrollTop;
                        var scrollLeft = doc.documentElement.scrollLeft || doc.body.scrollLeft;
                        ret.x = box.left + scrollLeft;
                        ret.y = box.top + scrollTop;
              } else if (doc.getBoxObjectFor) { // gecko
                        box = doc.getBoxObjectFor(el);
                        ret.x = box.x;
                        ret.y = box.y;
              } else { // safari/opera
                        ret.x = el.offsetLeft;
                        ret.y = el.offsetTop;
                        parent = el.offsetParent;
                        if (parent != el) {
                                  while (parent) {
                                            ret.x += parent.offsetLeft;
                                            ret.y += parent.offsetTop;
                                            parent = parent.offsetParent;
                        // opera & (safari absolute) incorrectly account for body offsetTop
                        if (Spry.is.opera || Spry.is.safari && Spry.Widget.MenuBar.getStyleProp(el, 'position') == 'absolute')
                                  ret.y -= doc.body.offsetTop;
              if (el.parentNode)
                                  parent = el.parentNode;
              else
                        parent = null;
              if (parent.nodeName){
                        var cas = parent.nodeName.toUpperCase();
                        while (parent && cas != 'BODY' && cas != 'HTML') {
                                  cas = parent.nodeName.toUpperCase();
                                  ret.x -= parent.scrollLeft;
                                  ret.y -= parent.scrollTop;
                                  if (parent.parentNode)
                                            parent = parent.parentNode;
                                  else
                                            parent = null;
              return ret;
    Spry.Widget.MenuBar.stopPropagation = function(ev)
              if (ev.stopPropagation)
                        ev.stopPropagation();
              else
                        ev.cancelBubble = true;
              if (ev.preventDefault)
                        ev.preventDefault();
              else
                        ev.returnValue = false;
    Spry.Widget.MenuBar.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
              if (!optionsObj)
                        return;
              for (var optionName in optionsObj)
                        if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
                                  continue;
                        obj[optionName] = optionsObj[optionName];

    Try the following changes to the JS file
    Lines 103 and 104 change the values
    this.showDelay = 100; // was 250
    this.hideDelay = 200; // was 600
    Comment out line 286
    Spry.Widget.MenuBar.prototype.bubbledTextEvent = function()
    //    return Spry.is.safari && (event.target == event.relatedTarget.parentNode || (event.eventPhase == 3 && event.target.parentNode == event.relatedTarget));
    Comment out line 366 and add new lines 366 and 367
    var self = this;
    this.addEventListener(listitem, 'click', function(e){self.Click(listitem, e);}, false);
    this.addEventListener(listitem, 'click', function(e){self.mouseOver(listitem, e);}, false);
    //   this.addEventListener(listitem, 'mouseover', function(e){self.mouseOver(listitem, e);}, false);
    this.addEventListener(listitem, 'mouseout', function(e){if (self.enableKeyboardNavigation) self.clearSelection(); self.mouseOut(listitem, e);}, false);
    I have not tested the above changes ontouch screens; they do seem to work Ok on desktops.
    NOTE: Line numbers could be different because of the difference in our versions.

  • There has to be a quick audio fix.

    Suddenly when I drag clips from the bin to the timeline, it doesn't bring the audio. These clips do have audio, and now even the clips that I dragged yesterday, when the audio was fine, aren't dragging their audio onto the line. I must have switched something, right?
      Mac OS X (10.4.8)  

    So, somehow I fixed it, by resetting the sequence settings, I think (God I'm a noob) but Now, each new clip I drag in, which I am laying text over, requires a new track to be added so I can have my text over it. I can see the video and audio clips trying to go in, but each new track makes them split further and further, I can't just have them be on T1 and A1.
    Also, it seems like Final Cut is moving really sluggish which seems strange because I would have thought the machine I'm running it on would be able to handle it.

  • HELP, need quick script fix

    Hi,
    Our InDesign is acting up here. We are designing massive amounts of tables for various annual reports. After the design for print is done, these tables need exporting to xHTML.
    We have tested this extensively, and written complicated CSS files and many cell-styles to make it work.
    The thing is, that now when the final test-export needs to be done. InDesign suddenly returns a Stack Overrun error message when exporting. The only thing that seems to happen is that we cut out each page, paste it into a new document, save, and then do the xHTML export. But we are talking hundreds of pages here.
    My Apple script is not too good, but I am sure this can be done by a simple script. And I am quite sure it has been done before.
    Can anyone here please point me in the correct direction.
    PS. A bug report has been made to Adobe about this issue

    Thank you for the quick reply. Smart ports look very cool. I like the idea and may find this useful for other purposes but if I am reading this right, it won't work for what I need. It looks like he would need to log into the switch to apply the macro. He is a phone guy and does not want to actually touch the switch. So I was looking for like a perl script of something that I could configure with my TACACS credentials. Also I won't know what port he needs reconfigured until he needs it, so I need him to be able to add the port number as a variable without him actually having to do any programming. he would be will to run it as part of a command (i.e run command.exe 10.10.10.22 g1/0/22 222, where 10.10.10.22 is switch IP, g1/0/22 is port, and 222 is the new vlan) or if I can do somekind of prompt that would be great!

  • Quick List of Quick Fixes???

    Does anyone have a resource for quick hardware fixes? My G5 is having problems starting and waking (go figure). It's getting a little worse, and I'm looking for options. Not necessairily the right options, but just things to try. Such as cracking her open and holding down the little reset button (PRAM? I'm not sure...) Other keys to hold down while booting (safe mode etc.). Anything I could try would be helpful!
    (Holding down the power button doesn't count!!)

    Some to start you off
    Apple won't-start-ups plus more links
    http://docs.info.apple.com/article.html?artnum=86523
    [only recently changed to 10.3.9]
    PMU is here
    http://macosg.com/group/viewtopic.php?t=5819&highlight=resetting+pmu

  • Itunes stops working and wont play purchased tv shows, i tried the quicktime unchecking box fix and that didn't work. help

    im new here trying to get help.  my itunes stops working when trying to play tv shows and movies.  i tried the quick time fix, unchecking a tab in the advanced section that didn't work for me.  i have now uninstalled itunes that didn't work either.  help

    Try this. It worked for a few users after a drop.
    Turn the iPad over and give it a very HARD slap on the back. May take several slaps.
     Cheers, Tom

  • Looking for Filter / Effect to fix Photo

    I thought I would give this a shot and see if anyone could help. Quick story - fixing old photo from the 20's and a section right in the middle has water damage and I needed to rebuild a marble railing.
    I actually found a picture of the same railing but I am having trouble matching the new railing into the old photo, very tough to age it. The original is a print that has clear coat on it so the scanner picks up all the little cracks in the clear coat. I have been trying with the blur filter and noise - I can get it close but it still sticks out when I run a test print.
    Somehow need to match the cracking or at least come close. A filter or a combination?
    Photo #1 is a section of the print and also I loaded the railing by itself.
    Thanks

    Hi
    If you have flash or lightroom take a look at slideshow pro - http://slideshowpro.net/.
    There are also a number of extensions you can try on the dreamweaver exchange, see - http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=slideshow&search_exchange=3&se arch_category=-1&search_license=&search_rating=&search_platform=0&search_pubdate=&num=25&s tartnum=1&event=search&sticky=true&sort=0&rnav_dummy_tmpfield=&Submit=.
    PZ

  • Mail server no longer accepting incoming mail

    First off, let me just say that yes, I broke it. This is on an iMac G4 with Server 10.4.11.
    So here's the problem. I am by no means a qualified Server Administrator, but since I am a relatively knowledgeable computer geek, my boss plugged me into this position while my department is slow. I've been tasked with figuring out a few nagging problems with slow mail delivery, among other things.
    I did some serious Googling on the issue of slow mail delivery, messages getting stuck in queue, etc. I determined that the issue was with spam filtering and anti-virus. Following some great documentation from osx.topicdesk.com, I updated and configured clamav, amavisd, and spamassassin. Miraculously, this actually solved the problem, and everything was working great.
    Until today. Today I noticed a log entry that reverse DNS lookup of the server's IP (192.168.1.1) had failed. Googled again and found some info on setting up DNS on the server, which I did.
    There was a secondary goal for doing this. We are a small company that hosts our own email and a tiny web server on a machine at our corporate office. Our remote locations have always been able to get email from the server via POP3 using the FQDN mailman.mycompany.com, which has a public IP address. Our router is configured to forward traffic to that IP to the private IP 192.168.1.1. However, all users at the corporate office had to be set up to use server IP 192.168.1.1 to get their mail because there was no way to resolve the FQDN into an IP that was visible on the private network. Or maybe there was/is, but I don't know about it. Anyway, we have a couple mobile users that work at multiple locations. They are set up to use the server's FQDN, but every time they come to our corporate office, they'd have to change their mail setup if they wanted to get mail, because once they're behind the router, the FQDN doesn't work. I think that makes sense.
    The Server is also the DHCP server for this site. Prior to this morning, it was distributing our ISP's DNS IPs. Once I'd set up DNS on our Server, I changed it to distribute its own IP as the primary DNS server, and per someone's post, I modified named.conf to include our ISP's DNS IPs. The server name I set up is 'server' and the domain is 'mycompany.com'. I also set up an alias of 'mailman' and set it as a mail server. I then went to a couple of workstations in the building and did a Lookup on server.mycompany.com and mailman.mycompany.com, both of which returned an IP of 192.168.1.1. I did a lookup on the IP and it resolved back into server.mycompany.com.
    Figuring I'd accomplished enough for the first half of the day, I went to lunch. When I got back, I was bombarded with complaints that mails were being bounced when sent from inside the building, and a few people had received phone calls that mails sent to them had been bounced back to their senders. The error given is:
    554 554 <[email protected]>: Relay access denied (state 14).
    (This came from Google. The wording varies from person to person but it's always SMTP 554, relay access denied.)
    In a panic, I un-did everything I'd done this morning, turning off DNS server, telling DHCP server to begin distributing our ISP's DNS IPs again, but I'm still having the same problem. I didn't see how this could be the cause, but did it just as a precaution.
    I doubt I've provided enough information, but does anyone have any initial guesses as to what's going on here?
    ARM

    Thanks for the quick, easy fix. I'm curious if you know what I might have done to cause this to happen. I don't recall changing any Mail settings.
    Sometimes Server Admin "forgets" settings.
    Also, apparently something I did wiped out our IMAP mail store. I had a backup thankfully but wondering how I might have done that?!
    Wiped out at the file level as in no contents in /var/spool/imap/user?

  • Windows 7 Bootcamp problem?

    Hello people,
    Let me start from the beginning. I have been trying to make a bootcamp partition on my iMac mid 2007 to run windows 7 on. This has been a very bumpy road so far and now I'm stuck at a bump. So far, this is what all I have done:
    1. Use bootcamp support to create a bootcamp partition.
    2. Install windows 7 from disk.
    This is where it gets bumpy. At the completing installation portion of this, my screen goes black, and doesn't return. Easy enough, its probably a driver problem. So I
    3. Restart and boot to CD into repair my computer.
    4. Go to command prompt, and issue the command DEL C:\WINDOWS\SYSTEM32\DRIVERS\ATIKMDAG.SYS
    5. Restart. Says "Preparing computer for first time use."
    Good from here right? WRONG. New error message: The computer restarted unexpectedly or encountered an unexpected error. Press OK to restart and restart installation. After some searching, turns out a quick registry fix can solve this problem.
    6. Press shift+f10 to open CMD. issue command regedit.
    7. Go to the setup part of the registry (HKeyLocalMachine/System/Setup/Status/ChildCompletion) change the value from 3 to 1.
    8. Restart. Setup continues, finishes, boots into Windows 7 and 800x600 resolution.
    9. I go to screen resolution, and change it to max, and it works. Everything is great almost.
    Now, remember that atikmdag.sys file I had to delete to get the setup to reappear instead of that black screen? Well turns out, with that file gone, my computer now reads my graphics driver as corrupt or as having a problem, preventing many games and applications from booting up without giving a graphics card error. THIS is where I am stuck now. If atikmdag.sys is a vital file to the driver for the graphics card, how can I keep it where it is, but still boot up without a black screen? Reinstalling my video driver or reinstalling the bootcamp drivers cause the black screen or blue screen of death, so I have to delete that .sys file again to boot correctly. But without this .sys file, it seems my computer will always throw the corrupt/problem error at me?
    Let me say, I have tried to download the catalyst drivers and use the atikmdag.sy_ file from there and issue the command "expand.exe atikmdag.sy_ atikmdag.sys" to make a new sys file for it, and this works and it boots with the file, but device management then throws the error that all of the packages arent signed correctly and refuses to boot the driver at all. Any help?
    Cheers, Adam

    easy enough, just confirm that you have no other usb devices connected to your mac
    where is your current w7 disk from? we're going to make a new one unless you tell me its a retail disk
    dl a fresh w7 iso from below and google bootable iso disk on osx for steps
    http://techverse.net/download-windows-7-iso-x86-x64-microsofts-official-servers/
    open boot camp assistant and if you have an option to delete/remove windows, do that
    open disk utility and confirm that you only have 1 partition ('mac hd' unless you've renamed it), if not you need to get back to 1 partition

  • Photoshop CS4 Crashes When Deleting In Explorer Window

    I'm running Windows 7 with gigs of hard drive space and 9 gigs of fast RAM. Whenever I open a file in Photoshop CS4 Extended (v.11.0.1) the "Open" file explorer window pops up and I then navigate to any image folder. If I'm in this window and see any file I don't need any longer and try to delete it PS crashes. I get the "Photoshop no longer responding" error and it shuts down. Other times it happens while I'm working on a file, sometimes when applying filters. The following error always shows up in the Event Viewer:
    Faulting application name: Photoshop.exe, version: 11.0.1.0, time stamp: 0x499bf9b5
    Faulting module name: QTCF.dll_unloaded, version: 0.0.0.0, time stamp: 0x4aa21f2c
    Exception code: 0xc0000005
    Fault offset: 0x67cec11b
    Faulting process id: 0x1fec
    Faulting application start time: 0x01ca793f11f8305d
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe Photoshop CS4\Photoshop.exe
    Faulting module path: QTCF.dll
    Report Id: 92ee343e-e532-11de-8888-0024e81c8cb0
    I've looked everywhere for an answer and Google doesn't have anything. I did try the following as suggested on other forums for similar crashes:
    Repaired/replaced the QTCF.dll file (Apple QuickTime DLL)
    Ensured fonts aren't corrupt
    Ran diagnostics on RAM, HD and system incl. registry - All OK
    Ensured scratch disks were local and correct
    Deleted PST temp files
    Tried starting PS without preferences
    Reduced/Increased memory allocation
    Installed latest video drivers from ATI
    Reinstalled PS CS4
    Any idea what is going on? This is seriously affected my workflow and I can't seem to find anyone with a similar issue. Any help would be greatly appreciated!
    Thanks,
    Jim

    According to a few google searches the dll has to do with either itunes or quick time. The quick time fix was to go to control panel, programs, click on quick time then repair. If you have itunes install do the same but there might not be a repair option when you highlite.
    Go to the adobe website to see if there is a quick time viewer for Windows 7 64 bit.
    http://www.apple.com/quicktime/download/
    I don't have itunes or Quicktime installed on either computer. I can't remember if the CS4 Extended disk install quicktime. All I installed off the Disk was CS4 Extended and Bridge.

  • Verizon Galaxy Nexus LTE and the iPad

    I had Unlimited Data on my VZW account and I have a Verizon Galaxy Nexus (which uses a microSIM)
    Would I be able to pop my Nexus sim into the iPad and start using the data from my VZW account on my iPad?
    I've swapped SIM's with other 4G phones (Thunderbolt SIM with a MiFi). I get service disruption ocassionaly but a quick reboot fixes it.
    I assume that the disruption is caused by software issues on the MiFi or Verizon's LTE service.

    Certainly not going to renew with Verizon and I'm in the same boat about jumping ship early.  Depending on the prices, specs, and manufactures of the next crop of Nexus devices will determine if and when I jump ship early.  Never again will I be on a cellular contract or use a locked phone.  Verizon may claim to have the best network, but the other networks are not nearly as bad as Verizon's handling of the Nexus.  The ** about the delays be caused by "extensive" testing sure did a lot of good for the Nexus. Shortly after launch day OTA for bug fixes and then 4.0.4 delayed for 5 months just to get a somewhat more usable radio set.  At least if a straight from Google Nexus has an issue you can expect it to be fixed in days or weeks, not months.

  • Logic 9 corrupts EXS insts created/edited in Logic 8

    OK, I thought this issue was limited only to EXS instruments that used the VSL Performance Tool, but I'm finding that many (if not all) instruments I created or edited in Logic 8 are corrupted in Logic 9.
    Something fishy is going on in the EXS architecture between these versions. To be specific, it seems that EXS in Logic 9 doesn't recall certain parameters that I've set in version 8: zone loop on/off, start & end points, crossfade, LFO settings and on and on.
    This is an absolute show-stopper: I have HUNDREDS of custom EXS patches I created in Logic 8 alone that are unusable in Logic 9!
    Anybody else experiencing this?

    Specifically, mod matrix parameters do not recall properly. On some mod/matrix slots, values known to have been saved with non-zero values are recalled as zero. See the following link for an insight:
    http://www.logicprohelp.com/viewtopic.php?t=45379
    "Logic Expert", I admire your optimism though I may note entirely share it. I post feedback because it's one of the few channels we have to report bugs. The value in the forums -- as Jim said -- is to make others aware of problems, get confirmation from other users experiencing the bugs, and, dare I say, vent on occasion. And, of course, to occasionally have a laugh.
    For bugs there's also the ADC Bug Reporter, but there isn't enough time in the day to write up reports in the format they (understandably) request. If you're going to go the ADC route you're basically agreeing to be an unpaid beta tester. And the reality of using the Bug Reporter is that you won't necessarily get confirmation of the bugs you report. So you're feeding information into a system that promises basically nothing in return, not confirmation, not a 'thank you'. Only if you're really lucky will you get a response or a request for additional info.
    What I don't quite understand is what is so inappropriate about people occasionally expressing their anger because the software they just paid hundreds of dollars for doesn't work as advertised or as expected. Not saying that continual rant-fests is the way to go... far from it. But the frustration is there. It's visible everyday, world-wide on the 'Net vis a vis news articles, blogs, forums, on any number of issues related to Apple products, from laptop batteries blowing up to über-buggy software titles. And Apple's reputation for non-response is legendary.
    So what is it about Apple that they should be approached walking on eggshells, or not apprised of the tens of thousands of cumulative man-hours of wasted time and frustration assumed by customers unwitting of the beta-like software they just paid good money for? What is clearly not understood by some power-that-is (and I would also opine that the Emapple guys are not at fault here) is that _people make their living using these wares_. Logic is not a toy! But to advertise it as ready for public consumption and then to see things like this EXS mod matrix bug literally prevent people from making their living is reprehensible.
    You speculate that Apple reads the feedback. Sure, I think sending feedback is very important. However, I speculate that the Emapple guys are already aware of some (but not all) of these bugs. But I can't help but think that their hand was forced in putting Logic 9.0.0 out to market when it really should have been put out to pasture with a lot of other RC's.
    In terms of being hopeful, yes, let's hope that 9.0.1 comes out REAL quick and fixes, amongst other things:
    • EXS modulation matrix recall bug
    • UNDO history non-recall bug
    • no way to avoid creating take folders when punching into a track bug
    • remainder of punched-into MIDI region shortened when coming out of record
    • tempo event behavior that's vastly different from L8 (a confirmed bug with a fix purportedly in the works)
    • using "select unused" removes BIP files from the Arrange area
    • global track display doesn't function properly in the score editor
    • video thumbnail doesn't display in any Global tracks except those enabled in the Arrange page
    The bugs are real, but the rest is my opinion, which may differ from your opinion, YMMV, etc. etc.

  • Email will not sync with Mac and iPhone

    I have an iPhone 3GS which I've updated to OS 4. After reading an email on either my Mac or my phone and delete it, the message is not deleted from the other device. I'm not too "techy" and do not understand what I need to do in order to get the mail synched as it was in OS 3.

    I waited an extra week or two like I always do before updating, but I still caught the bug. I was interested when I saw the App Store, but really surprised when my phone didn't show up in iTunes. I haven't tried incredible troubleshooting steps, just letting you all know I have the problem also. As I read up and try those troubleshooting steps I'll come back and repost. Thanks for your posts on here...maybe Apple will be quick about fixing the update with a new update.
    Running Snow Leopard 10.6.6
    iTunes 10.1.1 (4)
    iPhone 3GS iOS 4.? +

  • You Prompted to me update itunes....your updates failed and now won't open at all

    Nsvcr80.dll is missing....and Error 7 Window Error 126....please reinstall itunes...are you freaking kidding me!!!!!!!!!!!!!!!!!!! Have you just lost all my playlists, video's and work over the past several years????????????????
    All I did was follow your updates and install now window!
    How is it that itunes doesn't pop up with a quick link to the correct their error!
    So now what? Please advise.

    Yes, I know King-Penguin....I'm just so frustrated and in a panic, that I was hoping the itunes geeks that sent out this falilure of an update would still see it, and feel bad. And maybe even send out a quick link fix it botton. Guess that's just a newbie way of thinking!
    Thank you for the reply with the fix it suggestions....I'm feeling a little less paniced now. I really appreciate your response.
    I assume from reading some of the posts that all the songs etc won't be lost when I reinstall?

Maybe you are looking for

  • Will 'Erase All Content and Settings' remove Apple ID from my iPad 2?

    Hi all. I've read that Erase All brings the iPad back to how it was when it left the shop. But I need to comfirm something 'cos here's the situation: 1. I just sold my mum's iPad to a third party shop. All done, or so I thought. 2. I get a text askin

  • Ripping Dvd's

    I am trying to use my new ipod and i was wondering does Super DVD to Ipod Converter,rip dvds to your computer and then convert them so itunes can use it? Please answer this somebody who know this!!!   Windows XP  

  • Palm Z22 screen problems.

    Hello i own a Palm Z22. yesterday the screen on it stoped working. i was playing solitair on it the night before the screen stoped working. i had left it on my living room table. i have tried resetting the device but that has not worked. is there any

  • Infinite calls to rowUpdated()

    Hi, I have created a table binding using a view object (say VO). There is a listener on that view object(VO) and in rowUpdated( ) method I called the executeQuery() of the view object(VO). After I update any value in the table and press enter, it goe

  • Confirm Goods / Services Centrally  - History!

    Hi!! I've never worked with this so I could be doing an easy question. where? In the portal under Purchasing --> Confirm Goods / Services Centrally --> select a purchase order --> start --> press action and get the history for the PO. What I need to