Embedd a database within a SWF?

Hi -
I'm wondering if the following can be done with Flash -
- can a swf contain it's own database that the user can add,
delete, read?
- while the view is online, entering and interacting with the
data- is it being sent back and forth to the server?
- can this database be protected with some sort of encryption
that is only unlocked by the user's code?
- and so that if the user emailed the swf or the db file from
within the swf, only a person with the key could access the data?
Can it be done?
Can someone point me to how to these features might be
possible with Flash?
TIA your input,
jl

Hi,
1.- SWF files cannot contain their own databases but they can
access several server side scripts to mantain/modify a server side
database.
2.- Yes the interaction with the database occurs without the
user having to take notice.
3.- You can use any type of session protection wih
authentication to protect your data.
4.- SWF are like HTML or plain text (anyone can find a way to
read it) so I'd recomend using server side authentication rather
than relying on swf key protection.
Cheers,
Gorka
http://www.AquiGorka.com/blog

Similar Messages

  • Saving/Printing work from within a .swf file

    Okay so here's the deal. I have to create a flash game in
    which users will be creating artwork. When users are done with
    their artwork we want them to be able to SAVE their work, EMAIL it
    to a friend, and PRINT it out all within the .swf file.
    HOW IN THE WORLD DO YOU DO THIS?????? I have been searching a
    researching and going through many forums and tutorials trying to
    see if anyone out there can help but I have come up with nothing.
    Although I did come a across a website that was able to achieve
    what we are looking to do in this flash game.
    Click here to view
    Snowflake Website
    On this website users can make snowflake art the old fashion
    way but this time on the web within a flash site. When users are
    satisfied with their snowflake they can save it and the snowflake
    is added to an ever growing database of user created snowflakes
    that also can be viewed by others at anytime. Users are also given
    the option of emailing their snowflake design to friends and
    downloading their design as a JPEG or and EPS file. You can also do
    the same to any of other numerous snowflake designs with the
    snowflake design database.
    HOW IN THE WORLD DO YOU DO THIS??? I have contacted the
    agency that was responsible for creating this site for their help
    as well but any assistance I can get from you guys would be greatly
    appreciated as well.
    Still quite confused but eagerly awaiting your
    responses.

    Printing object:
    on (release) {
    //creates the object of the class printjob
    var pj:PrintJob = new PrintJob();
    //starts the procedure
    //opens the windows printing window
    pj.start();
    //sets the printing area (i may be made outside the stage,
    so using the A4 area and adding any other information that should
    not appear on screen)
    area = {xMin:0, yMin:28, xMax:465, yMax:296};
    //printing options - true=bitmap / false-=vetor... bitmap
    generates a bigger file, but results in better quality for images,
    vector is smaller and a good option if you work just with text
    options = {printAsBitmap:true};
    //adds the page the the printing queue
    pj.addPage(_root, area, options, null);
    //sends the page to the printer
    pj.send();
    //deletes the object to clear memory (very important)
    delete pj;

  • Using AS 3.0 to create a popup .swf within an .swf

    Hi,
    I need to have an .swf running for a game.  Within this .swf there will be a "Help" button, which, when clicked, needs to create a new popup window from a different .swf file. The second .swf file must appear in a new window, in a separate popup, and not replace anything in the first .swf window.
    I want to know how to do this in ActionScript 3.0. I don't need help with the button click event, but I do need help on how to make the popup appear.  Any advice?
    Thanks.

    use
    navigateToURL(new URLRequest("yourswf.swf"));

  • How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???

    I have the following situation
    MainMove.swf is doing a loadmovie of SecondMovie.swf
    The Button that loads SecondMovie.swf also disables other buttons in MainMovie.swf
    on (release) {
        _root.intro_btn.enabled = false;
        loadMovieNum("SecondMovie.swf", 2);
    How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
    Using AS2 is this current project
    Thanks

    lol Sorry bout that I'm brand new here and was looking for the option to remove the post from the other location.

  • Call a external SWF by press the button within another SWF file but the second SWF file play Externely

    Hello Guyz.
    i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2

    try this
    http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123

  • Using MS Access database within Servlet

    Hi
    l've been trying since a week to extract data from my database
    within my Servlet, but it doesn't work.
    l get the reply with empty table, yes no data in it !!
    my classes and the database are located in WEB-INF/classes directory
    can someone help me please ?
    thanks

    [i]this is my code
    // first class
    package servletcommercial;
    Class Product
    //Business object for products, note quantity in stock is a string
    public class Product {
    private String productId;
    private String description;
    private String category;
    private String quantityInStock;
    private int price;
    public Product
    (String productId, String description, String category, String quantityInStock, int price)
    this.productId = productId;
    this.description = description;
    this.category = category;
    this.quantityInStock = quantityInStock;
    this.price = price;
    //Setter methods
    public void setProductId(String productId)
    this.productId = productId;
    public void setDescription(String description)
    this.description = description;
    public void setQuantityInStock(String quantityInStock)
    this.quantityInStock = quantityInStock;
    public void setPrice(int price)
    this.price = price;
    public void setCategory(String category)
    this.category = category;
    //Getter methods
    //second class
    package servletcommercial;
    Class ProductCollection
    import java.util.*;
    import java.sql.*;
    public class ProductCollection {
    private Connection cn;
    private String driverName;
    public ProductCollection()
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    cn =
    DriverManager.getConnection("jdbc:odbc:M360Catalogue", "Darrel", "");
    catch(Exception e){System.out.println("Problem setting up database"+e);};
    public Enumeration getCollectionPrice(int price)
    Vector extractedProducts=new Vector ();
    ResultSet rs;
    Statement query;
    try
    query = cn.createStatement();
    String queryString =
    "Select * from Products where Price > "+price;
    System.out.println(queryString);
    rs = query.executeQuery(queryString);
    while(rs.next())
    Product extractedProduct = new Product
    (rs.getString(1), rs.getString(2), rs.getString(3),
    rs.getString(4), rs.getInt(5));
    extractedProducts.add(extractedProduct);
    rs.close();
    catch (Exception e){System.out.println("Problem with query "+e);}
    return extractedProducts.elements();
    public Enumeration getCollectionCategory(String category)
    Vector extractedProducts=new Vector ();
    ResultSet rs;
    Statement query;
    try
    query = cn.createStatement();
    String queryString =
    "Select * from Products where Category ='"+ category+"'";
    System.out.println(queryString);
    rs = query.executeQuery(queryString);
    while(rs.next())
    Product extractedProduct = new Product
    (rs.getString(1), rs.getString(2), rs.getString(3),
    rs.getString(4), rs.getInt(5));
    extractedProducts.add(extractedProduct);
    rs.close();
    catch (Exception e){System.out.println("Problem with query"+e);}
    return extractedProducts.elements();
    //last class
    M360
    Exercise 7.3
    Class CommServletSolution
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class CommServletSolution extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    private ProductCollection pc = new ProductCollection();
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    PrintWriter out = response.getWriter();
    response.setContentType(CONTENT_TYPE);
    if((request.getParameter("pulldown")).equals("priceselect"))
    String price = request.getParameter("data");
    String priceInPence = (Integer.parseInt(price)*100)+"";
    Enumeration en = pc.getCollectionPrice(Integer.parseInt(priceInPence));
    //Display table
    out.print("<P>The table of goods for your price query ** price "+" > " +
    price+" ** is shown below</P>");
    displayTable(out, en);
    if((request.getParameter("pulldown")).equals("categoryselect"))
    String category = request.getParameter("data");
    //Get enumeration to retrieved products
    Enumeration en = pc.getCollectionCategory(category);
    //Display table
    out.print("<P>The table of goods for your category query ** category = "+
    category +" ** is shown below</P>");
    displayTable(out, en);
    public static void displayTable(PrintWriter out, Enumeration en)
    //Helper method which displays tables
    //Table header
    out.println("<TABLE BORDER>");
    out.println("<TR>");
    out.println("<TH>Description</TH><TH>Category</TH><TH>Quantity</TH><TH>Price</TH>");
    out.println("</TR>");
    //Table rows
    while(en.hasMoreElements())
    Product chosenProduct = (Product)en.nextElement();
    int penceAmount = chosenProduct.getPrice()%100;
    String pence=""+penceAmount;
    if(penceAmount<10)
    pence = "0"+penceAmount;
    if(penceAmount==0)
    pence ="00";
    out.println("<TR>");
    out.println("<TD>" + chosenProduct.getDescription()+"</TD>"+
    "<TD>" + chosenProduct.getCategory()+ "</TD>"+
    "<TD>" + chosenProduct.getQuantityInStock()+"</TD>"+
    "<TD>" + chosenProduct.getPrice()/100+"."+
    pence+"</TD>"
    out.println("</TR>");
    out.println("</TABLE>");

  • Creating an SWF to play within an SWF

    Basically I need to be able to play an SWF file within an SWF
    project. The project contains a layout of different navigational
    buttons. I wish for one of the buttons to go to a frame containing
    an older SWF project I created.
    Please help if you can.

    Even if the SWF played directly on the timeline it would
    still be ok. As long as you were able to alter it's X and Y
    positions. ( I really don't care too much about playing AS2 SWF's
    eather. I'm more concerned about AS3. Out with the old and in with
    the new)

  • Embed swf or html within a swf?

    Is it possible to embed an swf or html file within another swf ...without using ActionScript?
    AND

    You cannot embed an html page in an swf page in any case.  If you import an swf with the intent to embed it into another swf, you can embed it, but if it has any actionscript it will be lost.  The only way to incorporate an swf into another swf without actionscript and still have its actionscript work is to copy the main tineline of the swf (ala its fla file) into a movieclip and copy that movieclip into the other swf.
    It appears you had more to say but it was cut off if so.

  • A swf within a swf

    Hi,
    Hopefully someone can help me with this...
    I would like to embed a swf (call it swf 1) within my captivate 5.5 project (swf 2), but the catch is that swf 1 is interactive.  More specifically there are pause points within the course where learners need to play around with roll-overs or other features before clicking a button to resume.  There are a number of swfs going into swf 2, but I thought it best to focus on one for now.
    The idea is to publish the main project (swf 2) with a skin and TOC and to be able to control progress all progress, including the progress within swf 1, using the playbar from swf 2 - i.e. if I click on the playbar at a certain point, it should take me to that point even if it is half way through swf 1.
    I know how to add an animation to a slide and synchronise it with the project so that I can get that kind of playbar functionality.  However, this only works if swf 1 plays from end to end without any interactivity.  It doesn't seem to work when swf 1 pauses in the middle (in fact swf 1 barely even starts, before it vanishes again, leaving me watching the background of the slide that it was on).  Alternatively, if I don't synchronise it, then the main project will continue on to the next slide regardless of whether swf 2 has finished or not.
    So, the question is, how can I insert an interactive swf into the main project, synchronise it and retain the interactivity?  Any helpful, not too technical suggestions?
    Thanks.

    You won't be able to achieve this in Captivate without having advanced ActionScript 3 coding skills.
    You are better advised to find another way of delivering the effect you want that does NOT involve nested SWFs.

  • Inserting swf within a swf

    I am creating a Captivate project, basically, as a shell with
    5 slides. Within each slide, I would like to insert swfs that I
    have previously published. As a result, each of the 5 slides will
    play while the embedded/inserted swf plays within. Have you ever
    tried to do this? It seems to work only if I don't include a
    skin--but I would like to include a skin on each of the swfs that I
    have inserted.
    Any ideas? Thank you.

    quote:
    Originally posted by:
    jdmosley
    How do you revert a project back to Captivate 3 when you hit
    a Captivate 4 limitation? Is there a simple way? I made a ton of
    changes in Captivate 4 and don't want to have to re-do them with
    the previously saved Cap3 version of the project. Thanks!
    You could copy/paste the slides from CP4 to CP3 - we just did
    that with a project. It doesn't retain all the slides settings (I
    think the buttons / goto slide etc) needed to be configured again,
    but it still beats having to redo the project from scratch in CP3
    ;o)
    quote:
    Originally posted by:
    isv2009
    Thanks for your reply.
    It seems to work whenever the embedded swf does not have a
    skin... and not work with a skin on it. Have you tried both cases?
    Sorry no I haven't tried this with swf's with skin. I just
    saw that your original question actually stated that, but I missed
    that part. I would imagine that a skin with a second playbar could
    mess things up in Captivate.
    If you have Flash skills an idea could be to make a simple
    "loader shell" which loads the animation you wish to import. That
    way the levels of the two playbars would be seperated even more and
    perhaps it would work.
    /Michael

  • Swf within a swf

    So I've been nesting a lot of MCs within each other.
    What I want to do is have a basic "image gallery," so to speak, that links to about 6 other SWFs I already have made. For the life of me I cannot think of how to do this properly.
    The main thing is the button and the goto function. Is that even the right function?
    Hopefully someone understands. This is time sensitive. Thanks.

    I don't know if it matters, but I would avoid capitalizing Event in... Event:MouseEvent
    because Event is a class just like MouseEvent
    I get the impression you are using the UILoader component--fair warning, I tend to avoid using components, so I can only reference the help files to try tio help.  If you mean that code is not working for you, then I think you have to use the load method to actually load what you identify as the source.
    var swf:Array = new Array("flash1.swf", "flash2.swf", "flash3.swf")
    obama_btn.addEventListener(MouseEvent.CLICK, obama);
    function obama(Event:MouseEvent):void
        media_mc.source = swf[0];
         media_mc.load();
    You may be able to replace those two lines in the function with...
    media_mc.load(new URLRequest(swf[0]));

  • Open a swf within a swf

    Hi.
    A long standing client has requested that I create a fully
    flash website to replace the site I created for them a few years
    ago. I naively agreed, with quite a limited flash knowledge.
    I can create the site as one flat file, but the initial
    preloader would be loading the entire site which would take ages.
    So I thought that if I have each section of the site on its own swf
    file, I could open each one from within the initial flash site.
    This means it would be loaded as an external entity if you like,
    and the initial preloader would not load it which is the desired
    result. Am I right? How do I do it? please say if i've lost you
    with the above!!
    STeve

    all you want is the loadMovie command - search the help docs,
    this forum, or google - it's been used
    for so long - oh and these tutorials:
    http://www.kirupa.com/developer/mx/full_site.htm
    http://www.kirupa.com/developer/flash8/best_structure_flash_site.htm
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    StevoUK wrote:
    > Hi.
    >
    > A long standing client has requested that I create a
    fully flash website to
    > replace the site I created for them a few years ago. I
    naively agreed, with
    > quite a limited flash knowledge.
    >
    > I can create the site as one flat file, but the initial
    preloader would be
    > loading the entire site which would take ages. So I
    thought that if I have each
    > section of the site on its own swf file, I could open
    each one from within the
    > initial flash site. This means it would be loaded as an
    external entity if you
    > like, and the initial preloader would not load it which
    is the desired result.
    > Am I right? How do I do it? please say if i've lost you
    with the above!!
    >
    > STeve
    >

  • Using a database within jspdynpage

    Hi Everybody,
    i have create a jspdynpage within a portal application project. Now i want to store my data which was inserted by the user into a database like java dictionary, is that possible? How can i use a database in order to save the inserted data from my jspdynpage? Can i use a java dictionary?
    regards,
    Seed
    Edited by: seed_mopo on Apr 3, 2008 6:18 PM

    Hi Seed,
    I would suggest you to use beans in your portal application.
    To adhere MVC (Model View Controller) architecture please do not use your database statements ina  javabean.
    Lets your javabean have all your database related statements and ur jsp  dynpage can communicate javabean to fetch data.
    It is easy to create a Enterprise Portaljspdynpage project with Java bean.
    Thr is an option while creating the EP Application project
    You can fetch the bean statement in jsp dynpage file using
    JSP code.
    You can find the sample applications using javabeans in SDN itself.
    Ram

  • How to load swf files within another SWF and still maintain actionscript

    Hi I was wondering how to embed an swf file inside another
    swf file, If i simply import it to the stage or the library it will
    become a symbol but the actionscript interactivity is lost, another
    question is can I have an actionscript 2 file play within an
    actionscript 3 file?
    The actionscript 2 code for embedding is something like this:
    don't mind the _mc titles
    this.cargame_mc.onRelease = function (){
    loadMovie ("Crusty Rusty's.swf", empty_mc)
    empty_mc._xscale=60;
    empty_mc._yscale=55;
    empty_mc._x=210;
    empty_mc._y=140;
    Please Help its for my uni portfolio, i want to use as2, but
    if i do i would lose the 3d possibility of as3, is there any way to
    export an as3 file and then embed in as2, using a program or
    anything? Thanks!I
    I would just like to say thanks in advance because everyone
    on here is so helpful!

    you can load an as2 file into an as3 file (using the loader
    class) and the actionscript will work in both.

  • Two database within...

    Hello there,
    Thank you for reading this question. I have a server Sun box that have 2 oracle
    instance version 7.3.4 DE01 and DE02.
    My WLS needs to establish a jdbc connection pool to DE01. If the connection was
    made within the same box (WLS installed within), then it is working fine.
    After that I tried to connect from a different Sun box, but is failed. I attached
    the error log, please have a peak, TQ.
    I also tried to get the remote jdbc connection to DC01, a separate box which only
    have 1 database instance, then is ok for the WLS.
    Can anyone help?
    TQ
    Neo
    [jdbc-startup.txt]

    Hi Neo,
    Make sure that you can connect to the the questionable dabase instance
    from outside of the box using any legacy tool like SQLPlus and check
    connection pool definition for being valid.
    Regards,
    Slava Imeshev
    "Neo" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello there,
    Thank you for reading this question. I have a server Sun box that have 2oracle
    instance version 7.3.4 DE01 and DE02.
    My WLS needs to establish a jdbc connection pool to DE01. If theconnection was
    made within the same box (WLS installed within), then it is working fine.
    After that I tried to connect from a different Sun box, but is failed. Iattached
    the error log, please have a peak, TQ.
    I also tried to get the remote jdbc connection to DC01, a separate boxwhich only
    have 1 database instance, then is ok for the WLS.
    Can anyone help?
    TQ
    Neo

Maybe you are looking for

  • Display year and month in webi report

    Hi I have requirement like below. If user select year in prompt for example user select 2011 i have 2 columns in a report pY-2,   pY-1 These above columns will display 2009  , 2010 along with the current month.Month will be same as current month. For

  • Sales Order text for Variant Configuration

    Hello I have researched my issue and also have asked other peers for guidance.  I feel that I am really close to getting my issue to work but I am not sure what I am missing, so I am hoping that someone can give me some advice as to what to check ple

  • Key figures should be normally "summation" or "overwrite"

    Hi all, I know the answer to this question is "it depends on your requirement" but I want to know normally do we have to keep the key figures as summation or overwrite ? Thanks, KM

  • Best tv tuner for MacBook

    I was looking into getting a tv tuner for my macbook. I have read alot of reviews about a couple products. I have seen both good and bad. Has anyone had success with a certain one? What one do you think is the best?

  • A to Z playlists

    how can find and use the alphabetical listings for playlists in itunes 7? I saw it in the Q.T. appplecast from S.F.