Is possible compiling of swf with parameters?

i have flash project - .fla file, with import of .as file. im
using few built in values in this project, but i need to compile
.swf more than one time with different params. is possible to
create some batch script, which could change value in one variable
and store compiled .swf to specified directory?.. or i have to
change and compile that for each clip i need? :( ?

ive found commands :) it looks fine, but i cant touch
anything in flash when im editing .as file :s there is no history..
(i was working with java few years ago so my apps are much like
application than mess of objects on animation board)..
i though, there could be something like..
i would write into .as file something like this:
var foo:Number = {fooParam};
and before compiling, i would set fooParam = 1;.. and i had
some batch of this and could make .swf easy..
param: foorParam = 1;
path: foo1/movie.swf
param: fooParam = 2;
path: foo2/movie.swf
:s ?
only way, i could make it with my knowledge now is create
some application which would edit .ad file and replace { .. } with
real values and then pass to some flash compiler :s huh.. but it is
little bit lol method, isn't it?.. and also i dont know, if flash
could compile .fla by calling some command .. is this
possible?

Similar Messages

  • Is it possible to create views with parameters ?

    Hi,
    As MS-Access, is it possible to create views with parameters ?
    Ms-Access syntax : parameters [a] text; select * from table where code = [a]
    If yes, can you give samples ?
    Regards
    Pascal

    I suggest you you write a stored procedure that returns a recordset in oracle. Then execute the stored procedure and loop through the record set.
    Look in in MS Knowledgebase searching on ADO Stored Proceedures for the VB/C++/VBS .. code.
    Look in in Oracle PL/SQL guide for the Stored Proceedure code.

  • Load SWF file in main SWF with parameters

    Hello everybody,
    I recently got a new flash Application which is a Photo Gallery.
    This App is made of multiple folders (source files), a FLA file, a SWF with its javascript SWFObject and an Html page which instantiate this App with some parameters (size, config file path, ...).
    It needs an XML file to find all the Photos it displays, to do it I need to configure my application in the HTML Page and give it the "xml_path" :
    var so = new SWFObject("index.swf", "gallery", "249", "249", "10", "#111111");
    so.addVariable("xml_path","load/config.xml"); // this line is adding the path to the xml file make sure that it's name is xml_path
    so.addParam("allowfullscreen","true"); 
    so.write("flashcontent");
    By the way, I have a second application, the WebSite, which have to display the Gallery SWF in its "Gallery" page.
    Here is how I do it at the moment (in ActionScript3) :
    var swfRequest:URLRequest = new URLRequest("C:/......../Galerie/index.swf");
    var swfLoader:Loader = new Loader();
    //Charge le SWF Galerie dans le SWF Site
    swfLoader.load(swfRequest, context);
    container1.addChild(swfLoader);
    //Positionne le SWF
    swfLoader.x=10;
    swfLoader.y=120;
    It successfully loads the Gallery application but It shows an error telling me it doesn't find the XML configuration file... In the HTML file I simply had to write the "so.addVariable("xml_path","load/config.xml");" to tell where the XML file is...
    So, my question is : How can I integrate my SWF application giving it some parameters like above, in Action Script 3?
    Thank you ,
    Patrick

    No, nothing with HTML.
    I have 2 SWF applications. One is the Gallery, and the second is my Main Page.
    My Main Page must integrate the Gallery module in one of its page.
    The problem is when I try to integrate it, I think I must give de future loaded SWF some parameters like this :
    (My Main SWF loading in HTML)
    var so = new SWFObject("WebSite.swf", "flashcontent", "520", "700", "10", "#111111");
    so.addParam("allowfullscreen","true");
    so.addParam("allowScriptAccess","always");
    so.addParam("menu","false");
    so.addParam("wmode","opaque");
    so.addParam("bgcolor","#000000");
    so.setAttribute("id","flash");
    so.write("flashcontent");
    It was for the Main App. For my Gallery SWF I had to load it like this (in HTML) :
    var so = new SWFObject("Gallerie.swf", "gallery", "249", "249", "10", "#111111");
    so.addVariable("xml_path","Galerie/config.xml"); // this line is adding the path to the xml file make sure that it's name is xml_path
    so.addParam("allowfullscreen","true"); 
    so.write("flashcontent");
    So at the beginning I had 2 different projects with an HTML page for each.
    Now I wan't to directly integrate the Gallery SWF into the Main SWF. And as you have seen I must give it some parameters such as the "xml_path" and "allowfullscreen". This must be done in ActionScript 3 and I don't know how...
    I think I have to use FlashVars but I don't know how. As I said before, I have tried using the loaderinfo.parameters, but it is in read-only...
    Do you have an idea of how I can make it work ?

  • Makes it possible to create view with parameters

    makes it possibel to create view with paramater, example
    create or replace view v_test(segment varchar2)
        select * from ref_user where segment = segmentThanks

    thanks..
    select count(distinct substr(a.svm_id,1,10)) jumlah " +
       " from daily_distribution_pop a, ref_toko b " +
       " where " +
       " substr(a.svm_id,1,10)=b.id and b.segment_type = 'A' and enable_flag='Y' " +
       " and a.tgl_visit between to_date('" + fromStartDate + "', 'dd/MM/yyyy') and to_date('" + fromEndDate + "', 'dd/MM/yyyy')
         and " + whereA + "= '" + whereB + "' " +
       " and substr(a.pom_id,1,2) = 'DP' and (a.qty_instore <> 0 or a.qty_delivered <> 0) ";
    {code}
    where fromStartDate,  fromEndDate, whereA, whereB  is variable parameter from asp.net.
    how to i can implement with view                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to compile swf with ANT en ASC 2.0?

    He All,
    I used to compile a swf in Flash builder with this antscript below. But mxmlc in not supported anymore. Any idea how to compile the swf with ASC 2.0?
    <target name="compile.apple" depends="clean.apple">
      <echo message="Compiling swf"/>
      <mxmlc file="${app.projectfile}" output="${app.rootfile}" optimize="true" configname="airmobile" debug="false">
      <load-config filename="${app.rootdir}/resources/ant/build.config"/>
      <source-path path-element="${flex.sdkPath}/frameworks"/>
      <source-path path-element="${app.sourcedir}"/>
      <source-path path-element="${app.rootdir}/libs"/>
      <static-link-runtime-shared-libraries/>
      <compiler.library-path dir="${flex.sdkPath}/frameworks" append="true">
      <include name="libs/*" />
      </compiler.library-path>
      <arg line="-swf-version=17" />
      <arg line="-define=CONFIG::debug,false" />
      <arg line="-define=CONFIG::device,true" />
      <arg line="-define=CONFIG::local.false" />
      <compiler.library-path dir="${app.rootdir}" append="true">
      <include name="libs/*" />
      </compiler.library-path>
      </mxmlc>
      </target>

    He Peter,
    Thanks for your reply. I've made some steps, but still no perfect solution. I've managed to compile a swf with ant using only the AIR SDK.
    But, check these results
    - Compiled using Flash Builder release : 455 kb
    - Compiled with ant using mxmlc : 104 kb
    - Compiled with ant using compc : 139 kb
    Can you provide us an example, how to compile a swf using ant. For example, with an AIR mobile project.
    Thanks Peter.
    Tim.

  • How To  resize swf with actionscript 2

    I want to make a swf that loads other swf files and when
    rollOver, the swf loaded, will change it's size from 50x50 to
    100x100
    How can I do this?
    PLS help....I need to have this done today
    here you can see what I have done for now
    http://www.claudiudesign.org/adobe_forums_pt_resize/adobe_forums_pt_resize.html
    the file has 3 mb so you'll have to wait a bit to load

    He Peter,
    Thanks for your reply. I've made some steps, but still no perfect solution. I've managed to compile a swf with ant using only the AIR SDK.
    But, check these results
    - Compiled using Flash Builder release : 455 kb
    - Compiled with ant using mxmlc : 104 kb
    - Compiled with ant using compc : 139 kb
    Can you provide us an example, how to compile a swf using ant. For example, with an AIR mobile project.
    Thanks Peter.
    Tim.

  • Capturing a dynamic swf with url parameters?

    Hi,
    I'm wondering if it's possible for users to capture an swf
    with URL variables?
    for example ->
    www.somesite.com/foo.swf?param1="value"&param2=value"
    normal swf rippers will catch only the base "naked" swf, but
    is there a way to fully capture the whole flash object after it has
    rendered the parameters?
    (for example, if it's an ad, the full ad with all the
    elements will be captured)
    this can help me to quickly generate demo stand-alone
    instances for some apps i'm building, instead of compiling them
    separately

    oops...sorry for double posting..

  • Is it possible to Integrate dos with Java to create a sample compiler?

    Is it possible to Integrate dos with Java to create a sample compiler, or do I have to write the compiler from scratch? In theory, I would like to have users enter sample code in a java text field, hit a java button that would compile/run the code, by calling a dos command prompt that would run it, and display any error messages back to the java text field. Does anyone know if this is possible? Any help would be greatly appreciated.
    Tflav23

    There is a Compiler class you might be able to use also:
    C:\jdk1.3.1_01\docs\api\java\lang\Compiler.html
    So perhaps there is no need to create a process to compile code. But I don't know if you can get information about compiler errors.

  • Is it possible to import a SWF with a transparent background into Catalyst?

    Hi,
    Here's what I'm hoping to happen. I've created presentation in Catalyst and I was hoping to import an animation I created in Flash into the title screen of the presentation in Catalyst. Problem is, I don't want the background from the SWF to cover the background of the presentation in Catalyst. I know that you can make a SWF appear transparent in an HTML file using the "window mode" when publishing a SWF from Flash. Is this at all possible?
    Thanks!

    I figured it out. And yeah, it is possible. The way I did it was to publish the SWF with the HTML file  while making sure that the window mode is set to transparent. I then was able to import the SWF to my library in Catalyst without the background and then use multiple instances of it. Works great.

  • Is it possible in jsf? Action with parameters????

    I have a NavigationItem, a object of myfaces.....
    And when is clicked it, I want to create a new pane, based on the navigationItem clicked, obviuosly,
    How I can submit a action with parameters???
    Is it possible?
    thanks all !

    I will try to explain better.
    I create menus dynammicaly....
    and this menus has NavigationMenuItems, all componentes of myFaces
    The navigationMenuItem is inherited of SelectItem.....
    and creating it dynamically I need to put a action, and the backing bean has a method that return a string , but the value returned is always null, and I will to know How things I will do depending the parameters (like request parameteres) are passed through the action...
    but I do not know how to set the action dynamically, when the method setAction expect a string and not a MethodBinding.....
    And how I will to know after, what navigationMenuItem was clicked ??
    I don't know if are answers to this questions, I'm not sure about the limitations of web development and jsf, but I must to do it...
    thanks

  • Is it possible to start an application with parameters

    Hello together,
    I have written an application which is stored on a network. People from different computer start it to work with it. Now I have the problem, that I need some different configurations on each computer.
    Is it possible to start a labview application with parameters, like: application.exe -User_1
    The application should check the parametes and should switch to the needed configuration.
    Thanks a lot and best regards,
    Michael
    Solved!
    Go to Solution.

    Hi Michael,
    yes it is possible. First you have to activate the data transfer of your parameters. You can do it in the application builder. It is something like "send command line parameters to exe" which you have to activate. You will get the parameter in your program with the property "App.Args". It is an array with the exe name as the first element and one entry for each additional linked parameter.
    Hope it helps.
    Mike

  • Is it possible to compile under Forte with import com.ms.security.*;

    Is it possible to compile under Forte with import com.ms.security.*; included in a java applet or do I need to compile from Microsoft JDK only? I would like to thank you on advanced.

    Yes; just include the cab/zip file containing those classes in your project. You'll find them from somewhere in your system.
    I would like to thank you on advanced. I don't give you the permission to do that. :)

  • Fonts in Runtime CSS compiled as SWF do not render with setFormatOfRange() but works with setStyle()

    Im having a requirement to load fonts at runtime and display them in a  RichEditableText, The text in the RichEditableText could have multiple  formats so I use the RichEditableText's setFormatOfRange() method to set  the font.
    I use a CSS compiled as a SWF to load the fonts, Fonts render when the font is set via the -setStyle() method as demonstrated in the code below
    Im using Flash Builder 4 with SDK version 4 to compile the app(Using the default Spark Theme).
    Below is the CSS file (fontCSS.css)- You might need to copy fonts from the Widows Font folder for this in a fodler named fonts,
    /* CSS file fontCSS.css*/
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";
    @font-face{
        src: url("fonts/Articulate.TTF");
        fontFamily: "Articulate123";
        embedAsCFF: true;
    @font-face{
        src: url("fonts/AGENCYB.TTF");
        fontFamily: "Agency123";
        embedAsCFF: true;
    Right Click on the CSS file, in Flash Builder 4 and select "Compile CSS to SWF".
    Run the MXML application below and you should see the issue Im trying to describe.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import flash.utils.describeType;
                import flashx.textLayout.formats.TextLayoutFormat;
                import mx.collections.ArrayCollection;
                import mx.events.CalendarLayoutChangeEvent;
                import mx.events.FlexEvent;
                import mx.events.StyleEvent;
                import spark.events.IndexChangeEvent;
                private var swfLoader:Loader
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    var cssEventDispatcher:IEventDispatcher=styleManager.loadStyleDeclarations("fontCSS.swf")
                    cssEventDispatcher.addEventListener(StyleEvent.COMPLETE, onComplete);
                private function onComplete(event:Object):void
                    fontList.dataProvider=new ArrayCollection(Font.enumerateFonts())
                protected function fontList_changeHandler(event:IndexChangeEvent):void
                    var tlformat:TextLayoutFormat=new TextLayoutFormat()
                    tlformat.fontFamily=fontList.selectedItem.fontName
                    textEditor.setFormatOfRange(tlformat,0,5)
            ]]>
        </fx:Script>
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <s:Label text="Please select a font from the list below"/>
        <s:List id="fontList" change="fontList_changeHandler(event)">
        </s:List>
        <s:RichEditableText id="textEditor2"
                            fontSize="30"
                            fontFamily="{fontList.selectedItem.fontName}"    >
            <s:p>Hello -  fontFamily set via css binding</s:p>
        </s:RichEditableText>
        <s:RichEditableText id="textEditor"
                            fontSize="30"
                            >
            <s:p>Hello - fontFamily set via setFormatOfRange()</s:p>
        </s:RichEditableText>
    </s:Application>
    tried to use an external SWF with the fonts compiled in them Via AS3, that too dosent seem to work, The setStyle() also refuse the work with the below SWF
    here is the AS3 project code for your reference
    FontEmbedder.as
    package
        import flash.display.Sprite;
        import flash.system.Security;
        import flash.text.Font;
        public class FontEmbedder extends Sprite
            public function FontEmbedder()
                Security.allowDomain("*")
            [Embed(source="/fonts/Articulate.TTF", fontName="Articulate123", embedAsCFF="true")] 
            public var articulateFont:Class;
            [Embed(source="/fonts/AGENCYB.TTF", fontName="Agency123", embedAsCFF="true")] 
            public var agencyFont:Class;
    We ve been wrecking our heads off to figure out a solution for this. Ultimately decided to post a question here.
    Your feedback will be highly appreciated.
    Below are  snapshots of how the 2 fonts are rendered
    Regards.

    Hi Alex,
    I did read through your blog the other day, This must have been thepost you were referring to,
    http://blogs.adobe.com/aharui/2010/03/flex_and_embedded_fonts.html
    The post is explanatory, but how would we implement this successfully wth code?
    A working AS3 code example of your explanation would be more than helpful.
    Regards

  • Use of compiler argument -swf-version=18 for AIR3.5 IOS and Android with Flex4.6 ?

    I've just downloaded the latest Air 3.5 SDK and merged it with Flex 4.6 inside Flashbuilder.
    This leaves the merged SDK with 2 playerGlobal.swc files. 11.1 and 11.5 ( swf version 18 )
    For IOS and Android projects do I need to add the compiler argument -swf-version = 18 so that the compiler uses the latest version of the playerGlobal.swc ?
    Is this done automatically ?
    Is it essential  /  undesirable ?
    Any clarification is greatly appreciated

    I've just downloaded the latest Air 3.5 SDK and merged it with Flex 4.6 inside Flashbuilder.
    This leaves the merged SDK with 2 playerGlobal.swc files. 11.1 and 11.5 ( swf version 18 )
    For IOS and Android projects do I need to add the compiler argument -swf-version = 18 so that the compiler uses the latest version of the playerGlobal.swc ?
    Is this done automatically ?
    Is it essential  /  undesirable ?
    Any clarification is greatly appreciated

  • : "Invalid object name '#Temp'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

     Hi   .
        I was creating the  pass the values t in temp tables  though s sis package vs2012 .
      First I was taken on executive SQL TASK.
     IN EXCUTIVE SQL TASK  . I was write the stored proce:
    Sp;
    reate  procedure  USP_GETEMP2333
    AS
    begin
    Select  eid,ename,dept,salary from emp
    end;
    create table #temp(eid int,ename varchar(20),dept varchar(20),salary int)
      insert into #temp
       exec USP_GETMP02333
       go.
     It was executive correctly.
     I was taken another sequence container. In the sequence container iam creating one   executive  sql
    In 2<sup>nd</sup> excutive sql task: sql statements is
    if object_id('emp_fact_sal') is not null
     drop table emp_fact_sal
    select eid,ename as emp_name,sal_bar=
    case when salary<=5000 then 'l'
    when salary >5000 and salary<=7000 then 'm'
    else
    'h'
    end
    into emp_fact_sal from #temp.
     and one falt flies  it was taken to designation .
     iam changing  all  connection properties:
     in oldeb connection:
    in excutive sal task properties .
    delay validation is true,
    and retain connection maner is also true,
    and package mode is 64 bit is false.
     But iwas excutive in 2<sup>nd</sup> excutive ql task .
    Iam getting this type of errors,
                    [Execute SQL Task] Error: Executing the query " if object_id('emp_fact_sal') is not null
     drop ta..." failed with the following error: "Invalid object name '#Temp'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established
    correctly.
     Please help me

    Arthur suggestion works but you shouldnt even be doing this on a SQL Task.
    Use a data flow task. You'll have better control over the data that is being transfered and get better performance because no staging table will be used.
    Just because there are clouds in the sky it doesn't mean it isn't blue. But someone will come and argue that in addition to clouds, birds, airplanes, pollution, sunsets, daltonism and nuclear bombs, all adding different colours to the sky, this
    is an undocumented behavior and should not be relied upon.

