gallery buttons

  • dann_the_van
  • Novice
  • Novice
  • dann_the_van
  • Posts: 23
  • Loc: South Wales, UK

Post 3+ Months Ago

hi guys,

i've got a gallery movieclip that has buttons representing each project, that all use the same code. Is there a way i can create a function in the _root.frame and call it into the movieclip gallery buttons when i click them.
for example, if i was to put a function 'trace(this._name);' into a function named 'tracer', which is scripted on the main timeline, can i call from inside my gallery movieclip, 'this.onRelease = function(_root.tracer)?

I usually just copy and paste the script into each gallery button, but i'm trying to decrease the size of my SWF dramatically. I want dial-up users to have unlimited access, so i'm trying to re-use instances of coding as much as possible.

any suggestions.

Thanks,
Danny.

btw, just incase, there are over 27 buttons inside my gallery MC. therefore, i want a code to be shared between them, as it's all the same script, just different imagery.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • dann_the_van
  • Novice
  • Novice
  • dann_the_van
  • Posts: 23
  • Loc: South Wales, UK

Post 3+ Months Ago

hi guys.

sorry to waste your time, as i've now done it. I really must get some sleep :-p

i've used the function call method,
any other suggestions.

Thanks,
Danny

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 16 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.