×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Image rotates if movie clip position changed before image loading

    Hi,

    I need to dynamically load images from an array to static movie clips on the design. The image display needs to be slided using a timer, by left/right arrow keys, thus changing the images in the view. If the slide begins before the image load is complete, the image is loaded abnormally to a different position. While, if I wait for the load to complete, before sliding the images, everything is fine.

    How can I control image repositioning if the parent movie clip changes its position before image load?



    Refer http://thethoughtprogresses.blogspot...blog-post.html for problem description.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Image rotates if movie clip position changed before image loading

    Hi supriyaakg,
    Cant see the exact problem because picture is not very much clear. But why not use loader class with attachMovie or createNewMovieClip API. In such cases, we usually create a class and instead of using a static movie clip for each image we use single holder and attach number of movie clips to it depending upon the dynamic array.Because later we may need to reuse that component. Moreover, u can make the user wait until the graphics get load or let us know what class u r using to load images and attach them by showing ur AS (obviously ,not the whole code but the code causing the issue). I will take a look at them once get some free time.

    Best Regards,
    SajiSoft

  3. #3
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Image rotates if movie clip position changed before image loading

    Hi Sajisoft,

    The image movement is like the youtube mobile app - the centered image is enlarged and in the beginning, the first image is centered. Then on scrolling to the right, the images move to the left and keep sliding till it reaches the last image, where it stops sliding. Then to go back to the first image, scroll left so that the images move right. I have used 7 static movie clips, because 5 of them are in view and the rest 2 already loaded with new images to aid quick scrolling.

    I dont mind sharing my code, which is below (you would need a long time to understand it, since I have done everything manually, as I dont know how to use classes for dynamic components and I am working in AS 2.0 (FL 3.0)

    Please check new images with the code at http://thethoughtprogresses.blogspot...blog-post.html

    Btw, I tried using the workaround of sliding only after all images are uploaded, it worked, although very slow as the movement won't start on left/right arrows unless all images are loaded.
    Regards,
    Supriya
    Last edited by supriyaakg; 2010-12-30 at 09:18.

Similar Threads

  1. Load images from library to empty movie clip
    By elminator in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2011-04-21, 07:55
  2. can't load movie image taken by camera
    By beblank in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2010-02-19, 15:37
  3. Replies: 0
    Last Post: 2010-01-07, 07:04
  4. how to chanage the position of the image
    By j2me_beginner in forum Mobile Java General
    Replies: 6
    Last Post: 2009-09-22, 08:24
  5. Position of Image in a Dialog?
    By SymbieRahul in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-02-09, 09:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×