NaN with loading external flv

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
>

Similar Messages

  • Existing 'load external .flv' code?

    Recently, I found a great little Flash  project that acts like a jukebox for external mp3 song files, and am using it on my website to play my song demos.
    I'm now trying to find if there is an existing solution like that for video.  I just need some way to progressively download video files from my webspace when the thumbnail is clicked... and am now looking into some sort of Flash jukebox.
    I've tried just embedding the video files into HTML, but they don't progressively download for some reason (even though they are saved as Progressive With Compressed Header).  I've even tried using prettyPhoto (...a script that mimics a Lightbox like feature, where the whole page dims, and a floating window appears over your site, displaying any media, and allowing you to move back/forth through your list of media)..... works great, but again, not a progressive download, so you stare at a blank screen for a while.
    Seems the only way it works is if I have the file on YouTube or some other site, then embed it or use the prettyPhoto app.
    So, can someone either tell me how to make the embedded file download (OT, but I figured I'd ask), or point at some existing Flash file that serves as a video jukebox, showing all media on a common window?

    Hi,
    You can load external .flv files which is placed on your web server. You have to add a small amount of AS3 code into your flash document. Please click on the below link
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/media/Video.html
    Please use the sample code which is provided in the bottom of the page. In the code, you will find a line
    private var videoURL:String = "Video.flv";
    In the above line, instead of "Video.flv", you have to give your webserver path like http://www.domainname.com/foldername/videofilename.flv
    (The above code does the progressive download of an video)
    You can play the video through progressive download, by click on an image. To achieve that, you need to place the above code inside the mouse click function of an image.
    Thanks

  • Load external FLV files?

    I would like my desktop AIR app (built in Flash CS3) to load
    and play external FLV files which are on the same computer/hard
    drive but are not packaged as part of the AIR app. Is there a way
    to do this with the sandbox restrictions AIR has? If so can you
    point me to a sample or documentation?
    Excuse me if this is an obvious subject but the information
    out there is incomplete and confusing.

    I'm still running into the following: As soon as I test the
    movie, I get the following in the area where the video should
    appear:
    status (0 seconds)
    Level: status
    Code: NetStream.Play.Start
    status (0.434 seconds)
    Level: status
    Code: NetStream.Buffer.Flush
    status (4.898 seconds)
    Level: status
    Code: NetStream.Play.Stop
    It doesn't matter if I click the button or not. The video is
    on my network.

  • 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.

  • 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.

  • Loading from library conflicts with loading external swf

    I'm very new to ActionScript, so this might be incredibly basic. However, I've Googled and read myself into a coma and I'm not finding a solution.
    I have a movie with 6 navigation buttons.  Four of them load external .swf slideshows, and they work fine - as each file loads, the previous one clears the stage, etc.  The other button that I currently have set up is loading, from the library, an image.  The problem I'm having is that the slideshows replace each other on the stage - they're not stacking, they're replacing - but when the user selects the button that loads the image, the image overlays the last-selected slideshow.  If the user selects the image first, the image is visible when two of the external files transition.  Because of that 6th button, which is not yet even started, it's not desirable to me to simply set up the single image as another external file; if it's at all possible, I need to be able to pull from a library file when I build that last button.
    What I'd like to do - because there is no logical order that the buttons should be selected in - is figure out how to tell every button to remove the image file on click.  I've tried using this in the four buttons that link to the slideshows, to deal with the image (that's the one called quoteImage):
         if(myLoader != null && contains(quoteImage)){
            myLoader.removeChild(quoteImage);
    which has the advantage of not giving me any errors, but doesn't actually fix my problem.  I've tried many, many other things, and I'm just really stumped on what exactly I need to do to make this work the way I want it to.  Based on the fact that the books and online resources I've been using don't really cover this specific example, I suspect it might be an incredibly idiot thing to do, but I'd really like it to work this way if that's possible.
    The code as it stands, with the global variables and the first two buttons (the next three are identical to the second button and the sixth button doesn't exist) looks like this:
    var myLoader:Loader=new Loader(); 
    var quoteImage:Bitmap;
    stop();
    // Loads quoteImage from library
    btnQuotes.addEventListener(MouseEvent.CLICK, showquote);
    function showquote(event:MouseEvent):void {
    var myBitmapDataObject:myBitmapData = new myBitmapData(500, 350);
    var quoteImage:Bitmap = new Bitmap(myBitmapDataObject);
    quoteImage.x=150;
    quoteImage.y=180;
    addChild(quoteImage);
    // Loads industrial.swf from external file
    btnIndustrial.addEventListener(MouseEvent.CLICK, showindustrialcontent);
    function showindustrialcontent(event:MouseEvent):void {
    var myURL:URLRequest=new URLRequest("industrial.swf");
    myLoader.x=150;
    myLoader.y=180;
    myLoader.load(myURL);
    addChild(myLoader);
    Help is very much appreciated.

    I see now how to import and display a library class object
    using:
    var MovieClipClass:Class =
    Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
    var movieClip:Sprite = new MovieClipClass();
    addChild(movieClip)
    But this seems to only work for SWF's published for AS3 Flash
    Player 9.
    I need to do the same for SWF's published with AS2 Flash
    Player 7.
    Any ideas?

  • Help with loading External SWFs

    Hi:
    I need to load external swfs into a mc. They will play in
    sequence, as soon as one ends, the next one will start. When
    running it blows by the first external swf (start.swf) and the rest
    of the external swfs will not continue to load and play after the
    objectives.swf. Could someone take a look at my code and tell me
    what I’m doing wrong?
    I’ve created controls that will allow me to play, pause
    and stop the external swfs while they’re playing (however,
    these buttons do not seem to have any effect on the external swf
    when it is playing). I think it is a scope issue, but I am not
    sure.
    Also, there’s a combo box at the bottom, which allows
    the user to jump to any external swf (it actually jumps to certain
    labels on the main timeline) at any time. The combo box appears to
    work OK.
    The FLA is located at:
    www.digitalhorizonstudios.com/exstream/newplayer.fla
    By the way, this presentation is a fullscreen .exe file when
    in use, not a swf played in an html file.
    Thanks SO MUCH for any help on this one.

    Please try this line of script:
    var myLoader:Loader = new Loader(); //create the varaible for the loader
    var myURL:URLRequest = new URLRequest("A.swf");// create the variable for the swf to be loaded
    myLoader.load(myURL)
    addChild(myLoader);

  • [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

  • Variable scope with loaded external SWF's?

    I’ve got an SWF, call it calcLite, that will be deployed both independently (ie: attached to an HTML doc) and also imported at run time (linked as an external asset via the loader class) to another SWF, let’s call it calcPro. That part is working fine.
    I’ve got a global variable, gRunMode:String that calcLite must declare and set when it’s running independently, but must inherit when attached to calcPro (which will declare and set gRunMode before attaching calcLite).
    Here’s where I am:
    At the root of calcPro:
    var gRunMode:String = “touchScreen”;
    At the root of calcLite:
    var gRunMode:String = “web”
    if (this.parent == this.stage) {
         gRunMode = MovieClip(this.parent.parent.parent).gRunMode;
    I’ve also tried creating function in the parent to return gRunMode:
    At the root of calcPro:
    var gRunMode:String = “touchScreen”;
    function getRunMode():String {
         return gRunMode;
    At the root of calcLite:
    var gRunMode:String = “web”
    if (this.parent == this.stage) {
         gRunMode = MovieClip(this.parent.parent.parent). getRunMode();
    I’ve also tried the second technique, renaming the global in calcPro to gRunModeExe incase there was a naming violation. In all cases I get “attempt to access prop of a null” error. The construct MovieClip(this.parent.parent.parent).function() works, I use it later in the program for a different function and it’s fine, just doesn’t work here.

    My bad, I wrote the post from memory at home. My actual code properly tested the stage (!=) and would have worked EXCEPT under the following condition:
    This is my second project in a row that involved an SWF that must operate independently and also function as a loaded child to a bigger project. What I keep forgetting is that loaded content begins to execute IMMEDIATELY!!!, it does not wait to be attached to the stage. Further, loaded content does not have access to stage assets until it’s been attached, so any premature attempts to access global variables and functions from loaded clip to stage fail. A good explanation of these issues can be found here (scroll to middle of page, post by senocular titled Access to stage and root): http://www.kirupa.com/forum/showthread.php?p=1955201
    The solution was simple enough. If calcLite is running as a child, stop in frame 1 (before any other processing) and wait for calcPro to push us to the next frame (which happens after attachment to the stage). If calcLite is running independently skip the stop and proceed as normal.
    As for this.parent.parent.parent vs. this.parent.parent vs this.parent, since gRunMode is global within the calcPro scope any of these would probably work (although I’ve only tested the first option). The first parent references the loader object, the second parent references the movie clip to which the loader object is attached, and the third parent finally references root.

  • Load external flv as background video and loop

    Hi, I want to have a subtle background video playing behind a slideshow. What's the code to attach a video and have it loop endlessly? Actionscript 3/AS3 only.
    Thanks,

    Updated Help
    My friend is using VB.net to code a koisk. We would like if
    possible to be able to set the background color using the VB.net
    program. to be able to change background to a RGB color using the
    external program. I do not know Flash coding, I only know how to do
    buttons. I am guessing i will need some sort of global varible to
    set this up. Any help would be great
    Thanks.

  • External flv help

    Hi..in the past I've used layers to load videos. On a button,
    one swf with
    embedded video would simply replace the previous one on the
    same level.
    Trying to enter the world of external FLV. I want to do the
    same thing. Load
    external FLV and when button is pushed, have that FLV be
    replaced with a new
    external FLV. I can load the first one but can't seem to find
    out how to
    unload that one and replace it with another when a new button
    is pushed?
    Here is normal code to load and control the first external
    flv off a button.
    Works fine. Now how can I have more buttons that simply
    unload the current
    FLV and replace it with another?
    Thanks so much.
    var my_nc = new NetConnection();
    my_nc.connect(null);
    var step2_ns = new NetStream(my_nc);
    step2_ns.onStatus = function (infoObject) {
    if(infoObject.level.toLowerCase() == "error") {
    // your own error handling code here
    trace(infoObject.code);
    holder_video.attachVideo(step2_ns);
    attachVideo_btn.onRelease = function () {
    step2_ns.play("ballys.flv");
    rewindVideo_btn.onRelease = function () {
    step2_ns.seek(0);
    step2_ns.pause(true);
    stopVideo_btn.onRelease = function () {
    step2_ns.pause(true);
    playVideo_btn.onRelease = function () {
    step2_ns.pause(false);
    close_btn.onRelease = function(){
    stream_ns.close();

    Thanks for the help. I'm not loading the flv into a premade
    component I'm
    loading it into a "holder" so it can appear on the stage as
    just the
    video...it plays in a graphic TV. I want to swap out the FLV
    on the stage.
    Can the
    "Nickels55" <[email protected]> wrote in message
    news:eifigl$rf7$[email protected]..
    > YOu don't have to unload flv's, you just change the
    content path of the
    > FLV
    > using actionscript. Lets say you gave an instance name
    to the FLVPlayback
    > component of vid. This would be the button code:
    >
    > on(release){
    > vid.contentPath = "newfile.flv"
    > vid.play(); //this may also be unnecessary
    > }
    >
    > That's all there is to it.
    >

  • Flash cs4 mac - Error opening URL '/:Users:someting.swf' - Not a "loading external content" problem

    Hello.
    I am having a weird problem when trying to test a movie or publish preview -> flash on mac with Leopard os.
    The result is a blank movie with the usuall "movie not loaded" if u right click on it and the output returns the "Error opening URL 'the path of the swf here'.
    This has nothing to do with loading external files or something like that. It happens even in blank movies and it gives the same error if I try to open a swf from flash ide.
    I can publish the project or export the movie with no problem at all.
    I can preview the movie in html. I can run all the swf files in my hard disk, network, usb stick, dvd etc., but when I try to open any of these files from flash ide I got that stupid error.
    Its not something that stops me from working in flash ide but its slow to export movie any time I want to test it.
    Things that I've tried so far but nothing worked:
    Update the flash cs4 to the latest version
    Update the flash players
    Restored the release flash player as default player (I am using as default the debug player)
    Cleared the preferences
    Move the flash cs4 folder to another location in hd
    Saved the fla document first before testing the movie (in different places with or without spaces in document name or folder)
    Give read & write permissions for everyone for flash.app, players and for fla files when saved first before test movie
    Unistall and install the application 3-4 times.
    Test every as version just in case.
    Also I've checked the folders when testing movie and I can see that it creates an swf file, which I can run it outside flash ide (the one that the flash ide player cannot load) with no problem.
    The mac os has the default set up as it came. Nothing chnaged in permissions or security settings.
    Thanx in advance.

    In this particular example I am using this code to start the
    xml file load:
    // now load the XML file that contains the content strings
    var sXMLFile:String = "xml/home.xml";
    var xmlContent:XML = new XML();
    xmlContent.ignoreWhite = true;
    xmlContent.onLoad = onXMLLoadComplete;
    xmlContent.load( sXMLFile );
    But I don’t think the code is the problem here . This
    happens on every file I load when I am using a relative path to the
    content, regardless of how I load the content (XML object,
    loadMovie, MovieClipLoader, etc…) and the same code executes
    perfectly on every other machine in the office(Mac and PC).
    I’m more concerned with the semi-colons and .swf filename
    that Flash is putting into my relative path on the error message.
    Is that normal?

  • [AS2 CS3/4] Embed external FLV into an MC using AS2 with timeline control

    Hi, Is there anyway to skip the process of manually embedding
    FLVs into SWF files? I want to load FLVs just as I would an
    external SWF.
    I've searched all over and all i can find is how to load FLVs
    into a FLVPlayer component with stop, play and controls to skip in
    time intervals.
    What I need is the ability to load an external FLV and be
    able to control it as if it were in a MC on the timeline, not as a
    streaming video.
    There are SO many questions out there about the FLVPlayer its
    really polluted any and all search results i've tried.
    Shedding some light on this for me would be greately
    appreciated!!!

    For anyone looking for an actual solution to this issue. If
    you're exporting movies out of After Effects, you can export as a
    SWF.
    The only reason I didn't know about this solution is that its
    not included in the render que options, so just select your comp,
    go to File > Export and select the setting for exporting as a
    SWF.
    Thank you kglad for the info

  • Unable to load external swf which has runtime sharing with another swf.

    Hi,
    I am getting issues on loading external swf say "importer.swf" file into another swf file say "loader.swf" for second time like
    ReferenceError: Error #1065: Variable testSymbol is not defined. VerifyError: Error #1014: Class testClass could not be found.
    at global$init()
    In the external swf "importer.swf", i am trying to import the symbol "testSymbol" from another swf file say "exporter.swf", which exports through runtime sharing option for the symbols.
    I am having some buttons in loader.swf file and on each button click i am loading different swf files into the loader.swf after unloading the previous one.
    I am able to load and unload different swf files but unable to load the importer.swf file which is sharing symbols from external swf and that too for the second time i.e., when i click the button twice.
    When trying to debug with flash debugger, all the other swf files are being unloaded before loading of another swf but the swf which is sharing symbols/classes with another swf is not getting unloaded.
    Output when i am trying to load two files example and importer files into loader.swf file on two different button clicks. On first button click example.swf is loaded. On second button click , example.swf is unloaded and importer.swf is loaded which is successful. On first button click again importer.swf is unloaded and example.swf is loaded. On second button click again, example.swf is unloaded and importer.swf is loaded, here i am getting issues shown above.
    Attemping to launch and connect to Player using URL D:\runtime issue\loader.swf
    [SWF] D:\runtime issue\ loader.swf - 8181 bytes after decompression
    [SWF] D:\runtime issue\example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    [SWF] D:\runtime issue\importer.swf - 441708 bytes after decompression
    [SWF] D:\runtime issue\ example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\ example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    ReferenceError: Error #1065: Variable xxxxxx is not defined.
    Debug session terminated.
    Code i am using
    b1.addEventListener(MouseEvent.CLICK, b1Clicked);
    b2.addEventListener(MouseEvent.CLICK, b2Clicked);
    var ldr:Loader;
    function b2Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("importer.swf"));
        addChild(ldr);
    function b1Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("example.swf"));
        addChild(ldr);
    If i try to open the swf using IE, i am not getting any issues at all. But i need to open this loader.swf in a air application. Also when i use loaderContext for the loader instance i am able to get rid of this issue but i cant use it in my application.
    So, please help me in resolving this issue.
    Thanks

    I got my answer. I had to append the photo url to the 'movie' value of the javascript embed method. Like this:
    <script language="JavaScript" type="text/javascript">
       AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
          'width', '550',
          'height', '400',
          'src', 'lesson2',
          'quality', 'high',
          'pluginspage', 'http://www.adobe.com/go/getflashplayer',
          'align', 'middle',
          'play', 'true',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'window',
          'devicefont', 'false',
          'id', 'lesson2',
          'bgcolor', '#ffffff',
          'name', 'lesson2',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','always',
          'movie', 'lesson2?photo=http://www.flash-mx.com/images/image1.jpg',
          'salign', ''
          ); //end AC code
    </script>
    Thanks,
    srb.

  • IMac 10.5.8 is stuck on Apple logo loading screen , how can I back up my files with an external hard drive ?

    so my iMac (10.5.8 its pretty old ) got stuck on the apple logo loading screen (as I call it lol) and it will not go beyond that .I've already made and appointment for the genius bar but now would I back up my files with an external hard drive ? No unfortunately I don't have any other laptop or computer just the external hard drive. how would I back it up? Does it have something to do with "target disc mode"?

    Hi,
    Thank you for great advice re SuperDuper.
    You wasnt to know we didnt live in  USA.  We will try to get the full retail version of Leopard off the net.  We will also phone round the apple resellers.
    In the meantime, we are happy running Tiger with the knowledge that SuperDuper has cloned our hard drive in case of a disaster.
    SuperDuper recommended backing up the hard drive with a new user account if we were using filevault on the master account.  We backed up our hard drive without creating a new user with filevault as we could not read the pdf `Instuctions as preview was not responding.
    Is this copy safe to use as a bootable drive or should we copy our entire HD again using a new user account without filevault?
    Keith & Shem  

Maybe you are looking for

  • I can't make a purchase with iTunes because it says there's a problem with the connection. How do I fix this?

    I can't make a purchase with iTunes because it says there's a problem with the connection. How do I fix this?

  • Not able to see elements to design the screen.

    I have ECC 6.0 in our company. I started learning ABAP Webdynpro. When I opened the screen to design the first screen of my application with the  elements like label, input field, button etc...left hand side under favourites, only lines are there ins

  • TDS Issue

    Hi Gurus!! I have an query in diducting TDS amount for vendor account while making payment, can any body help me in this regard and how system knows these vendors are exception at time of posyting. For Ex :  1. Some vendors having 20% tax excemption

  • Firefox freezes when I switch tabs or write in a form.

    Every time I switch tab by clicking on them(and sometimes when using the short cut, ctrl+tab ctrl+2 etc) or when I start writing in the awesomebar/a form Firefox freezes. It just visual freeze so I can still go to a website, click on stuff and so on.

  • One workflow, edited by multiple users

    Hi, can anyone tell me if it is possible to have one workflowtransaction that is edited by multiple users? My customer wants the transfer workflow to be initiated by the supervisor, which will fill several fields, and then be sent to an HR Representa