Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

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
0
Ramesh Srinivas
Asked:
Ramesh Srinivas
1 Solution
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now