Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2004, 07:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default targeting a function

I'm hoping someone could help me on this. I have a child movie on a scene, the movie is called navBar_mc. In this movie I have buttons with the following code to position a highlight and scale the width. For some reason this will not work. But if I take the same code and put it on a parent level it will work. I know this is something simple but I cannot figure what is happening, I have tried targeting it everyway I can think of.

function btnHighlight(btnX:Number, btnWidth:Number){
    btnHighLight_mc._x = btnX;
    btnHighLight_mc._width = btnWidth;
    trace(btnX + "--" + btnWidth);
}

growth_btn.onRollOver = function() {
    btnHighlight(-301, 64);
}

Thanks In Advance
Mike Moore
__________________
Peace
Mike
http://www.eclecticpixel.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
send variable in function to another function schoolBoy Javascript How-To 6 March 3rd, 2007 09:16 AM
targeting external page in another page's IFRAME nancy HTML Code Clinic 1 March 30th, 2006 03:22 PM
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
Targeting main window from an iframe Sushifiend3000 Javascript How-To 9 November 26th, 2004 11:55 AM
retreive function/Line from macro or function? MikoMax J2EE 0 April 1st, 2004 04:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.