Publishing multiple swfs from a single flash builder project

I have a flash builder 4.5 pure as3 project. Originally there was one document class and it was publishing a swf with the same name. Except for the standard flash builder bugs, that was working most of the time.
Now I need to add a preloader in to the mix.
So I made a Preloader.as class in my classpath and added that to my runnable applicaiton files in the projects menu. (I need this to be a seperate swf and not deffered loading on frame two)
Then I go to run/debug settings to set it up so that preloader can compile out a preloader.swf.
It doesn't work. It gives me a missing html file error.
Also, I want different comiler settings between the preloader and the main document class, yet only seem to have the option to add a single project wide compiler settings.
Can some one please explain to me the best practice for setting something like this up, or point me to documentation that covers this?

Hi,
You would need to make invisible buttons on the image.
For example, keep the image in layer 1.
Create a new layer say layer 2.
Now draw the button shapes, select them individually and press F8 to make buttons selecting Button option.
Once the shapes are converted into buttons, double-click on them to enter the edit mode.
Remove all the frames except the last frame which is known as the hit state.
Come back to stage view and you are ready to implement the scripts.
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com

Similar Messages

  • Publishing to Mac from PC with Flash Builder 4.6

    I have recently switched from Flash Pro to Flash Builder to write actionscript projects. I would like to publish the finished application for both PC and Mac. I don't want to use the air installer as most potential customers won't have air installed. I have tried the captive runtime option, and this will work well for the PC version, but I am unsure how to package the resulting files for use on a Mac or whether there is a more suitable option for the Mac app (such as the Mac Projector in Flash Pro)
    Any help would be appreciated.
    Richard

    Hi Richard,
    I'm moving your post our to our Flash Builder forum.
    -Dave

  • How to control swf file loaded in flash builder project?

    Condition :
    1. I have a swf file presentation.
    2. A flex mobile project using flash builder 4.6 with its default SDK.
    What i want :
    1. Include those swf file into my flex mobile project and interact with those swf like i run it on flash player for PC. Shown here >>
    http://prntscr.com/1pmio
    What i've tried :
    1. Call swf file using swfloader and it work(on my pc). Here is my code >>
    http://prntscr.com/1pmjdl
    Problem :
    1. I cant interacted with swf file presentation. If i click on screen, it get error code >> "Error #2025: The supplied DisplayObject must be a child of the caller" and another error. Here is error warning >>
    http://prntscr.com/1pmkcr
    I dont want to upload the swf file into a web and load it remotely because i want the swf file available offline. Im newbie in flex, please tell me clearly. i have downloaded Flex in a week video training but gets nothing. searching for another problem which may same, but i didnt get any answer.
    Please Help.
    Message was edited by: blackquipment for image fix

    Some loaded SWFs may not be compatible with Flex.  Try making a simpler SWF (like one that just draws a circle where you click) and see if it can be loaded and interacted with.
    -Alex

  • How do I publish multiple websites from iweb?

    Hi, I'm new with iweb and .mac in general and wanted to know about publishing multiple accounts from my iweb.
    I bought a five-user edition of .mac last week and I wanted to get at least three different websites up and running. One site is almost 50% done and has uploaded just fine but when I tried to create another site in iweb, I have no idea where it's going. I created a second account in .mac and it shows up (I can log into and everything) but how can I publish to my brand new site without the other one going through each and every time?
    This question may sound really dumb but please bear and mind that I'm a newbie with iweb and mac (I just got this powerbook in Sept. 2006).
    Thanks in advance,
    Dale

    Actually, Dale, this is a pretty common question.
    If you want the different sites to load to different .mac accounts (or different sub accounts), the easiest solution is probably to set up several different user accounts on your computer, one for each .mac sub account. In each of those accounts, set the appropriate .mac info in system preferences. Seems like I've heard of another approach, but this is probably the simplest.
    Have you already started building a second site in the same user account (on your computer) as the first site? If so, we'll need to walk you through domain separation, too.
    One other heads up: it is very important to back up your domain files (in your case in each account). The domain file is found in ~/library/Application Support/iWeb, where ~ refers to your home folder for your user account on the computer. Make sure to make a backup copy (preferably on an external hard drive or CD) after every major change in your website. Don't be lulled into thinking that a published website serves as a backup. It is not possible to import a published site back into iWeb. The domain file is your only link to creating/editing the site in iWeb.
    Please post back if you have any questions or if I haven't been clear.

  • How do I insert multiple rows from a single form ...

    How do I insert multiple rows from a single form?
    This form is organised by a table. (just as in an excel format)
    I have 20 items on a form each row item has five field
    +++++++++++ FORM AREA+++++++++++++++++++++++++++++++++++++++++++++++++++++
    +Product| qty In | Qty Out | Balance | Date +
    +------------------------------------------------------------------------+
    +Item1 | textbox1 | textbox2 | textbox3 | date +
    + |value = $qty_in1|value= &qty_out1|value=$balance1|value=$date1 +
    +------------------------------------------------------------------------+
    +Item 2 | textbox1 | textbox2 | textbox4 | date +
    + |value = $qty_in2|value= $qty_out1|value=$balance2|value=$date2 +
    +------------------------------------------------------------------------+
    + Item3 | textbox1 | textbox2 | textbox3 | date +
    +------------------------------------------------------------------------+
    + contd | | | +
    +------------------------------------------------------------------------+
    + item20| | | | +
    +------------------------------------------------------------------------+
    + + + SUBMIT + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Database Structure
    +++++++++++++++++
    + Stock_tabe +
    +---------------+
    + refid +
    +---------------+
    + item +
    +---------------+
    + Qty In +
    +---------------+
    + Qty Out +
    +---------------+
    + Balance +
    +---------------+
    + Date +
    +++++++++++++++++
    Let's say for example user have to the use the form to enter all 10 items or few like 5 on their stock form into 4 different textbox field each lines of your form, however these items go into a "Stock_table" under Single insert transaction query when submit button is pressed.
    Please anyone help me out, on how to get this concept started.

    Hello,
    I have a way to do this, but it would take some hand coding on your part. If you feel comfortable hand writing php code and doing manual database calls, specificaly database INSERT calls you should be fine.
    Create a custom form using the ADDT Custom Form Wizard that has all the rows and fields you need. This may take a bit if you are adding the ability for up to 20 rows, as per your diagram of the form area. The nice thing about using ADDT to create the form is that you can setup the form validation at the same time. Leave the last step in the Custom Form Wizard blank. You can add a custom database call here, but I would leave it blank.
    Next, under ADDT's Forms Server Behaviors, select Custom Trigger. At the Basic tab, you enter your custom php code that will be executed. Here you are going to want to put your code that will check if a value has been entered in the form and then do a database INSERT operation on the Stock_table with that row. The advanced tab lets you set the order of operations and the name of the Custom Trigger. By default, it is set to AFTER. This means that the Custom Trigger will get executed AFTER the form data is processed by the Custom Form Transaction.
    I usually just enter TEST into the "Basic" tab of the Custom Trigger. Then set my order of operations in the "Advanced" tab and close the Custom Trigger. Then I go to the code view for that page in Dreamweaver and find the Custom Trigger function and edit the code manually. It's much easier this way because the Custom Trigger wizard does not show you formatting on the code, and you don't have to keep opening the Wizard to edit and test your code.
    Your going to have to have the Custom Trigger fuction do a test on the submitted form data. If data is present, then INSERT into database. Here's a basic example of what you need to do:
    In your code view, the Custom Trigger will look something like this:
    function Trigger_Custom(&$tNG) {
    if($tNG->getColumnValue("Item_1")) {
    $item1 = $tNG->getColumnValue("Item_1");
    $textbox1_1 = $tNG->getColumnValue("Textbox_1");
    $textbox1_2 = $tNG->getColumnValue("Textbox_2");
    $textbox1_3 = $tNG->getColumnValue("Textbox_3");
    $date1 = $tNG->getColumnValue("Textbox_3");
    $queryAdd = "INSERT INTO Stock_table
    (item, Qty_In, Qty_Out, Balance, Date) VALUES($item1, $textbox1_1, $textbox1_2, $textbox1_3, $date1)"
    $result = mysql_query($queryAdd) or die(mysql_error());
    This code checks to see if the form input field named Item_1 is set. If so, then get the rest of the values for the first item and insert them into the database. You would need to do this for each row in your form. So the if you let the customer add 20 rows, you would need to check 20 times to see if the data is there or write the code so that it stops once it encounters an empty Item field. To exit a Custom Trigger, you can return NULL; and it will jump out of the function. You can also throw custom error message out of triggers, but this post is already way to long to get into that.
    $tNG->getColumnValue("Item_1") is used to retrieve the value that was set by the form input field named Item_1. This field is named by the Custom Form Wizard when you create your form. You can see what all the input filed names are by looking in the code view for something like:
    // Add columns
    $customTransaction->addColumn("Item_1", "STRING_TYPE", "POST", "Item_1");
    There will be one for each field you created with the Custom Form Wizard.
    Unfortunately, I don't have an easy way to do what you need. Maybe there is a way, but since none of the experts have responded, I thought I would point you in a direction. You should read all you can about Custom Triggers in the ADDT documentation/help pdf to give you more detailed information about how Custom Triggers work.
    Hope this helps.
    Shane

  • Merge statement - update multiple columns from a single sub-select

    Is it possible to write in 10gR2, a MERGE statement, with UPDATE for multiple columns from a single sub_select?
    like this:
    MERGE INTO tableA
    using ( select * from temp) tmp
    on( tableA. col1 = tmp.col1)
    when matched then
    update set  ( tableA.col5,
                       tableA.col6,
                       tableA.col7) = ( select sum(col2), sum(col3), sum(col5)
                                                                                 from tableX
                                                                                where tableX.col1 = tableA.col1...)

    Hi,
    The USING clause is not a sub-query, so it can't reference columns from tables that are not in it.
    Include tableA in the USING clause if you really need to refer to it there. (It's not obvious that you do.)
    As always, it helps if you post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data (In the case of a DML statement, such as MERGE, this will be the state of the tables when everything is finished.)
    (4) Your best attempt so far (formatted)
    (5) The full error message (if any), including line number
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    If you can present your problem using commonly available tables (for example, tables in scott schema, or views in the data dictionary), then you can omit (2).
    Formatted tabular output is okay for (3).

  • Error:  Current provider does not support returning multiple recordsets from a single execution

    Hello,
    The following piece of code which has been working for the
    past five years suddenly started giving me the following error:
    Current provider does not support returning multiple recordsets
    from a single execution
    We have recenlty moved this site to a new server. Could this
    error be related to their CFAdmin settings? Eveything else on the
    site seems to be working fine. Or am I using an outdated tag or
    something?
    Any light in this direction is appreciated, thanks.
    Here's the code:

    There doesn't seem to be anything that seems wrong with the
    code. It might have something to do with the Max Pooled Statements
    or Number of Connections settings in the CF Administrator, but it
    could just as easily have something to do with a setting on the
    database. I would check with your provider.

  • Linking library with flash builder project?

    I have a flash builder project going and I have found I need to make various movie clips and sprites in in Flash Pro. Is there a simple way to just link my library from the .fla project to my builder project so I can access the assets made in the .fla?
    I'm using the latest version of both software packages.
    Thanks!
    -SGW

    Open your .actionScriptProperties file and set useFlashSDK to false.  This will allow you to use your older SDKs.  They are managed in the same way as Flash Builder 4.6 when this option is changed.

  • Load Flex/Flash Builder project in Flash Professional CS5

    Is there a way that I can load (or export) Flex/Flash builder project in Flash Professional CS5?
    As it turns out we got Flash Prof for our team, but it may look like we actually need Flash builder to build lots of UI related stuff..

    Specifically, I want to use flex chart in CS5. Is there a way to do this?
    Message was edited by: bart2335658
    And flex ui

  • Is it possible to get a count of all the class files in a Flash Builder project?

    Is it possible to get a count of all the class files in a Flash Builder project?
    Thanks!

    Resultsets are one per connection unless you have copied them. Do you have lots of connections are you properly reusing them or at least closing and discarding all references?
    See tutorial and Javadoc of API too

  • Is it possible to save versions/snapshots of Flash Builder projects?

    Hi there,
    I am working on a project at the minute that I am saving incrementally (0.0.1, 0.0.2 etc) as would be expected with most projects.  Can anyone let me know if there is a way of saving a snapshot/version of a Flash Builder project so that I can revert back to a particular version should I ever need to?  I suppose I can duplicate the project so that it appears as a seperate entity in my workspace window but I was just wondering if there was a more elegant way of doing it?
    Thanks in advance for your help.

    Setting up  a local version control system like CVS or SVN and committing your project at regular intervals will likely give you what you want.

  • How to load multiple swfs to my main flash file??

    I am using the following code
    In actions for Frame 1:
    var myrequest:URLRequest=new URLRequest("A.swf");     
    var myloader:Loader=new Loader();
    myloader.load(myrequest);
    img1.addEventListener(MouseEvent.CLICK, clickButton);
    function clickButton(event:MouseEvent):void{               
        stage.addChild(myloader);
    img1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
         gotoAndStop(13);
    In action for 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 do I get multiple swf loaded. When I tried to copy and paste the same code for the other swf, but the following errors appear. I'm pretty sure theres a way to have multiple swfs (btw the multiple swfs will be linked from different frames).
    Scene 1, Layer 'PAGES!', Frame 2, Line 7 1021: Duplicate function definition.
    Scene 1, Layer 'PAGES!', Frame 2, Line 2 1151: A conflict exists with definition myloader in namespace internal.
    Scene 1, Layer 'PAGES!', Frame 2, Line 1 1151: A conflict exists with definition myrequest in namespace internal.
    Can someone please help me with this. Thanks

    You define the same variable or function names more than once in a file.  But you can reuse them in other frames.  Try something more like the following in frame 2....
    myrequest=new URLRequest("A.swf");     
    myloader.load(myrequest);
    leave all of the rest out for starters... the same function from frame 1 can be re-used without rewriting them.  I don't know what the deal is with img1, but if you need to change what it does, then add that back in.

  • Query Design Strategies - servicing multiple reports from a single query

    I was wondering if anyone knew of any good web resrouces (articles and such) to assist with Query Design Strategies. What I am specifically looking to do is replace multiple reports from the previous system with just views of a single query. So I was looking at grouping the existing reports that we are replacing into queries and creating views for each report.
    The catch is that we will only be utilizing web reporting for report distribution, so we need to:
    1. Use views as DataProviders to web templates
    2. Broadcast views to users as links where they can see that particular view
    Is this possible and does anyone have some info on how to do this?

    Lets say that 10 broadcasted reports all could use the same query but each in a different navigational state.
    1. Can you navigate the query and save as a view and then set up a brodacast rule for that view?
    2. Can a DataProvider in a web template be a view?
    3. Can the BI Launcher iView take a view name in place of a query?
    <prt_protcl>://<prt_server>/<bi_launcher>?TEMPLATE=TEST1&QUERY=TEST2

  • Multiple deliveries from a single sales order

    Hi all,
    Can any body explain how to Configure the process to create multiple deliveries for one sales order and one invoice for these multiple deliveries.
    Thanks and regards,
    Dinesh Kumar

    Hi,
    In customer master in shipping screen of sales area data we have a field for partial deliveries. SAP allows 9 maximum deliveries for a single sales order. The partial deliveries should be allowed otherwise the system will not allow you to create multiple deliveries for the same order.
    Create a sales order in VA01, save it. Go to VL01N and as per your requirement change the delivery qty. For example the order qty is 50. For the first time when i go to VL01N, in the delivery qty field i will change it from 50 to say 10, accordingly i will pick 10 pc only and I will do PGI. The next time i go to VL01N the system will show me 40 in delivery qty field. I will change it from 40 to 10 and do the picking & PGI. Similarly i do the same thing 3 more times. Now my sales order qty is 50 and i have 5 deliveries for this sales order.
    <b>Creating single invoice:</b>
    Go to VF01 and enter all the 5 different delivery numbers there and press  enter. Click on execute or press "F8" the system will take you to a screen where it will show you 5 line items of the same material with 10 quantities each. Save the invoice. Thus you created a single invoice for multiple deliveries of a single sales order.
    <b>Invoice split:</b>
    Suppose when the delivery of the items is being done for different shipping addresses then the SH is different. Now the invoice will split - means after you enter the 5 delivery numbers and press "F8" the system will show you a button for "Split Analysis" If you click on this the system will show you the criteria because of which the split is taking place. The followig are important for invoice split:
    1. Ship to party,
    2. Incoterms,
    3. Billing date,
    4. Reference number
    Reward points if solution helps.
    Regards,
    Allabaqsh G. Patil

  • How to delete a tab from TabNavigator in Flash Builder 4.6?

    I have a RSS Reader project I have added tabNavigator to manage tabs now I am trying to delete one tab but when Running App Tab is still there.
    I have visibility False and enabled False
    Please help me!!!!

    You can use  http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air3-8_sdk_sa_mac.tbz2 with FB 4.6. Below are the steps to overlay the sdk
    1. Exit Flash Builder. 
    2. (Optional) Back up the Flex SDK by copying the entire directory.
        In Flash Builder, for example, copy the directory at:
    Mac OS: /Applications/Adobe Flash Builder 4.7/sdks/4.6.0
    3. Download the appropriate AIR SDK file for your operating system e.g. http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air3-8_sdk_sa_mac.tbz2,  unzip and save it on your MAC OS X.
    4. In Terminal, run the below command
    sudo ditto /path/air3-8_sdk_sa_mac /Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0
    5. (Optional) To access the new AIR 3.8 APIs, update your application descriptor file to the 3.8 namespace.
    To update the namespace, change the xmlns attribute in your application descriptor to: <application xmlns="http://ns.adobe.com/air/application/3.8">
    6. (Optional) To ensure that the output SWF file targets SWF version 21, pass an additional compiler argument: -swf-version=21.
    Hope this will help.
    Regards,
    Nimit

Maybe you are looking for

  • HELP needed with LG monitor working

    I was given a 22" LG external monitor to use with my MacBook Pro. Once I got a minidisplay port to VGA adapter, it worked, but only as a mirror. I could not get it to act as a separate monitor to move programs and the cursor between. For dual display

  • WebDynpro ABAP application issue from Portal after ECC 6 upgrade to SP14

    Hi,    We have recently upgraded the Kernel, ABAP and Java stack of ECC 6.0 system to SP14. After the upgrade most of the WebDynpro ABAP applications doesn't load and just flickers when run from Portal as a WebDynpro iView, but they run perfectly fin

  • USB Sticks don't mount

    After having returned from a two week vacation my 2 USB-Sticks (SanDisk 1 G and Yakumo 512 MB) suddenly don't mount anymore. If I start DiskUtility it keeps spinning and spinning, if I pull the Stick out DiskUtility stops spinning and shows the stick

  • PDF Template

    Hi, We designed a PDF Template for Purchase Order and are able to get the output correctly only for a Single PO number which displays on one page...if it contains more number of lines which take more than one page then we are not getting the output c

  • Back-up via another access point

    Hi I was wondering if it is possible to use another access point to back up from, rather than connecting directly to the time capsule, we have 3 access point routers in our house (all connected to 1 network), to provide adequate signal. So can the ba