Flash image presentation

Hi I am trying to create a flash player to display images in sequence using Flash player & ActionScript.  The code below has lots of errors and I can’t work them out. I have programmed in other languages and am perfectly aware that something like this.
*code*
var imageLoader:Loader;
imageLoader = new Loader();  // 1120: Access to undefined property imageLoader
*/code*
OR
*code*
var imageLoader:Loader = new Loader(); // 1046: Type was not found or was not a compile-time: Loder
*/code*
Are both acceptable.
*code*
package code
     * MovieSlides :
     * Demonstrates a PPT slide show.
     * See MovieSlides.fla
    import flash.events.Event;
    import flash.display.MovieClip;
    import fl.containers.UILoader;
    public class MovieSlides extends MovieClip
    var imageLoader:Loader;
    imageLoader = new Loader();  // Error dosen't understand previouse line.
    //var myTimer:Timer = new Timer(2000,8);
    //myTimer.addEventListener(TimerEvent.TIMER, timerListener);  // Error dosen't understand previouse line.
     var MyImages:Array = new Array(
    "S_DSC_0106.jpg","S_DSC_0218.jpg","S_DSC_0768.jpg",
    "S_DSC_0790.jpg","S_DSC_0929.jpg","S_DSC_0218.jpg"
        public function MovieSlides()
            // constructor code
            loadImage("S_DSC_0218.jpg"); // remove & replace below
            // trace("I am here");
            // myTimer.start();
            // SitBackRelax;
        function loadImage(url:String):void
            // Set properties on my Loader object
            // imageLoader = new Loader();
            imageLoader.load(new URLRequest(url));
            imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
            imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
        function SitBackRelax():void
            // work through image array and call loadImage()
            // Does imageArea.addChild() ad each image? out of memmory !
*/code*
The same problem is for the next two (commented out)  timer lines

I have done all this.
// *** in class ***
import flash.events.Event;
import  flash.display.MovieClip;
import fl.containers.UILoader;
import  flash.display.Loader;
import flash.utils.Timer;
// *** in class ***
  public function MovieSlides() 
// constructor code
myTimer.addEventListener(TimerEvent.TIMER,  timerListener);
   //  D:\MoveSlides\code\MovieSlides.as, Line 30 1120:  Access of
undefined property TimerEvent.
//   D:\MoveSlides\code\MovieSlides.as, Line 30 1120: Access of undefined 
property timerListener.
   loadImage("S_DSC_0218.jpg"); // remove & replace  below
// myTimer.start();
//  SitBackRelax;
Desmond 
In a message dated 26/07/2011 14:25:45 GMT Daylight Time, [email protected] 
writes:
You  CANNOT in class header
1. declare variable and instantiate them  on a separate line:
This:
var  imageLoader:Loader;
imageLoader = new  Loader();
Must be:
var imageLoader:Loader = new  Loader();
2. Call instances API  in:
This:
var myTimer:Timer = new  Timer(2000,8);
myTimer.addEventListener(TimerEvent.TIMER,  timerListener);
Must be:
you have to move  addEventListener into some function, say constructor,
preferably - another  function that initiates class  variables.

Similar Messages

  • Flash image as a background?

    How do i get a flash image as a background in dreamweaver cs3.
    do i need to change the file name to somthing else?

    The parameter that needs to be set is "wmode"... and it needs to be set to "transparent".  This can be set in the HTML section of the Publish Settings in Flash (window mode selection list), or edited in the html embedding code if that parameter is already present.
    I would normally also recommend changing it to a jpeg or gif if it is not an animated piece except if it is using Flash drawn vector graphics... as a Flash drawn piece it will adapt cleanly to a resize where a jpeg or gif might lose clarity, and it could be a significantly smaller file than a jpeg/gif version.  Personally I never tried using a Flash piece as a background, so I'd say try it first anyways just to see if it works well... trying things is the best way to learn.

  • Why does my flash image viewer look different in firefox than in IE...

    So I have created a horizontal spry bar that overlaps a flash image viewer slide show. When i load the page in IE everything works fine, but as soon as you open it in firefox it works improperly...you can hit refresh in firefox and sometimes it resizes the image I don't understand how that is possible....if you have any input it would be greatly appreciated! Thank you!

    You need to be aware of the limitations of the various browsers and make sure you use web-safe fonts and colors.....
    http://www.iwebformusicians.com/WebMusic/FontsandColors.html
    Do a Command A on all your pages in iWeb to make sure that objects/text boxes are not touching or overlapping.
    Firefox has problems with displaying drop shadows/frames etc.
    To get help with specific issues you would need to tell us the URL of our site.

  • My js drop down is not showing up in safari with swishmax flash image

    Hi. I'm not a mac user so I'm a little out of my element here, but I've designed a new home page for my work site and and all is ok except that my flash image (created in swishmax) is interferring with the drop down js nav. Basically (from what i hear from my users) the drop down apears and then disapears upon selection. I was having a similar issue with firefox yesterday and that is now fixed by adding the wmode tranparent function. Looks like that function is not supported by safari? Is this problem because I am using swishmax?
    Please, if you can shed any light on the subject... I would be eternally gratefull!
    this is the page in question: www.arc.com
    Here is the code i'm using for my flash image:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=6,0,79,0"
    id="home3"
    width="800" height="280"
    <div class="jive-quote">
    <param name="wmode" value="transparent">
    <param name="movie" value="/images/index/home3.swf">
    <param name="bgcolor" value="#FFFFFF">
    <param name="quality" value="high">
    <param name="allowscriptaccess" value="samedomain">
    <embed
    wmode="transparent"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    name="home3"
    width="800" height="280"
    src="/images/index/home3.swf"
    bgcolor="#FFFFFF"
    quality="high"
    swliveconnect="true"
    allowscriptaccess="samedomain"
    <div class="jive-quote">
    </embed>
    </object>
    laptop   Mac OS X (10.0.x)  

    Hi
    sorry to say that the problem is still there.....
    works fine in Camino & Firefox.
    The page fails W3C validation, & Safari can be picky about that sort of thing. A valid doctype would be my first suggestion.
    iMac G5 rev B   (OSX 10.4.7)  2GB 250GB

  • Flash Image Gallery

    I purchased the Flash Image Gallery Extension. Installed and
    created several beautiful working galleries.
    In my image gallery (link below) there are Category titles
    176, 186, etc.. When you click the titles it changes the thumbnail
    pictures, while the main image remains the same.
    Question: I'd like to click on a Category Title and have the
    Main Fullsize image change as well. This would help visually to see
    that you have in fact changed to a new category. As it is now, it
    is not evident that you've changed category. You have to go to the
    tn images and click there.
    Can you give me some direction on how accomplish this?
    Perhaps a behavior - when category title is clicked on the main
    image will appear for that category? Seems like a simple edit. Can
    I do such an edit on a purchased gallery template file extension?
    New to flash, quite familiar with DW CS3. Below is a link to
    my gallery:
    My
    Gallery Link

    Hi
    These can be linked together - it will need you to change the
    destination of the 'Front Page' link (URL) to point to the
    appropriate 'Gallery', in the XML you can identify sections by
    using the same 'Gallery Id' from the link (URL) in the 'Front
    Page'.
    Does that make sense?, if you need more help then let me
    know

  • Dreamweaver/Flash Image/Link

    Hi. Thanks in advance for any help. I design a small website
    for the company I work for using Dreamweaver as the main program. I
    have never placed a Flash image before and cannot figure out how to
    place a link to another website on this image.
    Here is what I have now:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    width="392" height="72">
    <param name="movie"
    value="../images/NOLN_banner_v1.swf">
    <param name="quality" value="high">
    <embed src="../images/NOLN_banner_v1.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="392"
    height="72"></embed>
    </object>
    I need to link this to another website other than my own. I
    thought it would be like any other image in Dreamweaver. Help?
    I guess I should mention the Flash image was provided by a
    company wanted it linked to their site.

    > I need to link this to another website other than my
    own. I thought it
    > would
    > be like any other image in Dreamweaver. Help?
    It's completely unlike any other HTML element, since it's
    EMBEDDED in the
    page, not actually on the page.
    You cannot add a link to a Flash element using HTML. You must
    add this link
    in the Flash Actionscript. To do that, you would have to have
    Flash, and
    the SWF file's parent FLA file....
    Perhaps you could ask the provider to make the link for you?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "George Markle" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi. Thanks in advance for any help. I design a small
    website for the
    > company I
    > work for using Dreamweaver as the main program. I have
    never placed a
    > Flash
    > image before and cannot figure out how to place a link
    to another website
    > on
    > this image.
    >
    > Here is what I have now:
    >
    > <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=6,0,29,0" width="392" height="72">
    > <param name="movie"
    value="../images/NOLN_banner_v1.swf">
    > <param name="quality" value="high">
    > <embed src="../images/NOLN_banner_v1.swf"
    quality="high"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash" width="392"
    height="72"></embed>
    > </object>
    >
    > I need to link this to another website other than my
    own. I thought it
    > would
    > be like any other image in Dreamweaver. Help?
    >
    > I guess I should mention the Flash image was provided by
    a company wanted
    > it
    > linked to their site.
    >

  • Flash Image slideshow help

    Hello,
    I am trying to make a image slideshow for my companies new website.
    I used the Flash Image Viewer plugin from Dreamweaver, but it doesn't contain the transitional effect desired.
    Every tutorial I find talks about advancing the images through an interactive control, I just want the images to change by themselves and do a fade transitional effect between images.
    Can anyone please point me to a tutorial that has this w/o the intractive buttons?  I have been looking on the internet for hours and can only find tutorials / example w/ the intractve controls.
    Thank You for any positive direction in this.

    Hmm... no luck so far.  Thank You though for your suggestion.
    I am really "green" to flash and was only confused by the template provided by Flash.
    All I need to do is have images fade in and out of each other and then repeat over and over.
    I know this isn't too hard.  I found a tutorial that showed how, but my Firefox decided to close and I lost the page and haven't been able to find it since.  Tried the history log, but no luck.
    I will keep searchin...I know it's out there.

  • Flash image viewer, picture scale problem in CS3

    Please someone help me. I have built a website 3 years ago, and I still have this problem. In CS3 I added a flash image viewer (slideshow.swf) as a slideshow to show gardens we have made. When you first visit the site and look at the pictures (wich are bigger than the viewer window because of picture quality issues) they don`t shrink to fit into the viewer window, you only end up seeing a fraction of them. But when they download and you go back to see them again a second later, they become the right size. It also swiches to the right size when the loop play gets back to the first pic again.
    In the flash element properties I tried the different scale settings, and looked at other settings too but I couldn`t make it work.
    I think making the viewer window as large as the pictures, would look odd. Maybe buying on other slideshow program to insert into dreamweaver would work.
    If you would like to see the site its: tsugagardens.com , than look in the photo gallery and after the pics download go back with the back button and see the difference in the pics.
    Thank you for your efforts,
    Tibor

    function(){return A.apply(null,[this].concat($A(arguments)))}
    serestibi wrote:
    Please someone help me. I have built a website 3 years ago, and I still have this problem. In CS3 I added a flash image viewer (slideshow.swf) as a slideshow to show gardens we have made. When you first visit the site and look at the pictures (wich are bigger than the viewer window because of picture quality issues) they don`t shrink to fit into the viewer window, you only end up seeing a fraction of them. But when they download and you go back to see them again a second later, they become the right size. It also swiches to the right size when the loop play gets back to the first pic again.
    In the flash element properties I tried the different scale settings, and looked at other settings too but I couldn`t make it work.
    I think making the viewer window as large as the pictures, would look odd. Maybe buying on other slideshow program to insert into dreamweaver would work.
    If you would like to see the site its: tsugagardens.com , than look in the photo gallery and after the pics download go back with the back button and see the difference in the pics.
    Thank you for your efforts,
    Tibor
    Here is the code for the image viewer

  • Flash Slide Presentation Format vs Flash File

    I mistakenly made a fairly robust animation (15 layers about 5 min long with sound) in a Flash Slide Presentation document. The entire animation sits in slide number 1 (no other slides in this doucument).  I need to take this animation out of the Slide Presentation mode an put it into a regular flash file because other applications are reading the presentation holder slide and not reading the animation. Is there a way to get rid of the "Presentation (parent) holder slide or do I need to copy the whole thing to another document? If so how do I do that? Thanks in advance for your help,

    shift-click and drag across all the frames of your animation to select all the frames, then right click and click copy.  go to a new swf and right click on a frame and click paste.

  • Flash Slide  presentation and movieclip looping

    Hi,
    Im having a problem with the flash slide presentation. I have
    on the main timeline of one of my slides a movieclip. When i play
    the movie, the clip will loop endlessley. I would like the movie
    clip to play just once. In a regular flash movie this would not be
    a problem - i could put a stop action on the last frame of the
    movieclip. but, doing that in the context of a flash slide freezes
    the movieclip at the begining so it does not play at all..
    help!

    Ok, Ive managed to solve item 2. - if you set in the slide
    component inspector - "playHidden=false" then the slide animation
    will restart any time you reenter the slide. Im still lacking an
    understanding of how to stop a motion tween from repeating itself
    when it's contained within a movie clip as a motion tween timeline
    cannot recieve fram actions apparently...

  • Flash Slide Presentation...how to control volume?

    Hello,
    I am working in Flash Slide Presentation mode. I have a
    started a sound file playing on the "master" slide and I want it to
    play throughout my entire presentation. However, on a couple of
    slides, I want to play some short voice clips. How can I "turn down
    the volume" a bit on the main sound file so as to hear the short
    voice clips? And then turn it back up when the voice clip ends?
    I understand basic Actionscript. Can anyone tell me the code
    or point me to a tutorial which I can use to accomplish this?
    Thanks in advance.

    Ah, I was tying the (unavailable ) controller number and I didn't see the pitch controller option spelled out in plain sight!

  • Client says can't see Flash images

    Let me request your patience in advance - I don't have many
    details to provide so I know the possibilities are wide open and
    therefore difficult to pinpoint. Here goes.
    We created an HTML website with some flash content and some
    static jpeg images. My client's client says he cannot see the flash
    images. All I know is...
    -The client is on Win2000
    -He uses a version of IE
    -He does not get prompted to install ActiveX controls
    -He says he does not see the image placeholders in place of
    the Flash animnations
    What do I need to ask this individual in order to pinpoint
    the problem?
    -what version of IE he's using and Flash player?
    -does he have install Active X prompt deactivated?
    -anything else?
    -is there something with Win2000 that might affect what's
    going on?
    The person having difficulty is from a very large corporation
    and no doubt has an IT dept. Any suggestions on going through
    them???
    Thank you

    Hello Jamie,
    First I'd have the client visit this page and verify what
    version (if any)
    of Flash they have installed:
    http://www.adobe.com/products/flash/about/
    Can you send a link to the page you are trying to show the
    client?
    Jesse H.
    Adobe Community Expert
    My site:
    http://www.jharding.com
    Free Blog Radio:
    http://www.tornadostream.com
    > Let me request your patience in advance - I don't have
    many details to
    > provide so I know the possibilities are wide open and
    therefore
    > difficult to pinpoint. Here goes.
    >
    > We created an HTML website with some flash content and
    some static
    > jpeg
    > images. My client's client says he cannot see the flash
    images. All I
    > know
    > is...
    > -The client is on Win2000
    > -He uses a version of IE
    > -He does not get prompted to install ActiveX controls
    > -He says he does not see the image placeholders in place
    of the Flash
    > animnations
    > What do I need to ask this individual in order to
    pinpoint the
    > problem?
    > -what version of IE he's using and Flash player?
    > -does he have install Active X prompt deactivated?
    > -anything else?
    > -is there something with Win2000 that might affect
    what's going on?
    > The person having difficulty is from a very large
    corporation and no
    > doubt has an IT dept. Any suggestions on going through
    them???
    >
    > Thank you
    >

  • Flash Image Viewer

    I am creating a page in DW8 and have inserted an instance of
    the Flash Image Viewer though despite changing the parameters in
    the Tag Inspector and the Flash Element pane to say that the
    controls should not be visible - they are and the pictures do not
    show when I preview the page in the browser (IE7). I have created
    on another page previously in another site where this works
    perfectly. Can anyone make any suggestions?
    The other odd thing is that when I preview in Opera or
    Mozilla Firefox, they work. The same when I publish.
    Working site =
    http://www.fontanadesign.co.uk/hotel/double.html
    Non-working site =
    http://www.fontanadesign.co.uk/harmony
    Any suggestions gratefully received.
    Stevie

    Please, first make a difference:
    Are you trying to display a JPG file or a Flash
    Video/animation ?
    When you are designing the web site, you choose which one you
    are going to insert on the page: In this sense: is you need to put
    a Flash File, go to: Insert / Media / Flash and then choose the
    file you are going to insert in DW.
    On the other hand, If it's a JPG file you insert in a
    different manner: select: Insert / Image , and then choose the JPG
    file.
    Rememer that the same path you are giving to the files (JPG
    or Flash) is going to be claimed by the server, so create the same
    directories containing the same names, in your hard drive and on
    the server.
    To finish it, it doesn't matter if you have the Flash
    program. You only need the Flash Reader, but it has to be the same
    version as the file you are using (it is much better, not totally
    necesary).
    Well, hope it will be usefull, best regards

  • Flash Slide presentation - mouse wheel

    Hi
    Is it posible to custom flash slide presentation to respond to mouse wheel ?
    can it move to next and previous scene by moving the mouse wheel?
    Please advice

    i am working in AS2

  • How to create a home page (with flash images) in Oracle Portal  10g

    Hi,
    I want to create a home page in Oracle Portal 10g using flash images.
    How to create all those things ?
    Weather it should be created in pages or pagegroups or HTML portlet / some other.
    please help me.

    You can find in knowledge exchange a script to create an flash file item type. With this installed you can add a flash file to an item region on a page.
    Grtz,
    Dirk

Maybe you are looking for