[Flashcoders] how to get all the mc's that have a .onRelease event
Hi all, Well the title says everthing, I need to know if I can loop over all mc's in a movie and add them to an array so I can enable/disable the onRelease event based on some conditions. TIA Marcelo Wolfgang ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Multiple moviecliploaders
Thanks for all the replies, and yes ... 2 is the hardcoded limit in simultaneous http streams unless you change it you better have this in mind, and it's because of it that I need to have a loding graph inside my mc ... The main.hideMc(target._parent.loading_mc) did the trick for me Thanks again Marcelo Wolfgang ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Multiple moviecliploaders
Hi all, I'm using the movieClipLoader class to load 6 different images 'simultaneous' but since it's the same object that got called every time the .onLoadInit on happens for the last call, does anyone has a clue how I can make this: function displayThumbs() { for (i = 0; i modelsArray.length; i++) { var path:String = http://www.bottero.net/2008/images/modelos/s/ref; + modelsArray[i] + s.png; loadImage(path,thumb_mc); } } function loadImage(imagePath, targetMc) { var container_mc:MovieClip = targetMc.img_mc; var loading_mc:MovieClip = targetMc.loading_mc; mclListener.onLoadInit = function() { main.hideMc(loading_mc); }; img_mcl.addListener(mclListener); img_mcl.loadClip(imagePath,container_mc); } var mclListener:Object = new Object(); var img_mcl:MovieClipLoader = new MovieClipLoader(); work for multiple loadings at the same time ? TIA Marcelo Wolfgang ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Problem targeting a movieclip
Hi list, I'm trying to access multiple movieclips that path names are stored in an array, this array is populated with the names when an area load and its cleaned when an area unload. Here's the code I have so far: trace(thisRoot.areaLoader_mc.txt_galeria_mc); // if I delete this the next one traces undefined trace(thisRoot.areaLoader_mc.txt_galeria_mc.txt_img05_mc); // this is the full path, it works trace(text_area_array[1]) // txt_galeria_mc.txt_img05_mc (is a string) what I'm trying to do trace(thisRoot.areaLoader.text_area_array[1]) // undefined trace(eval('thisRoot.areaLoader.'+text_area_array[1])) // undefined Can anyone help me figure out how I can target my mc so I can run some stuff on it? TIA Marcelo Wolfgang ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Classes 101 [was: Version control and Flash ]
ok let me see if I get this right then: class MyForm extends MovieClip{ // ok so now I can call a movieclip.MyForm and it will execute the code that is inside this ( add a function to the button onPress ), the button should be created here or it can be an symbol in the lybrary that I will put on the stage with a normal attachMovie ? this is the part that I don't get... private var btClose_mc:Button; // just declared a variable that is only accessed inside this class, so If I use btClose_mc anywhere else it will be undefined right ? private function onLoad(){ bt.Close_mc.onPress = Delegate.create(this, this.myFunction); } // same thing as before, this function is only visible inside of the class, and it only be avaible when the button is created, it will assign myFunction to it's onPress event handler. private function myFunction(){ doSomething } // the function that will be called when you have the onPress event fired. Marcelo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Infinite scroll problems
Hi list, I'm having a problem with a regular infinite scroll. I have the same code in 3 different fla's and it's working on 2 of them only and I can't find what's causing the problem The problem is that it get itself playing both the 'if's' when it's scrolling to the right ( or if I change the if order, it stops when it's scrolling to the left) Here's the code from the fla that is working: var speedLimiter:Number = 25; var colStartX:Number = colScroll_mc._x; var space:Number = 20; var scrollReset:Number = colStartX - colScroll_all_mc._width - space; function initColScroll() { var colScroll_all2_mc:MovieClip = colScroll_all_mc.duplicateMovieClip('colScroll_all2_mc', this.getNextHighestDepth()); colScroll_all2_mc._x = colScroll_all_mc._x + colScroll_all_mc._width + space; colScroll_mc.setMask(colScrollMask_mc); this.onEnterFrame = function() { var point:Object = {x:_xmouse, y:_ymouse}; localToGlobal(point); var isOverMask:Boolean = colScrollMask_mc.hitTest(point.x, point.y); if (isOverMask) { var moveScroll:Number = colScrollMask_mc._xmouse; colScroll_mc._x -= (moveScroll - (colScrollMask_mc._width / 2)) / speedLimiter; if (colScroll_mc._x = colStartX) { colScroll_mc._x = scrollReset; } if (colScroll_mc._x = scrollReset) { colScroll_mc._x = colStartX; } } }; } initScroll() And here's the code for the page that isn't working ( only the part between the if(isOverMask)), all the other stuff is equal if (isOverMask) { var moveScroll:Number = capasMasks_mc._xmouse; capas_mc._x -= (moveScroll - (capasMasks_mc._width / 2)) / speedLimiter; trace(capasStartX + '=' + capas_mc._x + '= ' + scrollReset); if (capas_mc._x = scrollReset) { capas_mc._x = capasStartX; } if (capas_mc._x = capasStartX) { capas_mc._x = scrollReset; } } also I've uploaded the one who isn't working to http://www.zerocinco.com.br/bottero/scroll/ Please advice []´s Marcelo Wolfgang ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Infinite scroll problems
Hi list, I'm having a problem with a regular infinite scroll. I have the same code in 3 different fla's and it's working on 2 of them only and I can't find what's causing the problem The problem is that it get itself playing both the 'if's' when it's scrolling to the right ( or if I change the if order, it stops when it's scrolling to the left) Here's the code from the fla that is working: var speedLimiter:Number = 25; var colStartX:Number = colScroll_mc._x; var space:Number = 20; var scrollReset:Number = colStartX - colScroll_all_mc._width - space; function initColScroll() { var colScroll_all2_mc:MovieClip = colScroll_all_mc.duplicateMovieClip('colScroll_all2_mc', this.getNextHighestDepth()); colScroll_all2_mc._x = colScroll_all_mc._x + colScroll_all_mc._width + space; colScroll_mc.setMask(colScrollMask_mc); this.onEnterFrame = function() { var point:Object = {x:_xmouse, y:_ymouse}; localToGlobal(point); var isOverMask:Boolean = colScrollMask_mc.hitTest(point.x, point.y); if (isOverMask) { var moveScroll:Number = colScrollMask_mc._xmouse; colScroll_mc._x -= (moveScroll - (colScrollMask_mc._width / 2)) / speedLimiter; if (colScroll_mc._x = colStartX) { colScroll_mc._x = scrollReset; } if (colScroll_mc._x = scrollReset) { colScroll_mc._x = colStartX; } } }; } initScroll() And here's the code for the page that isn't working ( only the part between the if(isOverMask)), all the other stuff is equal if (isOverMask) { var moveScroll:Number = capasMasks_mc._xmouse; capas_mc._x -= (moveScroll - (capasMasks_mc._width / 2)) / speedLimiter; trace(capasStartX + '=' + capas_mc._x + '= ' + scrollReset); if (capas_mc._x = scrollReset) { capas_mc._x = capasStartX; } if (capas_mc._x = capasStartX) { capas_mc._x = scrollReset; } } also I've uploaded the one who isn't working to http://www.zerocinco.com.br/bottero/scroll/ Please advice []ÂŽs Marcelo Wolfgang ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Job Post - Gringo.nu is hiring
Damn, I really want this position ... too bad I'm in Curitiba right now and can't relocate at this moment :( Marcelo Wolfgang Zeh Fernando wrote: Hey list, Gringo.nu, the company I freelance for, is looking for experienced Flash developers. The studio is located in São Paulo, Brazil, and this is for *on-site*, full-time roles. It's also a great place to work for. There's a bunch of Brazilian developers on this list and that's why I'm posting this here (this email is in english out of respect for the list). Anyhow, candidates can find some more information, including contact email, here: http://labs.zeh.com.br/blog/?p=115 Thanks, Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] tween in a function doesn't working
Hi list, I have some code that I've made that I don't understand why it is failing, and I want your help this works var time = .3; var easeType = mx.transitions.easing.Regular.easeOut; var response2_mc:MovieClip = this.frmContato_response2_mc; var plus6_mc:MovieClip = this.frmContato_plus6_mc; plus6_mc.plus6_btNext_mc.onRelease = function() { plus6_mc._y = -160; response2_mc._y = 123; var startY = response2_mc._y + 10; var endY = response2_mc._y; yTween = new mx.transitions.Tween(response2_mc, _y, easeType, startY, endY, time, true); alpha_Tween = new mx.transitions.Tween(response2_mc, _alpha, easeType, 0, 100, time, true); }; this don't var time = .3; var easeType = mx.transitions.easing.Regular.easeOut; var response2_mc:MovieClip = this.frmContato_response2_mc; var plus6_mc:MovieClip = this.frmContato_plus6_mc; function animateIt(tgt){ var startY = tgt._y + 10; var endY = tgt._y; yTween = new mx.transitions.Tween(tgt, _y, easeType, startY, endY, time, true); alpha_Tween = new mx.transitions.Tween(tgt, _alpha, easeType, 0, 100, time, true); } plus6_mc.plus6_btNext_mc.onRelease = function() { plus6_mc._y = -160; response2_mc._y = 123; animateIt(response2_mc) }; I have many tweens like that, is that why I want to have a function to just call it everytime it's need, any clues why it don't work when it's called via function? TIA Marcelo Wolfgang ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Tips and advice for online bugtracking
Hi all, I have the type of problem I hate the most when developing flash. My swf works fine locally, but it doesn't work at all on the web. And I'm about as clueless one can be about debuggin this kind of problem. So... can anyone spare some advices? TIA Marcelo Wolfgang ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tips and advice for online bugtracking
Mike Lyda wrote: another option.. flashtracer for firefox (from Alessandro Crugnola) https://addons.mozilla.org/en-US/firefox/addon/3469 you need the flash player debug version installed, but flashtracer can be very handy and entertaining.. (browse the web and see what others are tracing out of their SWFs..) I have this installed but I can't make it work ( just lost about an hour in the morning trying to make this work again with no success ) ... I've tried the debbugers Hans told, but none worked ( or it didn't install on CS 3, or my dumbness can't make them work since I'm a low to mid level actionscripter )... I still can't figure out what's happening on the browser that make the movie do not work ( it is calling a moviecliploader.onloadinit() but it's not displaying the the loaded movieclip ... ) Thanks again ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tips and advice for online bugtracking
Hans Wichman wrote: Hi, are you using as2 or as3? greetz JC as2 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tips and advice for online bugtracking
John VanHorn wrote: works in IDE, but not on server usually = security/crossdomain issue, or path issue. look for 404's using servicecapture. essential debug tools: flashtracer - links above servicecapture - http://kevinlangdon.com/serviceCapture/ Thanks for the info about servicecapture, but it wasn't a 404 the problem ... as is turned out to be, it was simple and stupid mistake I was making of calling the wrong file. I've coded stuff that I never had did before and I was blaming this for the problem when I should look for the simple things first. After about 8 hours trying to figure out ... Thanks for all who replied and gave me their opinions .. I've learned a lot here today ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Mc animation don't play after onRelease event
Hi list, I'm coding a site that has a submenu that brings items to download, currently there are 2 itens 'papel de parede' ( wallpapers ) and newsletter. this page is up at: http://w3ol.com.br/royalciclo/test/test.html if you click between the 2 itens on the submenu (WHITHOUT CLICKING IN ANY ITEM), you will notice that a nice 'out' animation is played. but as soon you click on any item, it won't animate no more, it stay static on the screen till a ._visible = false is applied later on the mc. After this, even the 'load' animation doesn't 'work'. the movie got 160 lines of code so I'm placing the .fla at this adress if anyone want to take a look and help me figure out what's happening here http://w3ol.com.br/royalciclo/test/test.fla I can't figure out why after the onRelease action the movieclip don't obey his next keyframe on the 'out' animation. TIA Grillo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How to create a preloader that plays in full
Just from the top of my head here, so excuse if anything is wrong but couldn't you put at the end of the preload animation something like stop(); if (getBytesLoaded() == getBytesTotal()){ play(); } else { this.onEnterFrame = function() { if (getBytesLoaded() == getBytesTotal()){ delete this.onEnterFrame play (); } } HTH On 10/5/06, Pete Miller [EMAIL PROTECTED] wrote: A preloader by definition is a short, small movie that loops endlessly until the swf is completely loaded; the load-end stops the movie. You're describing a movie that wants to end when it reaches its last frame. What does it have to do with the load process? You cannot guarantee which will end first, the movie or the load, so you need to know what you want to happen in either case depending on which event happens first. P. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Aaron Roberson Sent: Thursday, October 05, 2006 12:40 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] How to create a preloader that plays in full Thanks for the sarcasm but I am not just trying to create a simple preloader that plays until the movie has loaded. Rather, I want to create a preloader that has two functions: 1) to preload the movie (of coarse) and 2) to play the entire preloader's timeline even if the movie has already been preloaded. It's the second part that I am having trouble with. A traditional preloader plays until the movie has been loaded. Instead, I want the preloader to play in entirely even if the movie has already been loaded. This way, the preloader is not just a progress bar but an element of the movie. I hope that makes sense. On 10/5/06, Michael Stuhr [EMAIL PROTECTED] wrote: Aaron Roberson schrieb: I want to create a preloader that plays through even if the rest of the timeline has been loaded. I saw a tutorial on this some time back but can't find it now. Forgive me if this is a common request or something but I have searched and searched but can't find it. The problem is probably that I'm not sure what keywords to use for a good search. you cannot find *anything* about how a *preloader* is made in flash ? is the list archive down ? is flashkit down ? is google down ? micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Saluti alla ML
I'm 2 :) been on this list for almost 3 years :) lurking and de-lurking when needed ( I hoped to help more, and read more, but I'm very busy ) Julian, I'm in Curitiba, Brasil since the beginning of the year. And this was the first time ever I try to translate Italian. []´s ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Saluti alla ML
It's Italian a rough translation : Hi everybody I've just subscribed Just want to say hello to all in the list but,well I don't speak Italian, never did any course either, so maybe it's all the opposite of what I've translated On 9/28/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: It's definetly itallian. Can't speak it though :P On 9/28/06, vic [EMAIL PROTECTED] wrote: I parol Italiano un po ma non molto bene. e non lo so questa lista parlano italiano. Ma, come stai? Victor Haha, I hope she was speaking Italian, and for that matter I hope I was too. LOL -- Original Message -- From: Daniele La Delfa [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Thu, 28 Sep 2006 19:22:00 +0200 (CEST) Salve a tutti, mi sono appena iscritto! Volevo giusto salutare tutta la lista... A presto, Daniele ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Help with safari
Thanks Paul, I've uploaded the playerinstall.swf to the server, can you retest with that config again please ? TIA Grillo On 3/24/06, Paul Evans [EMAIL PROTECTED] wrote: On 23 Mar 2006, at 22:37, Marcelo Wolfgang wrote: I've developed a site and I'm having trouble with Mac users, they say that they don't see the site. Can you all there with mac's test it out to me ? I think the problem is with older versions of the plugin ( the site are all exported for flash 7 but .. ) I don't have time to diagnose, but can confirm the following... On MacOS X 10.4.5 with Safari 2.0.3 and player 8.0.24.0 the site displays fine but... On MacOS X 10.3.9 with safari 1.3.2 and player 7.0.24.0 I just get a black rectangle in place of the SWF. Safari's activity viewer reports the following file as not found... http://www2.uol.com.br/camparirock/playerinstall.swf hth Paul -- [ http://www.creative-cognition.co.uk/ ] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Help with safari
Hi list, I've developed a site and I'm having trouble with Mac users, they say that they don't see the site. I'm using the detection kit provided by macromedia, and I think that's what's causing trouble to me. Can you all there with mac's test it out to me ? I think the problem is with older versions of the plugin ( the site are all exported for flash 7 but .. ) The url is http://www.camparirock.com.br TIA Grillo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Timeline sound delay
Hi list, I'm doing a freelance project, and I'm having problems with sound sync. I've placed a sound in the timeline and syncronized the animation, it was ok on the movie preview so I've published it. In my browser the syncing was all wrong, and again I fixed it. So I finished of the job and send it to my contractor, the sound was so delayed that he made me cut the animation in about 10 secs to almost sync with his computer. Now it is completely off sync in my machine, and I can't understand why that difference happens. Can anyone here throw some light in this issue ? Please, I want any tip you can offer. TIA, Grillo ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Changing text based on the time of a played media
Hmm, interesting, but will this work if I need to change the .mp3 file ? I have 10 different mp3's that will be played dependin on user selection ... TIA Grillo On 1/10/06, Thimon Sistermans [Us Media] [EMAIL PROTECTED] wrote: Hi, I don know if it works with mp3 but with flv you could use cuePoints. You add them to your media component before playing the file For example you could do something like this: for (var i = 0; i track.length){ // create unique cuepoint id var cuePointID = cuePoint_ + i; //add quepoint to mediaComponent myMediaComp.addCuePoint(cuePointID , parsInt(track[i].start)); } //create listener wich will be called when a quePoint is reached var cueListener:Object = new Object(); cueListener.cuePoint = function(eventObject){ trace(eventObject.cuePointName); } myMediaComp.addEventListener(cuePoint, cueListener); Succes! Thimon Hi list, I'm trying for a few hours to figure this out, and I was unable so I'm hoping that someone here can enlight me I have a media playback component on my stage, it will load diferent mixes from diferent dj's. Each dj will have a track list, I have the start and of every track, I've build a xml like this with the info ?xml version='1.0' encoding=UTF-8? set track start1/start end325/end titleEgoexpress/title artistKnartz IV/artist reclabelLadomat/reclabel /track track start326/start end550/end titleSRI/title artistYellow Fever AA1/artist reclabelForce Inc/reclabel /track track start551/start end780/end titleBasteroid/title artistRabimmel/artist reclabelAreal/reclabel /track /set The start and end time are in seconds ( I couldn't figure out the best way to do this, so I accept suggestions ) I also have 6 text fields on stage curr_title_txt, curr_artist_txt, curr_reclabel_txt, next_title_txt next_artist_txt and next_reclabel_txt. how can I check the media playback component for the playhead position to change the text on the text fields? (I've played with playheadTime and I think I'm on the correct track here ), but I can't figure out how to compare the value from the player with the data I loaded from the xml Any help will be appreciated TIA Grillo ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Changing text based on the time of a played media
Hi list, I'm trying for a few hours to figure this out, and I was unable so I'm hoping that someone here can enlight me I have a media playback component on my stage, it will load diferent mixes from diferent dj's. Each dj will have a track list, I have the start and of every track, I've build a xml like this with the info ?xml version='1.0' encoding=UTF-8? set track start1/start end325/end titleEgoexpress/title artistKnartz IV/artist reclabelLadomat/reclabel /track track start326/start end550/end titleSRI/title artistYellow Fever AA1/artist reclabelForce Inc/reclabel /track track start551/start end780/end titleBasteroid/title artistRabimmel/artist reclabelAreal/reclabel /track /set The start and end time are in seconds ( I couldn't figure out the best way to do this, so I accept suggestions ) I also have 6 text fields on stage curr_title_txt, curr_artist_txt, curr_reclabel_txt, next_title_txt next_artist_txt and next_reclabel_txt. how can I check the media playback component for the playhead position to change the text on the text fields? (I've played with playheadTime and I think I'm on the correct track here ), but I can't figure out how to compare the value from the player with the data I loaded from the xml Any help will be appreciated TIA Grillo ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders