[Flashcoders] Change fonts on indiv combobox items

2005-10-21 Thread Mendelsohn, Michael
Hi list... In the MX'04 combobox component, is it possible to change font attributes of each of the items in its drop down list? I can't seem to figure out how to get to each item through code. Thanks, - Michael M. ___ Flashcoders mailing list

RE: [Flashcoders] Tween not working in AS

2005-10-25 Thread Mendelsohn, Michael
Don't know if it matters, but I always assign the Tweens to a var name. That way, you can refer to them later, with onMotionFinished, etc. - MM -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Bedar Sent: Tuesday, October 25, 2005 3:35 AM To:

RE: [Flashcoders] Tween not working in AS

2005-10-26 Thread Mendelsohn, Michael
So I need to find a nice clear definition of how they work. Any links? I'm not sure about links to explanations of _parent and this other than the documents, but for using the Tween class, look up Jen de Haan on the Macromedia site. She wrote a great article about its usage. For the first

[Flashcoders] Distance: mouse to MC's edge (not regpoint)

2005-11-30 Thread Mendelsohn, Michael
Hi list... I have an odd shaped MC on the stage. I'd like to find the distance between the mouse and the MC, simple enough -- but not to the MC's registration point, but to the *edge* of the MC. And to boot, it's an odd-shaped MC. Can you determine the MC's closest point on its edge to the

RE: [Flashcoders] Q: Advanced math book for designers?

2005-11-30 Thread Mendelsohn, Michael
I just actually purchased it myself! :-) - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Flash player troubles

2005-12-14 Thread Mendelsohn, Michael
Mendelsohn, Michael wrote: Flash 8 player\IE\WinXP: I've encountered some messed-up scenarios where Flash player gets disabled solely because of Deleting Temporary Internet files from IE. For me, once temp files are deleted, sites that attempt to detect Flash fail to detect Flash. Those sites

RE: [Flashcoders] Flash player troubles

2005-12-14 Thread Mendelsohn, Michael
.. hth -K [1]http://www.macromedia.com/shockwave/download/alternates/ On 14/12/05, Mendelsohn, Michael [EMAIL PROTECTED] wrote: I have given up trying to figure why this happens on some computers and not others. The problem was very repeatable until I manually removed, then replaced, a file called

[Flashcoders] No consecutive onRelease() events?

2005-12-16 Thread Mendelsohn, Michael
Hi list... I have a button and a clickable movie clip where their code only works if you move the mouse slightly before a second click. In other words, if you click them more than once while keeping the mouse stationary, the code only fires the first time, but if you move the mouse slightly

RE: [Flashcoders] No consecutive onRelease() events?

2005-12-16 Thread Mendelsohn, Michael
Thanks for the link, Lanny. However, unlike the article, in my situation, it's not a textField component keeping focus, but a comboBox. Adding Selection.setFocus(this) to the on(release) function of my button still isn't clearing out focus from the comboBox. Am I missing something? I'm trying

RE: [Flashcoders] No consecutive onRelease() events?

2005-12-16 Thread Mendelsohn, Michael
Yes, it's just a plain old button. The code is attached right to the button. Are you using the Button component, or a button symbol? And that code is just being attached right to the button it seems.. Is that correct? ___ Flashcoders mailing

[Flashcoders] Planet Earth MC

2005-12-23 Thread Mendelsohn, Michael
Hi list... [Studio 8, XP, Illustrator CS2] I have a MC of a rotating planet earth. Frame to frame, all the continents are there, but when it gets on the stage, visual anomalies occur: the Great Lakes disappear for a frame, or some weird horizontal lines appear -- always at the same spot in the

RE: [Flashcoders] Planet Earth MC

2005-12-23 Thread Mendelsohn, Michael
If you change the size of the movie clip on the screen does the effect change? No matter what size the MC is, the same effects are there. If the MC is scaled, the anomalies are scaled as well. Perhaps you are just getting a preview of the effect of global warming on the Great Lakes.

[Flashcoders] TextFormat constructor

