Loading a swf in another swf playback and video problem

image1.jpg

So I have a HTML page (in the folder 1 subdirectory) and I stir in 2. SWF (in the subdirectory 2 folder (both files are located in the Parent Directory)).

2 swf load 1. subdirectory swf 1.

In 1. SWF, I have a video player (who charge video1.flv of video file) and run individually it plays without any problems.

If I run the html code it loads two sovereign wealth funds but the video does not play because of an exception 'Stream.NotFound '.

This arrangement of files and folders is a requirement for my project. So please can you tell me why this takes place the behavior and if there is a way to get out of there.

Looks like this isn't very smart architecture requirement to have assets in all directions. If you can't convince people that created this architecture to get a real, you can play with relative paths and, perhaps, use LoaderInfo.loaderURL to get the videos folder since it seems that the video folder is a subdirectory of the folder where the swf 1.

Tags: Adobe Animate

Similar Questions

  • How to load external swf file and unload the swf file parent?

    I have a question. Let's say I have file1.swf, file2.swf and file3.swf, how can I link this 3 files together.

    Let's assume that file1.swf is the main content file, but as I load file2.swf, I want the file1.swf get replaced by file2.swf. How could unload file1.swf at that time, so that my file2.swf will become the main content file?

    and even once, when my current post file2.swf and I want it get replaced by file3.swf tinkle of a button. so that i can unload the file2.swf and let them file3.swf become the main content file...
    Anyone have ideas on this?
    Thank you..

    If you're publishing to fp 10 + use:

    var loader: Loader = new Loader();

    var urlR:URLRequest = new URLRequest();

    addChild (loader);

    Btn1.addEventListener (MouseEvent.Click, f);

    btn2.addEventListener (MouseEvent.Click, f);

    function f(e:Event):void {}

    {if (Loader.Content)}

    loader.unloadAndStop ();

    }

    {if(e.currentTarget==btn1)}

    urlR.url = "file2.swf";

    } else {}

    urlR.url = "file3.swf";

    }

    Loader.Load (urlR);

    }

    p.s. Please check the useful/correct, if there is.

  • Cursor blackBerry Smartphones and video problems

    Hello

    I can't control my cursor or video games.  Is this one problem for others?  I am trying to decide if I would return my Storm because of these problems.

    Thanks, Liz

    Liz2009 wrote:

    v4.7

    BlackBerry told me that I should be able to visualize videos, and that a fix should be out.  I am able to play the sample video that has been loaded on my new phone to factory... it looks great.

    OK, if your want to put videos on your storm of DVDs or videos that you have downloaded, you'll need a program called Handbrake (just google it) it's free.

    the video must be in mp4 format and screen size 480 x 360.

  • PDF and video problem 10.6.8 OS and Firefox 44

    Recently updated to OS 10.6.8 on a MacBook (I do what I can in this world of continuous demand to pay for upgrades to the computer) and 44 of Firefox.

    Now I can't view a PDF on the Web sites (they are a jumble of asymmetric stripes of color) and some small videos on Web sites are unstable (I don't usually watch these, but this is another symptom). I can download the PDF files and they are very good, but I don't want to download anything I want to see.

    What should I check?

    Hi catec60269417 ,

    I would like to inform you that extend Acrobat create a PDF file are disabled in FF v44.

    It is a known issue and we are working on that.

    We intend to provide support in the future updates.

    At the same time, as a workaround, you can use Adobe Create PDF extension for Chome or use Acrobat to convert web pages to PDF.

    Would also update your OS so you can use the latest acrobat application.

    Kind regards

    Christian

  • Pavillion23: Audio and video problem with device Miracast

    I bought the device Miracast, Microsoft Wireless Display Adapter.

    first try, he worked without a lot of pixelation, very rare lag, but its only on PC, no TV.

    then try, same result.

    third attempt, the display/video guard disconnected and still no sound

    Does anyone know how to fix this?

    I'm on Windows 8.1. I have the insignia TV less than 2 years.

    I tried streaming TV Online, Youtube videos shows and personal video/audio files. Same results for each one.

    So it must be my PC HP, not the Internet connection / or the adapter itself?

    Hi there @TBL-091

    Welcome to the Forums of HP Support! It's a good place to find the help you need, so many other users, the HP experts and other members of the support staff.

    I understand that you are looking for help with a Miracast connection.

    HP computer desktop and laptop computers - share your screen using Miracast (Windows 8.1)

    This good page on a HP laptop, includes useful information as well.

    Miracast support for computers laptops hp -answers.microsoft.com

    Also a page with General information on Miracast- wikipedia.org

    Let me know if it helps.

  • Webcam and Audio problems

    I've been using Skype every day and the webcam and the sound worked. I just signed up today and my vidI use Skype every day, and the webcam and the sound worked. I just logged on today and my video and audio does not work. I tried to remove and install Skype, but this does not work either. My webcam does not work, and my laptop is not picking up sounds. I don't know why this is happening. Can someone help me?

    Hi ChristianB4,

    Welcome to the Microsoft community where you can find all the answers related to windows. According to the description, you are facing problems with the audio and video problems with Skype.

    In addition to answering these questions that would help us provide a better solution:

    1. is the Skype-specific question?

    2 have had any changes made to the computer before the question?

    3. What is the brand and model of the computer?

    Try these steps and check:

    Method 1:

    This fixit is automatically diagnose and fix problems with the equipment.

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2:

    This tutorial can help you identify and resolve its current problems in Windows, including no sound from your speakers or headphones. This tutorial does not cover sound problems related to specific programs. Sound problems can be caused by cables that are not connected properly, damaged drivers, incompatible drivers, sound settings, missing updates and problems with your sound card.

    No sound in Windows
     
     

    Hope this information helps. If you have any other questions feel free to respond and we would be happy to help.

  • load a SWF into another domain and access its functions and variables

    I need to load a swf file into another domain and call its functions and access to its variables, in the same field, I can load and access its functions successfully, but in different areas not.

    control the class security.  Depending on the browser version that you're targeting you might be able to get out of the allowDomain() method, but you'll probably want to use a cross-domain security file.

  • FLASH AS2 main swf loaded swf playback controls

    Hello

    I have two swf files. The main (main.swf) swf that loads another swf (external.swf).

    The current code in my main swf that loads external swf file is:

    Stop();

    this.createEmptyMovieClip ("holder", 1);

    holder.loadMovie ("content/swf/M01/disclaimer.swf");

    The loaded swf file must unload on a click event, then the main swf movie should resume playing.

    The code in the swf file is:

    on (release) {}

    _level0.gotoAndPlay ("hideMSG");

    _parent.unloadMovie("content/SWF/M01/disclaimer.swf",1);

    }

    The external swf file loads and unloads perfectly, but the film does not seem to take over.

    When I try to use _level0.play, it seems to reload and restart the file main.swf.

    Any help would be greatly appreciated.

    Laura

    No, there is no downtime in this context, there is indeed a play(); which is exactly what I want.

    I managed to get it using variables instead of work.

    Thank you

    Laura

  • Delete / external swf or the files in the flash file main to unload and load a new swf file and memory garbage collection.

    I can't delete / unload the example swf files external when the carousel.swf (portfolio) appears and press the button about the content overlaps the carousel (portfolio). How can I delete / unload an external swf file in the main flash file and load a SWF, so that at the same time remove garbage collection memory operation?

    This is the error messages I receive: "TypeError: Error #2007: child parameter must be non null.»

    at flash.display::DisplayObjectContainer/removeChild()

    " to index_fla::MainTimeline/Down3().

    Import nl.demonsters.debugger.MonsterDebugger;

    var d: MonsterDebugger = new MonsterDebugger (this);

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    stage.addEventListener (Event.RESIZE, resizeHandler);

    is the charger for the portfolio page swf

    var loader: Loader;

    var loader2:Loader;

    var loader3:Loader;

    var loader1:Loader;

    resize the content

    function resizeHandler(event:Event):void {}

    resizes the portfolio page to Center

    Loader.x = (stage.stageWidth - loader.width) *. 5;

    Loader.y = (stage.stageHeight - loader.height) *. 5;

    resizes on page to Center

    loader3.x = (stage.stageWidth - 482) *.5 - 260;

    loader3.y = (stage.stageHeight - 492) *.5 - 140;

    * loader2.x = (stage.stageWidth - 658.65) *. 5;

    loader2.y = (stage.stageHeight - 551.45) *. 5; * /

    }

    addEventListener (Event.ENTER_FRAME, onEnterFrame, false, 0, true);

    function onEnterFrame(ev:Event):void {}

    var requesterb:URLRequest = new URLRequest ("carouselLoader.swf");

    Charger = null;

    loader = new Loader();

    Loader.Name = "carousel1.

    Adds gallery.swf in the scene at the beginning of the film

    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    Loader.Load (requesterb);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader);

    Loader.x = (stage.stageWidth - 739) *. 5;

    Loader.y = (stage.stageHeight - 500) *. 5;

    stopover gallery.swf duplication and more on enter frame

    removeEventListener (Event.ENTER_FRAME, onEnterFrame);

    }

    PORTFOLIO BUTTON

    Add eventlistner so that gallery.swf can be loaded

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    function Down(event:MouseEvent):void {}

    Re add listener for contact.swf and about.swf

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    discharge of entry gallery.swf frame if users press portfolio in nav button

    var applicant: URLRequest = new URLRequest ("carouselLoader.swf");

    Charger = null;

    loader = new Loader();

    Loader.Name = "carousel."

    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    Loader.Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader);

    Loader.x = (stage.stageWidth - 739) *. 5;

    Loader.y = (stage.stageHeight - 500) *. 5;

    removeChild (getChildByName ("about"));

    removeChild (getChildByName ("carousel1"));

    delete eventlistner and prevents duplication of the gallery.swf

    MovieClip (root).nav.portfolio.removeEventListener (MouseEvent.MOUSE_DOWN, down);

    }

    INFORMATION BUTTON

    Add eventlistner so that info.swf can be loaded

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    function Down1(event:MouseEvent):void {}

    This adds the EventListener for portfolio so that the end user can re-post if they wish.

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    var applicant: URLRequest = new URLRequest ("contactLoader.swf");

    loader2 = null;

    loader2 = new Loader();

    loader2. Name = "contact".

    loader2.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    loader2. Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader2);

    loader2.x = (stage.stageWidth - 658.65) *. 5;

    loader2.y = (stage.stageHeight - 551.45) *. 5;

    delete eventlistner and prevents duplication of the info.swf

    MovieClip (root).nav.info.removeEventListener (MouseEvent.MOUSE_DOWN, Down1);

    }

    ON THE BUTTON

    Add eventlistner so that info.swf can be loaded

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    function Down3(event:MouseEvent):void {}

    This adds the EventListener for portfolio so that the end user can re-post if they wish.

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    var applicant: URLRequest = new URLRequest ("aboutLoader.swf");

    loader3 = null;

    loader3 = new Loader();

    loader3. Name = "a connection"

    loader3.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    loader3. Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader3);

    loader3.x = (stage.stageWidth - 482) *.5 - 260;

    loader3.y = (stage.stageHeight - 492) *.5 - 140;

    removeChild (getChildByName ("carousel"));

    removeChild (getChildByName ("carousel1"));

    delete eventlistner and prevents duplication of the info.swf

    MovieClip (root).nav.about.removeEventListener (MouseEvent.MOUSE_DOWN, Down3);

    }

    Stop();

    You call unload() on objects that you cancelled - where the error.

    You should do something like:

    {if (loader2)}

    loader2. Unload();

    }

    As for the null value passed into the function - null is a default value. In this way, you can call the low past nothing:

    Down()

    Or you can use it as a handler in which case it will be called by the Auditor:

    Down (mouseEventInstnace);

  • run the error when go to the "home" button after loading external swf

    I work to develop an Android app to learn Arabic, it's very simple.

    to explain the alphabet, I create and load files SWF external, first and second Chargers work well (loading and when click the buttons there is not any question)

    but the third charger charge well also, but the problem when I test project, I make me run error when press home.

    (it does not occur when you load other chargers)

    Here are the sisters Project.rar Android - Google Drive files

    Thank you

    the problem is in the way that you use to add the listeners to events for the buttons, you add a listener for them different click events each keyframe, so you need to remove the headphones before you leave for another frame.

  • Problem with loading external swf files

    Hello

    I am currently working on a project which is an interactive and dynamic elemtry school presentation to the Denmark. I finished my project and it works perfectly, but only locally on my computer.

    The final draft should be implemented on the site and public work. I tried to implement the project on the site and unfortunately, it does not work as expected.

    When all the files where transferred to the ftp server, only a single files are responding and appear correctly.

    Interactivity of the project is based on a structure of Action script, which is based on the smooth transition between swf files (load another swf file after the action is triggered by clicking on a button) do any work.

    After days of trying to figure out the solution, I'm totally lost. One thing is to publish the project so that all action script will work and answer between swf files, and the other thing is to make it user-friendly for the Android and apple products.

    The presentation is quite heavy because of its loading external swf content files, which are images and movies.

    I really hope you can help me with my problem. I will gladly share the files and codes if it would help solve the problem.

    Best regards

    Agata

    It could be a problem of location of file from loading.  When you place a swf file in an HTML base for targeting anything that the SWF load becomes the folder of the html page.  You may need to adjust the target so that the target of swf files, load it as if it were in the same folder as the html page.

  • Loading external swf into an Air application

    Hi all

    I have build an Adobe Air app for desktop PC and have problems to load an external swf. Whenever I try to load, I get:

    SecurityError: Error #2070: security sandbox violation... cannot access stage owned by app... blah blah

    The file is loading is in a local directory, but I understand its in an another "sandbox" that represents a security risk.


    Is there a way to get around this?


    Any help would be appreciated


    Thank you very much


    Matt

    That's why I added these comments on domain of the swf file.  for locally loaded SWF files, use:

    SFMltd wrote:

    Hi Kglad, thanks for the example.

    If I run my class with securityDomain = SecurityDomain.currentDomain; then it throws this error: SecurityError: Error #2142: security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.

    The e-mail of swf file trying to load is stored locally, so I guess that this error is logical. However if I comment on this line, I get the same error "cannot access stage owned by app"?

    See below for the class:

    package {}

    import flash.display.MovieClip;

    import flash.filesystem.File;

    import flash.events.Event;

    import flash.net.FileReference;

    import flash.events.MouseEvent;

    import flash.display.Loader;

    import flash.net.URLRequest;

    import flash.system.LoaderContext;

    import flash.system.ApplicationDomain;

    import flash.system.SecurityDomain;

    public class assetPreview extends MovieClip {}

    private var loader: Loader;

    private var mainSWF:MovieClip = new MovieClip();

    public void assetPreview() {}

    addEventListener(Event.ADDED_TO_STAGE, initialise);

    }

    public void initialise(e:Event):void

    {

    removeEventListener(Event.ADDED_TO_STAGE, initialise);

    var allowSWF:LoaderContext = new LoaderContext (false, ApplicationDomain.currentDomain);

    allowSWF.securityDomain = SecurityDomain.currentDomain;

    loader = new Loader();

    Loader.Load (new URLRequest (settingsXML.pathToSWF), allowSWF);

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, viewPreview);

    }

    public void viewPreview(e:Event):void

    {

    addChild (mainSWF);

    mainSWF.addChild (loader);

    }

    }

    }

  • External loading. SWF in Flash

    OK, so I asked this question earlier:

    http://forums.Adobe.com/message/5135410#5135410

    I does not go into details. My first question is: did you Ishkur somehow a transparent background for its external .swfs, or he made a regular and used some sort of code or setting to do so it appears down right? And my second question is, where should I apply this code / where does go? He get couple with buttons which translate the flash to load the external .swfs? I sincerely apologize for my nonstop customer support. _.

    myMovieClipInstance.loadMovie ("myExternalMovie.swf");  Here, only the file name is given, indicating that the SWF file is in the same folder as the parent swf file

    You don't have to do anything to get a transparent background.  When you load a swf into another swf, the loaded file has no bottom, does only the primary file.

    You place the code based on what you intend to start loading.  If it is a button that will trigger loading, then you place the code in the button code.  If it happens when you enter a specific frame, then you put the code in this framework.

  • I only have the SWF file and the output of HTML5, how can I control it?

    Imagine this: a customer gives me two archives zipped; an archive is a SWF file and another a HTML5, JS and CSS. Both have been published after checking "Scorm 1.2" in the tab reports in Captivate. I'm a developer, and all I have at my disposal is html, javascript and css.

    Is it possible for me to progress of CV? Send the quiz scores to my web service? Control playback?

    If you are already a programmer, I suggest that you talk to these guys here: https://groups.google.com/forum/?fromgroups#! forum and e-Learning-technology-development and

  • How to load several SWF my main flash file?

    I use the following code

    In stock for 1 frame:

    ( var myrequest:URLRequest =new URLRequest ()'A.swf'();
    ( var myloader:Loader =new Loader()();
    myLoader. load () myrequest ();

    img1. addEventListener () MouseEvent. ( CLICK, button click();

    ( function button click ()event: MouseEvent ():void{ }
    Stadium. addChild () myloader ();
    }

    img1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);

    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void

    {

    gotoAndStop (13).

    }

    In action to frame 13: (img2 is another button)

    img2.addEventListener (MouseEvent.CLICK, unloadFunction);

    function unloadFunction(event:Event):void {}

    stage.removeChild (myloader);

    }

    This code works perfectly fine. My only problem is how to make several swf loaded. When I tried to copy and paste the same code for the another swf, but the following errors appear. I'm sure theres a way to have several sovereign wealth funds (btw the multiple SWFS will be bound to different frames).

    Scene 1, Layer 'PAGES!', frame 2, line 7 1021: duplicate function definition.

    Scene 1, Layer 'PAGES!', frame 2, line 2 1151: there is a conflict with the myloader definition in the internal namespace.

    Scene 1, Layer 'PAGES!', frame 2, line 1 1151: there is a conflict with myrequest definition in the internal namespace.

    Can anyone help me please with this. Thank you

    I have to get a new keyboard one day... it ignores things...  That sentence was supposed to have read "You can not set the same variable name or function more than once in a file" If you don't know not what that means, read it a few times because it's as simple as possible.

    In regards to the other code, try and see what you get... No need to wait for me to try something yourself and see.

Maybe you are looking for