[Flashcoders] calling an event function with a parameter that is a number

2009-05-23 Thread Isaac Alves
Hello! In my code there's a function that shows an image on the screen (or load the image and show a progress bar) that is called by clicking on a thumbnail, and uses a parameter [e.target.name] refering to the property name of the thumbnail clicked, which is an integer. The thumbnails are placed

[Flashcoders] problem with simple preloading, nothing appears on screen

2009-05-25 Thread Isaac Alves
Thanks Juan Pablo and Steven for the solution, it was very helpful! I'm struggling now with a weird problem: I've put an animation on frame 1 that keeps running in loop until the whole SWF file is loaded and the player moves to frame 2. Here is the code: trace ( hello );

[Flashcoders] Loading images at the same time, bugs in Flash AS3

2009-06-03 Thread Isaac Alves
Hello fellowcoders, I've been experiencing some problems with an application I've made with AS3. It consists of an image gallery which loads images dynamically from an XML file. Maybe you'd want to skip my explanations and go directly to the problem in the bottom of this message. Since it's my

[Flashcoders] Re: Loading images at the same time, bugs in Flash AS3 (Anthony Pace)

2009-06-06 Thread Isaac Alves
I couldn't send the .rar file with the code to the list...so I'm sending just the text this time!Thanks in advance, Isaac 2009/6/4 Isaac Alves isaacal...@gmail.com Thanks Anthony and Jordan for your responses, I´ll send you the files so you can look around if you have the time. I´ve

[Flashcoders] array.indexOf problem

