Strange behaviour or just me??

Hi all,

I have a flash file and I am loading external swfs into my flash file via buttons inside movieclips.

The loading method is taken from the full site that is in the tutorial section.

My buttons used to respond to clicks, but now they are not - and also more recently one of the buttons has stopped playing the rollOver effect! There are 5 buttons on the stage and all five are taken from the same movieclip, so i do not understand why the 1st button has stopped working.

I appreciate any help on this.

Files can be found  http://server1.unflux.net/~saleek/test/home.swf and http://server1.unflux.net/~saleek/test/test.fla

if I take out the 1st button, then the next button along stops responding (huh?).

regards,

KS
LVL 11
Ramesh SrinivasTechnical ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

j3oneCommented:
I have flash 5 so cannot download your swf, but I may be able to help a little anyway...

To clarify, you are talking about the buttons on the right that launch url's right?
1. They all seem to have the rollover effect
2. there are 8 (not 5) buttons on the side there?
3. they all seem to work, even the first one...
0
trigger-happyCommented:
Hello saleek,
        I checked the swf, they all seem to working just fine....

--trigger-happy
0
blue-genieCommented:
Hi, what version of Flash have u used to create your file?

I agree with above posts, i don't see ur problem.

blu.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Ramesh SrinivasTechnical ConsultantAuthor Commented:
Hmm. thanks for all the replies guys.

I was actually refering to the buttons at the top, the 5 five slanted buttons - it's strange but i do not get the rollover effect for the first button. And my onRelease functions do not work.

I'll try re-creating the file again <sigh>.

thx,

KS
0
blue-genieCommented:
ah, ok, we were all looking at the swf, which is very different to your fla.

simply move the first keyframe of Layer1 in the MenuSys movieclip, so that the stop action is not on the first frame of your tween for btn1 .

in other words, make sure all keyframes are empty in that frame 1.

blu.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ramesh SrinivasTechnical ConsultantAuthor Commented:
That worked - the button actions do not work tho still - any ideas on that?

thx,

KS

0
blue-genieCommented:
what are they supposed to do?
0
Ramesh SrinivasTechnical ConsultantAuthor Commented:
As per the tutorial on Kirupa, the button function:

menuMC.b2.btn.onRelease = function() {
      if (_root.section != "services.swf") {
            _root.section = "services.swf";
            _root.trans.gotoAndPlay("playAniClosing");
      }
};

When the swf first loads, the variable "section" is assigned the value "home.swf". A transition plays and during the "closing" animation (which is just an alpha being 100% on a white rectangle), the transition loads the value of "section" into eh movieclip _root.secMC, which is a container to load the external swf into. When the load is complete the transition plays the "opening" sequence.

Works fine on first load, but the button functions are not responding.
0
blue-genieCommented:
possibly because your code says
gotoAndPlay("playAniClosing") - but your frame label is in fact playAniClose.

see the problem?

blu.
0
Ramesh SrinivasTechnical ConsultantAuthor Commented:
Yes, even then it does not work.

I put this on the _root frane 1:

menuMC.b1.btn.onRelease = function() {
      getURL("http://www.google.com");
};

Does not do anything!

thanks for your help,

KS
0
blue-genieCommented:
saleek, what exactly is the problem?

a moment ago, u said the problem is here:

menuMC.b2.btn.onRelease = function() {
     if (_root.section != "services.swf") {
          _root.section = "services.swf";
          _root.trans.gotoAndPlay("playAniClosing");
     }
};

where now is the getURL coming into it?
decide exactly what you want each button to do then let me know.
0
Ramesh SrinivasTechnical ConsultantAuthor Commented:
blue,

I was just trying to point out that the button is not firing any code. The getURL was just a test to see if the button was working at all.

Sorry for the confusion.
0
Ramesh SrinivasTechnical ConsultantAuthor Commented:
I moved the button code to the menuMC timeline and it seems to be working now. thanks for yr help.

regards,

KS
0
blue-genieCommented:
where's ur code for Menysys to play?
0
Ramesh SrinivasTechnical ConsultantAuthor Commented:
The clip at the top of the stage (instance of main) has a frame where the menusys is played.
0
blue-genieCommented:
blimey, that's what i call well hidden
the setup is rather confusing, at a later date if you should need changes, or god forbid, you should not be "around" - the developer who has to pick up after you is bound to suffer.

good luck.
blu.
0
Ramesh SrinivasTechnical ConsultantAuthor Commented:
In my defence, I'm not really a flash developer and for what I wanted to achieve, this is the only way i knew how to do it.

I wanted the bloody menu buttons to fade in AFTER the top header had faded in. The only way I knew how was to add that code right after I knew for sure that the header had faded in completely.

anyway, nice one,

KS
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.