SWF loading into another causes a problem !

This is a discussion on SWF loading into another causes a problem ! within the Macromedia Flash forums in Adobe Tools category; I have an swf file with a container that has a scroll funtion that works great. The container is used to load articles that scroll up and down. when this whole swf is loaded into another swf the scroll slides but the articles don't move. If anyone can help that would be great if you want me to point site here it is. Goto the center button which is a film reel and then click on press articles. http://kbodesign.com/ostendo/index.html onClipEvent (enterFrame) { if(slide == true){ //180 = so content stops on the right _root.content_mc.content2_mc._y = ((_root.content_mc.content2_mc._height-200)/_parent.bar_btm_rt._height)*-(this.b ar_btn_rt._y); } } ABOVE ...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-13-2008, 06:58 PM
kbodesign
Guest
 
Default SWF loading into another causes a problem !

I have an swf file with a container that has a scroll funtion that works great.
The container is used to load articles that scroll up and down. when this whole
swf is loaded into another swf the scroll slides but the articles don't move.
If anyone can help that would be great if you want me to point site here it
is. Goto the center button which is a film reel and then click on press
articles. http://kbodesign.com/ostendo/index.html

onClipEvent (enterFrame) {
if(slide == true){
//180 = so content stops on the right
_root.content_mc.content2_mc._y =
((_root.content_mc.content2_mc._height-200)/_parent.bar_btm_rt._height)*-(this.b
ar_btn_rt._y);
}
}

ABOVE IS THE CODE IN THE BAR_BTN .
THE CODE BELOW IS WITH THE BAR_BTN MOVIE ITSELF.

on (press) {
_parent.slide = true;
this.startDrag(false, 0, 0, 0, 195); //(lock to center of mouse, left, top,
right, bottom)
}
on (release, releaseOutside ) {
_parent.slide = false;
this.stopDrag();
}
THIS ALL WORKS PERFECT UNTIL LOADED INTO THE MAIN WEB PAGE.


Reply With Quote
  #2  
Old 10-13-2008, 07:33 PM
kglad
Guest
 
Default Re: SWF loading into another causes a problem !

to your main timeline in the swf that's loaded into the main swf add:

this._lockroot = true;
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:17 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.