Convert mxml to swf dynamically?

I am new to Flex. I'm trying to do something, but I am not
sure if this apporach could even be possible.
1. I have virtual books, and each book is implemented as mxml
(as a seperated application).
2. I have another main flex application, which will try to
retrieve the virtual book as xml (mxml is merely a xml document..)
using HttpService or webservice, and render it.
Is it possible for the virtual book to be compiled
dynamically and run inside the main app? AIR might play a role for
this? This approach makes sense at all?
What I want to do is .. I write the main app ONCE, and
display(render) the books dynamically. Would anybody advise me what
I can do for this?
Thanks,
Lee

Thanks Tracy. I'd like to ask question on your reply.
"It is possible to compile mxml on the fly,"
- how do we accomplish this?
"but that is not the way to go with this issue."
- if I can compile the book mxml on the fly, and run it
within my application, I don't need to create a compont and parse
xml (book mxml). Isn't this true? why can't this this option be my
solution??
Thanks again,
lee

Similar Messages

  • Converting video to swf files in flash for breeze

    Hello,
    I am using Adobe Premiere Pro 2 and wanted to know what the
    best video codec and audio codec to use when I export to create a
    video file to insert into flash to convert to a swf file for
    breeze? I am having trouble with the audio, must I demux it first
    before I put into Flash? Or is there a audio codec that I can use
    in Premiere so I don't have to demux the audio?
    Also, when I insert a swf file in breeze plug-in for PPT, it
    does not play the video or give me the controll by presentation
    playbar I checked off. Not sure what I'm doing wrong, could use
    some help, thanks.

    billcorrigan schrieb:
    > Jerich0, I tried this and when I publish it, the swf
    opens a connection to the
    > server, and starts streaming but nothing happens. Just a
    blank movie.
    >
    > The content is at (FLV):
    >
    >
    http://breeze.extn.washington.edu/p45023528/
    >
    > and the swf is at
    >
    >
    http://breeze.extn.washington.edu/p17629788/
    >
    > I created the swf by creating a new document in Flash 8,
    selected components,
    > edited the infomation in media player and saved the
    file.
    >
    > any suggestions?
    >
    hi,
    if you work with the player component the .flv is not
    embedded in the
    swf. In Breeze you can only insert a single flash file I
    suppose, so the
    attached .flv file won't show up.
    Kathrin

  • How to programatically convert XDP form into Dynamic PDF form

    Hi,
    Is there a way to programatically convert XDP form into Dynamic PDF form using LiveCycle Service APIs?
    Thanks,
    lcfun

    Take a look at http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.html and the API Quick Starts > Output Service API Quick Starts.
    Quick Start (EJB mode): Creating a PDF document based on an application XDP file using the Java API
    http://help.adobe.com/en_US/livecycle/9.0/programLC/help/000243.html#1645763
    I think this will get it done. Give it a go.
    Steve

  • Runtime Error For Converting Static pdf to Dynamic Xml Form pdf

    Hi All,
    I am converting my static pdf to dynamic xml form pdf using Adoble Livecycle Designer ES 8.2 it is giving runtime error dialog.
    My static pdf size is 12MB and it contains 46 pages(mostly all pages will have images). Do we have any limitations for converting static pdf to dynamic xml form pdf ?
    Error message image file is attatched to this thread.
    Can any body please help me on this.
    Advance Thanks
    Prasad Sagala

    Hi Paul,
    With out dividing into smaller chunks, Do we have any other alternative?
    Because in my other pdf reports having more than 50 pages (in between 100-600). If i want do divide smaller chunks it will be the long process.
    Thanks
    Prasad Sagala

  • Insert a trademark symblol to my swf dynamicly using XML

    hello there,
    i am trying to insert a trademark symblol to my swf dynamicly
    using XML,
    i tried every thing i could "caved the xml in every format
    known to man kind, wrote some AS script to replace thin join, i
    tried to hard code the symble" but nothing worked.
    i am running flash8.
    help is needed plz.
    today is the DEAD LINE.
    plz.

    Okay, test files are up in the following directory:
    www.saffronthread.com/test
    You can guess which ones are for you. I didn't deal with the
    whole IE stupidness, so you my need to click on the page. But I've
    got several different text fields some runtime some author
    environment and sample text. Works for me on Mac and on the PC I
    checked. Let me know what you find out.
    As for System.useCodePage it is very seldom an actual
    solution to the problem. It is a solution for when you want to be
    sure that the user's Flash Plugin uses the computer's code page for
    text rendering. Read the help entry for it and you will see that it
    is not a solution for making sure that the most people possible
    will correctly receive my text. It is more a solution for, I want
    to make sure that those with Chinese operating systems are able to
    correctly see the Chinese text I have encode with my special
    encoding.
    Most questions that get a "Oh, you must use
    System.useCodePage answer" are more like, "I want to make sure that
    everybody on every type of system can see my special characters."
    The answer for that tends toward proper use of UTF-8 and that is my
    guess for your problem. That your XML file is not being saved as
    UTF-8. If System.useCodePage is helping you that tells me that your
    XML editor is saving to some odd (maybe very popular, but not
    UTF-8) encoding.

  • Is there a command line program that converts WAV to SWF?

    Is there a command line program that converts WAV to SWF?
    thanks

    why you want to do that? you can import your wav into the
    swf!

  • What is the proper way to convert a VHD from dynamic to basic without losing data?

    Hi,
    What is the proper way to convert a VHD from dynamic to basic without losing data?
    Our VM is running Windows Server 2008 R2 SP1
    Thanks in advanced

    Hi efebo,
    "After you convert a basic disk to a dynamic disk, you cannot change the dynamic volumes back to partitions. Instead, you must delete all dynamic volumes on the disk and then use the
    Convert To Basic Disk command. If you want to keep your data, you must first back it up or move it to another volume. "
    Please refer to following link:
    http://technet.microsoft.com/en-us/library/cc731274.aspx
    You can try to backup the dynamic volume via Windows Server Backup then restore it to a new basic VHD file ( the space is recommended to be   larger than or equal to the old one ) .
    Hope it helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Convert hardcoded SP into Dynamic Merge ststement(SP)

    Hi
    I am working on to convert my static Store procedure to Dynamic.
    I have created a Store procedure with the help of Mege statement which is inserting new record and updating existing record.
    This SP I will use in SSIS Insted of Data Flow Task I will run in Execute SQL Task.
    Now my biggest problem is I dont know how to convert static code toi dynamic
    Below is my Store procedure code.
    As you can see my Source Query
    I have a filemaster table as shown below which consist of Input filename,Source table ,Destination table and BBX expression.
    Input_Filename SourceTableName      DestinationTableName              BBxKeyDerExpr
    CCTFB               ImportBBxCctfb      ArchiveBBxCctfb              SUBSTRING(Col001,1,6)
    CEMXR               ImportBBxCemxr      ArchiveBBxCemxr              SUBSTRING(Col001,1,10)
    In my source query I want to change the value of Source table ,Destination table and BBX expression dynamically on the basis of input file.
    Purpose of making dynamic is that I have created separate sp for all the input, my clients want to have sungle dynamic sp which will execute on the basis of input file.this input file name I wil get fromm  variable which i have created in SSIS Package.
    Lets consider @File_name is the variable in package which store the file name
    if file name is CCTFB then my query should take the Source table ,Destination table and BBX expression value from file master table.
    like that I have 100 of source query and evry query have diffrent number of columns.
    how can I change the column number in uodate and insert statement dynamically on run time.
    CAST(SUBSTRING(Col001,1,6) + SUBSTRING(Col002,1,10)  AS varchar(100)) :-It creates a key for comparing, this value i can take it from filemaster
    HASHBYTES('MD5', CAST(CHECKSUM(Col001, Col002,Col003,Col004) AS varchar(max))) -here numberv of column need to be changed .
    (SUBSTRING(SOURCE.Col001,1,6) + SUBSTRING(SOURCE.Col002,1,10)) this condition also i can take it from file master.
    ALTER PROCEDURE [dbo].[SP_Archive_using_merge_FDOOP]
    AS
    --Version 0.2(latest)
    BEGIN
      SET NOCOUNT ON
      DECLARE @Source_RowCount int
      DECLARE @New_RowCount int
      DECLARE @updated_Rowcount int
      DECLARE @Matched_record int
      DECLARE @TimeIn smalldatetime
      DECLARE @LatestVersion int
      SET NOCOUNT ON
      ----FDOOP--
      SELECT     @TimeIn = GETDATE()
      SELECT     @LatestVersion = 1
      SELECT     @Source_RowCount = COUNT(1)   FROM
    ImportBBxFDOOP ---To get source record count
      MERGE Archive.dbo.ArchiveBBxFDOOP TARGET     --Target Table
      USING (
    SELECT *,
        CAST(SUBSTRING(Col001,1,6) + SUBSTRING(Col002,1,10)  AS varchar(100)) BBxKey,
        HASHBYTES('MD5', CAST(CHECKSUM(Col001, Col002,Col003,Col004) AS varchar(max))) RowChecksum
      FROM dbo.ImportBBxFDOOP) AS SOURCE  ---Source Query
      ON  (SUBSTRING(SOURCE.Col001,1,6) + SUBSTRING(SOURCE.Col002,1,10)) = target.BBxKey
      AND (target.LatestVersion = 1 OR target.LatestVersion IS NULL)
      WHEN MATCHED AND (source.BBxKey = Target.BBxKey AND source.RowChecksum <> TARGET.RowChecksum) THEN
    UPDATE SET
      TARGET.TimeIn = @TimeIn,
      TARGET.BBXKey = SOURCE.BBXKey,
      TARGET.RowChecksum = SOURCE.RowChecksum,
      TARGET.Col001 = SOURCE.Col001,
      TARGET.Col002 = SOURCE.Col002,
      TARGET.Col003 = SOURCE.Col003,
      TARGET.Col004 = SOURCE.Col004,
      TARGET.LatestVersion = 0
      WHEN NOT MATCHED THEN --For New record
      INSERT (TimeIn, BBXKey, RowChecksum, Col001, Col002,Col003,Col004, LatestVersion)
      VALUES (GETDATE(), SOURCE.BBXKey, SOURCE.RowChecksum, SOURCE.Col001, SOURCE.Col002,SOURCE.Col003,SOURCE.Col004, @LatestVersion);
      SELECT
        @New_RowCount = @@ROWCOUNT  --to get new inserted count
      SELECT
        @Source_RowCount Source_Row,
        @New_RowCount New_inserted,
        @Matched_record
    --select * from filemaster
    ---To get the inserted,updated and matched record
    DECLARE @rowcounts TABLE
        mergeAction nvarchar(10)
    select    @New_RowCount=[INSERT]
    ,        @updated_Rowcount=[UPDATE]
    ,        @Matched_record=[DELETE]
    from    (
            select    mergeAction,1 rows
            from    @rowcounts
            )p
    pivot
        count(rows)
    FOR    mergeAction IN
    (    [INSERT], [UPDATE], [DELETE])
    ) as pvt
    print    '@New_RowCount = ' + cast(@New_RowCount as int)
    print    '@updated_Rowcount = ' + cast(@updated_Rowcount as int)
    print    '@Matched_record = ' + cast(@Matched_record as int)
    END
    I am able to get inserted and updated rowcount, but not able to get the matching records count.
    Please do thee needful help.
    please do let me know incase of required any input
    Regards,
    Vipin jha
    Thankx &amp; regards, Vipin jha MCP

    I would strongly recommend that you write one static stored procedure for each table. If you want a single DB interface from your SSIS task, you could have a main procedure that forks off to the table-specific procedure. If you use a standard naming convention,
    all the procedures have the same interface, this can actually be done very simple as EXEC permits you to say:
    EXEC @spname @par1, @par2, ...
    This will fire off the stored procedure of which the name is in @spname.
    But trying to write a single stored procedure for all tables, it is hardly recommendable. Particular, dynamic SQL is an advanced feature, and given the level you have shown in the previous posts, I'll be blunt and say it is not for you.
    Overall - in a relational database a table is supposed to model a unique entity with a unique set of attributes. For this reason, something like a dynamic table name does not make sense as long as we are talking about a properly designed database.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Convert MP4 (or SWF) to FMR SWF?

    Hi Everyone,
    I could be completely overlooking something here, but this is starting to do my head in so thought I would see if anyone had a solution for me:
    I have a video (originally an MP4 however have converted it to SWF and FLV) that I would like to insert into my project. However I would like the video/animation to be inserted as an FMR slide so I can see the FMR Edit Options as i need to Trim, Split and Insert.
    Is this possible in Captivate? I can use version 5, 5.5 or 6 however would prefer to do this in CS5 if possible (although not the end of the world if i cannot).
    So far the only way I have found to do what I want is to create a FMR project and record Windows Media Player as the video plays which is giving terrible quality (as expected).
    If you need any more information please let me know.
    Any help would be greatly appreciated.
    Cheers
    Garry

    Anyone?
    Is it not possible?

  • Converting mxml data to xml

    Hi All,
    Anydody have the code to convert mxml data to .xml file. I
    have found this code in net.
    class XMLUtil {
    static function as2xml(obj: Object, nodeName: String) {
    var xml:XML=new XML();
    xml.appendChild(xml.createElement(nodeName));
    for (var i in obj) {
    handleItem(xml, obj
    , i);
    return xml;
    private static function handleItem(xml, item, nodeName:
    String) {
    var type=typeof item;
    if (type=="string" || type=="number" || item instanceof
    Date) {
    var el=xml.createElement(nodeName);
    el.appendChild(xml.createTextNode(item));
    xml.firstChild.appendChild(el);
    } else if (item instanceof Array) {
    for(var i=0; i<item.length; i++)
    handleItem(xml, item, nodeName);
    } else if (item instanceof Object)
    xml.firstChild.appendChild(as2xml(item, nodeName));
    But its not working. I created relevant as files. Anybody
    have the code to convert to mxml data to xml like above.
    Thanks & Regards,
    Siva Kumar

    MXML is already an well formed XML document.(look at mxml
    files first line it says : <?xml version="1.0"
    encoding="utf-8"?> ) you cant convert from xml to xml(or to be
    more correct why do you need to convert from XMl to XML?), if you
    want to transform it use XSLT, but thats totally different story,
    what you are showing here is Action script to XMl convertor,
    and from this code its not obvious to see what is the problem since
    you are showing general util methods nothing concrete,

  • Converting MXML Components to ActionScript Classes

    I'm in the process of converting most (if not all) of my MXML
    components to Action Script classes. I've found this is easy, and
    doesn't require a lot of extra code when extending a simple
    container or control. However, several of my MXML components have
    several nested containers and controls - i.e. a component that
    contains several Labels, a ComboBox, a TextInput, a Button, and a
    DataGrid, plus several other containers needed for layout. To code
    the layout of all these containers and controls using MXML, it uses
    about 16 lines of code. To code the layout in ActionScript, it
    takes about 50+ lines of code (see attached).
    I'm just wondering if there are any best practices for
    creating ActionScript classes that include several (or even A LOT
    OF) containers and controls. It's very easy to layout in MXML, and
    is more visibly pleasing to look at and understand, but I feel it
    is best practice to code components as ActionScript classes. I know
    I should be using MVC, but it's a little late to rewrite the entire
    application now.
    Any thoughts?

    I can't specifically speak to how to write layout code in
    ActionScript, but you can look at the generated code that Flex
    creates to get an idea of how Flex does it. When you compile an
    app, the Flex compiler takes your MXML input and converts it to
    ActionScript classes before compiling the entire set of classes
    into a SWF. Because of this, you can look at the interim
    ActionScript code.
    You do this by setting the keep-generated-actionscript
    compiler option to true and looking in the /generated directory.
    hth,
    matt horn
    flex docs

  • Mxml to swf

    HI Everyone,
    I have Flex 3 installed on my Windows XP System.
    I have manged to compile an HelloWorld.mxml to HelloWorld.swf using the Flex Command Line Interface.
    The Content of the mxml file is
    <?xml version="1.0"?>
    <Application xmlns="http://www.adobe.com/2006/mxml">
      <Label text="Hello, world!" />
    </Application>
    I was able to do this using the following command
    C:\Program Files\Adobe\Flex Builder 3>mxmlc c:\HelloWorld.mxml
    The above command converted the mxml file to swf.
    Now can someone please tell me how do I run this command using PHP?
    Many Thanks in Advance

    That sounds more like a PHP or any other web server problem.
    Google gave me this:
    http://www.ultramegatech.com/blog/2009/02/accessing-the-command-line-from-php/
    which may answer your question.
    Probably there are scenarios when it makes sense to build a SWF from the web server (customized applications, libraries, components, etc.)
    Otherwise it's better to make an application adaptable for user input, pass it through QA, etc.
    Not talking about how much resources and time it may take to build SWF...
    Hopefully that helps.

  • What is BEST Tool to convert WMV to SWF?.

    I need to convert many wmv to swf.
    Which tool is best?.
    Any open source tool available?. If not, we can buy best
    tool.

    Import it to the stage in Flash. you will need to change your
    frame rate to that of the video. However, you should read up on
    using the flv format. Video to swf makes bulky files...
    Also, you should be asking how to do it with Flash. If you
    are looking for another software program, use Google...

  • How to convert Fla or SWF file in to 70 mm theatricla movie.(cinema)

    this is Manoj.from Hyderabad. i attended for adobe seminar in
    Hyderabad. i have doubt regarding how to convert flash movie or swf
    file to 70 mm cinema. is it possible to make 2d animation as cinema
    using with flash.?? is it possible?? if possible then please tell
    me the process. and which is the best software for making 2d
    animation. i am very much comfortable in 2d animation using with
    flash software. can you tell me flash is suitable for 2d animation
    or not. if we make entire animation in flash then how to convert
    that animation in to cinema 70 mm theater. is it possible or not
    can you please tell me .
    if not possible then please suggest me which software is the
    best for making 2d animation for cinema.
    please give me reply.
    i am waiting for your reply. please give me reply all to
    bellow ids too.
    [email protected]
    [email protected]
    [email protected]
    thanx and regards
    Manoj

    Print the reviewer the original document the course content
    was initially built from if they want it in print format. To expect
    a flash SWF to print the same way as a Microsoft Word document way
    is just stupid, think of the SWF's timeline and number of
    movieclips (and movieclips within movieclips) and how much
    information can be contained within it and how it might not always
    be in a linear format (eg. like a Word Doc) = your answer which is
    Flash is designed for online delivery of rich media content, where
    Microsoft Word is designed for printing.

  • How to convert Fla or SWF file in to 70 MM movie(cinema)

    this is Manoj.from Hyderabad. i attended for adobe seminar in
    Hyderabad. i have doubt regarding how to convert flash movie or swf
    file to 70 mm cinema. is it possible to make 2d animation as cinema
    using with flash.?? is it possible?? if possible then please tell
    me the process. and which is the best software for making 2d
    animation. i am very much comfortable in 2d animation using with
    flash software. can you tell me flash is suitable for 2d animation
    or not. if we make entire animation in flash then how to convert
    that animation in to cinema 70 mm theater. is it possible or not
    can you please tell me .
    if not possible then please suggest me which software is the
    best for making 2d animation for cinema.
    please give me reply.
    i am waiting for your reply. please give me reply all to
    bellow ids too.
    [email protected]
    [email protected]
    [email protected]
    thanx and regards
    Manoj

    Print the reviewer the original document the course content
    was initially built from if they want it in print format. To expect
    a flash SWF to print the same way as a Microsoft Word document way
    is just stupid, think of the SWF's timeline and number of
    movieclips (and movieclips within movieclips) and how much
    information can be contained within it and how it might not always
    be in a linear format (eg. like a Word Doc) = your answer which is
    Flash is designed for online delivery of rich media content, where
    Microsoft Word is designed for printing.

Maybe you are looking for

  • Restricting MIGO by Purchasing Group

    Has anyone tried and found a way to restrict MIGO to particular purchasing group.  There appears to be a opportunity to leverage M_BEST_EKO however efforts thus far have not provided the desired results Regards, Eric

  • Importing java Bean Model

    hai , am new to webdynpro for java ... Am trying to import ejb bean jar to web dynpro .. Steps as follows i) copy the bean jar to wd project lib folder ii) Set classpath SampleWD - > Model Model -> create model Model name  :  Samplemodel Model packag

  • Workflow customizing error

    Hi, When i run the auto customizing for workflow i get the following error: Log Entry  -   Output device "" not known                       Execution -  Automatic Component - SAP_BASIS Activity - Schedule Background Job for Missed Deadlines I have ch

  • P. grp and mrp controller

    hi, could anyone tell that is there any relation between mrp controller and p.grp. regards fozters

  • Document on BTE

    send me some document on BTE .