Go Back   OXYLUS Flash Board > Support > Horizontal Scroller

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-05-2008, 07:36 PM
Junior Member
 
Join Date: Jul 2008
Posts: 4
Default

no action with this :

function clickHandler(dat, lbl) {
root.page = dat;
}

or

function clickHandler(dat, lbl) {
_root.page = dat;
}

with :

<item image="thumbs/11.jpg" label="contact" data="contact" />

Here is the code of my button that works :

on (release)
{
_root.page = "contact";
}

ps : contact page is an clip

how to adapt in function clickHandler(dat, lbl), an idea ?
Reply With Quote
  #12 (permalink)  
Old 07-08-2008, 06:05 PM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

I am sorry, but I really don't understand what you are trying to achive.
Reply With Quote
  #13 (permalink)  
Old 07-31-2008, 12:50 PM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default

Is he trying to do what I'm trying to do, jump to a frame in another movie:

Code:
_root.movie1_mc.movie2_mc.gotoAndPlay(dat);
I can't get this to work for love nor money. Any suggestions? I don't think it's just a scope problem from _root I can drill down to the time line of my nested movie, and advance frames but I can't drill down any further to another nested instance?

Any help?
Reply With Quote
  #14 (permalink)  
Old 07-31-2008, 07:24 PM
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default

I'm trying to make it goto a given label and nothing. I must be missing something,
I can make it open url, but no goto frame or goto label or even "open movie to level X", wich would be the best solution for me.

tried

function clickHandler(dat, lbl) {
var label:String = dat;
some_mc.gotoAndPlay(label);
}


and

function clickHandler(dat, lbl) {
var label:String = dat;
some_mc.gotoAndPlay(dat);
}


any ideas???
Reply With Quote
  #15 (permalink)  
Old 08-04-2008, 10:53 AM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

Code:
function clickHandler(dat, lbl) {
var label:String = dat;
some_mc.gotoAndPlay(label);
}
This is the correct way. You must replace some_mc with the name of the movie clip you want to play. Also, you must edit the xml filewith the label name of the frame you want to play in that movie clip:

Code:
<item image="thumbs/11.jpg" label="Old tree from my aunt's backyard" data="label_name_goes_here" />
Reply With Quote
  #16 (permalink)  
Old 08-06-2008, 08:54 PM
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default

thanks Adrian
I think I get it, but I have two things I'd like to know how to accomplish:
(sorry for beeing total newb on AS)

1.
I have horizontalscroller.swf on level10 and when I press "button1" I want it to load "movie1.swf" to level11, when I press "button2" I want it to load "movie2.swf" to level11, and so on...

2.
I have horizontalscroller.swf on level10 and when I press "button1" I want it to load "movieX.swf" to level11 and make it go to "label1", when I press "button2" I want it to load "movieX.swf" to level11 and make it go to "label2", and so on...

Can you post the code to how can I achieve that?
Reply With Quote
  #17 (permalink)  
Old 09-26-2008, 01:46 PM
Junior Member
 
Join Date: Sep 2008
Posts: 1
Default good work

Hi, first of all, this is a very good piece of work! thank you!

I've been able to tweak it to my needs, but I can't get over a couple of things...
1- is it possible to set formatting on the text note? I need to have a part of the text in bold red bigger, and another part of the note in regular

2- is it possible to change the color of the border? I changed the movie bgcolor and all other color that I thought would change something, and nothing, it's always white

3- I want to pass parameters to the animation from a webpage, and use it later when a thumb is clicked.

Is there someone who knows how to achieve this?
thanks a lot!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.