×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    44

    Load images from library to empty movie clip

    Hi,
    I have just shifted from flash web development to Flash Lite.. Can any one please help me on how to code for loading images from library that is after creating an linkage property from the library to an empty movie clip on the stage... At present i am suing the below code which i s not working and S1 is the instance name of the image in the library..

    _root.createEmptyMovieClip("container",1);
    _root.container.load("S1", "S1", this.getNextHighestDepth());

    Regards,
    Elmi..

  2. #2
    Registered User
    Join Date
    Oct 2005
    Posts
    107

    Re: Load images from library to empty movie clip

    you will have to do attach movie...something like this

    _root.list_mc.myImages_mc.attachMovie("BuddylistItem", "BuddylistItemInstance"+i, _root.list_mc.myImages_mc.getNextHighestDepth());

    where "BuddylistItem" is the Identfier for the library resource.

    Ramesh

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    44

    Re: Load images from library to empty movie clip

    Hi Ramesh,
    Thanks a lot for your reply i am
    1) Are you creating those movie clips dynamically ?
    2) Why are you embedding 2 movie clips ?
    3) Can I create an single movie clip and load images ?

    I have tried the same method by converting my images to movie clip.. It worked fine but I have around 100 images so it will be a pain so i am requesting for any code to possible load images from library to a empty movie clip..

    Regards,
    Elmi...

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    107

    Re: Load images from library to empty movie clip

    I am not sure if images can be loaded from library directly without converting them to movie. Why dont you load them from file system? Latency issues?

    Ramesh

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

    Smile Re: Load images from library to empty movie clip

    Firstly, You can directly load Bitmaps from library but it is only supported in Flash Lite 3.1 :
    loadBitmap
    Secondly, if u have 100 images than it is good to store them on the filesystem and than by using loadMovie and unloadMovie , u can load and unload them respectively.

    Best Regards,
    SajiSoft

  6. #6
    Registered User
    Join Date
    Oct 2005
    Posts
    107

    Re: Load images from library to empty movie clip

    Yes. Saji made a good point. You can unload a movie if you use load method. Its a handy feature when you run into memory issues.

    Ramesh

  7. #7
    Registered User
    Join Date
    Apr 2011
    Posts
    16

    Re:how to load a imge on screen from the resources .qrc file

    i have make a resource file but i can not draw image on screen please send me some source code how to load image on screen by .cpp and .h.
    i am beginner in QT


    Quote Originally Posted by sajisoft View Post
    Firstly, You can directly load Bitmaps from library but it is only supported in Flash Lite 3.1 :
    loadBitmap
    Secondly, if u have 100 images than it is good to store them on the filesystem and than by using loadMovie and unloadMovie , u can load and unload them respectively.

    Best Regards,
    SajiSoft

  8. #8
    Registered User
    Join Date
    Apr 2011
    Posts
    1

    Re: Load images from library to empty movie clip

    I am getting problem to upload images....

Similar Threads

  1. Why data abort?
    By RapchikProgrammer in forum Symbian
    Replies: 8
    Last Post: 2010-05-13, 10:46
  2. Error loading connection when obfuscation high?
    By ejakkk in forum Mobile Java General
    Replies: 8
    Last Post: 2009-06-26, 12:54
  3. need information about j2me polish
    By rathikathangaraj in forum Mobile Java General
    Replies: 4
    Last Post: 2007-12-19, 09:01
  4. Can’t launch application on 6630
    By kaffemannen in forum Symbian
    Replies: 8
    Last Post: 2005-06-29, 10:49
  5. "Not found" on target 9500
    By alex_makarov in forum Symbian
    Replies: 10
    Last Post: 2004-12-03, 14:05

Posting Permissions

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