2006-01-03 Thread Mendelsohn, Michael
Hi list... I thought you could instantiate a TextFormat object like this: var tf:TextFormat = new TextFormat(underline:true, color:0xFF); But that doesn't work as there's a compile error. Why? - MM ___ Flashcoders mailing list

[Flashcoders] Tween class question

2006-01-09 Thread Mendelsohn, Michael
Hi list... I'm wondering if there's any way to call a function at each step in a tween being carried out by the Tween class when useSeconds = true. Any insight is appreciated! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Duplicating an object without pointing to original one

2006-01-09 Thread Mendelsohn, Michael
Hi list... How do you duplicate an object {bool:true, val:5} in another variable without pointing to the original one, and without having to create a constructor. In Director, there's a duplicate() method in Lingo. Is there an equivalent way to do this in Flash? Something like this, but which

RE: [Flashcoders] Duplicating an object without pointing to originalone

2006-01-09 Thread Mendelsohn, Michael
Thanks for the answers! Thanks for the answers! :-) - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Enhanced stroke is not supported in this player

2006-02-01 Thread Mendelsohn, Michael
Hi list... I'm making a swf in 8 and publishing for 7 and I keep getting this compile error: Enhanced stroke is not supported in this player Problem is, I can't figure out how to fix that. Any ideas? Thanks, - Michael M. ___ Flashcoders mailing list

RE: [Flashcoders] Enhanced stroke is not supported in this player

2006-02-01 Thread Mendelsohn, Michael
Thanks everyone for the insight. But, I just can't figure out how to change the stroke settings. Where is that done? I've tried various combinations of the cap and join widgets on the prop inspector, but that isn't working. Where's the stroke setting in the UI? - MM You need to use the

RE: [Flashcoders] Enhanced stroke is not supported in this player

2006-02-01 Thread Mendelsohn, Michael
Bingo! Thank you very much, Stacey. - MM You can also just save the file as the lower version and that works to get rid of the error. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Video stopped at beginning doesn't appear on stage

2006-02-07 Thread Mendelsohn, Michael
Hi list... I have a video that I am trying to hold on frame 1. Trying to do that through code makes the video mysteriously not appear on the stage. Is there any code that can hold the video at frame 1? I've tried: vid.stop(); vid.gotoAndStop(1); vid.vidContent.stop();

[Flashcoders] Set volume of flash video?

2006-02-13 Thread Mendelsohn, Michael
Hi list... Is there a property to get/set the volume of a flash video on the stage? Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] Set volume of flash video?

2006-02-13 Thread Mendelsohn, Michael
Thanks for the feedback Jim...however, my video is embedded, and it looks like netstream only works with an external video. Any idea how this can be done with an embedded video? Here's the code I've tried: vid.gotoAndStop(2); // vid is the MC containing the embedded Flash video // create audio

RE: [Flashcoders] Set volume of flash video?

2006-02-14 Thread Mendelsohn, Michael
Thanks for the reply, Jim. That was so obvious that I missed it. - MM var __sound:Sound = new Sound(__myVideoContainer); __sound.setVolume(0); The myVideo clip contained a video (with sound) that I imported to the timeline. Send me e-mail if you want the .FLA

[Flashcoders] Resize MC within an MC

2006-02-15 Thread Mendelsohn, Michael
Hi list... I have a MC of a rectangle with dimensions 1600 x 1200, registration point at 0,0. In it is another MC of a square that's 400 x 300, located at the upper left corner (0,0) of the _parent. I want to stretch out the _parent MC just enough so that the inner MC _width becomes 1600. I

RE: [Flashcoders] Resize MC within an MC

2006-02-15 Thread Mendelsohn, Michael
It's actually a lot more complicated than that because the swf is sitting inside Director, and I'm aligning the swf to point(0,0) of the stage and I've stretched out the stage to the dimensions of the monitor. Then, I'm zooming in on a video by way of increasing Directors drawRect. I'm suspecting

RE: [Flashcoders] Resize MC within an MC

