Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-19-2004, 08:13 AM   #1
emergency_pants
Today I smell of toast
 
Join Date: Dec 2002
Location: London, UK
Posts: 1,053
Unhappy loader component doesn't load swf?

I have some loader components into which I am loading some swf files. However, they do not seem to load. I have tried replacing the swf files with jpg and the images work fine!

Can anyone give me any pointers as to why the swf doesn't load but the jpg does?

The Flash Docs say that a loader can be used with an image or a swf. Doesn't look that way from here. I must be doing something wrong, but I'm not sure what *head scratch*

EDIT: ok... so I worked out that the loader doesn't load the swf when sounds are created using a new Sound Object and then attached using a linked file from the library. wtf? When the sounds are placed on the timeline as an event, it works.

Has anyone come across this before? How do I get around it? Do I really have to go through all of my external swfs and place all the sounds on the timeline?

As usual, I found no documentation of this in the Flash component help... this is become a real bugbear with me and it's the last time I use any Flash built-in components... ever. But right now I have a MAJOR application build which is totally full of components... and there was me thinking they would save me time!! LMFAO!

Thanks for any help.
__________________
Cheers,

Simon.

Last edited by emergency_pants; 07-19-2004 at 08:52 AM.
emergency_pants is offline   Reply With Quote
Old 07-19-2004, 09:22 AM   #2
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default

when creating the sound object you probably forgot the target parameter

ie

mySound=new Sound(this);
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 07-19-2004, 01:42 PM   #3
emergency_pants
Today I smell of toast
 
Join Date: Dec 2002
Location: London, UK
Posts: 1,053
Default

Thanks, Billy.

The target parameter was pointing to a _root movieClip but after loading, it wasn't in the _root anymore!! Silly me.

Blimey... I've been working on this for too long & I'm beginnning to rant and go maaaaaaaaaad!!

That solved the issue, thanks for the tip.
__________________
Cheers,

Simon.
emergency_pants is offline   Reply With Quote
Old 07-19-2004, 02:49 PM   #4
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default

no worries
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:07 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.