Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2013, 10:12:31 PM

Login with username, password and session length
Search:     Advanced search
The look of the forum is still being worked on. Thank you for your patience.
193705 Posts in 16235 Topics by 17049 Members
Latest Member: honeyzephyr89

* Home Help Login Register
AppleGeeks.com  |  Help / Advice  |  Flash  |  Topic: Seperate .SWF Files controlling each other. 0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: Seperate .SWF Files controlling each other.  (Read 3931 times)
DougofTheAbaci
Hero Member
*****
Posts: 6848


Just call me Audiophilus Magnum.


WWW
« on: September 09, 2004, 02:10:09 PM »

right well i have a new web page i'm making and all the parts are externally loaded .swf files. i'm going to just use one part of it as an example because this is going to get rather complicated... for this example we'll use something i'm doing for the graphic section.

1) the .swf file everything is loaded into is named "parent.swf"
2) the section is loaded into an empty movie clip on the stage called "empty"
3) the .swf file loaded in this case is called "graphic.swf"
4) in graphic.swf there are empty movie clips called "contentg" and "emptygm". "emptygm" is where the graphic menu ("gm.swf") is loaded into. "contentg" is where the piece (this time a .swf called "techno_eve.swf") will be loaded.
5) in gm.swf i have a button with this code:
Code:

Code:
on (release){ _root.contentg.unloadMovie("contentg"); _root.contentg.createEmptyMovieClip("contentg",1); _root.contentg.loadMovie("techno_eve.swf","contentg"); container._x = 0 ; container._y = 0 ; }


ok that's the really complicated stuff. if you're with me so far, great! now the problem is that when i push the button nothing happens. but i can't figure out what i'm doing wrong with my code. do i have to make the root:
Code:

Code:
_root.empty.contentg


? or am i missing something entirely? i know i can have one .swf control another because on the parent level i have a menu loaded as an external .swf. what am i missing?
Logged

Quote from: Douglas Adams
It is a mistake to think you can solve any major problems just with potatoes.
Turro
Full Member
***
Posts: 224


« Reply #1 on: September 13, 2004, 06:54:37 PM »

If you have so much problems making a preloader, you can always use NG free Preloader. Wich you can edit.

http://www.newgrounds.com/portal/

Just click where it says "get NG loaders N stuff" next to the orange-haired thing in the top right corner.
Logged

Turro is back! tell your friends, your family and your sister. Especially your sister.
http://www.newgrounds.com/bbs
http://lgforum.jacklandstudios.com/
DougofTheAbaci
Hero Member
*****
Posts: 6848


Just call me Audiophilus Magnum.


WWW
« Reply #2 on: September 14, 2004, 12:25:29 PM »

the problem isn't a preloader. i have that. it's getting it to actually load that's the problem. it doesn't want to.
Logged

Quote from: Douglas Adams
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1] Go Up Print 
AppleGeeks.com  |  Help / Advice  |  Flash  |  Topic: Seperate .SWF Files controlling each other.
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 19 queries.