Actionscript help with interactive poster

Hi All,
I need some desperate help with a university assignment. I can't find any really good tutorials out there, so I was wondering if there were any kind people out there that I could get some on-on one help from?

If you need one on one guidance for every aspect of the assignment then you probably need to look to your classmates or your instructor. 
If you can show what you have done so far and what specific aspect you are having a problem with then someone might offer some help.

Similar Messages

  • Please help with SSL POST: Servlet returns Error 500

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

  • Please help with a Poster Frame

    I have imported an FLV into Flash using "Video Import" and selected a prebuilt skin that gives play, volume and caption control. The movie has autoplay turned off so when I viewed on the webpage it shows a black first screen and the skin beneath it. I would like to insert a poster frame that will hide when the user presses play on the skin. I was a novice with AS 1 and 3.0 is making me facepalm. Please help, I've already tried Flashkit and Actionscript.org and not gotten any answers. Thanks!!

    Okay in Frame 1 I have an AS layer I copied your code into, layer two is the movie clip with the image named 'myPoster' and the third layer contains the FLV playback named 'myVideo' so I changed the names in the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f):
    function f(e:MouseEvent):void{
    removeChil((myPoster);
    I get the following compiler errors and publish preview shows just the image:
    Scene1,Layer 'Action Script', Frame 1, Line 1 1078: Label must be a simple identifier.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1084: Syntax error: expecting rightparen before semicolon.
    So I tried modifying the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    removeChil((myPoster));
    Which fixed the original errors but still only the image shows and I get new compiler errors.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1180:Call to a possibly undefined method removeChil.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1120: Access of undefined property myPoster.
    Scene1,Layer 'Action Script', Frame 1, Line 1 1120: Access of undefined property myPoster.
    Thanks for your patience and help!

  • Actionscript help with symbol control (Flash 8)

    I have a bunch of symbols on the stage and want to control
    them with actionscript to cut down on the workload. The attached
    code is what I've created that works for the most part with 3
    problems/customization desires:
    1) When I test this the POST still sends my variables in a
    querystring like a GET (only read by request.querystring). How to
    make the POST act like a POST.
    2) My mouse over creates a larger symbol. How could I get
    this to animate the growth to a larger symbol?
    3) My shadow effect is just a transparent copy of the
    original symbol. How can I change the color to be transparent
    black? Or is there a better way?

    let's see if i can help...
    1) you should use LoadVar.sendAndLoad - rather than just send
    in order to maintain the current swf file - even if you only
    specify a "POST" method param.
    2) you should use the Tween class to 'grow the scale of the
    button - and shrink back to size it onRollOut - without a need to
    create a duplicate instance.
    3) you should use the DropShadowFilter to achieve this with
    code
    so this should look like:

  • Newbie:  Help with Interactive Movie Clips

    I'm just starting off with Indesign and am already running into an issue on a seemingly simple issue.  I'm trying to create an interactive document that I will play movie clips when exported to pdf.  Ok so far so good.  I've inserted one movie and started to play around.
    1st issue - The only option I can get to actually play the movie when clicked is when the pdf export option for compatibility is set to 'Acrobat 5 (PDF 1.4)'
                     How come no newer options work?  Using Acrobat reader 9 by the way and tried to toggle options such as 'embedding' the movie.
                     No luck with playing on any setting except 'Acrobat 5 (PDF 1.4)'
    2nd Issue - Inside the movie options dialog box for this clip, there is an option for a poster that I can 'choose movie frame' as poster.  The dialog box       comes up and is completely empth with no video controls or anything.  What the deal with this.
    I'm just starting out and I know I'm not totally incompetant but I'm not very pleased with what I'm seeing right now.
    Any help or suggestions would be very much appreciated.
    Thanks,
    Don

    Here is some help for starter.
    For embedding, do that in InDesign. I think you know the movie will only play in the PDF.
    If you export to PDF 1.3/1.4•Non-RGB movie or sound posters aren’t visible in the exported PDF document.
    •SWF and MPEG movies aren’t playable in the exported PDF document.
    •Clipping paths applied to movie or sound posters don’t appear in the exported PDF document. Posters are resized to match the movie page item.
    •Movies cannot be embedded.•Sounds cannot be linked.
    If you export to PDF 1.5 or laterQuickTime is specified as the preferred player when exporting to PDF. To change the preferred player, you must edit the rendition in Acrobat 6.0 or later.
    If you export to any PDF version•Non-rectangular media frames don’t appear in the exported PDF document.
    •Hyperlinks applied to movies, sounds, or buttons are not active in the exported PDF document. However, you can add those hyperlinks using Acrobat Professional.
    •Rotated or sheared movies and posters may not appear correctly in the exported PDF document.
    •Any masking applied to movie frames or posters is not supported.

  • Help with interactive PDF-sheet

    Hi guys. I'm doing a interactive pdf-sheet for my company and i was wondering if its possible to make a form that pushes down the already written text in the document?
    Is this possible?

    May be possible with forms created by LiveCycle Designer. Post your question in the forum for LiveCycle Designer.

  • Help with interactive 3D earth

    Hi,i'll keep it as short and simple as possible!
    We're making a page with a flash element,and basicaly,in the end it should look something like this:
    http://www.youtube.com/user/lifeinaday
    Except that users would be able to add the speech bubbles themselves.So a Flash ball would be rotating,and clicking on it would make pop up a form,enabling the user to add text to a speech bubble,which would then be saved on the server.
    Since i'm quite a novice in flash,some short basic guidelines of which tools to use,or any general help would be of GREAT help.
    Thanks in advance!:)

    If there is currently no interaction with the earth object and it is a movieclip symbol, you can add code to make it react to mouse interaction, the same way you would for any button if you know how.  If using the earth for that is difficult for some reason, then you could add any shaped movieclip over the earth, set its alpha property to 0, and then use that for the interaction.
    For the form, you can create a movieclip that contains the form elements you intend the user to fill out, and control its visible property to hide/show it.  So when you click the earth, the form movieclip's vsisible property is changed to be true--and you may want to disable the earth clickability while the form is opened.  When you click the submit button of the form, you  set the form movieclip's visible property back to false--and enable the earth clicking if you disabled it.
    For what goes on with processing the form, you are best off finding a tutorial to get you started on figuring out how to do it.  Use Google to search using terms like... "AS3 PHP MYSQL tutorial" or whatever system /lamguage elements you expect to be using for storing the data on the server.  Flash cannot directly save data to a server, so you need some form of server-side scripting such as PHP to act as a middle man for getting the data saved to the server.

  • HELP with Interactive Booklets purchased thru itunes

    I have a 30 gb video ipod. A few of the albums I have purchased through itunes have an interactive booklet attached. When I sync my ipod with itunes, it says my ipod model can not support the interactive booklets. As a result I can't view them. Does anyone have an answer to why this is?????????? I figured that since I have a 5th generation ipod, viewing these booklets would not be an issue. Any help anyone could give would be greatly appreciated. Thanks

    I would recommend calling apple http://www.apple.com/contact/phone_contacts.html
    kEat0n

  • Help with Interactive Buttons

    I'm having a really rough time understanding how to code my interactive menu.
    I've posted the files here https://dl.dropboxusercontent.com/u/21231523/Menu_animation.zip.
    1. I'd like my first animation to run which involves the buttons swooping in and then coming into the correct positions.
    2. When you roll over the buttons, I'd like them to turn red.
    3. When you click on the buttons, I'd like them to stay red, and the actual text label rotates 90 degrees. I'd like this to stay this way until the user either clicks on the button again to rotate it back to 0 degrees or when the user clicks on another button and that also causes the button to rotate back and the current button clicked on rotates 90 degrees.
    I'd appreciate any help.
    Thanks so much.

    To get the kind of interaction and anoimation you identify you will need to use movieclip symbols instead of button symbols.

  • Can anyone help with Interactive docs in ID CS5?

    I am creatiing an ineractive document in ID CS5 and it is going well. However, suddenly my Object States panel has stopped functioning - I select an object and the panel is blank, the menu items are greyed out and there are no icons at the bottom of the panel. It will not display anything at all, can anyone help please?
    Deborah

    Thanks, I did read and do before I posted the message to the forum.
    However, click away at the panel name tab tiny tiny arrows seemed to fix it!
    thanks again

  • Little help with FORM POST data not in UTF-8 (JSP/servlet)

    Hello,
    I am trying to update a MySQL database record with UTF-8 characters with my JSP application.
    1) I have MySQL correctly configured to handle UTF8 and have tested insert/update/select with UTF8 characters
    2) I have an "editRecord.jsp" page. At the top of the page, I specify:
    <% request.setCharacterEncoding("UTF-8"); %>
    3) I have an input form which is specified in that page which follows:
    <form action="<c:url value="/updateRecord.jsp"/>"
    name="updatetForm" method="post"
    ACCEPT-CHARSET="UTF-8"
    enctype="multipart/form-data">
    4) I have a servlet filter that takes every HttpServletRequest and modifies that object in
    doFilter(...){
    request.setCharacterEncoding("UTF-8");
    chain.doFilter(...)
    5) In updateRecord.jsp, I fill a JavaBean with the form data. Here's an example of the form input:
    name = Company
    Comments=Here's some unicode text: "&#1610;&#1606;&#1610; &#1573;&#1606; &#1576;&#1604;&#1575;&#1583;&#1607; &#1605;
    6) When I put a breakpoint and inspect the contents of the UpdateBean after posting the form, running the request through the filter, I see
    I see:
    name = Company
    Comments=Here's some unicode text: &#132;������...."
    Where could I possibly be missing something to force UTF8 encoding of these values?

    If you have to use the following code to fix the encoding:
    String value = new String(item.getString().getBytes("ISO-8859-1"), "UTF-8"); ...
    then you are just putting a band aid on something that is broken somewhere else (since this code creates a byte array in 8859-1 and then creates a string from that byte array, but assuming that the array is encoded in UTF-8). That will only work if the string you start out with is mangled.
    In many cases such a fix will actually "work" (in the sense that you may end up with something that is correctly encoded in the end), but you run the risk of breaking if the source of the original corruption is removed.

  • Need help with http POST concept

    hi i just started learning about HTTP..im trying to pass a value from a thin java client from command prompt through POST method directly to a destination (another java bean) without any HTML/jsp (no pages) .
    i've created a caller.java which is used on command prompt :
    java caller param1 param2
    then, this caller will actually point to a struts path on my server, (which i think is a servlet) and do proper processing.
    caller.java :
    public static void main(String[] args) {...
    String url = str + "/do_something/prog0001_getAnswer?" +
         "param1=" + args[0] +
    "&param2=" + args[1];
    URL server = new URL(url);
    HttpURLConnection connection =
    (HttpURLConnection) server.openConnection();
    connection.setRequestMethod("POST");
    connection.connect();
    System.out.println("connecting to server..... " + connection.getResponseMessage());
    then on servlet :
    httprequest's .getParameter("param1");
    httprequest's .getParameter("param2");
    to obtain the values.
    even if set my URL's instance (server) 's RequestMethod to POST, i'm still able to obtain the parameter values in the servlet? I thought POST method requires different way to pass the values to a servlet? i've been searching..the most i could get are examples with HTML's FORM's name attribute

    What method have you written in Servlet?
    service, doGet or doPost.
    If you have written service, then it does not matter what mthod you specified.

  • Help with Kelby Poster Action

    Hi,
    I'm creating an action based on Scott Kelby's Poster Presentation example in his CS2 book. In this example Kely takes you through the steps of creating a poster with photo and text below with photographers name.
    I seem to do fine adding canvas and text to a photo but run into trouble when adding the finishing touch of a 1 pixel box around it all. Kelby says to add a new layer, do a command select all and then go to the  Edit Menu and select  "Stroke" 1 pixel wide. I then deselect and change the opacity to 40% to make the "box" line more subtle. The problem is I can see no box around the end product, if I look at it on a white background. It's strange because I had this working in CS4.
    Another issue ... my action seems to not be able to use "Save For Web and Devices". I see it recorded in my action but it will not execute. Any ideas?

    and select  "Stroke" 1 pixel wide.
    Is Stroke > Structure > Position set to Outside?

  • Help! Need help with Interactive PDF

    I seems to work fine when I view it in my InDesign CS6 folio Builder. But when I click folio producer to view it, it shows up fragmented when I click on "open" in the  Digital Publishing organizer.

    You've posted here and the DPS forum and neither one of your posts makes any
    sense at all. Please back up and provide full details including screenshots.
    If this is a DPS issue and not PDF then please post there.

  • [SOLVED, Thanks]Need help with pacman post install

    Hi
    It took me a bit of time to install arch but i finally did it, turns out i just needed to disable ipv6. Anyway yesterday everything worked fine and now that i try to complete the install by downloading a wm suddenly pacman refuse to download anything, it says it can't synchronise.  Can anybody help pls ?
    http://www.hostingpics.net/viewer.php?i … roblem.png
    Last edited by oozernem (2015-05-09 08:15:51)

    Head_on_a_Stick wrote:
    Have you tried:
    # systemctl start dhcpcd.service
    If that brings your connection up, use:
    # systemctl enable dhcpcd.service
    https://wiki.archlinux.org/index.php/Be … uide#Wired
    Thanks m8, it fixed it
    Thanks to everybody else who replied in the thread.

Maybe you are looking for