Re: [Flashcoders] AS 3.0 - Typecast a new Obj instantiated from a library linked class to a 'displayObject'

2007-02-23 Thread Rob Romanek
Hi Dave, I'm not sure you need to be accessing your bitmap via a movieClip. I'm doing something similar but I use the bitmap directly from the library. I se the bitmap up an auto generated class using 'Linkage' i.e. 'myBitmap' then if I need the bitmapData in yourscript simply say: var

Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-22 Thread Rob Romanek
Try adding this to your fla addChild(hw); In your HelloWorld class you've added your textField inside but since you have added you HelloWorld() object to the display list of the movie it will never get drawn. I have a question back at you along this example. I'm running on windows and

Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-23 Thread Rob Romanek
Hi Jason, My packageTest.fla is import MyPackage.*; var hw:HelloWorld = new HelloWorld(); var mc:MyClass = new MyClass(); and in the same directory I have MyPackage.as //MyPackage.as package MyPackage { public class HelloWorld { public function HelloWorld()

Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread Rob Romanek
Hi Ron, Thanks for the suggestion but still no luck on my end. It seems that on my set up I need to have a constructor named the same as the .as file and that constructor has to be initiated prior to any of the other classes being initiated. So I set up public class MyPackage{

Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread Rob Romanek
On Mon, 26 Mar 2007 12:17:10 -0400, elibol [EMAIL PROTECTED] wrote: Here is a good article on class/package syntax and structure: http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/ ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread Rob Romanek
Hi Ron and elibol, Thanks for the explanations and link both helped straighten out my understanding of the packaging structure. Rob On Mon, 26 Mar 2007 12:17:10 -0400, elibol [EMAIL PROTECTED] wrote: Here is a good article on class/package syntax and structure:

Re: [Flashcoders] scope in AS3

2007-03-29 Thread Rob Romanek
On Wed, 28 Mar 2007 18:14:50 -0400, Dennis Asher [EMAIL PROTECTED] wrote: I've managed to avoid OOP till now but AS3 is here and no choice now. What's wrong in the class below? The code in the mouseover/mouseout functions do not reference the textfield correctly. I've tried adding:

[Flashcoders] AS3 Component talking to authoring environment

2007-05-28 Thread Rob Romanek
Hi All, I've been playing around with building my own components in AS3 and am trying to figure out if there is a way to get the live preview of the component to get info from the authoring environment. For example the file path of the fla into which the component was dropped. Thanks,

Re: [Flashcoders] Flash C3 and Embedding resources

2007-06-01 Thread Rob Romanek
Try this out in your sub-loaded swf var tClass:Class = getDefinitionByName(Box) as Class; addChild(new tClass()); hth, Rob On Fri, 01 Jun 2007 12:15:09 -0400, Smith, Philip [EMAIL PROTECTED] wrote: If a graphical library linkage element you want to add/attach is in the host .swf library (ie

Re: [Flashcoders] as3 Loader.content.name error

2007-06-07 Thread Rob Romanek
If you want to call addChild on the content then you can simply do: addChild(event.target.content) and that will throw your content on the stage. I'm not sure why it is not possible to name that new content. I've tried playing around with this myself and can't figure out how once you've

Re: [Flashcoders] as3 Loader.content.name error

2007-06-07 Thread Rob Romanek
Another workaround that I've been using is to use the loading swf as wrapper for the movieClip I ultimately want to display on the stage. Create the content you want to use as movieClip symbol in your swf, export for actionscript, no need to put it on the stage, and give it a class name.

Re: [Flashcoders] AS3 package and class access

2007-07-17 Thread Rob Romanek
What is your import statement for the singleton like? import com.foo.view.MySingletonClass; Rob On Tue, 17 Jul 2007 14:10:56 -0400, Matt Muller [EMAIL PROTECTED] wrote: Hi, I have a question about class instantiation. I have a class in this package com.foo.view.playerSkins I am trying

[Flashcoders] AS3 BitmapGradientFill

2007-07-18 Thread Rob Romanek
I'm sure I'm missing something basic here. In Flash 9 I'm trying to create a gradient fill that starts at blue, over the first 3rd of the shape it fades to white, remains solid white over the next 3rd then over the final 3rd it fades from white back to blue. I thought the code below should

Re: [Flashcoders] AS3 BitmapGradientFill

2007-07-18 Thread Rob Romanek
Thanks alot, that does the trick. Rob On Wed, 18 Jul 2007 16:45:59 -0400, Rákos Attila [EMAIL PROTECTED] wrote: Set up a matrix which determines the gradient box and pass it to the beginGradientFill(), e.g: var m: Matrix = new Matrix(); m.createGradientBox(100, 100);

Re: [Flashcoders] long dash

2007-08-23 Thread Rob Romanek
I reference this page: http://www.w3.org/TR/html4/sgml/entities.html try c=a #8212; b hth, Rob On Thu, 23 Aug 2007 14:07:38 -0400, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true;

[Flashcoders] Live Preview communicating with Flash

2007-08-30 Thread Rob Romanek
I'm playing around with components some more in Flash and am trying to figure out a way for the live preview to get the file name of the currently active document in Flash. I was wondering if this might be doable using the ExternalInterface class. While I can get the live preview to tell

Re: [Flashcoders] Help with listener for custom class (AS3)

2007-09-13 Thread Rob Romanek
Hi Dane, Here are some thoughts for you to try. First off since you are not actually working with a display object you don't need this class to extend sprite. The easiest way to give the class the ability to send out events is to have it extend EventDispatcher and then you can have it

Re: [Flashcoders] Radial Gradient Programmatic Masks in AS3.0

2007-09-13 Thread Rob Romanek
What have you tried? I don't think you can do this via the timeline you need to do it programatically by setting the mask of a clip to another clip which has it's bitmap caching set to true. hth, Rob On Thu, 13 Sep 2007 14:19:42 -0400, Patrick Lemiuex [EMAIL PROTECTED] wrote: Hi, I was

Re: [Flashcoders] Radial Gradient Programmatic Masks in AS3.0

2007-09-13 Thread Rob Romanek
to understand the exact process Thanks, Patrick On Sep 13, 2007, at 12:35 PM, Rob Romanek wrote: What have you tried? I don't think you can do this via the timeline you need to do it programatically by setting the mask of a clip to another clip which has it's bitmap caching set to true. hth, Rob

Re: [Flashcoders] [AS3] Problem with For loop

2008-05-02 Thread Rob Romanek
Try the change I've added below and see if it works for you. On 2-May-08, at 10:58 AM, SJM - Flash wrote: This function should loop through 5 times creating 5 different MovieClips, each one with a mouse click event attached, which should trace the value of i either 1, 2, 3, 4 or 5. So the

Re: [Flashcoders] need help.. switch statement parameters

2008-05-17 Thread Rob Romanek
Try changing this line: switch(event.target.selection.name) { to this: switch(e.target.selection.name) { hth, Rob On 17-May-08, at 11:35 AM, rlyn ben wrote: its giving me 1120 error on switch statement parameters.. switch(event.target.selection.name) { what am i missing on the

Re: [Flashcoders] stack overflow in IE ?

2008-05-20 Thread Rob Romanek
FYI Also crashes under OSX 10.5.2, Safari 3.1, FP 9,0,115,0 On 20-May-08, at 10:13 AM, Andrei Thomaz wrote: dear Jonathan, in my computer, with the same versions of Firefox and FP, also under Vista, it runs fine. What worries me is that it doesn't use recursion, just some nested loops,

Re: [Flashcoders] Maintain position on rotation

2008-06-18 Thread Rob Romanek
Hi Eric, Try out this code, should do the trick and show that localToGlobal does work Run it once as is, then uncomment the rotation and see the results. hth, Rob var sprite1:Sprite = new Sprite(); sprite1.graphics.beginFill(0x00ff00); sprite1.graphics.drawRect(0,0,100,100);

Re: [Flashcoders] Two problems with BitmapData.draw() w/r/t registration point and transparency

2008-07-03 Thread Rob Romanek
As suggested Matrix will get you there. Here is some sample code: var box1 = new Sprite(); box1.graphics.beginFill(0xff); box1.graphics.drawRect(-10,-10,10,10); box1.graphics.endFill(); box1.graphics.beginFill(0x00ff00); box1.graphics.drawRect(0,0,20,20); box1.graphics.endFill();

Re: [Flashcoders] Problems creating a drag and drop

2008-09-24 Thread Rob Romanek
Hey Glen when you say your mouse up is outside the stage do you mean that the mouse up is occurring outside of the dragged object in which case the object catching the up event is the stage object. (Rest of your sentence seems to imply that.) Susan, if you imagine your cursor moving faster

Re: [Flashcoders] ComBox Box - Font Issues

2008-10-18 Thread Rob Romanek
I'm pretty sure the text field trick should work because it forces the font to be registered. Just embedding fonts in your library won't be enough if they are accessed via code only. To avoid the text field trick you will need to use Font.registerFont() to make them usable in your app.

Re: [Flashcoders] open word document from flash

2008-10-23 Thread Rob Romanek
From within a browser or are you creating a stand-alone app that needs to open the files? If a stand alone then you could use a wrapper. I've done this with AS3 Flash running as an active-x component inside of Director 10. Flash communicates to Director, Director uses an xtra like

Re: [Flashcoders] text line overflow

2008-11-17 Thread Rob Romanek
Hi Latcho, I see you've gotten a couple response but I'll throw another one in to the mix. The main functions that will interest you are: 1) getCharIndexAtPoint which locates the char at the edge of the textfield 2) replaceSelectedText which is used to substitute in ... This is some code

Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Rob Romanek
Hey Anthony have you checked out the MatrixTransformer class its got a handy function, rotateAroundInternalPoint(), which will serve you well. Rob On 12-Jan-09, at 3:24 PM, Anthony Pace wrote: -Original Message- From: Anthony Pace [mailto:anthony.p...@utoronto.ca] Sent: Saturday,

Re: [Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Rob Romanek
Hi Michael, If your second font is not embedded in any text field but only available via linkage then while it is embedded in your file it is not available for usage. To make it available you need to use the registerFont function with your linked font. After that it should show up in any

Re: [Flashcoders] Creating Dynamic addEventListeners with AS3

2009-04-05 Thread Rob Romanek
You can try something along the lines of var stateButton = getChildByName(State_ + rs[i]); stateButton.addEventListener(MouseEvent.CLICK, StateButtonClicked); hth, Rob On 5-Apr-09, at 8:33 PM, Graham Pearson wrote: What I am trying to do is when I retrieve the recordset back from the

Re: [Flashcoders] XML find and delete nodes

2009-06-09 Thread Rob Romanek
This might get you pointed in the right direction. You can get an XMLList of all the empty nodes by this kind of statement xml.modules.module.(children().length() == 0); but if you then try a simple delete on that delete xml.modules.module.(children().length() == 0); you get: Delete

Re: [Flashcoders] XML find and delete nodes

2009-06-09 Thread Rob Romanek
Since Jason wanted to get rid of all the nodes that were empty he would want to filter against !=0 and then use setChildren to refresh his original xml. Using setChildren is a nifty trick, much nicer than that delete loop I put out there. Rob On 9-Jun-09, at 12:24 PM, Steven Sacks wrote:

Re: [Flashcoders] AS3 MOUSE_OVER/OUT bubbling

2009-07-05 Thread Rob Romanek
Hey Andrew, Try setting mouseEnabled to false for your cursor sprite. hth, Rob On 5-Jul-09, at 8:40 AM, Andrew Sinning wrote: The problem is that as soon as the custom cursor's sprite becomes visible, it causes a MOUSE_OUT event to get called on the image (because the image is

Re: [Flashcoders] AIR and external mp3's

2012-03-15 Thread Rob Romanek
Hi John, Yes I have developed apps that use external mp3 files, that was a last year so I'm trying to remember if we had any gotchyas. It should work. Are you sure you are bundling the mp3 files properly with your app so they exist on the iPad? If I come up with any ideas I'll let you know.

Re: [Flashcoders] elearing content using adobe air for ipad

2012-06-14 Thread Rob Romanek
Hi, You can load swfs into the app BUT the swfs can not contain any action script in them. This includes giving class names to items in your library or even simple stop() commands. We use swfs as external libraries in our as3 built apps but our approach has been to put items on the stage and

Re: [Flashcoders] elearing content using adobe air for ipad

2012-06-14 Thread Rob Romanek
...@chattyfig.figleaf.com] On Behalf Of Rob Romanek Sent: 14 June 2012 13:58 To: Flash Coders List Subject: Re: [Flashcoders] elearing content using adobe air for ipad Hi, You can load swfs into the app BUT the swfs can not contain any action script in them. This includes giving class names to items in your