0
kansasskydiver

Adobe Flash 8 Code Help

Recommended Posts

Ok I cheated and bought a flash template. I've got it how I want it set up but within the site there are links everywhere that open up a popup window with more information. The problem is, each link opens up the same window. Here is the action code for it but I don't see where it's linking to said particular txt box or how to create more etc.

on (release) {
_root.popup_pressed = 1;
_root.scrHEIGHT = 240;
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = "Enter Title Here";
_root.READ = 11;
_root.scroller.gotoAndPlay("s1");
}


Does any of that made sense to anyone enough to see how it's linking over?
<--- See look, pink dolphins DO exist!

Share this post


Link to post
Share on other sites
I'm relatively new to ActionScript, but this is what it looks like to me:

The gotoAndPlay function is referring to a particular frame of the scroller movie (by the frame's label, "s1", which you'd be able to see in the Property Inspector if you open the scroller object). I'd guess the scroller comprises a single frame or group of frames for each different popup that you want to display - but since in your code example the frame label value is hard-coded as "s1", it'll always play the same section.

Presumably the template suppliers are expecting you to customise the code and attach a different version to each link on your main page. So for example one version would refer to "s1", another to "s2" and so on. Then, so long as you've got different content on those frames of the scroller movie, you should see a different popup with every link.

Hope that helps. If not, I'd recommended you try a dedicated Flash forum. The community section at keyframer.com is pretty helpful.

Edited to add: if you open the scroller object, you'll be able to see easily which frames have labels attached because they're marked with a little red flag in the timeline. If you need to add more labels, just select the appropriate frame and enter the label name in the Propery Inspector.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0