This is a cool menu concept but I think it was made in an older version of flash and there might be some scripting errors. I found this on flash kit .com and can’t figure out how to make the buttons load movies into my main.swf instead of taking people to a separate url.
Any takers want to help me decode this?
bump
scrolling down seems a little faster then the up
I think you might be right but I’m trying to m,ake it functional before perfect hehe.
so in my menu i have found there is code to make the buttons that are being duped link to a url. I wanted to convert the code from linking to a url to loading an external swf into my main.swf.
This is what it orginally said in the scripting
dup12:LinkA = “http://www.someURL.html”;
dup11:LinkA= “http://www.someURL.html”;
I tried changing it to
dup12:LinkA = on (release) {loadmovie (“pictures/20020104/20020104.swf”, “pictures”);}
dup11:LinkB= on (release) {loadmovie (“pictures/20020111/20020111.swf”, “pictures”);}
This is the warning I got when publishing
Symbol=rollers, Layer=Code, Frame=3: Line 2: Operator ‘=’ must be followed by an operand
dup12:LinkA = on (release) {loadmovie (“pictures/20020104/20020104.swf”, “pictures”);}
can anyone see how I can script this to do what i would like it to?
Yeah I tried changing the targets in frame three of “rollers”
(which is where it is noted to make the change)
and I still get it looking for “LinkA” instead of what I changed it to
???
…I don’t get this one at all - maybe LostinBeta will jump in -
???-
this is what I got on fr3 of rollers::
// this will set any link you need for each of the buttons
dup:LinkA = “scrollingwindow.swf”;
dup1:LinkA = “example.swf”;
I just did something like this like yesterday or two days ago
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=20065
And as for
[AS]dup12:LinkA = on (release) {loadmovie (“pictures/20020104/20020104.swf”, “pictures”);}
dup11:LinkB= on (release) {loadmovie (“pictures/20020111/20020111.swf”, “pictures”);}[/AS]
Giving you errors… of course it is giving you errors, its the absolute wrong usage of an on handler.
And on handlers can only be used on a button symbol (or a MovieClip symbol as well in Flash MX).
If your actions are within a frame you would need to use a dynamic event handler…
http://www.kirupa.com/developer/actionscript/tricks/dynamicevent.asp
And even then you can’t do a…
variable = on(release){//blah}
or a
variable = clip.onRelease = function(){//blah}
It just doesn’t work that way. I don’t really get what you are trying to do here.
And your code syntax is like Flash4 and there is a lot of excess code here… maybe its because it is 1am, but I am having a bit of trouble following what is going on :-\
in another post about this I mentioned this was found on flash kit.com and I am trying to decode it.
What I am trying to do is this.
Each week I add a new button to a menu on an html site I have. I am making it into a flash site andI am going to add the current menu which has 30 links and each week I will be adding a new link. To do this I need a menu where I can use actionscript to create a new button with a different link.
This link must load a separate movie into my main one.
does this make sence?
visual reference of html site found in the gallery at www.thisislondonclub.com
visual reference of flash foundat www.thisislondonclub.com/data/thisislondon/index.htm
i havent actually checked the fla… but it seems easy enough to make… however you wanna do the menu go ahead… then just make a mask of the area you want to show… (i would make a movie clip with all the buttons in the menu and then mask it) and then the masked mc full of buttons… just change the y position, adding if you move down or subtracting when you move up to give you that smooth scroll effect… then a couple if statements to check where it is…
Yeah, the more I try to screw around with this one the less sense it makes. I mean it looks pretty and all but it doesn’t function (?!?)
Near as I can see, you’d have to open this sucker up every time anyway to change it…it is more meant to predetermine a large number of links and you only change how many of them you want to show - then it dynamically adjusts the size of the menu accordingly (26 links today - 199 links tomorrow) … if you could ever get it to work without rebuilding it from scratch - methinks it’s way too buggy and out of date
What would make more sense to what you’re looking for is::
- Look at Lostinbeta’s thread link - grab that .fla http://www.kirupaforum.com/forums/s…&threadid=20065
- Load that clip up with dynamic text fields each with unique var names
- Search out how to load hyperlinks in from a text type file (XML?) one to each field and just change that file with your different links as you need
That would be less awkward and have the same look and operation to the eye
Do a search for :: “hyperlinks in dynamic” within the thread search link (row of buttons, not the text search field)
You’ll find a bunch of them… alter search terms around to get variations of the same theme
Here’s one:: http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19295
the thing with lost in betas menu is that it seems to be built around an infinate menu concept where it cycles around and around. You have to add a new button manually by dragging it from the library and adding actions to it.
The stage being only so big can only hold so many buttons.
As RelandR says I need 26 links today and possibly 199 tomorrow. Whats this means is I need action script to generate all the links which I can scroll through.
I am continueing this thread because this is the only example of which I have that does what i want I just can’t get it to work. If anyone has any idea how to rescript this it would be great.
Here is a less confusing version of the attachment above. I have trimmed out alot of thing that just don’t need ot be there.
the problem with laoded dynamic text from an external .txt is that I can only use html to make the buttons do anything. And html can not effect my movie. I need an external swf to be imported into a blank movie clip into my current movie.
Zephn… My menu can easily be dynamically created. All you would have to do is use a for loop to dynamically attach the buttons into the MC that is beneath the mask.
And it definitely doesn’t follow the infinite menu method, it is just a simple scroll up and down.
The only difference is my menu uses a howFarDown variable to stop it at a different point. But all you would have to do is create an equation that checks out the _height of the movie clip that contains your dynamically created links and the _height of your mask to determine how much is should scroll.
…and I still think that rather than reverse engineer that fla you’d be better off to find a way to load not only the title for each button but the path for the loadMovie both from an xml file…
I’m not sure how to word it but I’m sure that the path to various .swf’s could be called in from xml and placed into the loadMovie() sequentially… you’d probably have to name each of your movies similar with appending #'s 0 - whatever.
Your duplicating btnClipMC would need to contain a dynamic text field for the label and an onRelease action to load whichever movie was next on the list as well as an extra frame to hold a ‘highlghted’ appearence for an onRollover
Ok Zephn… I came up with this… ::check attachment::
Let me know if thats what you wanted BEFORE I write a step by step explanation please.
ok this is exactly what i want except i have a question or two… since i don’t want to keep you waiting while i try and work it out
Where does the linking for the buttons come into play? I know i can’t go stright intot he button and apply the actions because it would be the same for every button… and can i use a loadmovie command in the links?
If you look in the for loop you will see an onPress command. This is where it happens.
And Yes… you can use a loadMovie() command (provided that all your buttons will be using a loadMovie() command, all you would have to do is set up another array to store the movies to be loaded, I will do that before I write up my explanation).
then this is absolutly marvolous… I understnad why they say guru. I await your exaplnation