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

Similar Messages

  • Load random swf but not same

    someone here helped with the code to load random SWF files
    into a movie clip...however, i need to make sure it doesnt load the
    one that's already playing, that it goes on to a new one
    everytime..

    i dont think saying thank you really does it, but really,
    thank you.. you've helped me countless number of times, and it's
    only made me better at what I do, so I really am great full .
    Thanks again

  • Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc

    Hi,
    Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc.
    Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?
    12.1.4 / 11g db
    Appreciate your inputs.
    Thanks,
    K

    Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc. It should work.
    Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, What is the issue you have with R12?
    an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?What was Oracle feedback? Did they say it is certified and can be used?
    Thanks,
    Hussein

  • .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.

  • 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

  • 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

  • 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

  • Loading of MIME objects into HTML pages

    Hi Everyone
    I am trying to load two logos as mime objects into an HTML page.
    I am using
    call method web_page->load_mime_object
    After that I use
    call method web_page->show_url
    Whenever I call this last method with parameter in_place as a space (to call an external browser) my logos are not displayed.
    If I call the method with in_place as 'X' the logos appear.
    The mime objects reside in the SAP web repository (trans smw0).
    Any ideas how to pull the logos into the external page?
    Regards
    Johan

    Hi Satya
    Thanks very much for your reply. I do not use ITS for my purposes but it is something to be remembered for next time.
    I have actually solved the problem but only with a "second price" solution.
    In the HTML form I have pointed the source of my two images to a shared folder somewhere on our dev server. For our purpose this will always work.
    What I am thinking is that if SAP allows an external browser to be used it should also give the means of loading the images. Maybe I just don't know how.
    Now that I think about it more - I should go and try your suggestion in any case and see if it works. 
    I thank you again and if anyone comes with more ideas they will be as welcome.
    Regards
    Johan

  • 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

  • Design/gallery website - loading external SWF asset on splash page

    Hello all,
    This forum has been such a help with my website, i've found the answers to hundereds of questions but I've hit a bit of a brick wall and I wonder if anyone can help me.
    I have recently built a website http://www.intivision.co.uk/ using illustrator/flash/flash catalyst. It's still a work in progress and I'm happy with the gallery pages and general functionality but I'm having major issues with my splash/load screen and a few other niggles.
    The animation on the front page is a looping photo gallery i created in flash (as a .SWF) and imported into Catalyst. It is designed to play (and loop) indefinately after 2seconds of loading the title page. Half the time I access the site the animation does not load at all and just shows a blank screen and my logo. It will appear once the page is refreshed. A very bad first impression.
    I have a feeling this is because the SWF is externally loading the asset (which is only 350kb). Is there a solution or a way to imbed this animation so the entire project won't 'play' until this intro is loaded?
    Thanks - Tom
    ps Any other comments would be greatly appreciated

    Thanks for taking your time! Much appreciated.
    I like not complicated :-)  So it is now loading from the start - stretching over the whole timeline. How do I controll the visibility during the "HOME" = that is invisible?
    This is the code I use to load the external swf:
    var Xpos:Number=0;
    var Ypos:Number=0;
    var swf:MovieClip;
    var loader:Loader=new Loader();
    var defaultSWF:URLRequest=new URLRequest("main_movie_241x700.swf");
    loader.load(defaultSWF);
    loader.x=Xpos;
    loader.x=Ypos;
    addChild(loader);

  • Load random swf into movie

    I need to load a randomly selected .swf into my main movie.
    Have found the code below which does all the loading fine...
    ... however, I need to keep elements from the original, so is
    there a way to load the new movie INTO the main one?
    I think I might need to load into an empty instance? If so,
    what does my code need to look like?
    Thanks in advance

    You should use the MovieClipLoader class.
    var mcl = new MovieClipLoader();
    var lis = new Object();
    lis.onLoadInit = function(target:MovieClip){
    //target is loaded and ready when this fires
    mcl.addListener(lis);
    function loadFile(fileURL){
    mcl.loadClip(fileURL, content);
    Now you can just call loadFile with a url and it will be
    loaded into the
    clip 'content', which can be an empty clip on stage. You
    don't have to do
    anything in the listener, but you can set width, height,
    alpha etc. in
    onLoadInit.
    HTH
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How do I show the first record as selected on the first load of a Master/Detail html page?

    I have been looking for any reference to setting a selectrow onload or defaultrow and it seems all references to answers lead to missing pages or examples.
    I have created a master detail page using the insert spry function in DW5. I have had no trouble making it work or changing the css to show a selected column 0 (master) after the first click, but I would like to see the default first row shown as selected.
    I am such a javascript noob I need an example if possible.
    I followed Greg Rowis's example on AdobeTV "Creating A Progressive Enhancement" but this was not addressed.

    Thank you for the reply but it was not quite what I needed.
    My html div was/is
    <div spry:region="ds1" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" >{Industry}
        </div>
    </div>
    With the col0 renamed Industry and this works when I click (select) an Industry I get a change in my display to show which row is selected.
    See http://dev.workway.com/
    What I want is to have About Workway selected on page load. It is the default display but is not shown selected.
    Thanks again for your help.

  • Loading external swf`s into main page automatically after 300 frames

    hi guys
    i have a main file called DEMAND.fla that has a loader placeholder/positioner thingy in it with the instance name "loader_mc_james"
    when the page opens it uses the code below to load in an external swf named demand_001.swf. to the placeholder location
    loader_mc_james.loadMovie("demand_001.swf");
    now at the moment i have 6 external files, demand_001, demand_002, demand_003 etc and use 6 individual buttons located on the DEMAND.fla page that the viewer clicks on to load each page as required, it all works fine and I happy with it.
    In the future however i would like demand_001.swf to load up and when it gets to frame 300 autmatically load up demand_002.swf and so on.
    MY QUESTION IS: What code would i stick at frame 300 to get that to happen?
    Any advice would be appreciated.
    Ps, it would also good if all the other exteranl files were loading into memory in the background as soon as the inital page is opened.
    you can see what i have at the moment here
    http://www.omega-completion.com/downhole_demand_activated_technology.html

    What you could do is have the DEMAND file include a fiunction that manages the loading and have your loaded files call that function.  You could either have a variable that you increment to modify the name of the file to load, or just pass the name of the file to load in the function call.  For the latter of the two your DEMAND function to load the files could be something like...
    function loadDemands(swfFile){
         loader_mc_james.loadMovie(swfFile);
    loadDemands("demand_001.swf"); // to start things off
    Then, in frame 300 of the 001 file you can have...
    _root.loadDemands("demand_002.swf");
    If you prefer the first option, then your DEMAND file would do the work of determining who gets loaded next and your loaded files would call the function without the argument.  Something along the lines of...
    var currentSWF = 1;
    function loadDemands(swfFile){
         loader_mc_james.loadMovie("demand_00"+currentSWF+".swf");
         currentSWF += 1;
    loadDemands(); // to start things off
    Then, in frame 300 of the files you can have...
    _root.loadDemands();
    (NOTE: if _root fails, try _level0 )

  • Trouble loading external .SWF into my main page with preloaders

    Dear All,
    I am working on my first Flash project with AS3.
    The structure of the flash site is pretty simple. I have a
    stage 1165px wide x 710px height
    Inside my Stage I have an horizontal bar with a menu followed
    by a container right under.
    **** My goal
    is that whenever I click on one of the button on the menu, that the
    related external .SWF loads into
    the container with a preloading bar and %. *****
    I already did all my .SWF files and it is pretty frustrating
    at this point to be stuck at this point of development.
    Please help.
    -Alex

    Visit gotoandlearn.com. There is a video tutorial there
    regarding preloading that should answer most, if not all, of your
    wonderings.

  • Randomly load swf on html page load

    I am looking for a way to load random swf files on a page
    load.
    I will have 1.swf, 2.swf, 3.swf, and so on. I want my html to
    reference "randomnumber().swf" when it loads (or something like
    it). Any simple ways to do this? I'm a newb, so the more detail the
    better.
    Thanks in advance.

    I must be doing something wrong. First time I have ever
    messed with project.
    I created a new project and over in the project window I
    right-clicked and chose "Add File" and added my swf files. I went
    to INSERT | NEW SYMBOL and created a movie clip called mc0. I
    couldn't find where to change its position, so I tried CTRL-K on it
    and tried different alignments on the stage (I don't think that
    worked very well). I didn't know if you wanted the code on the
    first frame of the movie clip or the main timeline. Based on the
    code I thought the main timeline, but I put it in both just in
    case.
    Doesn't seem to work for me. Can someone fill in the gaps for
    me?

Maybe you are looking for

  • How to know the record status

    dear all i am new in adf. i have an entity object named Employee and an updatable view object named Employeevo. i created a simple .jspx page to display the employee in af:form. the page bindings contains CreateInsert operation. user can insert new r

  • My iMac won't support the latest version of iTunes which I need in order to add apps to my new iPhone5

    I recently purchased an iPhone5.  When I tried to sync it using my iMac with Lion, I was told to upgrade my iTunes.  I have the latest version of iTunes which my iMac will support but that won't work to sync my iPhone.  Are there other ways to sync m

  • ES2 best practice for how much stuff should be in one application?

    I'm wondering if there is a best practice/recommended amount of the maximum amount of forms/processes/etc that you should have contained within one application in ES2?  I have an application which has about 5 processes, and has over 300 xdp forms.  W

  • Enter subscripts at run time

    How can a user enetr subscripts into textfields when they are filling out the form?  I already have the form designed - this is not a design time question.  My users have reader 9.x and X.x  For example, they need to enter PuP4CO7 into a textfield, b

  • Better to resize JPEGs for a QT sequence before or while exporting from QT?

    I have several thousand JPEG files shot as a time-lapse sequence, at my DSLR camera's smallest size of 4288 by 2848 pixels. I want to sequence them as a QuickTime movie, for a final frame size of 1920 by 1080 pixels. Is it okay to batch resize the JP