2006-02-15 Thread Mendelsohn, Michael
to Director at all, I'm afraid. But I'd think all you need to do is compare the width of the embedded Flash object to its original published width, and apply that factor on top of any other scaling factors you've already applied... Sorry I can't be of more immediate help. Ian On 2/15/06, Mendelsohn

[Flashcoders] Articles on accessing actionscript through js

2006-02-16 Thread Mendelsohn, Michael
Hi list... I'm thinking of experimenting with having js control a swf. Can you call methods and get/set various props in a swf from js in a web page...and have it work in all browsers? If anyone has any recommendations on where to read up on this, please let me know. Thanks, - Michael M.

RE: [Flashcoders] trace inside the browser

2006-03-07 Thread Mendelsohn, Michael
Or, you can use: getURL(javascript:window.status = yourData); I like to think of the browser's status bar as a built in output spot, granted, it's only one line at a time. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

[Flashcoders] OT: dumb PowerPoint question

2006-03-14 Thread Mendelsohn, Michael
Hi list... When playing a PowerPoint slide show, if you right click the presentation, choose Go, then By Title, you get a menu of slides: 1 Slide 1 2 Slide 2 3 Slide 3 I can't figure out where to rename the slides. Can anyone clue me in? My slides are just a jpg, no text, so is it even

RE: [Flashcoders] OT: Great bit of Director work, FPS with bots, network play etc.

2006-03-17 Thread Mendelsohn, Michael
We looked at it here with a gyroscope visor. Simply incredible. - MM -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Marsden Sent: Friday, March 17, 2006 9:33 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] OT: Great bit of Director

[Flashcoders] Slightly OT: exporting QT w/ alpha channel

2006-03-22 Thread Mendelsohn, Michael
Hi list... I'm trying to export my animation as a quicktime with an alpha channel so I can bring it into either Avid or Premiere Pro with the alpha channel intact. Is this possible? When I set the alpha-transparent setting in publish settings, the resulting .mov file has all inverted colors. I

[Flashcoders] Linked font from class

2006-04-10 Thread Mendelsohn, Michael
Hi list... I have a movie and an external class. The movie has a font in it with a linkage name theTimes. The class constructor creates a new text field, and sets a style with this embedded font. The text is formatted all of the attributes except the font, and I'm wondering if it's because the

RE: [Flashcoders] Linked font from class

2006-04-10 Thread Mendelsohn, Michael
Thanks for the interesting link Ivan. I think in my case, it was a scope problem, because I had the setTextFormat called from within a with block that I discovered wasn't reading the TextFormat. Issue solved. - MM ___

[Flashcoders] Loading internal jpg with linkage

2006-04-11 Thread Mendelsohn, Michael
Hi list... I must be missing something. Is there a way to load a jpg from the library with a linkage name into a dynamically created movie clip on the stage? Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription

[Flashcoders] Not all MCs get onEnterFrame

2006-04-24 Thread Mendelsohn, Michael
Hi list... I am creating a bunch of MCs on the stage that should each get an onEnterFrame function defined, but only the first one created in the loop is getting that function, and I don't see why. Any ideas? Thanks, - Michael M. private function mLanguages(attachToWhat):Void {

RE: [Flashcoders] Not all MCs get onEnterFrame

2006-04-24 Thread Mendelsohn, Michael
That worked perfectly. Thanks, Geoff. - MM you should set riseSpeed inside the newClip, and then apply the onenterframe to the clip's _y, like this: newClip.riseSpeed = ((0.03 * hitherYon) - 1.5); newClip.onEnterFrame = function():Void {

[Flashcoders] Can't tint AND add GlowFilter?

2006-04-25 Thread Mendelsohn, Michael
Hi list... The code below tints a MC on the stage and then I'm trying to put a black glow around it, but the glow turns out to be the same tint as the ColorTransform. Is there a way to make sure the glow is a different color? Thanks, - Michael M. var clr:ColorTransform = new ColorTransform();

[Flashcoders] Using MX components for 5 publishing

