|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
First of all, I'm using flash mx 2004 pro.
I'm loading a flash file into another flash file, using the Loader component. By itself, this loaded file works. It connects out using XMLConnector and gets some data which it displays. But loaded into the other flash file, it loads up, and doesnt display the data. At first I thought it wasnt exectuing the actionscript to trigger the datasource. But it is. It just looks like this flash file, loaded inside the other, doesnt have access to the internet? I'm something of a newbie at flash, so I'm betting that I am doing something stupid. Can anyone point me in the right direction? Thanx |
|
#2
|
|||
|
|||
|
i'm pretty sure the problem is in the locality (i'm sure that wasn't a word, but it is now!) of your XMLConnector variables. For instance, if you create a new sound in an external flash movie by saying:
Code:
s = new Sound();
s.attachSound("soundID")....
And then you load that into another movie it won't work. The reason is that the sound object is local to the external timeline, and is looking for the soundID in the library of the main movie. you'd have to say: Code:
s = new Sound(this)... for Flash to load the sound from an external movie (library). i'm unfamiliar with the XMLConnector's syntax, but i think when it instantiates, you need to specify a timeline or include all of the XMLConnector library info in your main movie. -bret |
|
#3
|
|||
|
|||
|
makes sense
That makes sense. Thanx. I have been rather confused about the relationship between the two movies when they load like that. That it worked at all surpised me a LOT.
I've been dragging and dropping components though, so I have no idea how I would go about telling them which timeline they belong to.(it makes it really easy to position them) The timeline thing kinda has me confused. I understand that 'this' is some sort of constant for the current app. But what would other apps be called? The extensionless filename? Or is there some way to name them? |
|
#4
|
|||
|
|||
|
what are you referring to when you say "app"?
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Flash inside Flash cant connect out? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|