Click targets another SWF on same HTML page to animate

Hi,
I want to create 2 separate SWF's placed in specific locations on an HTML page. When you click on the one SWF it targets the other SWF to animate. Is this possible, and if so, how? Please note, I am not an expert actionscripter!
Here is a basic idea of how it should work (this being just one SWF): http://www.ramsaymedia.co.za/mail/bizcommunity_banners/test.html
Lars

VIDEO GALLERY --
You need a Flash player that supports a playlist.  If you're good with Flash and Action Script you could build a custom player.  If not, pick-one from the links below:
Wimpy Rave simple to deploy, dirt simple to update playlists by uploading media to wimpy folder.
WWD Player --
http://www.woosterwebdesign.com/flvplayer/
JW Player --
http://www.longtailvideo.com/
FlowPlayer --
http://flowplayer.org/
YouTube --
http://code.google.com/apis/youtube/getting_started.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Can I use multiple p class="logos" tag with the same name within the same html page?

    I was told not to use <div class> tags too many times. I was using them for text, images, to clear floats, I basically built my website using multiple <div class> tags. So if I can't use multiple <div class> tags could I use <p class> tags multiple times in the same html page?
    I have a string of logos at the bottom of my webpage which will all be using the same css characteristics for all logos. Would this be the proper way to write the code:
    HTML
    <p class="logos">Logo1<a href="...></a></p>
    <p class="logos">Logo2<a href="...></a></p>
    <p class="logos">Logo3<a href="...></a></p>
    <p class="logos">Logo4<a href="...></a></p>
    <p class="logos">Logo5<a href="...></a></p>
    <p class="logos">Logo6<a href="...></a></p>
    CSS
    .logos {
    margin-left:10px;
    Here's my website: http://www.darbymanufacturing.com/test_website/index.html - this is the website built with all div class tags
    I restarted the website in order to write the code properly so that I don't come to errors when uploading on the server like I am having with the website link above.

    Instead of writing something like this -
    <p class="logos">Logo1<a href="...></a></p>
    <p class="logos">Logo2<a href="...></a></p>
    <p class="logos">Logo3<a href="...></a></p>
    <p class="logos">Logo4<a href="...></a></p>
    <p class="logos">Logo5<a href="...></a></p>
    <p class="logos">Logo6<a href="...></a></p>
    Why not have something like this -
    <div id="logodiv">
    <p>Logo1<a href="...></a></p>
    <p>Logo2<a href="...></a></p>
    <p>Logo3<a href="...></a></p>
    <p>Logo4<a href="...></a></p>
    <p>Logo5<a href="...></a></p>
    <p>Logo6<a href="...></a></p>
    </div>
    with CSS like this -
    #logodiv p { ... }

  • How to Unload and Reload a Composition into the same HTML page?

    TLDR:
    When loading multiple Compositions into a html page via AdobeEdge JavaScript, how do I remove/delete/unload a loaded composition so that it can be added/loaded to the same page again later? I am open to options not mentioned here, but this is done externally, not within Edge's limited code abilities (working with multiple comps on one page).
    *Note: I am making comps in Edge then loading multiple within my own JavaScript/HTML external pages. This programming is NOT done within Edge's code.
    Overview:
    I could have more than 50 compositions to load into my page, but only one is displayed at a time. In order to make this easier on the user, I load 5 into the page in divs with display: none. I set the id of the first one to an id that has my css to show the content properly. When clicking next, that div is set back to an ID that has hidden css values. Going forward and back works the same. This functions properly. This puts all the obvious preloading in the beginning so the user doesn't have to wait again, as comps are preloaded in the background while they are viewing other comps.
    As the user moves farther, I drop the first div and add one on the end with the next comp. This works fine. I can go forward all day, no problem by removing the first div element and adding one to the end. This should make memory not horrible, since theoretically, the comps would be removed as needed...
    Problem:
    The problem is if the user wants to go back. If I drop the last div and add one to the front, the comp (which was loaded and dismissed earlier) cannot be re-loaded. It also cannot be re-added, even if the div is cloned and re-added later.
    This is the code I am using to load the comps:
    $.getScript('comp_' + i + '_edgePreload.js', function() {});
    Options:
    The options I have thought of (and not found a way to make them work) in order of preference:
    Fully unload the comp from memory, that way when I make the call to load the comp, it will act as if it has never been loaded before. (Is there a way to unload a comp completely? I haven't found one, but the API is sorely incomplete) **I want this one to work very much.
    Ok, maybe you can't actually unload a loaded comp. Can you re-add it to a new div? I have printed out every option I could thru AdobeEdge's interface, and cannot find a way to re-make a div the way it was. Heck, I'd be happy to load the content into a non-child element in JS, then append to html when I actually want to display it. I can't find how to re-setup the div, which has the correct Class and is set up the way it was when the comp was loaded the first time. (this option is bad because it seems all of the comps are still in memory, but at least it would work)
    Worst case, I have tried this and ALMOST got it to work. When I removed the old divs from the page, I cloned them and added them to an array of objects in JS. Then, when going back, I pushed them back out, so it was an EXACT copy of the original div, all content was the same, all id, class, style, etc was the same. Unfortunately, AdobeEdge seemed to lose the ability to talk to it. (AdobeEdge.getComposition('EDGE-MyUniqueIdentifier').getStage(); // returns undefined). How do I tell it to re-associate the div with the object that still exists here? And obviously, this is an awful solution, since it appears that all of the comps stay in memory, but I was desperate to simply make it work somehow.
    If you need code examples of any of my attempts at the previous options (I have tried them all extensively, and unsuccessfully), I can provide it. I hope someone has found a way to deal with this or has links to actually useful information. Most posts I have found simply tell you to load all your comps and hide/unhide them as needed. This works for small-scale, but when you have a lot of comps to move between, it becomes less of a viable solution.

    Exactly the same problem here. Could anyone from EDGE TEAM answer to this question?
    How we can UNLOAD and LOAD same or another animation using SAME or DIFFERENT dinamically created DIVS?
    Affter loading the second animation AdobeEdge.getComposition('EDGE-MyUniqueIdentifier').getStage() returns undefined.
    Thanks for ther support.

  • Controlling sound of separate html files within the same html page.

    I need to allow users to preview audio files for purchasing. I have CF pages that return records form a SQL database. Each record contains the same swf file however, each swf file points to a different mp3 for previews of different audio examples. So far, everything is working fine. My problem is that I need to be able to stop the sound from one  swf when I click to play a second swf.  The only solutions I see in Flash forums deal with loaded swf files. These are not loaded files they are separate files within a page. The question is: How do control one swf from another swf in the same page.  The following items have not worked:
    soundChannel.stop();,
    soundMixer.stopAll()
    I think my solution may be to use ExternalInterface but I am not sure where to begin with this. Any suggestion would be appreciated.

    you need to use the localconnection class to communicate between swfs open at the same time by the same client.

  • Help with inserting SWF file into .html page

    I created a photo gallery in Flash CS5.5, using the advanced photo gallery template. It works fine as a standalone SWF file but it's not displaying properly when I try and insert it into the Gallery page of my website.
    The thumbnails are showing as blank white boxes and the main image holder isn't showing at all, though the controls beneath it are showing. The SWF file and all the images are stored in site/images/gallery/ and my Gallery page is in the root. What's going on here? Can anyone help please?
    Thanks

    If you are storing any of your Flash assets in sub-folders and having problems... it's most likely because of pathing problems. For review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    What it boils down to is that you need to path the Flash assets from the Web page that you place the main .swf on... NOT the physical location of the .swf
    Best wishes,
    Adninjastrator

  • .swf file in html page with WebLogic Server in Netscape

    I am not able to embed .swf (flash) files in html page when accessed thru' Weblogic server in Netscape Ver. 5 and below but supported in Netscape6.0 and IE. When run as html page without WebLogic server, it is working well. Please suggest a solution for this problem to my mail id.

    I've had a quick trawl round the web, but can't find an answer to this specific problem - will let you know if i discovr anything.
    Lots of people seem to have problems because the relative url address has to be in relation to the html page, not the loading swf. All my files are in the same folder, so it;s not that. Also, the problem occurs whether running from my hard drive or web server.

  • When my swf in a html page connected with a socket server other http requests were blocked, how to resolve?

    I have used php to write a socket server(text chat server),
    then I use xmlsocket to write a client, I put this swf file in my html page, erverything of this client swf were ok: ervery clients could send or receive messages, but the other http request in this html page was unable to send(or receive) data from webserver,
    webserver and chat server were on the same server,
    and I have tried to use socket to instead if xmlsocket in my flash, but the new swf can only work in flash cs3, but it couldn't work in html page as the chat server can't send the security xml file to this swf, and I have also use Security.loadPolicyFile("http://192.168.139.128/crossdomain.xml"); to load security file, but it took none effect.
    Is there anyone can suggest me ?
    That's very kind of you!

    Hi Franco,
    Yes, I solved that by reinstalling Java 6 Update 21.
    There are three versions for Solaris namely, SPARC, x64 and x86. Our platform is SPARC and I think System admin has installed the wrong version instead of installing SPARC version of Java.
    After installing SPARC version of Java this got resolved. And I confirmed everything is fine by running a small program as below. You can run this program from command line using the -d64 flag. If the installation is wrong you will get the same exception as I mentioned.
    public class Analyzer {
          public static void main(String args[]) throws Exception{
               InputStream fin = new FileInputStream(args[0]);
               int iSize = fin.available();
               byte mvIn[] = new byte[iSize];
               fin.read(mvIn,0,iSize);
               fin.close();
               String strText = new String(mvIn);
               PrintStream fout = new PrintStream(new FileOutputStream(args[0]+".csv"));
               fout.println("Before,After,Seconds");
               Pattern p = Pattern.compile("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
               Matcher m = p.matcher(strText);
               while(m.find()){
                    fout.println(m.group(1)+ "," + m.group(2) + "," + m.group(3));
               fout.close();
    }Hope this helps.
    Regards,
    Prabhu

  • Retrive data from different frames in the same HTML page

    Dear sirs,
    Consider a HTML page with 2 frames, frame1.html and frame2.html. Frame1 contains a textbox, and frame2 contains an "Ok" button.
    Could it be possible that, once I click "OK", and after being redirected to the proper servlet, such servlet could retrive information from Frame1?
    Or, in other words, it is possible for a servlet to get information from different html pages? (I mean INPUT elements like texboxes or radio buttons).
    Thanks in advance for any ideas provided.

    Hi,
    Try this out:
    window.parent.Frame1.document.formname.textbox1.value
    Best of luck

  • Loading random .swf's in html page

    Desired scenario: I have a site which I want random .swf
    files to load into index page each time a user refreshes or visits
    the site.
    Solution: I used a Javascript array solution in the .html
    page. Note: it works perfectly in Firefox and Safari.
    The javascript code for that is listed below.
    Problem: In IE, the page which is supposed to load the
    random .swfs in blank. I tried to solve the problem by using an IE
    conditional statement with a single .swf embedded (so at least
    visitor could have interactive experience).
    <!--[if IE]>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="800" height="600">
    <param name="movie" value="drinks.swf" />
    <param name="quality" value="high" />
    <embed src="drinks.swf" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="800"
    height="600"></embed>
    </object>
    <script type="text/javascript"
    src="fixit.js"></script>
    <![endif]-->
    Any help would be appreciated. The link to the site in
    question is:
    http://www.jayminnickinteractive.com

    Thank you for checking. Yes right now they are all working.
    But many times I visit the flv's don't load - i wonder if it is a
    flash thing or more connected to my web host.
    Gary

  • Multiple .SWFs in one HTML page

    Hi all,
    I'm trying to post multiple .swf objects into one html page.  The first .swf object plays fine, but the second one does not load.  I've searched all over for the answer, but I do not know what to do (plus, I'm a Flash noob).  My page is http://users.wpi.edu/~cdaley_jw/animation.html, so please feel free to check out my code.
    Dreamweaver tells me that swfobject.registerObject does not exist, or something like that, but I see this code being used elsewhere.  I have swfobject.js in my main folder, too.  I haven't the slightest clue what I'm missing.
    Thank you very much,
    Chris

    I'd suggest you get the second .swf working BY ITSELF on a separate, new, blank page before worrying about how to get two working on one page. Your problem may have nothing at all to do with the fact that there are two .swfs on the page.
    Looking in the cach after downloading your page,
    http://users.wpi.edu/~cdaley_jw/Daley_Christopher_Walk_Cycle.swf
    is downloading... but it's only the player, not the .flv file that it's looking to load and play.
    http://users.wpi.edu/~cdaley_jw/Daley_Christopher_Walk_Cycle.flv
    does exist on the server at the address above but is not being called by the video player... the .swf. So the problem may be that the url to the .flv is wrong in the .swf or is missing completely.
    You'll have to fix that first and then worry about 2 swf on one page. So step back, get that second .swf working on a page all by itself, then move on.
    Best wishes,
    Adninjastrator

  • Html links target another movieClip in same movie

    OK, here's what I am trying to do. I have figured out how to
    read in an html file and format it (somewhat) with CSS in flash. I
    need to have the links in the html open in a separate movieClip,
    etc. on the same page. Picture one column of html text with links
    to content that appears in column 2. Is this possible? I am at a
    loss and have a serious deadline approaching!
    BTW, does anyone know what the trick is to set line-height on
    html text in Flash? I was very excited to learn that Flash allows
    the use of CSS to format html text in Flash. That is until I
    learned that the set of CSS attributes is SEVERLY limited. There is
    no line-height attribute!!! DUH!!! What kind of stupidity says
    "Let's allow the use of CSS, but only a few attributes."
    Thanks,

    that's possible, but you can't use a html file and expect its
    links to work like that. you can use the asfunction() to have links
    in (column 1) text execute actionscript that affects content in
    column 2.

  • Detecting and displaying images inside SWF from same web page its embedded in

    Great forum and appreciate the great help I've been getting
    here. I am getting a bit more used to Flex now - the collection of
    controls is pretty amazing.
    I am trying to create an ImabeBrowse.SWF which when embedded
    on a web page, it would then automatically show thumbnails of all
    the images from that same page. Has anyone done anything like this
    in AS3?
    From documentation, it sounds like I would need to write some
    Javascript which would traverse the HTML's DOM to get all image
    URL's, and then pass these into the SWF?
    If one of you experts could share some code, that'd be
    greatly appreciated!!

    Asking for more.........
    Yes, I do agree there is no need to create an additional DAD when we want to call a procedure from infrastructure database (iasdb) because giving grant to public or portal_public schema is enough.
    But why is it that even after following the right way to create a DAD for HR schema in infrastucture database fails to call a procedure?
    The error which I get is:-
    Database Log In Failed
    TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid and the database listener is running.
    The details for rajhr DAD
    Database Connectivity Information
    Database Username : HR
    Database Password : hr
    Databse Connection String : <blank>
    I have left database connection string blank as the infrastructure database is local.
    Is it that I cannot have two DAD for a local database eventhough they point to two different users?
    Med Vennlig Hilsen
    Rajesh

  • I'm trying to create a servlet that add something to the same html page.

    Hello, below is my code: I'm trying to type a string in a field (html) and have it add to my vecctor, which is what I'm not sure how to create.
    Basically everytime I type something on this field I want it to refresh itself but kind of add the new text in some sort of tables....but I can;t get the vector to work..and not sure how to create it.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class Guestbook extends HttpServlet
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              String add = request.getParameter("add");
              out.println("<html>");
              out.println("<head>");
              out.println("<title>Add</title>");
              out.println("<LINK rel='stylesheet' type='text/css' href='http://localhost:8080/BookNook/kool_style.css' />");
              out.println("</head>");
              out.println("<body>");
              out.println("<form name='form1' method='get' action='http://localhost:8080/BookNook/servlet/Guestbook'>");
              out.println("Name :");
              out.println("<input type='text' name='add'>");
              out.println("<input type='submit' name='Submit' value='Add'>");
              out.println("</form>");
              vector names = new vector();
              out.println("<br>");
              out.println("<hr width='500' size='3'>");
              out.println("hello " + add);
              out.println("</body>");
              out.println("</html>");
    }

    Hello
    I don't qualify for a java guru, butI can offer some advice.
    I don't know of any reason that a vector couldn't apply in this situation. The only issue with the code you posted is that vector is lowercase. Vector names = new Vector(); and names.add(add); should work in theory.

  • Html link to multiple swf files on 1 html page

    i have a html page that has multiple (20) links to video files, i would like to play these files in the same position, within the same html page. therefore saving myself having 20 html files with the separate swf files embedded. firstly i was planning on converting my .mov files to swf to make then smaller.
    my query is, what is the best way to 'house' a swf file(s) that plays when clicked on the relative link on that page.
    i have build the page using CSS and have limited javascript knowledge although im keen to learn.
    cheers

    VIDEO GALLERY --
    You need a Flash player that supports a playlist.  If you're good with Flash and Action Script you could build a custom player.  If not, pick-one from the links below:
    Wimpy Rave simple to deploy, dirt simple to update playlists by uploading media to wimpy folder.
    WWD Player --
    http://www.woosterwebdesign.com/flvplayer/
    JW Player --
    http://www.longtailvideo.com/
    FlowPlayer --
    http://flowplayer.org/
    YouTube --
    http://code.google.com/apis/youtube/getting_started.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Loading swf into empty mc in a html page

    Hello Flashers,
    I've set up a html page that contains a swf file with an
    empty movie clip in which I wish to load another swf.
    However I trie to do it, it just won't listen.
    Can anybody help me with this.
    Situation:
    html page (complete one, with tables etc.) contains main swf
    file (in a table) which contains an empty movie clip.
    Within the main swf there is a button which should load
    another swf file into the empty movie clip.
    What happens is that the external movie clip is loaded into
    level 0 of the main movie.
    It usualy works fine just with flash site but within the html
    page it results differently.
    Is it possible to get it right.
    Thanks
    Justin Time

    Urami, thanks for your interest for helping me ( and others,
    as far as I know )
    I'll try to explain it in more details ( although english is
    not my language)
    I've made a html page which contains a swf file ( theMAIN )
    in one table, other tables are filled with gif's, jpeg's etc.
    In the main movie - theMAIN - there is a empty movie clip
    with instance name "deder_mc" which is ment to accept loaded swf's.
    There is also a button with action ---- on release :
    _global.theMAIN.loadMovie("./swf_s/000_studioG.swf", "deder_mc");
    That means, when user click this button movie
    000_studioG.swf should be loaded into deder_mc empty movie
    clip.
    The movie 000_studioG.swf is located in swf_s folder in site
    root.
    _global.theMAIN = this;
    is a action script in a first frame of the main movie so it
    build a reference to it.
    I've done it before but site was built complete in Flash and
    I did not had any problems with loading external movies into empty
    movie clips. Not long before I've red somewhere(don't remember
    where) that this don't work in swf in a html page.
    But I live in a hope that I would be able to build a html
    site which contains swf which can load external movies into empty
    movie clips. So I am looking for solution.
    I hope it's enough information for you to tell me a solution
    if you know the right answer.
    Thank you.

Maybe you are looking for