using asfunction to read swf file?

Hello
I have a link in a dynamic text box and when I click it, I want to play a swf file, in a clip. Is this possible? When I click on the text 'Show the file theSWF', it opens a new window with nothing on it. I want to play the SWF file in the same window in the "redbox_mc" movieclip, I placed on the floor above the dynamic text box.

Thank you
Paul

Its OK got it to work. should have used the following code for the function:
dyn_txt.htmlText = "display the SWF file ;
A little + makes all the difference!

Tags: Adobe Animate

Similar Questions

  • Flex: PB filters can be used in an embedded SWF file?

    I use the image tag to display an embedded - image filter PB works fine

    But if I replace the image embedded with an embedded SWF - filter PB does not apply

    Filter PB works with an embedded SWF file?

    to change the amount that the filter is running, you set the new value to shader.data.amount.value and then you reapply the shader object:

    Shader.Data.amount.Value = [newvalue];

    Map.filters = [filter];
    See page 31 in my MAX laboratory specifications:
    you might want to try to change the settings and see if that makes the right thing now, I see nothing wrong with the code snippet you posted.
  • Satellite C660: the system stops when I use internet or read a file

    for 2 days the laptop (I have win7 Home premium) hang up when I use internet, play a game, use a program, read a document.

    I'm not be able to move the mouse pointer and also pressing CTRL-ALT - ANNU system stops too.

    The only way to turn off the laptop is to push the botton to power or raise electricity
    What appen?

    What will happen? Well I would be to know this too ;)
    Have you noticed a higher temperature while working on this laptop?

    High temperature can be one of the many reasons why the laptop does not work correctly. You can check this by using like Everest Home Edition and similar diagnostic tools

    Corrupt system is the main reason why something is not working
    Have you tried to clean the BONES and the registry using CCLeaner?
    Try this.

    What about viruses? Scan you the system for malware?

    Last but not least, it could be a malfunction of the equipment. RAM, HARD drive, or even motherboard could cause this

  • Reading a file preferably grouped in the project

    Hello

    I'm looking for help in how I would be able to read the contents of a file preferably I gathered in my project. I managed to read/play a media file that is packaged, but somehow there is a problem with the content of a text file that has delivered. It could be the method that I use. Here is some info on the project:

    JDE: 4.7.0.41

    Structure of the project:

    prefreader (name of the project)

    data (folder where the preferences file is stored - pref_config.txt)

    IMG (folder where is stored the png)

    Media (folder where the media file is stored)

    PrefReader.java

    AppScreen.java

    code snippet:

    try {}
    FileConnection fconn = (FileConnection) Connector.open ("file:///data/pref_config.txt");
    If no exception is thrown, then the URI is valid, but the file may or may not exist.
    If (! fconn.exists ()) {}
    Add (new LabelField ("config file not found"));
    fconn. Create();  create the file if it doesn't exist
    }
    else {}
    Add (new LabelField ("config file found"));
    tell java.io.DataInputStream = fconn.openDataInputStream ();
    con_tuple = dis.readUTF ();
    Add (new LabelField ("Tuple Data =="+ con_tuple "));
    } / / else
    fconn. Close();
    }
    catch (IOException ioe) {}
    Add (new LabelField ("exception:" + ioe));
    }

    Most new LabelField are simple debugging purposes.

    I use the FileConnection class. However, I do not know how to reference a file in the project compared to a file on an SD card or the root directory! I tried several combinations, and nothing works. I get a net.rim.device.api.io.file.FileIOException: file system error.

    Kind regards

    Sean.

    You cannot use FileCOnnection to read a file that has been registered in your COD file.

    See the following article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

  • HTMLLoader local content (SWF files) loading problems

    Hello guys,.

    I'm just to complete my request but I have a problem.

    I am developing a desktop air app.

    I use HTMLLoader to load SWF files local when you user tries to access a specific content on the application.

    I accomplished successfully, but the loaded SWF file also load other files (assets and xml with translations files) and it does not work.

    When a SWF file is loaded it will stop just on its own screen of loading (loading XML files).

    All this happens on my CustomNativeWindow:

    (my CustomNativeWindow 'overlays' the main application)

    public function CustomNativeWindow()
     {
             var nativeWindowInitOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
             nativeWindowInitOptions.systemChrome = NativeWindowSystemChrome.NONE;
             nativeWindowInitOptions.renderMode = NativeWindowRenderMode.DIRECT;
             nativeWindowInitOptions.resizable = false;
             nativeWindowInitOptions.maximizable = false;
             nativeWindowInitOptions.minimizable = false;
      
             super(nativeWindowInitOptions);
      
             alwaysInFront = true;
      
             this.activate();
    }
      
    public function setProperties(contentName:String, contentURL:String, posX:Number, posY:Number, stageWidth:Number, stageHeight:Number):void
    {
              this.stageHeight = stageHeight;
              this.stageWidth = stageWidth;
              this.contentURL = contentURL;
              this.contentName = contentName;
      
              this.x = posX;
              this.y = posY;
      
              this.width = stageWidth;
              this.height = stageHeight;
      
              this.title = contentName;
      
              this.addEventListener(Event.RESIZE, onWindowResize);
      
              SWFHTMLLoader();
    }
      
    private function SWFHTMLLoader():void
    {
    
              //REQUEST LOAD URL 
              var request:URLRequest = new URLRequest(contentURL);
      
              //HTML LOADER SWF
              htmlLoader  = new HTMLLoader();
              htmlLoader.width = stageWidth;
              htmlLoader.height = stageHeight;
              htmlLoader.addEventListener(Event.COMPLETE, onHtmlLoaderComplete);
              htmlLoader.load(request);
      
              stage.addChild(htmlLoader);
    }
      
    private function onHtmlLoaderComplete(e:Event):void 
    {
              trace("NATIVE WINDOW HTMLLoader complete");
      
              onWindowResize();
    }
      
    private function onWindowResize(e:Event = null):void 
    {
              if (htmlLoader)
              {
                        htmlLoader.width = stage.stageWidth;
                        htmlLoader.height = stage.stageHeight;
              }
    }
    
    

    Probably something related to security?

    How can I fix?

    Is a bit urgent... deadline is coming...

    Thank you!

    It is probably related to a path problem.

    What is contentURL?

    If it is anything other than swfname.swf, you have a problem.

  • A swf file looping

    How to make a loop of swf file? Loop is checked in the properties, but it is not always in the loop...

    Chances are that your project file Flash has a stop() at the end of the last image of the film that prevents your looping SWF file.    What did you use to create your SWF file?

    Nancy O.

  • Using swf files compiled as swc into a project of ios

    Hello

    I have a quite stupid question, but I'm going anyway since its not easy on iOS.

    I have 10 swf files (each file is 1 game with all the assets + as3 inside)

    I now have an iOS (air 2.7) application that can play these 10 games on selection.

    Normally on iOS its not allowed to load swf files with AS3 inside because you can't use interpreted by Apple.

    Now, on http://www.flashrealtime.com/compiling-big-air-swf-to-ios/ , I've read some info on something to use CFCS.

    Here's my question now.

    If each of my 10 swf files contains in fact 1 movieclip on the stage that, by itself, contains all the game logic (as3) and assets inside, so can I compile these 10 swf files to a CFC and somehow included in a big iOS app?

    For example

    game1.swf the main movieclip would be onstage and exported for actionscript under the name "game1_mc".

    game2.swf the main movieclip would be onstage and exported for actionscript under the name "game2_mc".

    game3.swf the main movieclip would be onstage and exported for actionscript under the name "game3_mc".

    game4.swf the main movieclip would be onstage and exported for actionscript under the name "game4_mc".

    ...


    So I can somehow include all swc inside my 1 big app files?

    And can I then somehow instantiate one of these movieclips and add them to the displaylist to start a game?

    This could solve a big problem for me, but I'm not sure if this is possible.

    Kind regards

    Bart

    Ultimately you have these things included in the main file, and the tips on this page may be more oriented towards users of Flex. If you use the Flash, you could go to each of the SADF and copy the movieclip draws in sound and paste it into the main swf library. Set it to share for ActionScrtipt and use a unique name. For example, you can set the name of the symbol shared at level 1. Then in your main code where you would normally load in the external swf, say you:

    var levelmc:MovieClip = new Level1();

    addChild (levelmc);

    It should work just as well as the whole thing be swc.

  • Firefox crashes when you use pdf to adobe reader retriving files

    For instance when I tried to get a PDF from the IRS web site with adobe reader firefox crashes, it also does the same on other sites on pdf files that would be the problem and how could I solve this problem.

    Hi roy6640,

    Have you looked at the articles of the basis of knowledge of troubleshooting issues with plugins like Flash or Java to solve common Firefox problems or use the Adobe Reader to view or download PDF files plugin? There is some good information in there. You can try to reinstall the plugin as well to update or if it has expired.

    Hope this helps!

  • Simulation read data file (*.) (DAT) by using the worksheet (file reading eror - zeros)

    Dear OR community,

    IM pretty new in LabVIEW, so I have a few broblems with reading the data.

    I take a screenshot and mark a problem like part - A and part b below:

    The description of the goal:

    I do a mathematical simulation, using the old software whitch exporting results as shown in 1... DAT file, as it shown in the picture (Notepad).

    First of all I need not read these data then I need to draw the graph XY.

    Description of the problem:

    I created a LabVIEW program and im using a funciont reading of spreadsheet per section B - but when im trying to read data im getting all zeros...

    so I can't identify my problem... What is the problem?

    I try different file to read its Case_test_working.txt and everything is good with this data but when im trying to read *. DAT file zeros is array...

    I tried to use seperator different symbols, also try to imort data to exel then export to *.scv, *.txt formats, but the performance was the same as that indicated in part-A.

    Whenever I get zeros, but not a results as in *. DAT or another file format exported with the same data.

    Please be respectifull and understand that im still newbie in labview but I think its excellent software of filtering of the analysis of data and calculations, so I want to master this software for my future use.

    Respectfully,.
    Tomas E


  • I can not read PDF files when I open my e-mail-windows explore internet. Something happened because I use to be able to read them.

    Windows Internet Explorer

    Can not read PDF files.  Something has changed.  Used to be able to read.  Can't understand why.

    Download a free pdf reader and try again

    Foxit

    http://soft2011.co.UK/PDF-reader.php

    Sumatra

    http://blog.Kowalczyk.info/software/sumatrapdf/free-PDF-reader.html

  • I have a panasonic G3 camera and already use 3 years lightroom for raw files, now I bought a new G7 and he can't read raw files in lightroom, to me terrible, that I update lr to 5.7

    I have a panasonic G3 camera and already use 3 years lightroom for raw files, now I bought a new G7 and he can't read raw files in lightroom, to me terrible, that I update lr to 5.7

    Move the discussion to Photoshop Lightroom

  • How To Read RTF file in JAVA?  Using iText?

    How To Read RTF file in JAVA?  Using iText?...

    import java. IO;

    com.lowagie.text import. *;
    com.lowagie.text.rtf import. *;

    public class RTF3 {}
    Public Shared Sub main (String [] args) {}

    System.out.println ("this example produces a RTF Sample.rtf file name");

    Create the Document object
    The myDoc document = new Document();

    try {}

    Create writer to listen to a document object
    and directs the RTF stream to the Sample.rtf file
    RtfWriter2.getInstance (myDoc, new FileOutputStream ("Sample.rtf"));

    Open the document object
    myDoc.open ();

    Create a paragraph
    Point p = new Paragraph();
    p.Add ("Helloworld in Rtf file... amazing isn't");

    Add a paragraph to the document object
    myDoc.add (p);

    }
    catch (Exception e) {}
    System.out.println (e);
    }
    close the document
    myDoc.close ();
    }
    }
    Exception in thread "main" java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width (F)
    at com.lowagie.text.rtf.document.RtfPageSetting.rectEquals(RtfPageSetting.java:433)
    at com.lowagie.text.rtf.document.RtfPageSetting.guessFormat(RtfPageSetting.java:362)
    at com.lowagie.text.rtf.document.RtfPageSetting.setPageSize(RtfPageSetting.java:341)
    at com.lowagie.text.rtf.RtfWriter2.setPageSize(RtfWriter2.java:248)
    at com.lowagie.text.Document.open (unknown Source)
    to the view. RTF3.main (RTF3. Java:23)

    Can you help me?

    import com.lowagie.text.Document;
    import com.lowagie.text.rtf.parser.RtfParser;
    import java.io.FileInputStream;

    String Fichierentree = "sample.rtf."
    Document document = new Document();
    document. Open();
    RtfParser parser = new RtfParser (null);
    parser.convertRtfDocument (new FileInputStream (inputFile), document);

  • How to convert mp4 to flv or swf file using programs cloud creatives?

    I'm trying to integrate a video like HTML5 with Flash of relief in my Dreamweaver site and only the video swf file.

    Please let me know if you have any ideas on how to convert an mp4 to flv, or swf file without losing the pixels and the quality of the swf file.

    Thank you!

    Flash comes with a video encoder/converter. However it will not convert SWF to FLV files.  You must have the native video file to MOV, MPEG4, AVI, WMV... format.

    You will need to use an application of part 3 for this.  What operating system do you use?

    Nancy O.

  • Order full screen doesn't work when a swf file is read on another frame.

    I have a .exe file that has about 90 frames. All executives work very well with the command "full screen", BUT when I click on a button to access a framework which calls a swf file to a specific position on the stage and a specific size to full screen, the swf goes to the size of the regular phase. AND when I get out of this framework, it is not back to expand full screen Command.

    Flash CS AS3 WIN 7 64-bit 5.5.

    I have other frames that play a (movie) swf file to a certain size and position, and they work fine. But is not a swf file. I created all the files except the swf file. I received from someone about 7 years if there is what makes the difference.

    Any ideas?

    If you have configured your main as document:

    import flash.display.StageDisplayState;

    import flash.display.StageScaleMode;

    import flash.display.StageAlign;

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    stage.displayState = StageDisplayState.FULL_SCREEN;

    My first assumption would be, because you said it's been 7 years, this person is using ActionScript 2.0. If you load an AS2.0 doc in a doc AS3.0 who will have limited functionality.

    Try to replace the 7 year old SWF you load quickly with a mannequin made AS3.0 placeholder and see if the problem goes away. Chances are it.

  • How to make reference to the external SWF file using if statement?

    I have a main swf file that loads several external SWF file when the user clicks a menu button. Now I want to target a specific swf file to Add an extra library child or of another swf when this specific swf file is loaded. How should I do? What should I put in the stated case?

    ///////////////////////////////////////////////////////////

    var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

    Loader.Load (newswf);

    addChild (loader); dynamically load SWFs

    If (newswf == ".") ("/ SWF/pubResCHETNA.swf ') //error here

    {

    FC.buttonMode = true;

    FC.addEventListener (MouseEvent.CLICK, full screen);

    }

    function fullScreen(e:MouseEvent):void

    {

    var loaderF:Loader = new Loader();

    loaderF.load (new URLRequest ("PopupFullscreen.swf"));

    addChild (loaderF);

    }

    ////////////////////////////////////////////////////////

    The State must be newswf.url == the path. However I store event.target.name as a variable and use it in the State. You use "." for your path so the condition probably will always fail.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

Maybe you are looking for

  • POSTAL SYNCREON

    The synchreon site requires a number of customer in addition to the tracking number. Where can I find it? Synchreon Web site asks a customer for the tracking number. Where can I find it?

  • Slice table

    Hello! I ve was responsible for the research and reading for hours - but probably in the wrong places. I think it's a piece of cake for many of you: I now have a small example of what I want - to measure several "tracks" (up to 10) and post them on t

  • Find most common value in a table of enums

    Hello I'm looking for a stylish way to find most common value in a table of enums My being of enum: 0 - close 1 - open 2 - undefined For example, if my table contains: Close, close, open, close, close, open. The most common value would be 'Closed' I

  • Necessary Assistsance with Aspire E11 - E3-111-C5JR

    Hi team, Asking for your help. I have Aspire E11 - E3-111-C5JR and I just want to know if I can pass my RAM from 2 GB to 4 GB without any conflict in my Machine? Can I see the local computer shop and ask them to updrade my RAM or I need to visit Acer

  • Register my WAG320N

    Hi, I tried to record my modem/router, since I bought it but my S/N keep rejected as incorrect. I also tried through one of the Linksys online support and they do not have too. What is the problem please? Gambas