This is a discussion on "referencing createEmptyMovieClip with dynamic names" within the Flash & Multimedia Forum section. This forum, and the thread "referencing createEmptyMovieClip with dynamic names are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
referencing createEmptyMovieClip with dynamic names
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
referencing createEmptyMovieClip with dynamic names
Hi i almost have this but i have a dilema, can anyone please help?
I am trying to load a series of 33 images into my movie to create a slide show. now as creating say 100 individual movie clips is teadious i wanted to do it dynamically. My issue is that it creates the movieclips and loads the movies fine BUT does not retain the previous created movieclip. IE if i create 33 movies after the function completes only CLimage33 is the only one on the stage. all the others have dissapeared. ANY help will be apprecited. //------IMAGE Load---------------// imageCount = 1; pageCount = 1; maxImages = 1; function initLoadMovies() { if (_root.maxImages <= 33) { _root.createEmptyMovieClip ("CLimage"+_root.imageCount, this.getNextHighestDepth()); loadMovie ("images/"+_root.imageCount+".jpg", _root["CLimage"+_root.imageCount]); if (_root["CLimage"+_root.imageCount].getBytesLoaded() >= _root["CLimage"+_root.imageCount].getBytesTotal()) { trace ("CLimage"+_root.imageCount+" Loaded"); _root.imageCount++; _root.maxImages++; initLoadMovies(); } } } initLoadMovies(); function nextImage (){ if (_root.pageCount == _root.maxImages) { _root.pageCount= 1; } else { _root.pageCount++; _root["CLimage"+_root.pageCount]._y = 200; } } |
|
|
|
|||
|
Re: referencing createEmptyMovieClip with dynamic names
thanks to all who replied >_>..
the issue was.. _root.createEmptyMovieClip ("CLimage"+_root.imageCount, this.getNextHighestDepth()); i had to change it to _root.createEmptyMovieClip ("CLimage"+_root.imageCount, _root.imageCount); the this.getNextHighestDepth() set them all to the same depth and must have overridden the previous created movieclip on that depth level. hopefully this helps anyone who has had a similar problem |
|
|||
|
Re: referencing createEmptyMovieClip with dynamic names
Awesome! Thanks for posting your solution.
Sorry I didn't have a chance to respond, some issues came up this last weekend and I have been away working on those... Cheers! Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Tags |
| createemptymovieclip, dynamic names |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pulll Down menu referencing a list | rmcellig | Web Page Design | 8 | Feb 23rd, 2008 14:17 |
| Domain Names Help | crackafaza | Hosting & Domains | 7 | Oct 19th, 2007 16:12 |
| createEmptyMovieClip & onclick | R Verbrugge | Flash & Multimedia Forum | 7 | Sep 13th, 2007 15:34 |
| Referencing the original size of a .jpg... | DrGonzo | Flash & Multimedia Forum | 0 | Mar 15th, 2007 11:32 |