2006-05-10 Thread Mendelsohn, Michael
Hi list... Can you create a component out of a movie clip in MX and publish to version 5 and have the component work without problems? Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

[Flashcoders] Attach jpg?

2006-06-07 Thread Mendelsohn, Michael
Mental block here: Is it possible to load a jpg with a linkage identifier from the library into a MC on the stage? attachBitmap and attachMovie don't seem to do it. Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription

[Flashcoders] Composition problems

2006-06-16 Thread Mendelsohn, Michael
Hi list... I'm trying to figure out what I'm missing in trying to instance a class via composition: I have 2 external classes: questions and puzzle. class questions { public var qa:Object = new Object(); function questions() { qa[0] = new Object();

RE: [Flashcoders] Composition problems

2006-06-16 Thread Mendelsohn, Michael
Thanks Jason. I figured it out. I was getting tripped up by the fact that how I was doing it was only returning functions, not properties. In my fixed puzzle class: private function defineQuestions():Void { // create the question and answer data object...

[Flashcoders] Can't reach boolean?

2006-06-19 Thread Mendelsohn, Michael
Hi list... I have a path to a mc like so: _root.collective.table1.p5 On the root of the clip named p5, there is this line of code: var isPiece:Boolean = true; Why am I not able to reach that boolean through code? trace(_root.collective.table1.p5.isPiece) is always undefined. Thanks, - Michael

RE: [Flashcoders] Can't reach boolean?

2006-06-19 Thread Mendelsohn, Michael
Hi Danny... Thanks for responding. The value is just a constant true, on the timeline of _root.collective.table1.p5. If I trace(root.collective.table1.p5), I get the clip's path in the output window, no problem. But if I go and trace a variable within that mc, I get nothing. What's the

RE: [Flashcoders] Can't reach boolean?

2006-06-19 Thread Mendelsohn, Michael
Thanks everyone for your quick responses! It was indeed a case of the clip not fully loaded yet. I'm able to reach it now. - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] Sort within an object

2006-06-19 Thread Mendelsohn, Michael
Hi list... Is there any way to sort within an object: Track[1][score] Track[2][score] Track[3][score] Track[4][score] Track[5][score] All the tracks have different score numeric values. What's the most efficient way of getting them in order? It seems sort and sortOn only work on arrays.

RE: [Flashcoders] Sort within an object

2006-06-19 Thread Mendelsohn, Michael
is Track an array? Track is an object. This is my work in progress... private function updateStandings():Void { // create list of scores and sort descending... var tempScores:Array = new Array(); for (var s

RE: [Flashcoders] Sort within an object

2006-06-19 Thread Mendelsohn, Michael
Well, thanks everyone for the advice. I ended up solving the issue, and below is my final code. Sorry if I confused anyone. - MM private function updateStandings():Void { var tempStandings:Array = new Array(); // first, create list of scores and sort

[Flashcoders] For...in counts backwards?

2006-06-20 Thread Mendelsohn, Michael
Hi list... From the help on for...in: You can also iterate through the elements of an array: var myArray:Array = [one, two, three]; for (var i:String in myArray) { trace(myArray[i]); } This code outputs the following in the Output panel: three two One Why is the data output in reverse

[Flashcoders] Keystroke to escape to parent clip?

2006-06-21 Thread Mendelsohn, Michael
Hi all...silly question: Is there a keystroke for backing out to a parent clip, say if you're drawing in one clip, then go back to it's parent? - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] init TextFormat prop in a class

2006-06-27 Thread Mendelsohn, Michael
Hi list... Why is it that when I try to init a prop for my class, I get this error: A class's instance variables may only be initialized to compile-time constant expressions. What exactly does that mean? Thanks, - Michael M. class test{ private var tf:TextFormat = new TextFormat();

RE: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread Mendelsohn, Michael
Thanks, Mike and John for your responses. John: what do you mean by primitives? - MM Class properties can only be initialized with primitives outside of a constructor ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

[Flashcoders] Filters on components?

2006-06-29 Thread Mendelsohn, Michael
Filters don't apply to movie clips that have a component definition? Is this true, or something I'm doing wrong on the timeline? - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Mendelsohn, Michael
Hi list... The embedFonts line seems to prevent the setTextFormat line from working. What am I missing? The font univ is in the library, and its linkage is univ. Thanks, - Michael M. private function createSlideWatcher():Void { var tf:TextFormat = new TextFormat();

RE: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Mendelsohn, Michael
Hi all... Thanks for the responses. It was indeed a case of setNewTextFormat. I just don't get why that AS term exists. Thanks! - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] createTextField and removeMovieClip

2006-07-07 Thread Mendelsohn, Michael
Hi list... I have some text on the _root that I placed there using createTextField, and now I'd like to remove it using removeMovieClip, but it's not going anywhere. Any suggestions? Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To

RE: [Flashcoders] createTextField and removeMovieClip

2006-07-07 Thread Mendelsohn, Michael
Thanks, Peter. That's what I refer to as a blinding glimpse of the obvious. I just wish it was better positioned in the documentation. I didn't realize it was there. Regards, - MM Yeah - standard TextField method: my_txt.removeTextField() ___

[Flashcoders] Sound cuts out onMotionFinished of Tween class

2006-07-19 Thread Mendelsohn, Michael
Hi list... There's a point in my code that a sound object drops the sound for a split second prior to the moment it begins to fade out, and I'd like to figure out why that's happening. Any thoughts are appreciated. - Michael M. // on the root: var tuneSound:Sound = new Sound(); // listener

[Flashcoders] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
Hi list... I'm trying to access a mc within a mc in my class as follows: class linker extends MovieClip { function linker() { trace(theClip); } } The linker clip is on the stage, and there's a mc within it called theClip. I get the error There is no property

RE: [Flashcoders] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
All the solutions worked perfectly, thanks everyone. But, Arul, what is the advantage of putting it in an onLoad function instead of the constructor? declare theClip as a member of the class linker. like, private var theClip:MovieClip; Also, try to keep ur code out of the constructor.

RE: [Flashcoders] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
Placing that code instead in the onLoad method makes sure that it will work. Great explanation, thanks Arul. - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] v2 scroll pane clips its content

2006-08-15 Thread Mendelsohn, Michael
Touchdown Dolecki! Make sure the registration point of the contents getting slapped into the pane are at 0,0. Sounds like its off there. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] Not seeing video on stage

2006-08-22 Thread Mendelsohn, Michael
Hi list... I'm not sure why I can't see my loaded flv on the stage. I can hear them, I just can't see them. I have a class that runs the show as follows. Thanks, - Michael M. import flash.external.*; class welcomeWebpage { public var nc:NetConnection; public var ns:NetStream;

RE: [Flashcoders] Hex colors function?

2006-08-22 Thread Mendelsohn, Michael
function argbToHex(a,r,g,b){ return(a24|r16|g8|b); } ___ 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

[Flashcoders] Scrollbar thumb moves up too high

2006-08-23 Thread Mendelsohn, Michael
Hi list... I have a scroll pane on the stage with the vertical scroll bars appearing as needed. The issue is that the scrollbar thumb scrolls up too high and actually scrolls over the up button. Anyone seen this before, and how should it be solved? Thanks, - Michael M.

RE: [Flashcoders] Scrollbar thumb moves up too high (Part II)

2006-08-23 Thread Mendelsohn, Michael
I discovered when you reset the contents of a scrollpane twice in a row, the scroll bar resets to the correct top position. But it seems to be a bug that you have to reload the scrollpane.content twice to get its scrollbar in the correct position. Note to self... - MM I have a scroll pane on

[Flashcoders] Singleton playing video twice on stage

2006-08-24 Thread Mendelsohn, Michael
Hi list... I've written a singleton that should load in videos on demand, but it plays the video twice, once only audio, and the second, a couple of milliseconds later, both audio and video. Components on the stage call loadVideo, and through debugging, I know that call is only fired once,

[Flashcoders] FLV total time property?

2006-08-24