Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 22nd, 2003, 03:16 PM
Shadow1369 Shadow1369 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 Shadow1369 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Shadow1369
Unhappy Flash inside Flash cant connect out?

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

Reply With Quote
  #2  
Old September 24th, 2003, 01:13 PM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
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

Reply With Quote
  #3  
Old September 24th, 2003, 02:00 PM
Shadow1369 Shadow1369 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 Shadow1369 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Shadow1369
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?

Reply With Quote
  #4  
Old September 25th, 2003, 11:02 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
what are you referring to when you say "app"?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash inside Flash cant connect out?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway