Charger, Unload SWF and WARNING: ignorance of the attribute 'safe '...

Hey all

I just tried to load a swf into another.  in my document class, I have the following line of code in my constructor.

var loadBoard:LoadBoard = new LoadBoard ("Directory.swf");

in my LoadBoard class:

package com.myproject

{

import flash.display.Loader;

import flash.display.MovieClip;

import flash.net.URLRequest;

/public class extends MovieClip LoadBoard

     {

public void LoadBoard(nameOfBoard:String)

          {

var boardLoader:Loader = new Loader();

addChild (boardLoader);

boardLoader.load (new URLRequest (nameOfBoard));

trace ("swf must be loaded");

          }

     }

}

"In my console I get the following when I debug.

[SWF] U:\fullPath\Directory.swf - 69 058 bytes after decompression

[SWF] U:\fullPath\Directory.swf - 2 067 bytes after decompression

[SWF] U:\fullPath\Directory.swf - 322 606 bytes after decompression

[SWF] U:\fullPath\Directory.swf - 112 558 bytes after decompression

[Unload SWF] U:\fullPath\Directory.swf

Warning: ignorance of the attribute 'trust' in the policy file to http://fpdownload.Adobe.com/pub/SWZ/crossdomain.XML .  The 'confidence' attribute is permitted only in HTTPS policy files and socket.  See http://www.adobe.com/go/strict_policy_files for more details.

Don't know why I get this warning when I google it, the error has to do with trying to load a file from another domain. My Directory.swf file is in the same place as my main swf, the bin-debug folder.  Also the Directory.swf does not seem to load into my main swf as I do not appear in the flash player, when I run my application.   I'm also a bit confused about the [Unload SWF], I don't ask for anything for him to unload my swf.

I use FB to do all my coding and debugging if it matters.

Anyone has any ideas.

Thank you

you use a tlftextfield in Directory.swf or elsewhere?

Tags: Adobe Animate

Similar Questions

  • SWFLoader.unloadAndStop () - t - it unload swf and release memory?

    Hi all

    SWFLoader FP10 unloadAndStop() and GC really unload swf?

    I have simplest possible test case when parent app creates new SWFLoader, under app load and then unload it.

    Every time when it does I see memory grows. The sub app is tiny:

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute " >

    "" < mx:Label id = "idLabel" color ="Blue" text = "it comes on-board application. " />   

    < / mx:Application >

    The initial request is as simple

    public function loadSwf(name:String):Sub

    {

    loader.addEventListener (Event.COMPLETE, completeHandle, , false0, true,);    

    loader.showBusyCursor = real

    loader.scaleContent = real

    loader.source =name;      / / name is subappswf.swf the

    Loader.load().

    }

    private function completeHandle(event:Event):Sub

    {

    loader.removeEventListener (Event.COMPLETE, completeHandle);

    loader.unloadAndStop (true);

    }

    Profiler shows decent memory of crete and same Cumulative memory seems not horrible. There are no objects suspended in the sub-application except SystemManager. But Google Chrom Task Manager shows the real picture: Shockwave Flash memory develops and soon he reached the ~0.5 GB threshold, application stops responding and finally FP crashes.

    How to free up memory?

    Kind regards

    Ilya

    If autoLoad is true, and you set the source = null and call validateNow() right

    After that, it should cause unloadAndStop to actually be called.

  • Need HELP loading and unloading SWFs external when the user clicks on the buttons

    Hi everyone, I'm working on a few Web sites at the moment, one for being my online portfolio, as well as my Web site for a product of sleep, that I'm selling.  I have very little experience with AS3, last time I created a Web site that as2 has been used.  I tried a few tutorials online, but nothing performs the work, there is always an error...

    I have an index.swf that loads the default home.swf.   There is also an about.swf, contact.swf, order.swf and testimonials.swf...

    It was a hair pulling 4 days now, not be able to get this working.

    All I need is for the swf external to pull up when you click on the corresponding button, and when the next button is clicked, the current to unload swf and swf to load new file.  It was so simple with AS2, you would think things could be as easy, if not easier.   So any help that all the world can offer, I would be so very you happy for me!  If necessary I can copy my current code, even if it doesn't work!   Thanks, Mike

    var loader: Loader = new Loader();

    addChild (loader);

    home_btn.addEventListener (MouseEvent.Click, loadF);

    about_btn.addEventListener (MouseEvent.Click, loadF);

    contact_btn.addEventListener (MouseEvent.Click, loadF);

    function loadF(e:Event):void {}

    Loader.Load (new URLRequest (e.currentTarget.name.split ("_") [0] + ".swf")); / / assuming that each reference button is also the button's name property

    }

  • [Unload SWF] appears in a console application and crashes

    Sometimes, "[Unload SWF] path: hand - debug.swf" appears and kills all calls HTTPService that are made.

    The application behaves as such:

    1. about 4 HTTPService calls are made at once, using different instances of HTTPService.
    2. on occasion, in the debugging console a "[Unload SWF]...". ' opens and shows the path to my application. Sometimes it appears once for each Web service call that I do.
    3. each webservice that gets the '[Unload SWF]' will never return and hangs forever.

    Sometimes, I also see a "[SWF] path: hand - debug.swf" message in the console, how Web Services crashes again. If I click on "Cancel" on my application, then try again, they will sometimes work like magic (and I don't receive messages [Unload SWF]).

    Any help would be greatly appreciated!

    -Michael Whitaker: confused;

    Incredible...

    I think I can find the problem and the solution:

    The way I was using the HTTPService component was in a separate category that itself contained the httpservice I was instantiating and calling on a per need basis. The function that I used to call my web service needs of two function pointers accepted (or types of functions) who were called on a ResultEvent or a ResultEvent (from the HTTPService). I used the method call lamba (inline functions). That's what seemed to be the problem. As soon as I moved the lamba outside, in the real functions, functions and just passed their reference thanks to my method, everything worked.

    I've noticed several problems related to the functions of lamba, who are all very unhappy (because I would use more, but they are so buggy):

    1. a function of lamba sometimes has a weird scope. Sometimes call "this.something" fails in the service of lamba, like 'this' is null. Ex:

    class Bob
    {
    public Bob()
    {
    this.addEventListener (Event.ENTER_FRAME, function(e:Event):void {trace ("this:" + this.toString ());}, false, 0, true);
    }
    }

    (Note: it's 1% psudo code (not compiled).) 'this' will sometimes be null (depending on where the lamba is used).

    2. If using the above code, you need to instantiate Bobs several at a time and add them to the displaylist, sometimes only ONE of the instances will actually call their lamba function enterframe. others will not. I don't know why this happens, but I think that multiple instances of the same class by using a function of lamba has tendency to conflict in memory or something. (or the scope of the special lamba).

    3. sometimes, as directed by my problem in this thread, a function of lamba will not even be called. I solved this by pulling on the functions of lamba and placing them in the actual duties, then just casually pointer throughout.

    I guess that the debugger sending [Unload SWF] and the [SWF] messages were just a coincidence (unless they affect somehow lamba functions). I will continue to test this to make sure that the problem has disappeared. If not, I'll probably start a new thread.

    Thanks for your help mike_morearty!

  • the .swf and .html files does not work while the .fla file works great

    Hi I'm new to actionscript, and I have a question. The fla file works perfectly and runs the timer function and reads the xml file to create an RSS feed, but when I publish and choose HTML wrapper and then choose 14 Flash swf and html file load the photos and the text field but isn't something else please help.

    Thanks in advance.

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.events.Event;

    import flash.text.TextField;

    import flash.text. *;

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    var RSSLoader:URLLoader = new URLLoader();

    var RSSURL:URLRequest = new URLRequest ("http://sports.yahoo.com/soccer//rss.xml");

    RSSLoader.addEventListener (Event.COMPLETE, RSSLoaded);

    RSSLoader.load (RSSURL);

    var RSSXML:XML = new XML();

    RSSXML.ignoreWhitespace = true;

    var title: TextField;

    var desc:TextField;

    var allText:TextField;

    title = new TextField();

    allText = new TextField();

    var i: int;

    function RSSLoaded(e:Event):void {}

    trace ("xml load file here");

    RSSXML = XML (RSSLoader.data);

    for {(var selectedItems:String in RSSXML.channel.item)

    title. Text = (RSSXML.channel.item [selectedItems] .title + "/");

    title.wordWrap = true;

    tfLog.text += title.text;

    tfLog.wordWrap = true;

    trace (title. (Text);

    }

    }

    var t:Timer = new Timer (200);

    t.addEventListener)

    TimerEvent.TIMER,

    function(EV:TimerEvent): void

    {

    tfLog.text tfLog.text.substr = (1) + tfLog.text.charAt (0);

    }

    );

    t.Start ();

    var picTimer:Timer = new Timer (2000);

    picTimer.start ();

    picTimer.addEventListener (TimerEvent.TIMER, timehandler);

    function timehandler(event:TimerEvent):void {}

    setChildIndex (getChildAt (7), 0);

    }

    A way around that is to have a PHP file on your server that reads the XML feed and your swf reads the data from the PHP file rather than directly from the external domain.

  • How we prevent external swf click do not affect the parent swf

    I use the loadMovie command to load an external swf (a short course of education) in the parent swf file. The parent swf file is an interactive exercise with several buttons to answer. The user can click a button to open and close the turorial on top of the exercise.

    If the user clicks at random on the tutorial, they can accidentally click the answer buttons in the swf below parent and hear signals correct and incorrect. When they close the tutorial, they see that the answers have been given and it has a score when they have not intentionally give all the answers.

    How to prevent clicks on the external register on the parent SWF swf? Thanks in advance for any help on this matter.

    Add a rectangle step in the lowest layer of your external swf and make sure that the size of the stage of the loaded swf file and load is the same.  convert this shape to a movieclip and assign an instance name (for example, bg_mc).  in Control Panel, you can use:

    bg_mc._alpha = 0;

    {bg_mc.onRelease = Function ()}

    }

    bg_mc.useHandCursor = false;

  • Copy the attributes of an Expression between input and output

    Hi all

    Please let me know is possible to copy the attributes of entry and paste it into the attributes of output of an Expression inside the mappings.

    I have a number of columns in the table.

    Thank you
    Salih KM

    Hello

    It is not possible using the design center of gui.
    But you can do this by using the omb. Just adopt the code according to your needs (project, mapping and exploiting the name) and paste it into the omb * more windows of the design center.

    OMBCC '/MY_PROJECT/MYT_DB'
    set attributeList [OMBRETRIEVE MAPPING 'MAP_EXPRESSION' OPERATOR 'MY_EXP' GROUP 'INGRP1' GET ATTRIBUTES]
    foreach attribute $attributeList {
      set dataType [OMBRETRIEVE MAPPING 'MAP_EXPRESSION' OPERATOR 'MY_EXP' GROUP 'INGRP1' ATTRIBUTE '$attribute' GET PROPERTIES (DATATYPE)]
      set length [OMBRETRIEVE MAPPING 'MAP_EXPRESSION' OPERATOR 'MY_EXP' GROUP 'INGRP1' ATTRIBUTE '$attribute' GET PROPERTIES (LENGTH)]
      set precision [OMBRETRIEVE MAPPING 'MAP_EXPRESSION' OPERATOR 'MY_EXP' GROUP 'INGRP1' ATTRIBUTE '$attribute' GET PROPERTIES (PRECISION)]
      set scale [OMBRETRIEVE MAPPING 'MAP_EXPRESSION' OPERATOR 'MY_EXP' GROUP 'INGRP1' ATTRIBUTE '$attribute' GET PROPERTIES (SCALE)]
       switch $dataType {
         NUMBER { OMBALTER MAPPING 'MAP_EXPRESSION' ADD ATTRIBUTE '$attribute' OF GROUP 'OUTGRP1' OF OPERATOR 'MY_EXP' SET PROPERTIES (DATATYPE, PRECISION, SCALE) VALUES ('$dataType', $precision, $scale) }
         DATE { OMBALTER MAPPING 'MAP_EXPRESSION' ADD ATTRIBUTE '$attribute' OF GROUP 'OUTGRP1' OF OPERATOR 'MY_EXP' SET PROPERTIES (DATATYPE) VALUES ('$dataType') }
         default { OMBALTER MAPPING 'MAP_EXPRESSION' ADD ATTRIBUTE '$attribute' OF GROUP 'OUTGRP1' OF OPERATOR 'MY_EXP' SET PROPERTIES (DATATYPE, LENGTH) VALUES ('$dataType', $length) }
       }
    }
    

    Kind regards
    Carsten.

  • get the value of the attribute of Advanced Table &amp; set

    Hello

    I am a beginner in the OPS, that's why your help is very appreciated. _


    Can one advice me please how I can get and set values for the attributes in Advanced Tabel.

    I have an advanced array (dtls_advance_tbl) that contains 5 columns and I want to get the value of the attribute (class_1) and change the value of the attribute (class_1_image) on this basis.

    Please advice the code and what class / method I have to write it (I mean it is in the controller / VOImpl)?

    Thanks in advance.

    Kind regards... Ashraf

    No ok ok, so no need to go to rowreference or PPR.

    change the code below and the writeh in the PR of the extended controller method

    OAViewObject vo = (OAViewObject) getEmployeeSummaryVO1 ();
    Line EmployeeSummaryVORowImpl = null;

    This tells us the number of lines that were recovered in the
    Rowing together and away the extra lines as some of the
    other methods 'get County '.

    int fetchedRowCount = vo.getFetchedRowCount ();

    We use a separate iterator - even if we could scroll the
    the lines without it - because we do not want to influence the currency of the line.

    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");

    If (fetchedRowCount > 0)
    {
    deleteIter.setRangeStart (0);
    deleteIter.setRangeSize (fetchedRowCount);

    for (int i = 0; i)< fetchedrowcount;="">
    {
    line = (EmployeeSummaryVORowImpl) deleteIter.getRowAtRangeIndex (i);

    For performance reasons, we generate ViewRowImpls for all
    Objects in view. When we need to get an attribute value,
    We use the accessors appointed instead of a generic string search.

    Number primaryKey = (Number) row.getAttribute ("EmployeeId"); / / Get two rows here at a time when you want to compare

    Number primaryKey = row.getEmployeeId ();

    If (make the comaprison here)
    {
    write your logic here
    break; only one selected line in this case
    }
    }
    }

    deleteIter.closeRowSetIterator ();

    Thank you
    Pratap

  • Compensation of the attributes using ODI

    I have reworked the (multiple) attributes for a dimension of planning. I now need to empty the old attributes of members within this dimension. I created a .txt file and put spaces where the attributes used to be, but he did not dismiss the planning. What else should I do?

    Use If you want to delete attributes.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    Dear all,

    OS - Windows server 2012 R2

    version - 11.2.0.1.0

    Server: production server

    ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

    ORA-00942: table or view does not exist

    When taken expdp and faced error mentioned above. but expdp completed successfully with waring as below.

    Work "AWSCOMMONMASTER". "" FULLEXPJOB26SEP15_053001 "finished with 6 errors at 09:30:54

    (1) what is the error

    (2) is there any problem in the dump because file as above of the error. If Yes, then I'll resume expdp.

    Please suggest me. Thanks in advance

    Hello

    I suspect that what has happened, is that demand has dropped a temporary table to during the time that you run the export - consider this series of events

    (1) temp table created by application

    (2) start expdp work - including this table

    (3) the extracted table metadata

    (4) the application deletes the table

    (5) expdp is trying to retrieve data from the table - and gets the above error.

    Just to confirm with the enforcement team that the table is just a temporary thing - it certainly seems it name.

    See you soon,.

    Rich

  • I was charged for my coffee game update, which I wasn't aware of. I do not accept to pay about $ 8 for only an update, this game in the first place was free. I want to ask for a return and I will delete the game

    I was charged for my coffee game update, which I wasn't aware of. I do not accept to pay about $ 8 for only an update, this game in the first place was free. I want to ask for a return and I will delete the game

    Apple or App developers read this forum. If you want a refund, contact the developer to the email address. It is to them that they will refund your or not.

  • I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions!

    I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions! Thank you

    You can make an appointment at the Apple Store - Genius Bar store and bring it into service. You can also search an Apple Store - find a store - Apple.

  • Error and warning before and after the POST - Satellite M40X 129

    Hello

    I use a Satellite M40X-129, bought in 2005.
    After you have reinstalled Windows and all the necessary drivers (after more than 3 years, which was the longest time I used a windows ;-)) installation this afternoon, I meet the following situation when starting):

    (... check and all the stuff of ram...)
    Updated System Configuration data
    ERROR
    0271: check date and time
    WARNING
    0251: System CMOS checksum bad - default configuration used
    Press to resume, installation

    When I press F1 to resume, windows starts very well as I'm used to it.
    I can also access the configuration and need to update the time setting.

    Two scenarios:
    (a) the startup, shutdown, reboot: error message happen
    (b) setting the time, out of the bios with save the configuration, boot, very well until the stop/restart is required

    I tried to download the update of the bios to v1.60, but the configuration tool told me that this version is already in use and it will not progress.

    What I wondered: why is it happening? I don't think that the battery power is low, which was suggested to others in other threads, because it happened just after I installed the chipset/utils and other drivers from the toshiba download page.

    What can I do?

    -Bios update? -> Where can I find a new version? A tool (which I downloaded from a site linked to Phoenix Technologies) told me, there is an update for my Bios, but he wants me to join a subscription $29.99 / year

    -Swap CMOS battery? -> how remove m40x-129, tutorials? Don't want no f * ck it upwards...

    any other advice?

    Thanks for your help.
    Best regards

    Hello

    I think that the CMOS battery may be empty and therefore both a given in the BIOS is always changing the default value.

    Usually, you should be able to recharge this battery CMOS very easily.
    The user manual describes how to load this. Take a look at your manual

    As I m not wrong not the laptop must be ON and running and must be connected to the mains for more than 20hours.
    Then, the notebooks BIOS battery needs to be recharged again.

    Check it out!

    Good bye

  • Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Yes and no.

  • HP ENVY 15 t-j100: pin in the charger is folded and cannot load laptopn

    I tried to recharge my laptop recently and noticed that he was not responsible because the PIN in the charger has deform and so unable to connect to the laptop.

    Is it possible that I could get replaced charger, or do I have to buy a new one?

    It comes from the expanded plant. You folded it. Warranty does not cover. Buy a new one.

Maybe you are looking for