Maybe you are looking for

  • Why is the iPod Touch (4th Gen) missing the video setting for TV Out?

    Has anyone else noticed that in the iPod Touch (4th Gen) that there isn't a video setting for TV Out? It's not on the new iPhone either. I wanted to attach an AV Composite cord from my iPod to my TV. It won't work because of the missing video setting

  • Bind a resultSet to a Database

    I know that there is info on this somewere in the tutorials, but I can't find it. Im looking for info on how to bind a resultSet to a Database, so that changes in the resultset is reflected in the Database... All help appriciated - Karl XII

  • BSOD on shutdown - Platinum

    Hi, Just built a computer which 80% of the time BSOD's when i shutdown. Instead of shutting down normally it flashes blue then restarts. I sent the error report to microsoft after a serious error msg when i restarted from a bsod and it came up with a

  • Gradient mesh detail problem

    My problem occurs when zoom out of a gradient mesh effect and it bocomes something cloudy or in snatches but when zooming in, the problem no longer exists and everything become smooth again. What's the problem? please

  • Airport Utility doesn't "see" my base station now

    I've got an HP Pavilion running Vista. Have an Airport Extreme base station which was working fine with it, both Internet and Bonjour, until I had a problem last week and had to do a factory install from a disc. I had a backup, and restored using tha