2009-06-16 Thread Isaac Alves
Hi fellows, Cannot solve this problem: function buttonClicked(e:Event):void { trace (buttonsArray.indexOf(e.target.name)); It always traces -1. This code should trace the index of the Array element right? for ex: 0, 1, 2 or 3. If i do this, it will trace the correct name of

[Flashcoders] Output Panel Language

2009-06-30 Thread Isaac Alves
Hello, I've got my Flash installed in engilsh but the output panel's shows up messages in portuguese! I How do I set it up to English? Thanks ! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Error #1009 shows randomly

2009-06-30 Thread Isaac Alves
Hello fellows, I've bought at Flash Den a code of an Infinite Level Menu (from MBMedia) and I'm pulling my hair out. It throws that well known error as the text of the button doesn't show when it should: “TypeError: Error #1009: cannot access a property or method of a null object reference. at

[Flashcoders] problems accessing a MovieClip / display list issue

2009-07-03 Thread Isaac Alves
Problems trying to access a MovieClip that contains a dynamically loaded image, inside dynamically created menu items. I hope the code is self explanatory ! function mouseOverItem(e:Event):void { var item:MenuItem = e.target as MenuItem; trace (item.getChildAt(3).name); trace

[Flashcoders] understanding a simpe statement 2

2009-07-13 Thread Isaac Alves
I would like to understand that one too: maxH = maxH == 0 ? maxW : maxH; Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] understanding a simpe statement

2009-07-13 Thread Isaac Alves
Hello fellows. I know it probably sounds dumb , but I'm having a hard time understanding this statement mc.scaleX mc.scaleY ? mc.scaleY = mc.scaleX : mc.scaleX = mc.scaleY; Would that mean something like: if (mc.scaleX mc.scale){ mc.scaleY = mc.scaleX } else if if (mc.scaleX mc.scale){

[Flashcoders] accessing movieclips, problem using preloader

2009-07-23 Thread Isaac Alves
Hi fellows, I´m having a weird problem here: This code is inside the movieclip Info_1, which is a child of the stage in top.swf. function intro():void{ trace (this: + this); trace (thischldren: + this.numChildren); trace (child 0: + this.getChildAt(0)); trace (child 0name: +

[Flashcoders] accessing movieclips, problem using preloader

2009-07-23 Thread Isaac Alves
it worked with MovieClip(parent). im looking now for something like lockRoot for as3 any clue how could I handle this? thanks! isaac ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] problem with a 2 level menu

2009-07-24 Thread Isaac Alves
Hello ! I'm trying to build a 2 level menu, and its submenus are quite big, they contain a lot of sub-items. I'm trying to find a simple way to do it (actually I just want that it work) , but I'm having lots of problems. As you will be able to see in the code below, I'm placing the dynamically

[Flashcoders] Re: Flashcoders Digest, Vol 22, Issue 26

2009-07-24 Thread Isaac Alves
-- Message: 4 Date: Thu, 23 Jul 2009 15:17:45 -0300 From: Isaac Alves isaacal...@gmail.com Subject: [Flashcoders] accessing movieclips, problem using preloader To: flashcoders@chattyfig.figleaf.com Message-ID: 9719fa510907231117p5865f79ay15f24b66b0a53

[Flashcoders] Flash doesn´t detect MOUSE_LEAV E event while dragging outside stage on Firefox

2009-07-28 Thread Isaac Alves
Hello, Is there any workaround to the issue with Adobe Flash where a Flash Movie does not receive a MOUSE_LEAVE event if the mouse is dragged outside of the movie? Neither when i MOUSE_UP outside the stage. stage.addEventListener(Event.MOUSE_LEAVE, dropIt); function dropIt(e1:MouseEvent = null,

[Flashcoders] as3 -re-dimensioning spirte but not its children

2009-07-29 Thread Isaac Alves
Hi list, Is it possible to alter the width or height of a sprite dynamically without altering the width and height of its children ? Even when I add children to a Sprite that had its dimensions altered dynamically, these children have their dimensions changed. Could I do something like

[Flashcoders] Re: Flashcoders Digest, Vol 22, Issue 32

2009-07-30 Thread Isaac Alves
Adorno http://www.ruyadorno.com Isaac Alves wrote: Hello, Is there any workaround to the issue with Adobe Flash where a Flash Movie does not receive a MOUSE_LEAVE event if the mouse is dragged outside of the movie? Neither when i MOUSE_UP outside the stage. stage.addEventListener

[Flashcoders] manage conent of multiple frames with a single framescript

2009-08-06 Thread Isaac Alves
I would lke to know if I can manage the content of multiple frames without having to create a script for each frame. project: This is part of a type of powerpoint style presentation in flash. another time I'll certainly try to do it by loading everything in the XML, and no frame Nav. then the

[Flashcoders] buttons not able to control movieclip's timeline

2009-08-13 Thread Isaac Alves
i have 2 buttons (prev and next) that should control the timeline of a moviclip called container but it just doesn't work. at first it moves to the second frame on this movieclip then the container shows always the same content ( it has different content for each frame), the content of the

[Flashcoders] help with frame navigation and xml

2009-08-26 Thread Isaac Alves
Hi, I'd like to have a function that tells a MovieClip to go to a specific frame and then in this frame, look for a scpecific tag in an XML file, based on the frame's label, and then take some text (a bunch of actually) that is in the XML node and put it on a TextField. For example, clicking on

[Flashcoders] Re: a function tells to move to a frame and then update content in that frame

2009-08-28 Thread Isaac Alves
; counter ++; } else { container._tit.text = ; } etc... 2009/8/28 Isaac Alves isaacal...@gmail.com: Hello! In the following code, i tell the Flash runtime to go to frame2 and update the content of this frame. The problem is that, the first time

[Flashcoders] a function tells to move to a frame and then update content in that frame

2009-08-28 Thread Isaac Alves
Hello! In the following code, i tell the Flash runtime to go to frame2 and update the content of this frame. The problem is that, the first time this function runs it throws the error: TypeError: Error #1009: I believe that happens because it tries to update container._tit before render the

[Flashcoders] Re: a function tells to move to a frame and then update content in that frame

2009-08-28 Thread Isaac Alves
in the textfield on that frame. i'll have to do that because this updateContent function won't fit in some specific frames of the presentation thanks! 2009/8/28 Isaac Alves isaacal...@gmail.com: oops the code down there should be: function updateContent(e:Event):void {       container.gotoAndStop

[Flashcoders] Re: accessing a text node inside another node in a XMLList

2009-08-28 Thread Isaac Alves
I´ve realized actually that flash recognizes the XMLList as having 9 children, ignoring the tags slide when I was expecting three children , each one of them with also 3 children ( the tags item). Why? 2009/8/28 Isaac Alves isaacal...@gmail.com: Hello list, I have the following XML ( i get

[Flashcoders] accessing a text node inside another node in a XMLList

2009-08-28 Thread Isaac Alves
Hello list, I have the following XML ( i get that by tracing tabsContentSlideshow which is a XMLList. I-d like to use something like tabsContentSlideshow[slide][1] slide is an integer, so for example, if the slide 2 is showing, this statement would return the first node item inside the second

[Flashcoders] Re: accessing a text node inside another node in a XMLList

2009-08-28 Thread Isaac Alves
juntos!/item /slide alright. now how can I retrieve the text that´s inside the tag item ?? ok i-ve just discovered: trace (dfdf: + tabsContentSlideshow.children()[0].item[1]); :D thank you people 2009/8/28 Isaac Alves isaacal...@gmail.com: I´ve realized actually that flash recognizes

[Flashcoders] smoothly rotating a dynamic loaded image with AS2

2009-09-02 Thread Isaac Alves
Hello list, i-d like to smoothly rotate an image loaded in an as2 swf file. no tween, just rotate and leave it there. it doesn´t work. i´ve tried lot of things and no success. actually i-m used to as2, i don´t understand as2 very well. here is the code:

[Flashcoders] 1120: Access of undefined property

2009-09-03 Thread Isaac Alves
could someone please tell me why in the following script , the flash runtime doesn´t recognize the var counter? 1120: Access of undefined property counter. package { public class StringUtils { public var counter:int = 0; public static function

[Flashcoders] slideshow works w/ ctrl Enter in Flash but not when exported....

2009-09-10 Thread Isaac Alves
Hello, I have a FLA project with a slideshow . When I test movie inside Flash (by pressing ctrl + enter), the slideshow works well. But if i run the .swf file outside of Flash interface , it doesn´t work, it doesn´t change the images. Why ? How can it happen? Thanks!

[Flashcoders] time based smooth animation w/ GTween. HELP!

2009-09-11 Thread Isaac Alves
Hello! I would like to create a time based and very smooth animation with GTween (or another one). But I´m used to GTween , though. here is my code: var plantaTween = new GTween(planta, 1.5, {y: 414}, {delay: 0.8, reversed: true, reflect: true, repeat: 999, ease:Quartic.easeInOut}); I´ve read

[Flashcoders] Re: slideshow works w/ ctrl Enter in Flash but not when exported....

2009-09-11 Thread Isaac Alves
solved . it is a problem with GTween completeListener parameter. it had a function in it , as: completeListener: function () {bla bal bla bla } usually doesn´t work. so i did: completeListener: someFunction and then declared the function somewhre else. thanks! cheers

[Flashcoders] retreieving a node that contains a specific attribute from an XML list.

2009-09-12 Thread Isaac Alves
I have an XMLList and I would like to retrieve a node in this list that contain a specfic attribute. here is how my XMLlist conteudo is organized. trace (conteudo) throws: slide id=apresentacao titApresentação/tit txt (lots of text...)/txt /slide slide id=sumario titApresentação/tit

[Flashcoders] RE: retreieving a node that contains a specific attribute from an XML list

2009-09-13 Thread Isaac Alves
); -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Isaac Alves Sent: zondag 13 september 2009 2:00 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] retreieving a node that contains a specific

[Flashcoders] help. mouseEvent doesn´t work o n SWF loaded with JavaScript.

2009-09-15 Thread Isaac Alves
solved !! xml problem... thanks . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] RE: Re: time based smooth animation w/ GTween. HELP! (Jack Doyle)

2009-09-15 Thread Isaac Alves
Hi Jack, Thank you for the explanations. I've been gradually changing to TweenLite TweenMax, and so far I'm very happy with it, I've achieved good results with the filter tween and color matrix. yoyo's really cool too. About that other situation, I was trying to have a time-based tween

[Flashcoders] listener (completeHandler) does n´t run after file is loaded.

2009-09-16 Thread Isaac Alves
hi list, i-m getting completely insane cause of an as3 problem. i-ve never had this problem before. in the code below , I try to load 2 XML files. the first one gets loaded and the loaderCompleteHander function runs normally after the event completion. but the loaderCompleteHander2 function

[Flashcoders] RE: listener (completeHandler ) doesn´t run after file is loaded.

2009-09-16 Thread Isaac Alves
well, solved... though it remains a mystery that bugs me. function progressListener (e:ProgressEvent):void { trace(Downloaded + e.bytesLoaded + out of + e.bytesTotal + bytes); if ( e.bytesLoaded == e.bytesTotal)

[Flashcoders] RE: listener (completeHandler ) doesn´t run after file is loaded.

2009-09-17 Thread Isaac Alves
solved. I was using an instance of Loader class to load a XML file, when i should use an instance of URLLoader class. cheers!! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] panels / workspace CS4 bug

2009-09-17 Thread Isaac Alves
why my actions panel on flash cs4 often gets its height (I don´t know how ), higher than the screen height in a way i cannot resize it back ? Thus, the only way out of this is reseting a default workspace, and then I lose my saved workspace. does it happens to you people too? maybe I should try

Re: [Flashcoders] panels / workspace CS4 bug

2009-09-18 Thread Isaac Alves
Pedro, that works, but this way I´m forced to always have this actions buttons on the screen (when I press F9) and that is quite boring , cause (at least for me) it stands in front of important stuff . I ´m used to F9 to open /close the acitons panel. I´ll give a try on FlashDevelop! thanks

[Flashcoders] swf behaving differently in different domain and other issues loading swf

2009-09-23 Thread Isaac Alves
Good morning, I´ve been experiencing some problems with swf files. First one: http://www.swingebalada.com.br/index.php In this website, the logo and menu animations work nice when the home page is loaded (index.php) But in the internal pages (i.e: index.php?cmd=eventos) the animation doesn´t

[Flashcoders] RE: swf behaving differently in different domain and other issues loading swf (Isaac Alves)

2009-09-23 Thread Isaac Alves
update: in the acoriana website, the flash-menu is now working perfectly in Firefox, i fixed the problem. but it still remains the mistery of not loading swf in IE6 . cheers! Message: 16 Date: Wed, 23 Sep 2009 11:28:59 -0300 From: Isaac Alves isaacal...@gmail.com Subject: [Flashcoders] swf

[Flashcoders] RE: swf behaving differently in different domain and other issues loading swf (Isaac Alves)

2009-09-23 Thread Isaac Alves
Hi, both problems solved! The first one was easy, actually there was a conditional that was stopping the animation whenever the swf file was loaded inside an internal page, that is, not the home page. ( I didn´t realize it before cause the code was a bit messy and was made by someone else). The

[Flashcoders] RE: RE: swf behaving differently in different domain and other issues loading swf (Isaac Alves) (Keith Reinfeld)

2009-09-24 Thread Isaac Alves
Keith, I´m sorry but the only reply I-ve found from you here (at least on this topic) was this one where you talked about checking the xml file, and I-ve only received it now, actually 45 minutes ago in my gmail inbox That aside I try to answer all the replies, but since I-ve been doing so

[Flashcoders] building custom libraries and components using FlashDevelop and Flex SDK

2009-09-24 Thread Isaac Alves
Hello, I'm giving a try on FlashDevelop with Flex SDK, and a lot of things are new to me . My study background is on Graphic Design, so I know little about programming. One of the reasons I´m migrating to FD it is that I would like to build my own libraries (menus , slideshows, and other stuff)

[Flashcoders] FLAR: accessing the marker rotation properties

2010-09-08 Thread Isaac Alves
Hello, I'm working on a flAR project and I would like to have control over marker's rotation (actually I want the app. to detect the marker, and after that, stop detecting it and the code would tween its rotation properties) I don't need actually to rotate the marker, I could rotate the object