Trouble with loading external mp3 files
I apologize for the length of the post. I hope this is clear
of what I am trying to explain.
My problem deals with getting "undefined" when I press a
button to load an external mp3 files. The following is what my XML
childNode looks like:
<option phonetic="Soundless, or A" name="aleph"
cursive="alephCursive.swf" block="alephBlock.swf"
audio="char1.mp3"/>
Every attribute loads the way I've programmed them, except
for the last one "audio".
The following is what my actionscript looks like loading in
these attributes:
Everything is happening inside the onLoad event for my XML
file.
var xmlContent = this.firstChild.firstChild;
audioContent = new Array();
for (var i = 0;
i<this.firstChild.firstChild.childNodes.length; i++) {
nextEntry = xmlContent.childNodes
audioContent = [nextEntry.attributes.phonetic,
nextEntry.attributes.name, nextEntry.attributes.cursive,
extEntry.attributes.block, nextEntry.attributes.audio];
The code above simply adds each attribute to the audioContent
array. Each element traces out correctly.
The following code is how I am using these attributes:
for (var i = 0; i<audioLength; i++) {
audioContainer.attachMovie("container4", "audioItem"+i, i);
// Create a shortcut reference to the present movie clip
thisClip = audioContainer["audioItem"+i];
thisClip.myTxt1.htmlText = audioContent[0];
thisClip.myTxt2.htmlText = audioContent
[1];
thisClip.cursive_mc =
loadThis(assetPath+audioContent[2], thisClip.cursive_mc);
thisClip.block_mc = loadThis(assetPath+audioContent
[3], thisClip.block_mc);
thisClip.speaker_mc.attachMovie("speaker", "speaker_mc",
this.getNextHighestDepth());
thisClip.speaker_mc.speaker_mc.onRollOver = function() {
this.nextFrame();
thisClip.speaker_mc.speaker_mc.onRollOut = function() {
this.prevFrame();
thisClip.speaker_mc.speaker_mc.onRelease = function() {
mySnd.loadSound(audioPath+audioContent[4],true);
Loading the text works inside the htmlText. Using a function
loadThis to load external swf files works corerctly and even
attaching a linked movieclip from my library called "speaker" works
correctly.
The problem comes from pressing the speaker movieclip that
the output traces "undefined" instead of the external mp3 file.
I appreciate any help. Thanks.
As Ned said the problem might be with the file structure on the server. Other problems may be with spelling. You computer may not be case sensitive to the names of the .swf files that you are loading, but your server might. So, on your computer when you are testing, second.swf is the same as Second.swf, or even second.SWF. But, on the server each of these variations is seen as a different file. Another problem is that when you are loading files from the same computer in testing, those files are close and so they load very quickly from your computer. When the files have to travel from the server, there will likely be a measurable period of time before the file is ready to be shown. This is particularly problematic with video that is embedded into an .swf. The whole file will need to be downloaded and uncompressed before it is available to play. If you stream the video as an external file, you can shorten the wait considerably.
Similar Messages
-
Using Flashvars to load external mp3 files
I am trying to find a very good step by step tutorial on using "Flashvars" to load external mp3 files, I have been searching on google and the many I have found fall short in some way or another. From what I have been able to gather, I have tried using the code in red (commented out), which works, and modify it to use "Flashvars". The code that works, the mp3 file is hard coded, but my goal is to use "Flashvars" which I am attempting to do in the code following the code in red. I am also including the html code. Any help will be greatly appreciated.
Thanks,
David
var soundReq:URLRequest = new URLRequest("mardi_gras2.mp3");
var sound:Sound = new Sound();
sound.load(soundReq);
sound.addEventListener(Event.COMPLETE, onComplete);
function onComplete(event:Event):void
sound.play();
var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
var sound:Sound = new Sound();
sound.load(soundReq);
sound.addEventListener(Event.COMPLETE, onComplete);
function onComplete(event:Event):void
sound.play();
HTML CODE
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="mySoundvars" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="mySoundvars.swf" />
<param name="FlashVars" value="audio=mardi_gras2.mp3" />
<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="mySoundvars.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="mySoundvars" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" FlashVars="audio=mardi_gras2.mp3" />Ok waterlovinguy,
I went back to my original code, and I got things to work... I think my whole issue was with the HTML CODE. So I decided to use the "SWFObject generator". I had never used it before, frankly I had never heard of it until I started my searches on "Flashvars".
Thank you very much for all your assistance, PEACE,
David
Final Codes below
var my_var:String = new String();
my_var = root.loaderInfo.parameters.myflashvar;
myText.text = my_var;
var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel;
sound.load(soundReq);
play_btn.addEventListener(MouseEvent.CLICK, playSound);
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
function playSound(event:MouseEvent):void
SoundMixer.stopAll();
soundControl = sound.play();
function stopSound(event:MouseEvent):void
soundControl.stop();
HTML Code
<!>>
<!<![endif]>
http://www.adobe.com/go/getflashplayer
</a>
<!>>
</object>
<!<![endif]>
</object -
[Q] duplicating movieclip with loaded external jpg file
Hi, Im trying to make thumbnail and enlarged picture by
duplication.
What i tried was using duplication of thumbnail movieclip
which jpg image is loaded
However it seems not working as i intended,so I had to make
empty movieclip and loaded image again!!!
I am concerning that if I use new movieclip and loading the
image again..it means users have to download the same image twice.
Basically, I am trying to make a list of thumbnailed images
with enlarged picture popes up when mouse rolls over them
Is there any proper way to make it happen?
or duplication just doesnt work even thou movieclip is
already loaded with image?
Thank you for your time~> simple create your movieclip. Now create an empty clip
inside. You will
load
> your JPG in the empty clip. This one can't be
duplicated, but you will be
able
> to duplicate its parent. Like that:
> myMc.anEmptyClip.loadMovie("blabla.jpg");
> myMc.duplicateMovieClip("theNameYouWant",
levelNumYouWant);
>
> That will works.
No, that will not work
You are partly right - if you create a nested clip and assign
properties
(such as an onPress handler) to the parent clip, you can then
load content
into the child without overwriting the parent's properties.
If you load an
image into the child and then duplicate the parent however,
the image in the
child clip *will not be duplicated*. Try it.
> 2- Also, the way you where going to do, works too. yes
the user will have
to
> load it again, but it is already in the Browser Cache.
It means that will
load
> quickly the second time and after that. Bad side is more
that you will
doble
> the bandwidth of the images loading on your site.
Again, partly right. Lets take it bit by bit:
> yes the user will have to
> load it again, but it is already in the Browser Cache
The movie will have to load it again, but will probably load
it from cache.
> Bad side is more that you will doble
> the bandwidth of the images loading on your site.
Not so. If it's in the cache, it doesn't use any bandwidth at
all - that's
what caching means! A copy of the image is saved on the
user's local hard
drive, so no bandwidth needs to be used when loading from
cache.
Basically, for the *majority* of users, loaded images will be
cached (this
is dependent on browser settings, but most users will have
their browsers
set to cache). This means that after the first load,
subsequent loads of the
same image will be quick and carry no bandwidth overheads.
The real issue here is that dynamic content in movieClips,
such as loaded
images, swfs, or graphics created with the drawing API will
not duplicate
when the clip is duplicated/ The accepted work around used to
be simply to
reload the aimge. Now with Flash 8 though you can use the
BitmapData class
to grab a copy of the image and redraw it to the newly
created clip if you
so wish.
Pete
Remove '_spamkiller_' to mail -
Trouble in loading external swf file and embedded font dynamically
I have developed a flex application doing something like this: it loads A.swf from somewhere and show it on the stage
sometimes A uses fonts not installed on users' machine, so at this time my app will load B.swf with needed fonts embedded in it from another place
I have working it out that fonts in B.swf can be detected and shown in my app stage, but when I use SWFLoader to show A.swf, it still fails in showing the fonts properly...
Some of my codes pasted here:
// load fonts
private function onFontBytesLoadComplete(e:Event):void {
var data:ByteArray = e.target.data as ByteArray;
swfLoader.addEventListener(Event.COMPLETE, onSWFLoadComplete);
swfLoader.source = data;
private function onSWFLoadComplete(e:Event):void {
loadSM = SystemManager(swfLoader.content);
loadSM.addEventListener(FlexEvent.APPLICATION_COMPLETE, onFontLoadComplete);
private function onFontLoadComplete(e:FlexEvent):void {
var clazz:Class = loadSM.loaderInfo.applicationDomain.getDefinition(fontName) as Class;
var fun:Function = clazz.getFont as Function;
var fontClazz:Class = fun();
var font:Font = new fontClazz() as Font;
trace(getQualifiedClassName(new fontClazz()));
Font.registerFont(fontClazz);
if(loadFinishedHandler != null) {
loadFinishedHandler(fontName);
Anyone has idea about this? 3x~Hm, yes, I remember there being some challenges in this regards, with Modules loading fonts at runtime.
If you take a look at the section "Using run-time style sheets with modules," they describe the basic approach where everything has to be loaded and registered in the primary application domain.
I think it should work fine the way you have it, provided you are registering both the font and the loaded SWF in the primary application domain. If not, you may need to push the font registration down into the application domain being used by the loaded SWF.
Something like this perhaps:
childApplicatonDomain.getDefinition('flash.text.Font').registerFont(fontClass);
Where childApplicatonDomain is the application domain of the loaded SWF. -
SetMedia problem with MediaPlayback - external MP3s
I'm using the MediaPlayback component to play an external MP3
file, and it's working fine, EXCEPT that when it first loads it
plays the first part of the clip for a split second, then stops and
re-plays it -- regardless of the autoPlay settings that are used.
I have autoPlay set to false, both in the component
properties panel AND explicitly in the code before the setMedia
call. In the code below, the trace executes even though I've set
autoPlay to false.
I can stop the "blip" from happening if I inject a pause() or
stop() command after the setMedia() call -- HOWEVER, it happens
again when I call the play() method to play the file.
HELP!! Anyone else out there had this problem and solved
it??? I'm at my wit's end. See code snippet below.
soundFile = "arabian_dreams.mp3";
// Make sure media does not start playing 'til we tell it to
myMedia.autoPlay = false;
// Set the sound file for the MP3 player
myMedia.setMedia(soundFile, "MP3");
// Attempting to fix problem where the setMedia
// function plays the clip for a fraction of a second
// on loading, regardless of the autoPlay settings
//myMedia.pause();
//myMedia.stop();
if (myMedia.playing == true) {
trace("playing!");
// Now play the sound
myMedia.play(0);How old is the property? It may be that if it's pre60s, it was originally wired for 15amp (round-pin) and was not rewired correctly when converted to 13amp (square pin). It may also be that what you are experiencing with your system is indicative of the sort of wiring degradation that normally warrants a rewire (or partial rewire) of the house.
There are testers available (Argos, even Tescos in their electrical sections, and other electrical retailers) that will check both grounding and possible wiring defects such as the transposition of live and neutral, but it may also be a wise move to try and isolate the problem as much as possible by connecting your mini to the TV, leaving aside the hard drive and hi-fi, to see if the problem still exists, then juggle components to see if you can determine whether the mini, the drive, the tv or the hi-fi appears to be the primary cause of the problem. It may even help to take the basic system elsewhere, and connect it to someone else's display etc just to test it. -
Media files prevent Flash from fully loading external XML file
Im trying to debug a flash widget we created, and it loads
fine on the 20 odd computers we tested on EXCEPT for one computer
where, the application doesn't load an external XML file that calls
for 3 small mp3 files and a FLV file to load as well.
In a debugger, we noticed that when it tried to load these
mp3 files it was getting a Forbidden access message. The FLV just
prevents the FLV player from showing up at all (not even the skin).
Can anyone figure out why, that it would work over all the
other computers and NOT the one? On that person's computer, we
tried it in IE, Firefox, even Chrome and the application doesn't
load. We even cleared the cache, did a hard refresh and still
nothing.
However, the other computers work just fine.
ALL the computers have the latest Flash software installed.
What could cause this problem?Actually what worked was removing 'xmldoc' from the php script. So $data =$GLOBALS["HTTP_RAW_POST_DATA"]; instead of $data = xmldoc($GLOBALS["HTTP_RAW_POST_DATA"]);
Couldn't find anything about 'xmldoc'. Is it used for anything in php?
Anyway, the loading error went away, but then I got into problems with getting the return echoed values back. The textfield stayed empty even when saving the data.txt file worked.
I then placed the <stuff> tags between <root> tags and then flash got the sentences between the <stuff> tags back. Why does Flash need the returned xml output to be between <root> tags for it to see the content between the <stuff> tags? So why do I need to use echo("<root><stuff>Server unable to create file.</stuff></root>"); instead of cho("<stuff>Server unable to create file.</stuff>");? -
Vista problem with loading external JPGs?
I'm really pulling my hair out on this one. I did a quick
flash piece for a preschool's web site and have tried several
different Flash components inside of a larger FLA file that load
external JPG files in a predefined area. With each component, I
have received complaints (so far only from Vista users) that the
user sees nothing in the area where photos are supposed to be
loading. Instead they just see a white or black box.
Is there any known issue with this? They can see everything
else in the SWF file (the swinging girl and the text), but not any
of the loaded JPG photos. Can anyone else out there with Vista tell
me that they have the same problem? I'd like to track down what the
common denominator is.
I've asked two of the users to completely uninstall the Flash
player and reinstall it, but to no avail. Deactivating Norton
Antirvirus also didn't seem to do anything.
Here is the URL:
http://www.countryvillageps.com
-- the flash item is the top banner.As Ned said the problem might be with the file structure on the server. Other problems may be with spelling. You computer may not be case sensitive to the names of the .swf files that you are loading, but your server might. So, on your computer when you are testing, second.swf is the same as Second.swf, or even second.SWF. But, on the server each of these variations is seen as a different file. Another problem is that when you are loading files from the same computer in testing, those files are close and so they load very quickly from your computer. When the files have to travel from the server, there will likely be a measurable period of time before the file is ready to be shown. This is particularly problematic with video that is embedded into an .swf. The whole file will need to be downloaded and uncompressed before it is available to play. If you stream the video as an external file, you can shorten the wait considerably.
-
Loading external .swf files issue...
Hi,
I'm working on a simple example of loading external swf files with some ActionScript.
I've placed an instance of List Component and gave it an instance name of loadList. Using Component Inspector, I assigned data for 4 external files as below:
Next, I've added a UILoader component (instance name - loadWindow). The code that is supposed to load the content into UILoader is this:
loadList.addEventListener(Event.CHANGE, selectItem);
function selectItem(e:Event):void
loadWindow.source = e.target.selectedItem.data;
When I run it in a FlashPlayer, it only loads the first 2 swf files.... (I checked the files and all files are fine).
I hope to get some light on the issue so any help will be appreciated.Try tracing e.target.selectedItem.data to make sure it's what you expect.
Also, have you tried using the load() method instead of the source property? -
External MP3 files not working
Hi,
I have attached code straight out of the help file for using
External MP3 files. It works perfect when I use their HelpExample
sound MP3 file. However when I simply change the code to point to a
working MP3 sound file in my LocalHost folder it executes but I
only get a Blip sound.
If I just double click on the sound file it sounds ok. and I
have been successful in using these MP3 files embedded in Flash 8.0
fla file
Do the external MP3 files have to be on some special server?
I am using this code with Flash 8.0
Thanks,
hughThe most likely reason for this failure is that since your SWF is now embedded into another SWF (the Captivate project) the paths to the AS files need to be altered in Flash to allow for this.
You need to investigate how this would be done in AS code if your Flash SWF was a symbol inside another Flash SWF. -
When I tried to load some mp3 files on to my samsung brightside I looked under card memory and my songs were there but when I clicked on my music it said no memory available remove files and I have an 8 gb micro sd card in and there is nothing else on it
Whew.... got it to work after days of trying to figure.
Got answer here: http://forums.macrumors.com/showthread.php?t=1450821 from zblaze.
Wiped phone completely, restored as NEW iphone through itunes. Checked 'Sync all Music'.
After that happens you can restore from backup. -
Can you load external jpg files
Is there a way to load external .jpg files on the fly or do
they have to reside in the swf file?Hi Persons,
macrofireball is correct as always, but I'll just add a
thought to this thread because I suspect "rfull" isn't actually
asking what he/she
appears to be asking.
No photo can ever be displayed "by itself". That is, image
files are always "opened" in some sort of vehicle. It might be an
image editor, or it might be a document like a *.DOC or a *.HTM ...
but
something must "contain" the image.
So you can access a photo at any time you wish by putting it
on a web page, then linking to the web page (for instance). Is
something like that what you really had in mind?
Have a good 'un folks!
. -
DW MX trouble with loading PDF files
I'm using Dreamweaver MX on an XP Pro machine and have
trouble loading pdf documents to my web pages. It cooperates
intermittently. I'm using a virtual pdf printer to convert word
documents to pdf, then saving them to my website folder, selecting
the linking text on my page in DW, using the link box to select my
pdf document, then saving the page and putting files in both the
local and remote views.
This method has worked for me before, and now it's not. Does
anyone know of a reason for this? The documents are saved
correctly, as I can get them to open as pdf outside of dreamweaver
and my webpage...when I click on the link I created online I get
"page not found."
Thanks for any help!I am having the same trouble with Dreamweaver MX 2004 on
Mac-OSX since I switched from MacOs9. I still have no solution .
When I want to export a .pdf file I get a message saying <ftp
error>.
I never had problems on Mac Os 9 and it started when using
the first version of Mac Os X. I am presently using mac Os 10.4.10
and I am still unable to transfer .pdf files, no matter whether I
use acrobat or the Mac system to produce the.pdf file.
When I try the page on my computer the link to the.pdf file
functions allright, but not on the server as the file cannot be
transfered to it by the software.
Does someone know how to solve this ?
Q]
Originally posted by:
milflib
I'm using Dreamweaver MX on an XP Pro machine and have
trouble loading pdf documents to my web pages. It cooperates
intermittently. I'm using a virtual pdf printer to convert word
documents to pdf, then saving them to my website folder, selecting
the linking text on my page in DW, using the link box to select my
pdf document, then saving the page and putting files in both the
local and remote views.
This method has worked for me before, and now it's not. Does
anyone know of a reason for this? The documents are saved
correctly, as I can get them to open as pdf outside of dreamweaver
and my webpage...when I click on the link I created online I get
"page not found."
Thanks for any help! -
Pb loading external mp3 sound file
Hello,
I use the following code to load and then play an external
mp3 sound file called "loop.mp3"
var son:Sound=new Sound(this);
son.loadSound("loop.mp3",false);
son.onLoad=function(success) {
if (success) {
this.start(0,999);
When I test my code while being under author environment by
using CTRL+ENTER Key, the sound is playing properly but when
launching the swf file alone, the sound is not playing. Why?ritpas wrote:
> Hello,
>
> I use the following code to load and then play an
external mp3 sound file
> called "loop.mp3"
> var son:Sound=new Sound(this);
> son.loadSound("loop.mp3",false);
> son.onLoad=function(success) {
> if (success) {
> this.start(0,999);
> }
> }
>
> When I test my code while being under author environment
by using CTRL+ENTER
> Key, the sound is playing properly but when launching
the swf file alone, the
> sound is not playing. Why?
when you say "launching the swf file alone", what do you mean
on destkop ? within browser ?
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Loading external swf files in a swf - Error#1009
I have been having trouble using a swf file within a swf file. The external swf files all work as expected. However when used within another swf file I get the standard TypeError #1009 for some of my swfs. The external swf files are mainly actionscript 3 files. A typical swf file will have an object (or objects) in the library which has an export for ActionScipt property enabled and an addEventListener(Event.ENTERFRAME, somefunction). About four years ago when I had to do some work with AS2 I seemed to get around a similar issue with the _lockroot method but this is no longer part of AS3. I have searched various forums and note that I am not the only one with this issue but did not find any relevant solutions. If anyone could give me any ideas on how to get around this it would be appreciated.
Regards
NormanHi,
I have added a download to rapidshare and its link is:
Download link: http://rapidshare.com/files/380202712/ExtSwfs.zip
The main file Training01.fla has been set up with links to download several swf's. The links that do not work properly are those labelled : Module6 and Module 8. The first Module 6 connects to a function that is a variation of how I was trying to load external swfs using Application Domain, while Module 8 is a link to a swf that uses and external class. Module 8 is supposed to load with rotating stars, while Module 6 loads the same file as the link called Module 1. As soon as I use the two links Module 6 or Module 8 the whole lot ceases to work properly. I did also follow through the examples on the Adobe site. The examples for Module 6 and Module 8 are tutorials I have used from the Internet as part of my training from the site FlashMyMind.com but they replicate the type of work we have been doing with respect to using ActionScript3.
Re my background, at this stage I am self-taught using tutorials on the web and whatever books I can lay my hands on here. There is no structured training available where I live as there is insufficient demand and no books available on Flash or ActionScript at the local book stores or libraries so the books are ones I have ordered via the Internet. The one I am currently using apart from Adobe Classroom in a Book Flash CS4 is O'Reilly's Learning ActionScript 3.0 a Beginners Guide.
The other problem I have been trying to solve and still researching is why one loses sound in the flash player when playing flv files, if the user has selected or restarted a video (or videos) many times eg 25 to 30 times as we create video training files and serve them to the user within the flash environment using Flash Player 9 and IE6.
Regards
Norman -
Hi all
I'm having some strange diffulties which I can't solve.
I'm starting off with a website.swf which loads different
external swf's depending on the button that has been pressed.
One of those swf's is a file with different buttons to load
different external flv's.
While loading a flv a progressbar shows the percentage of the
loaded part of the flv
Now: If I play the first video file everything works fine
While switching to another button to load another flv during
the loading of the first flv, My percentage says NaN. and stops
loading.
On each button I say:
on (press) {
stream_ns.close();
connection_nc.close();
_parent.videoloader_mc.unloadMovie();
on (release) {
_parent.videoloader_mc.loadMovie("movies/binnenkomers01.swf");
This is the part I use for loading a flv in f.ex
binnenkomers01.swf.
stop();
delete _global.loaded_interval;
delete _global.connection_nc;
delete _global.stream_ns;
delete _global.pctLoaded;
// video URL
video1_url = "movies/binnenkomer06_Floriane.flv";
_global.connection_nc = new NetConnection();
connection_nc.connect(null);
_global.stream_ns = new NetStream(connection_nc);
videoholder_mc.video.attachVideo(stream_ns);
stream_ns.play(video1_url);
stream_ns.seek(0);
// Zet de video op stop om te wachten tot hij volledig is
ingeladen
stream_ns.pause();
_global.playstatus = "pauze";
play_pauze_mc.gotoAndStop("pauze_lb");
this.createEmptyMovieClip("progressBar_mc",
this.getNextHighestDepth());
progressBar_mc.createEmptyMovieClip("bar_mc",
progressBar_mc.getNextHighestDepth());
with (progressBar_mc.bar_mc) {
beginFill(0xCCE6FF);
moveTo(0, 0);
lineTo(300, 0);
lineTo(300, 23);
lineTo(0, 23);
lineTo(0, 0);
endFill();
_xscale = 0;
progressBar_mc.createEmptyMovieClip("stroke_mc",
progressBar_mc.getNextHighestDepth());
with (progressBar_mc.stroke_mc) {
lineStyle(0, 0xCCE6FF);
moveTo(0, 0);
lineTo(300, 0);
lineTo(300, 23);
lineTo(0, 23);
lineTo(0, 0);
progressBar_mc._x = 640;
progressBar_mc._y = 400;
this.createTextField("loaded_txt",
this.getNextHighestDepth(), 0, 0, 200, 22);
loaded_txt._x = 645;
loaded_txt._y = 405;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0x333333;
my_fmt.font = "Verdana";
my_fmt.size = 9;
my_fmt.align = "left";
_global.loaded_interval = setInterval(checkBytesLoaded, 500,
stream_ns);
function checkBytesLoaded(stream_ns) {
trace("my_ns.bytesLoaded: "+stream_ns.bytesLoaded);
trace("my_ns.bytesTotal: "+stream_ns.bytesTotal);
_global.pctLoaded =
Math.round(stream_ns.bytesLoaded/stream_ns.bytesTotal*100);
trace("_global.pctLoaded: "+_global.pctLoaded);
loaded_txt.text = "loading... "+pctLoaded+"%";
loaded_txt.setTextFormat(my_fmt);
progressBar_mc.bar_mc._xscale = pctLoaded;
if (isNaN(pctLoaded)) {
clearInterval(loaded_interval);
} else {
trace("OK");
if (pctLoaded>=100) {
clearInterval(loaded_interval);
Hope you guys can help me....Maybe they have hotlink protection enabled
"indierockmedia" <[email protected]> wrote
in message
news:f3c4mo$ddn$[email protected]..
> Hi, I am having trouble with some loading issues. I
design ecards for
> bands and
> their tour dates, bio, and video files all load external
files (text files
> for
> bio/tour, flv files for the video, and an swf skin file
for the video).
> Its
> only a problem when I have to embed those ecards into
sites that don't
> host the
> ecard. I have used crossdomain.xml and every fix ive
read about, and still
> have
> issues. Let me detail below:
>
> For example, I have an ecard for a band at
>
http://bandwebsite.com/ecard/ecard.swf
> The tour and bio and video files load simply "tour.txt,
bio.txt,
> video.flv,
> skin.swf"). Works great because no external servers are
being called.
>
>
But when I want to embed the file elsewhere, or use different
domains,
> I
> have issues:
> I want to embed the ecard on to
http://www.otherwebsite.com,
so I can't
> have
> it simply call "tour.txt" for example, the ecard will
think the tour file
> comes
> from www.otherwebsite.com/tour.txt. So I call the full
path
>
http://bandwebsite.com/ecard/tour.txt
> I go to the ecard and click the button to load the tour
dates. The text
> box
> that worked before says "undefined". So I put a cross
domain file at the
> root
> of
http://bandwebsite.com that
allows access to files from
> www.otherwebsite.com. Still getting undefined. I go to
the embed code for
> flashobject and have allowscript access to "always".
Still undefined. I go
> and
> add System.security.allowDomain to my timeline and
specify
> www.otherwebsite.com. Still undefined. Still won't load
my video or video
> skin
> and text files.
>
> Am I missing something?
>
> mikey
>
Maybe you are looking for
-
Why is PowerPC applications no longer supported by Lion
Upgraded to Lion. Tried to open my EPSON SCAN and get message PowerPC applications are no longer supported. What's the deal? how can I open my EPSON SCANNER which I use to email faxes and scan 35 slides to Iphoto. This is not good.
-
Is it possible to insert white space that will track like other characters?
I'm working with Indesign CS3, and have a problem with white space, inserted as a special character - in this case, a sixth space, used for the space between initials of a cited author: A. B. White, or whatever. Between the point after A and the B, I
-
Duplicated my entire music library by mistake
I don't know how I did it, but I somehow duplicated all my itunes songs in my library. I think I did something when I tried to put all my music into one library in Windows 7. How do I get rid of the duplicates without have to delete each song individ
-
All my CS4 apps crash on launch
I've been running OSX Lion for about a week now with pretty well no problem (except for the Java runtime issue but got around that pretty quickly). I was happily using Fireworks this morning, closed and restarted it so I could use a font I'd just ins
-
Cant load the airport express with 802.11n
today i just got my new airport express with draft n. but my router can't load the config anymore after i uploading my setting ( change to N with 5 GB ). i've tried all of methods that the manual included. I think i need to exchange the new one. i ju