[Flashcoders] AS2 scrollpane component question

2009-04-20 Thread Mendelsohn, Michael
Hi list... How do you reference a vertical scrollbar in an AS2 scrollpane component instance? I can't seem to find it. Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/f

RE: [Flashcoders] component def doesn't pass params to constructor?

2009-02-18 Thread Mendelsohn, Michael
Thanks for responding Paul! So going forward with my custom components, I was trying to avoid two lines of code, but you're suggesting that? //Instead of: var cc:CustomComponent = new CustomComponent("red", 5); //it's better to do: var cc:CustomComponent = new CustomComponent(); cc.init("red", 5

RE: [Flashcoders] component def doesn't pass params to constructor?

2009-02-18 Thread Mendelsohn, Michael
Hi list... Researching my own pesky issue (custom components initializing properly when they're dragged on the stage at author time), I found this: > if you want to create instances of your classes by dragging them to the stage, keep in mind that their constuctors can not accept arguments. Also,

RE: [Flashcoders] RTL...

2009-02-16 Thread Mendelsohn, Michael
I've run into this before on Windows in Notepad. I *think* if you right click in notepad there should be a context menu item for RTL text. It was very frustrating for me, but that seemed to reverse the order. Also, you could try Microsoft's free XML Notepad. Hope that helps, - MM

[Flashcoders] component def doesn't pass params to constructor?

2009-02-16 Thread Mendelsohn, Michael
Hi list... If I instance my mc associated with a Ball.as class, through code, there is no problem: var b:Ball = new Ball("basketball"); addChild(b); // basketball shows up on stage But, if I drag a Ball instance onto the timeline and set "basketball" from the parameters panel of the tool palette

RE: [Flashcoders] play sound via linkage

2009-02-13 Thread Mendelsohn, Michael
rima.co.uk/ Mendelsohn, Michael wrote: > Hi list... > > Silly AS3 question: how do you play a sound with a linkage identifier? > > public function playSound(linkageID:String):void{ > // these don't work > var snd:Sound = new Sound(linkageID); >

[Flashcoders] play sound via linkage

2009-02-13 Thread Mendelsohn, Michael
Hi list... Silly AS3 question: how do you play a sound with a linkage identifier? public function playSound(linkageID:String):void{ // these don't work var snd:Sound = new Sound(linkageID); var snd:* = new Class(linkageID); snd.play(); } Thanks! - MM __

[Flashcoders] Enter Key with tabEnabled and buttonMode = true

2009-02-11 Thread Mendelsohn, Michael
Hi list... If a sprite is tabEnabled and it has focus, should hitting the Enter Key fire a MouseEvent.CLICK event? Or, is it still necessary to add a KeyboardEvent listener? The docs allude to that it should work without the keyboard event, but hitting the Enter key with my focused sprite isn't w

[Flashcoders] my component not instancing properly on timeline

2009-02-05 Thread Mendelsohn, Michael
Hi list... I have a class that extends MovieClip. I made a component definition for it with two vars, each with same name/type as defined in the class file. If I instance a new Cat() through code, there are no problems. But, it doesn't work when I want to instance this component on a timeline a

[Flashcoders] additional classpath crashes IDE

2009-01-30 Thread Mendelsohn, Michael
Hi list... I am trying to add an additional classpath to my AS3 publish settings. With one classpath (E:\projects\conferences\2009\A\stuff), the fla publishes just fine. Adding a second classpath, either relative or absolute), crashes the Flash IDE. Why does that happen? Thanks, - Michael M.

[Flashcoders] instancing my own components (still new to AS3)

2009-01-27 Thread Mendelsohn, Michael
Hi list... What exactly is the AS3 equivalent of making a simple component, creating a component definition, and attachMovie with the {} holding the params? I can't get this to work: package { import flash.display.MovieClip; import flash.text.*; public class MyButton exte

RE: [Flashcoders] registering Enter key along with mouse event

2009-01-22 Thread Mendelsohn, Michael
Thanks Ivan and Eric. I did have shortcuts disabled, but even with control|test movie, it seems the IDE still traps the enter key. It worked when I launched the swf outside Flash altogether. Thanks, - MM ___ Flashcoders mailing list Flashcoders@cha

[Flashcoders] registering Enter key along with mouse event

2009-01-22 Thread Mendelsohn, Michael
Hi list... I have a sprite that should fire an event either when it's clicked, or when it has focus and the spacebar or the enter key is pressed. The mouse click and the spacebar keyUp events (when the sprite has focus) work fine, but the enter key won't fire the event. Here's my if statement.

RE: [Flashcoders] recursive question?

2009-01-14 Thread Mendelsohn, Michael
Oh trust me Jason, there's *plenty* more going on besides blank things. :-D - MM Right Taka, thinking the same thing, and I was just assuming he was doing something more (not shown) in the draw function other than just adding the child - otherwise, you're just adding blank things to the screen.

RE: [Flashcoders] recursive question?

2009-01-14 Thread Mendelsohn, Michael
Interesting answers, Jason and Taka. Thanks very much! In migrating to AS3, I guess I have to be reminded about simply removing the child. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listin

[Flashcoders] recursive question?

2009-01-14 Thread Mendelsohn, Michael
Hi list... I have two functions, where either an X is rendered, a Y is rendered, or both an X and a Y. removePrevious() is called before anything gets rendered, so as to clear the stage. The problem is when "both" are rendered, removePrevious() is called twice. It first clears the stage, renders

RE: [Flashcoders] multiple fonts in TextField?

2009-01-13 Thread Mendelsohn, Michael
Thanks everyone. I got multiple fonts working wonderfully. I'll never look back. One quirky AS3 thing though: why do I have to refer to the font this way: private function styler():StyleSheet{ var ss:StyleSheet = new StyleSheet(); var uplain:Object = new Object(); uplai

RE: [Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Mendelsohn, Michael
Thanks for replying Rob. I did this in the document class, but nothing happened. Import flash.text.Font; In the constructor: Font.registerFont(XYZBold); Then I tried: Font.registerFont(new XYZBold().fontName); But that didn't work either. Where do you make it available? - MM > If your second

RE: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Mendelsohn, Michael
Well, it's a method of the Object class, so I'd hazard to guess it will work with everything you create. - MM > Isn't that for an XML object? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinf

RE: [Flashcoders] accessing variables - AS3

2009-01-12 Thread Mendelsohn, Michael
You might also want to look into using this.hasOwnProperty(stringValue + "Amt") to make certain what you're looking for actually exists in the object in the first place. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfi

[Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Mendelsohn, Michael
Hi list... I am trying to set a TextField (embedFonts = true) to some htmlText. It has a defaultTextFormat of a particular font embedded with linkage name "XYZ". I have two fonts in my project, the other one being linkage "XYZBold". I want the htmlText to be something like: "XYZ Bold stuffXYZ reg

RE: [Flashcoders] get "PROP" from obj.PROP

2009-01-09 Thread Mendelsohn, Michael
Cool, Nate! And...I love the stylin' t-shirt! The presentation is at: http://talks.natebeck.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] get "PROP" from obj.PROP

2009-01-09 Thread Mendelsohn, Michael
Nate, have you got any speaker notes posted from your talk? - Mike > No problem. Proxies are way cool.. I gave a presentation about them last night at the Seattle Flex User Group ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://c

RE: [Flashcoders] get "PROP" from obj.PROP

2009-01-09 Thread Mendelsohn, Michael
Thanks David and Nate. David, I was realizing what you basically said in your answer, so now I'm convinced. That's what I'm doing now. Nate, thanks for enlightening me on the Proxy class. I'm still new to AS3, and that seems like a pretty cool feature. Regards, - MM __

[Flashcoders] get "PROP" from obj.PROP

2009-01-09 Thread Mendelsohn, Michael
Hi list... I'm passing a var to this signature: private function assignContent(Content:*):void // example assignContent(msg.ONE); How can I get the "ONE" part of it, so I can correlate with another object like info.ONE, or if it is passed msg.TWO, I can cross reference info.TWO? There must be a

RE: [Flashcoders] Thoughts on new features in CS4

2009-01-07 Thread Mendelsohn, Michael
Anthony, I'm going out on a limb and guessing that the "why don't they just make it all one app that does everything" suggestion has been around longer than you've been alive. Don't lose any sleep over that one. :-D - MM > They don't care enough about users to make one application that does e

RE: [Flashcoders] RE: Flash AS3 debugging

2008-12-22 Thread Mendelsohn, Michael
Thanks, that's a great article...but this is a really weird issue. It might be some sort of Windows bug. I hit a break point, things are rendered on the stage. As soon as I click stepIn in the debug console, the swf window crashes (not responding). - MM

RE: [Flashcoders] Flash AS3 debugging

2008-12-22 Thread Mendelsohn, Michael
[Windows XP, CS3] I stopped it at a point where everything is rendered on the screen. I can see it all fine, then I go back to the debug console, and click step into, and then I alt+tab back to the swf window, and everything has vanished from the stage. Does this situation sound familiar? At the

[Flashcoders] Flash AS3 debugging

2008-12-22 Thread Mendelsohn, Michael
Hi list... I'm getting used to AS3, but debugging isn't updating the stage as I step through. Actually, nothing is rendered at all, even though I'm stopping at a point where things should be on the stage. Am I doing something wrong? Thanks, - Michael M.

RE: [Flashcoders] referencing sprites within a sprite (AS3 newbiequestion)

2008-12-17 Thread Mendelsohn, Michael
Hi everyone... Building an array using the references was the right answer. I really appreciate all of your replies. Migrating from AS2 where I could easily reference via this.that.these.those to DisplayObject references will take a bit of getting used to I suppose. Big thanks! - Michael M. _

RE: [Flashcoders] referencing sprites within a sprite (AS3 newbiequestion)

2008-12-16 Thread Mendelsohn, Michael
Thanks Ian. That's the method I'm looking for, but can it work two "levels" deep? I'm really looking to change one MovieClip within each of these columns. Here's the code: private function changeChar(e:Event):void { var newFrame:uint = Math.random()*50; var whichColumn:uint = Ma

[Flashcoders] referencing sprites within a sprite (AS3 newbie question)

2008-12-16 Thread Mendelsohn, Michael
Wow, AS3 is different, even after reading Moock's book. I'm sure this is an easy question: How do you reference sprites within a sprite in an event listener? I have a child "allcolumns" within a sprite. Within "allcolumns" are 50 columns (sprites), each named column1, column2, etc. Allcolumns

RE: [Flashcoders] Timer (AS3 newbie question)

2008-12-16 Thread Mendelsohn, Michael
In AS2, I would have made a component with a parameter for speed. I'm just not sure how to do that in AS3, so I was guessing with a timer, I could add and event listerner to dispatch an event to the target, but I guess not. Thanks! - MM -Original Message- From: flashcoders-boun...@chatt

[Flashcoders] Timer (AS3 newbie question)

2008-12-16 Thread Mendelsohn, Michael
Hi list... [finally migrating to AS3] What would be a good way of going about having many sprites move across the screen at different rates? I have a random number (0-5) that I want to use as a coefficient for each sprite's speed. My thought is to base the movement off of Timer events correspon

RE: [Flashcoders] structuring singletons in AS3

2008-12-03 Thread Mendelsohn, Michael
Hmm...I'm not sure what you mean by static class. Are you saying that the other classes I instance via composition in my singleton should themselves be static? - MM Why aren't you using a static class for that instead of a Singleton? Mendelsohn, Michael wrote: > Thanks for

RE: [Flashcoders] structuring singletons in AS3

2008-12-02 Thread Mendelsohn, Michael
Thanks for the responses everyone. Steven, I could use some constructive feedback: Usually what I do is have a singleton instanced when the swf is initialized, and using composition, other classes are instanced within the singleton. So the singleton becomes a sort of tree trunk with everything

[Flashcoders] structuring singletons in AS3

2008-12-01 Thread Mendelsohn, Michael
Hi list... Slowly but surely, I'm moving from AS2 to AS3. In my AS2 projects, I usually create a singleton on frame 1 of the _root and everything takes off from there. What's the best practice of doing that in AS3, where I have to have a main class that seems to start everything. I can't imag

RE: [Flashcoders] ComboBox not dropping down in browser?

2008-11-03 Thread Mendelsohn, Michael
Hi Cor... I was looking for an example but I don't have one at the moment. All you need to do is add an onEnterFrame function somewhere, then within that function, set the params of the ComboBox instance. The last line of the onEnterFrame function is to delete onEnterFrame. The issue is that V2

RE: [Flashcoders] ComboBox not dropping down in browser?

2008-10-31 Thread Mendelsohn, Michael
It's possible that if your movie is a one frame timeline, you need to initiate all the ComboBox params after one frame. I can only speak for V2 components in AS2, but I have always needed to set up components after one refresh. - MM ___ Flashcoders ma

RE: [Flashcoders] open word document from flash

2008-10-24 Thread Mendelsohn, Michael
Hi Bassam, I don't have my Director documentation in front of me at the moment, but I believe it's this: Result = baOpenFile(fullPathToFile, "Normal") -- returns a numeric value of whether or not it worked. That line of code needs the *full* path to the file name, and it opens the app based on t

RE: [Flashcoders] open word document from flash

2008-10-23 Thread Mendelsohn, Michael
If your swf is wrapped in a Director executable file, you could do this by invoking baOpenFile() with the buddy api xtra. - MM > Is there anyway that I can open word-excel files from flash ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Mendelsohn, Michael
Not sure what strongly typed arrays are. What are the advantages? > OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Mendelsohn, Michael
Yes, because what I'm concerned about is having to jump from AS2 to AS3 to some sort of AS3.1. My migration to AS3 is taking much longer than expected, given my workload. I can't imagine the AS3 will be radically different, right? - MM -Original Message- From: [EMAIL PROTECTED] [mai

[Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Mendelsohn, Michael
Hi list... Anyone know of any additions or changes to AS3 in Flash CS4? I haven't been able to find any specifics online. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] converting TextArea's scroll and bottomScroll tosubstring

2008-09-11 Thread Mendelsohn, Michael
Thanks Sebastian. I'll try this. The only concern I have is that the font populating the TextField isn't fixed width, so I can't really be sure what that cutoff point is, unless it could be suggested otherwise. I mean, if the font was fixed width, I would know that a specific amount of characters

[Flashcoders] converting TextArea's scroll and bottomScroll to substring

2008-09-10 Thread Mendelsohn, Michael
Hi list... Is it possible somehow to get a substring of all the visible text in a textArea? If I know there are 35 lines in the TextArea, and it's only 30 lines tall, how can I have lines 31-35 show up at the very top? (AS2) Thanks! - MM ___ Flashc

RE: [Flashcoders] Component Issue

2008-09-09 Thread Mendelsohn, Michael
Sounds like you're using AS2. When you put the textarea on the stage, try doing it with movieclip.createclassobject() and when you want to get rid of it, use destroyObject(). I just went through some difficulties with the same issue. - MM ___ Flashco

RE: [Flashcoders] all useless: removeMovieClip, destroyObject, DepthManager.setDepthTo

2008-09-03 Thread Mendelsohn, Michael
Thanks Jason for replying, however it didn't work, but I appreciate the suggestion. I've tried swapDepths to a positive number, destroyObject of the components within that movieClip (2 get destroyed, the third one, a ScrollPane containing the other two doesn't), simple removeMovieClip calls, and t

[Flashcoders] all useless: removeMovieClip, destroyObject, DepthManager.setDepthTo

2008-09-03 Thread Mendelsohn, Michael
Hi list... I can't seem to figure out in AS2 how to get V2 components off the stage. I've tried destroyObject, removeMovieClip and even used the DepthManager class to try to get the depth within range to be removed. It's showing as -32000. Any ideas how to get the movieClip off the stage? Help!

RE: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Mendelsohn, Michael
Excellent H! Thanks very much! Glad you had that lying around. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Mendelsohn, Michael
Perfect answer, H. (Too bad it's AS2.) :-( Thanks! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] textField fed htmlText renders title

2008-08-27 Thread Mendelsohn, Michael
Hi list... I'm feeding some htmlText into a TextField and the string within the tag of the html is rendering in the TextField. Is there a trick to hide this? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://c

RE: [Flashcoders] Passing params via url instead of FlashVars

2008-08-25 Thread Mendelsohn, Michael
Very cool Jer. I never looked into swfObject enough to realize it had functions. Thanks! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Passing params via url instead of FlashVars

2008-08-25 Thread Mendelsohn, Michael
? Could you use something like PHP? If you could, it'd be quite trivial. Steve -- Original message -- From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> > Hi list... > > Anyone have a recommendation for passing params into a swf via the url i

[Flashcoders] Passing params via url instead of FlashVars

2008-08-25 Thread Mendelsohn, Michael
Hi list... Anyone have a recommendation for passing params into a swf via the url instead of FlashVars? I need to send out an email link like so: Clickhere.html?a=1 Clickhere.html?a=2 Would it be easier to just send links to two different html pages, each with different Flash Vars? The idea

[Flashcoders] AS2: Can't delete a movieclip

2008-08-12 Thread Mendelsohn, Michael
Hi list... I'm having trouble getting rid of a mc within a v2 scrollpane component in AS2. This mc contains two v2 combobox components, and I can get rid of those using destroyObject(), but the actual containing clip isn't going away. What am I missing that I can't get rid of it? Thanks, - Mich

RE: [Flashcoders] Can Flash read a pdf's metadata?

2008-08-04 Thread Mendelsohn, Michael
Thanks everyone for the great informative answers! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Can Flash read a pdf's metadata?

2008-07-31 Thread Mendelsohn, Michael
Hi list... Might there be any way for AS2 to read a pdf's metadata? AS3? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Mendelsohn, Michael
Yes, that would be nice, but it's AS2. Hopefully AS3 soon! Thanks! - MM Are you using AS3? That would be much easier: var input:String = "Dog,cat,squirrel, bird - horse:worm"; var re:RegExp = /\s*[,-:\r\t]\s*/gm; var result:Array = input.split(re);

RE: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-17 Thread Mendelsohn, Michael
Thanks anyway Cor! Much appreciated. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-17 Thread Mendelsohn, Michael
public function Search():Void { // replace all "," ", " "-" or " - " with " " var changeToSpaces:Array = ["-", " - ", ":", ": ", "\r", "\t", ",", ", "," "]; for (var i = 0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] preparing a series of keywords for a search

2008-07-17 Thread Mendelsohn, Michael
Hi list... I'm trying to build a simple search engine where users enter one or more keywords. But first, I'm trying to format a nice clean array based on what's entered, taking into account extra spaces, commas, etc. Any ideas? Below isn't really working for me. // criteria is the text entered

RE: [Flashcoders] Flip movie clip

2008-06-13 Thread Mendelsohn, Michael
Try looking into the transform matrix. I use AS2, not sure if it's the same in AS3, but with that, you can flip it, and offset it back to its original position. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figle

RE: [Flashcoders] Why is good to extend an Event Class

2008-05-06 Thread Mendelsohn, Michael
There is an excellent thorough chapter on this in the Moock's AS3 book. Well worth reading. - MM Why is it good to extend the Event Class in your application? I understand that you can create your own events with it that are specific to your app but does anyone have any good tutorials/article

RE: [Flashcoders] __proto__ but not prototype?

2008-04-25 Thread Mendelsohn, Michael
This was working, but now it's not. var pv:MovieClip = c.sp.content.createEmptyMovieClip("pixViewer", 180); pv.__proto__ = PixViewer.prototype; PixViewer.call(pv); Error message: There is no method with the name "call." What is that error caused by? - MM __

RE: [Flashcoders] __proto__ but not prototype?

2008-04-25 Thread Mendelsohn, Michael
Thanks ekameleon, Glen and Alain for the great answers! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] __proto__ but not prototype?

2008-04-25 Thread Mendelsohn, Michael
Hi list... I have a class (pixViewer extends MovieClip) and an empty MovieClip (linkage:emptyMC, not registered to any class in the linkage dialog). I want attached this emptyMC to the stage and I want it to be an instance of pixViewer. __proto__ works, but why won't prototype or registerClass?

RE: [Flashcoders] Updating V2 components

2008-04-22 Thread Mendelsohn, Michael
Never mind -- it's the Parameters are locked in instances checkbox. I guess I'm just not clear on what the advantages of that are. > I've made a custom component and added a param to it. Is there a way to update instances on the stage? The new var doesn't show up in the parameters palette or in

[Flashcoders] Updating V2 components

2008-04-22 Thread Mendelsohn, Michael
Hi list... I've made a custom component and added a param to it. Is there a way to update instances on the stage? The new var doesn't show up in the parameters palette or in the component inspector. (CS3/AS2) Thanks, - MM ___ Flashcoders mailing list

RE: [Flashcoders] detecting pdf writer

2008-04-15 Thread Mendelsohn, Michael
Thanks for resonding Sid. Here's what I'm really looking for: if(System.capabilities.hasPrinting){ // Once I get to this point, before going to the PrintJob(), // I still want to check to see if the user has pdf writer } Is that possible somehow? - MM -Original Messag

RE: [Flashcoders] detecting pdf writer

2008-04-15 Thread Mendelsohn, Michael
Hi Glen... Yes, I see there's System.capabilities.hasPrinting returning a Boolean, but I'm looking for something that theoretically returns an array of printer drivers, where I could traverse through it and see if one of them is "PDF writer." - MM > Have a look at System.capabilities - if you

[Flashcoders] detecting pdf writer

2008-04-15 Thread Mendelsohn, Michael
Hi List... Is there any technique for detecting pdf writing ability from within Flash (AS2)? The closest thing I've been able to find would be to call an external jscript to detect an activexobject, but I think that only works for detecting Reader. What I'm looking for is a way to detect if the

RE: [Flashcoders] Seeking example: pop up div with greyed outbackground

2008-04-06 Thread Mendelsohn, Michael
Thanks, Matt. I suspected that Flash would always want to be in the front. Thanks for the heads up. Much appreciated. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Seeking example: pop up div with greyed out background

2008-04-04 Thread Mendelsohn, Michael
Hi list... Does anyone have a good example URLs of a that pops up an alert for users to do something, then have an additional that grays out the background thus highlighting the "alert" div? Thanks, - Michael M. ___ Flashcoders mailing list Flashcode

[Flashcoders] TextField.bottomScroll (part 2)

2008-03-31 Thread Mendelsohn, Michael
Why?? // c is a TextField c.scroll = this.lastVisibleLine; // 338 var firstLineOnPage = c.scroll; // 326 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] TextField.bottomScroll

2008-03-31 Thread Mendelsohn, Michael
Hi list... I'm encountering a weird scenario where a TextField's bottom scroll isn't being reported accurately. It's tracing a number less what it actually. The end of the text in my TF was /r/r/r/r, and now I've populated it to be something like /rtext/rtext/rtext/rtext, thinking that would for

[Flashcoders] multiple skins for V2 scrollbar

2008-03-28 Thread Mendelsohn, Michael
Hi list... Can anyone recommend an easy way to apply varying skins to varying instances of the V2 ScrollBar component, that's a subcomponent of either the ScrollPane or TextField? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.

[Flashcoders] referencing external CSS file

2008-03-21 Thread Mendelsohn, Michael
Hi list... I have an AS2 project with 10 classes with TextFormats instanced throughout. Can anyone recommend a best practice to keep all of these TFs in one place and just have them referenced when needed? I was thinking of making a class just to return different TFs. Is there a way to load a C

[Flashcoders] accessing statics from a timeline

2008-03-11 Thread Mendelsohn, Michael
Hi list... I have a class emc extends movieclip. On emc's timeline, how do I access a static variable in the emc class? Super doesn't seem to work, neither does emc.staticprop. Thanks, - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.c

RE: [Flashcoders] visible area of content in V2 ScrollPane

2008-03-10 Thread Mendelsohn, Michael
It certainly seems this simple, but what if the scrollPane on the stage is 100px tall, but its content is 587px tall. The scrollbar dragger is then proportionately smaller and therefore, it's more difficult to figure out what the visible range of the content is. There would probably be a formula

[Flashcoders] visible area of content in V2 ScrollPane

2008-03-07 Thread Mendelsohn, Michael
Hi list... Within a V2 ScrollPane, I'm trying to figure out what the top edge and bottom edge of the content's visible area are. Anyone have an idea? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.

[Flashcoders] freelancer needed (2+ weeks, Boston or Providence area)

2008-02-25 Thread Mendelsohn, Michael
The project is a document creation/customization tool, allowing users to create documents that are rendered based on XML data. The code (AS2) is complicated and there are a variety of issues needing to be debugged, and overall structure polished up. Location: Must be on site, but that can be eith

RE: [Flashcoders] Yes or no: Moving one MC into another (AS2)

2008-02-07 Thread Mendelsohn, Michael
Thanks, gents. I've just started reading Moock's AS3 book. I'm sleeping better already. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Yes or no: Moving one MC into another (AS2)

2008-02-07 Thread Mendelsohn, Michael
That would do it, Bob, thanks, but my clips aren't even in the library. (It's all generated by code.) I'm wondering, isn't this issue solved in AS3 with addChild()? - MM I'm not sure at what point in your runtime you want to make the copy, but if these clips are all library symbols in the

RE: [Flashcoders] Yes or no: Moving one MC into another (AS2)

2008-02-07 Thread Mendelsohn, Michael
Great idea Jesse, thanks! - MM function getMCData ( mc:MovieClip ):Object { return { _x:mc._x, _y:mc._y, _width:mc._width, _height:mc._height, _xscale:mc._xscale, _yscale:mc._yscale }; } mcB.Y = mcB.attachMovie ( "myMovie", "Y", mcB.getNextHighestDepth(), getMCData ( mcA.X ) ); ___

[Flashcoders] Yes or no: Moving one MC into another (AS2)

2008-02-07 Thread Mendelsohn, Michael
Hi list... I have movieclip A, which contains movieclip X. I also have movieclip B, with no children, and I want it to contain a duplicate of A.X. Is it possible to do this in AS2? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chatty

RE: [Flashcoders] multiple TextFormats in one TextField

2008-02-07 Thread Mendelsohn, Michael
Thanks Gregory. That's exactly what I did and it worked perfectly. - MM 1) in a loop (or in any other way), you create the resulting text with default formatting. 2) at the same time, you record (in arrays) - start/end positions of each string - its TextFormat 3) When the result text

[Flashcoders] multiple TextFormats in one TextField

2008-02-04 Thread Mendelsohn, Michael
Hi list... I'm trying to concatenate a bunch of strings into one TextField, with each string using a specific TextFormat. I'm doing a loop of adding text, formatting that text, then adding more text, formatting it, etc. The problem is whenever I add new text, the entire text in the TextField rev

[Flashcoders] Actionscript help needed (estimated 2+ weeks)

2008-01-31 Thread Mendelsohn, Michael
Actionscript help needed (estimated 2+ weeks) Knowledge of OOP, classes, excellent debugging skills are musts. My project is a document customization tool, allowing users to customize templated documents that are rendered based on XML data. The code is complicated (a few thousand lines and counti

RE: [Flashcoders] Animating sprite.graphics.lineTo

2008-01-30 Thread Mendelsohn, Michael
Jason, I recently put together a bar chart, rendered entirely by code in AS2, where the points must be connected by a line. I draw the entire line (which might look like a profile of the Rocky Mountains) in one mc, and set a mask over it in another mc. I use the tween class on the _width propert

RE: [Flashcoders] missing glyphs

2008-01-25 Thread Mendelsohn, Michael
Thanks Ain. There doesn't seem to be much of a solution. I couldn't open the fla in the zip file, but I'm guessing you created it in CS3, which I don't have. (8) However, I did come up with a not versatile workaround for my purposes: // where tf is a TextFormat... // unicode glyphs not sho

RE: [Flashcoders] missing glyphs

2008-01-25 Thread Mendelsohn, Michael
Thanks for replying Cory. I am doing that. I have a TextFormat with an embedded font that is displaying correctly. The issue is these two glyphs of that font not showing up. The rest of the font's characters are there. Even when I use either of these when building the string, the glyphs don'

[Flashcoders] missing glyphs

2008-01-23 Thread Mendelsohn, Michael
Hi list... I've embedded a font that I confirmed in Windows' character map that it has the glyphs for ≤ and ≥. These glyphs trace fine, but they don't appear in my textField. Any idea what I'm missing? Thanks, - Michael M. var objMarkText:TextField = _root.createTextField("tf", 1, 0, 0, 1,

[Flashcoders] SOLVED: printing a movieclip with attachBitmap

2007-12-20 Thread Mendelsohn, Michael
All it needed was {printAsBitmap:true}. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] printing a movieclip with attachBitmap

2007-12-20 Thread Mendelsohn, Michael
Hi list... I'm having trouble printing a movieclip with an attachBitmap call. The movieclip goes through the PrintJob fine, but there's no bitmapData attached, only a square that's the color of the Flash movie's background color. When I debug, I can see that the bitmapData has params of {height:

[Flashcoders] external flv only playing one frame

2007-12-17 Thread Mendelsohn, Michael
Hi list... I'm putting an external flv on the stage like so: (AS2) var vid:MovieClip = _root.createEmptyMovieClip("vid", 1); var videoContainer:MovieClip = vid.attachMovie("videoContainer", "videoContainer", 1); // videoContainer MC in the library contains a video object named videoObj var nc:Net

RE: [Flashcoders] autosize and wordWrap

2007-12-14 Thread Mendelsohn, Michael
Pardon me -- I just discovered TextField.textWidth. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] autosize and wordWrap

2007-12-14 Thread Mendelsohn, Michael
Hi list... I'm putting a TextField on the stage and I want to know it's _width. (AS2) It's two lines long (htmlText = true), and so I have wordWrap = true. The issue is that according to the autoSize documentation: If wordWrap is also set to true, then only the bottom side of the text field wil

[Flashcoders] SharedObject parallel universe?

2007-10-19 Thread Mendelsohn, Michael
Hi list...glad Flashcoders is back!! I'm saving data into a SharedObject each session and repopulating a V2 ComboBox with that data. Sometimes, mysteriously, when I delete the SharedObject and test the movie, the ComboBox is populated with some very old data that had nothing to do with what I've

RE: [Flashcoders] Traversing through Object goes backwards

2007-09-13 Thread Mendelsohn, Michael
Thanks for the response Andy. I just ended up doing this: public function reverseObject(objToReverse:Object):Object { // reverses the object again after built, meaning it's now in the right order var alteredObj:Object = new Object(); for (var i in objToReverse) {

<    1   2   3   4   5   >