Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Actionscript driving me nuts!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 March 2005 :  08:47:10  Show Profile
Can anyone see anything wrong with this actionscript? It's for a blank movieclip which should load an external *.swf into tself and resize itself accordingly.
onClipEvent(load){
	newfile=this.loadMovie("file.swf")
}
onClipEvent(enterFrame){
	if(newfile.getBytesLoaded==newfile.getBytesTotal){
		this.width=100
		this.height=100
		_parent.movieclipx._visible=false
		delete enterFrame
	}
}
It works perfectly within Flash itself but when embedded in an HTML page:
- In Firefox, movieclipx disappears immediately, despite the fact that file.swf is still loading. Once file.swf is loaded it's not resizing the movieclip so file.swf is not visble wht it's doing is adjusting the size of the parent *.swf a little.
- In Internet Explorer, all seems to work well expcept for the resize of the parent *.swf as mentioned above.

If none of that makes sense, you can see it in action <link removed /> by pulling up the restaurant (the brown building on the left hand side of the village).

<edit> OK, solved the resize issue - I was looking in the wrong place; the *.swf I'm loading had a line of actionscript bury inside it that turned scaling of the stage off. So all is now well in IE but I'm still having problems getting the child *.swf to display in Firefox.</edit>


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 09 March 2005 11:54:31

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 09 March 2005 :  10:49:18  Show Profile
I would post it here:

http://www.actionscript.org/forums/index.php3
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 March 2005 :  10:53:03  Show Profile
Ay, I've been searching over there for a few minutes now to make sure there isn't a solution already posted.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 March 2005 :  11:53:58  Show Profile
Yay! Got it sorted For wnyone who else who may encounter this problem, the sloution is here.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07