Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nesting movie clips may be causing error??

Status
Not open for further replies.

NIA2

Technical User
Aug 30, 2006
137
AU
Hi everyone,

I'm trying to attach a movieclip ("webText_mc") to a scrollpane component. I've used the following code:

webBase_mc.webBaseInner_mc.webScrollPane.contentPath = "webText_mc";
webBase_mc.webBaseInner_mc.webScrollPane.setStyle("borderStyle", "none");

Using this code, and with the component called "webScrollPane" it's not working, but if the scrollpane is only one level deep within the "webBase_mc" clip, ie. I take it out of the "webBaseInner_mc" it works. The problem is that I need it inside the webBaseInner mc b/c I'm planning to animate this clip later on.

I get the following error when testing:

**Error** Scene=Scene 1, layer=actions, frame=1:Line 9: Function name expected
webBase_mc.webBaseInner_mc.btnWebServices_mc.onRelease = function {

**Error** Symbol=webBaseInner_mc, layer=Layer 1, frame=1:Line 17: Statement must appear within on/onClipEvent handler
q

Total ActionScript Errors: 2 Reported Errors: 2

Can someone tell me what I might be doing wrong? I've uploaded the file here if the .fla is needed to help troubleshoot:


Appreciate any help.
 
You're missing () after function, in the following line...

Code:
webBase_mc.webBaseInner_mc.btnWebServices_mc.onRelease = function() {
	webMonitor_mc.gotoAndPlay(1);
	webBase_mc.gotoAndPlay(1);
}

And you have a typo "q" that shouldn't be there, on the first frame of your webScrollPane ScrollPane.

Regards. Web Hosting - Web Design
01/07/07 -> OLDNEWBIE VS JOSHUA MUSSLEWHITE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top