Re: [Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread Ron Wheeler
You might want to read Head First Design Patterns for some good ideas about how to write good code. Lots of practical ideas about many of te situations that you need to resolve. Ron Andrew wrote: Hi I'm new to OOP programming in AS2. I'm writing two classes right now. One which

Re: [Flashcoders] text attribute!

2007-04-24 Thread 阿本
sherif79,你好 I want change the input textbox to static textbox ! [EMAIL PROTECTED] 2007-04-24 - Original Message - From: Sherif Elshazly To: james.miao Sent: 2007-04-23, 19:12:21 Subject: Re: [Flashcoders] text attribute! What attribute do you want to change? - Original

Re: [Flashcoders] help with datagrid flash 8

2007-04-24 Thread Stefan Thurnherr
Hi Gustavo, I assume that myBlog is a DataGrid component. First of all dataProvider is a property, so the syntax to set it is as follows: myBlog.dataProvider = myParsedRssData; Second I think you need something in between your RSS feed and your DataGrid component. This something must parse

Re: [Flashcoders] The great CS3 Swindle

2007-04-24 Thread Zárate
Hi guys, Sorry to bring this up again, but Danielle Libine has put up a really interesting pdf about the subject. He gathers lots of data with really clear graphics about prices and countries. Then a couple of questions for Adobe: http://web.mac.com/libine/iWeb/Site/Article.html I think we

Re: [Flashcoders] The great CS3 Swindle

2007-04-24 Thread Cedric Muller
I will print this PDF and distribute it around ... to consumer associations and the students It has to be done whatever the reasons. Things must be fair and correct. Thanks Cedric Hi guys, Sorry to bring this up again, but Danielle Libine has put up a really interesting pdf about the

Re: [Flashcoders] The great CS3 Swindle

2007-04-24 Thread Ian Thomas
Excellent article. I'll pass it around. Ian On 4/24/07, Zárate [EMAIL PROTECTED] wrote: Hi guys, Sorry to bring this up again, but Danielle Libine has put up a really interesting pdf about the subject. He gathers lots of data with really clear graphics about prices and countries. Then a

Re: [Flashcoders] The great CS3 Swindle

2007-04-24 Thread Dave Wood
A related issue which has got me wondering is what to do with some of my old software... The upgrade path to either CS3 Web Premium or Design premium assumes that we have one of several existing versions of software including Creative Suite 2 OR Macromedia Studio 8. I'm sure there are

Re: [Flashcoders] Shared Font Symbol

2007-04-24 Thread gantulga tsenguun
Hello Dembicki I am Mongolian student. I can't Do this. sorry Don't write mail again Please Иван Дембицкий [EMAIL PROTECTED] wrote: Hello Matheus, http://www.sharedfonts.com/eng/faq.html#include A don't use all the caracters that it�s being embeded and I need my file to be

[Flashcoders] Can we know the domain name from where swf file is currently playing?

2007-04-24 Thread Vivek Lakhanpal
Hi Everyone, Is there anyway we can check where from the current swf file is being played? Something similar to location.href of javascript? I don't want to use flashvars or javascript. Pure swf/AS. -- Thanks Regards, Vivek Lakhanpal ___

[Flashcoders] Re: Can we know the domain name from where swf file is currently playing?

2007-04-24 Thread Vivek Lakhanpal
sorry i repeated this question. I found answer to this question on flashnewbie posted yesterday. On 4/24/07, Vivek Lakhanpal [EMAIL PROTECTED] wrote: Hi Everyone, Is there anyway we can check where from the current swf file is being played? Something similar to location.href of javascript? I

Re: [Flashcoders] Shared Font Symbol

2007-04-24 Thread Иван Дембицкий
Hello Gantulga, Don't worry. Relax. And try again. -- iv 2007/4/24, gantulga tsenguun [EMAIL PROTECTED]: Hello Dembicki I am Mongolian student. I can't Do this. sorry Don't write mail again Please Иван Дембицкий [EMAIL PROTECTED] wrote: Hello Matheus,

Re: [Flashcoders] Can we know the domain name from where swf file is currently playing?

2007-04-24 Thread opto-type
You can use _url like this: nomRoot = this; src = nomRoot._url; Patrick 2007/4/24, Vivek Lakhanpal [EMAIL PROTECTED]: Hi Everyone, Is there anyway we can check where from the current swf file is being played? Something similar to location.href of javascript? I don't want to use flashvars

[Flashcoders] there is a problem plz help

2007-04-24 Thread Waseem Shahzad
/* to find greater no. from the array whats the problem with this algo. please help */ #includeiostream.h void main(){ int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; int greater=0; for(int i=0; i15;){ if(arr[i++]greater){ greater=arr[i]; } } coutgreater is greaterendl;

Re: [Flashcoders] flash and paypal

2007-04-24 Thread allandt
super-useful guys, thankyou how secure is this? are there any passwords or seller account details sent by flash to paypal? Quoting Jordan Snyder [EMAIL PROTECTED]: That was helpful John! FYI, it seems your Google Checkout code is broken! Cheers On 4/23/07, John Hattan [EMAIL PROTECTED]

Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Petrus Rademeyer
you check if the arr[i] is greater than greater and then you increment i rather do for(int i=0; i15;i++){ if(arr[i]greater){ greater=arr[i]; } } :) Waseem Shahzad wrote: /* to find greater no. from the array whats the problem with this algo. please help */ #includeiostream.h

Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Claus Wahlers
to find greater no. from the array whats the problem with this algo. please help int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; int greater=0; for(int i=0; i15;){ if(arr[i++]greater){ greater=arr[i]; } } First of all, it's C. Second, try incrementing i inside the for statement,

[Flashcoders] Shifting points 90 degrees

2007-04-24 Thread Adrian Lynch
Hey all, I'm using the tutorial on building a carousel from gotoandlearn.com as the basis of one that has a few more things it can do. I'm having trouble with the placement of items on the circle at the beginning. The angle is derived with: t.angle = i * ((Math.PI * 2) / numOfItems); The x

RE: [Flashcoders] Shifting points 90 degrees

2007-04-24 Thread Adrian Lynch
Through playng about, I've come up with changing: t.angle = i * ((Math.PI * 2) / numOfItems); to: t.angle = (i * ((Math.PI * 2) / numOfItems)) + (Math.PI * .5); Adding 90 degrees to all items. Seems to work :O) Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Sherif Elshazly
Could be irrelevant or could be useful so I'll mention it anyway. That looks fine to me, but i would create a new variable to hold the value of arr.length to test against, it'll be more efficient to access a variable than an array's property. var arr:Array =

Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread opto-type
And what about that ? var arr:Array = [17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; arr.sort(16); trace(arr[arr.length-1]); Patrick 2007/4/24, Sherif Elshazly [EMAIL PROTECTED]: Could be irrelevant or could be useful so I'll mention it anyway. That looks fine to me, but i would

Re: [Flashcoders] flash and paypal

2007-04-24 Thread John Hattan
Yes it is. That's what happens when you make minor code changes without testing 'em. It's working now if you want to try it again. - Original Message From: Jordan Snyder [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, April 23, 2007 4:19:53 PM Subject: Re:

[Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!

2007-04-24 Thread Erich Erlangga
I have a problem concerning Math. My app need to draw points using movieclip from library. the data comes from the xml file. there are nearly 7000 nodes in the xml describing each points, esp it's X and Y coordinate. Using a single for loop (counting 1, 2, 3, ...and so forth) doesn't let me

Re: [Flashcoders] flash and paypal

2007-04-24 Thread John Hattan
You don't send passwords to paypal. Just the transaction details (item numbers, quantities, and prices) and your paypal address. The user enters all the secure stuff on the paypal site so you don't have to mess with that. The transaction you get from paypal only includes the user's info (name,

Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Waseem Shahzad
Thanx Nice solution. On 4/24/07, opto-type [EMAIL PROTECTED] wrote: And what about that ? var arr:Array = [17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; arr.sort(16); trace(arr[arr.length-1]); Patrick 2007/4/24, Sherif Elshazly [EMAIL PROTECTED]: Could be irrelevant or could be

Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Waseem Shahzad
thanx for ur help. On 4/24/07, Sherif Elshazly [EMAIL PROTECTED] wrote: Could be irrelevant or could be useful so I'll mention it anyway. That looks fine to me, but i would create a new variable to hold the value of arr.length to test against, it'll be more efficient to access a variable than

RE: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!

2007-04-24 Thread Danny Kodicek
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erich Erlangga Sent: 24 April 2007 14:27 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems! //run 7 times faster for attaching symbol in

[Flashcoders] Error installing Flash CS3

2007-04-24 Thread Ruben Sainz de la Maza
Hi I have a friend with a problem when try install the new Flash CS3. The error ocurs when he executes Setup.exe file: Critical errors were found in Setup - Session has dependencies that cannot be satisfied Please see the Setup log file for details He don´t found any setup.log. Any idea? Ruben

Re: [Flashcoders] flash and paypal

2007-04-24 Thread allandt
thanks guys. You've been amazingly helpful 3 flashcoders Quoting John Hattan [EMAIL PROTECTED]: You don't send passwords to paypal. Just the transaction details (item numbers, quantities, and prices) and your paypal address. The user enters all the secure stuff on the paypal site so you

Re: [Flashcoders] Error installing Flash CS3

2007-04-24 Thread sean
Don't know if it's relevant, but if he was on the Flash CS3 beta, he will have to make sure he did the FULL uninstall on it forst. Any remnants will cause problems when you try to install the new version . Sean Hi I have a friend with a problem when try install the new Flash CS3. The error

Re: [Flashcoders] RE: Cross domain issue

2007-04-24 Thread Michael Boski
Both apps are using delagate and eventdispature. problem I am having: the shell sets up this function onLoadInit (mc : MovieClip) { trace (MOB onLoadInit: + mc); passAlongParameters (); this.getPlayer = function () { return placeHolder_mc.embeddedPlayer.getPlayer (); }

Re: [Flashcoders] RE: Cross domain issue

2007-04-24 Thread Michael Boski
thanks it was the Security.allowDomain issue *ActionScript 2.0 Language Reference* [image: Previous]file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/ActionScriptLangRef/2646.html [image:

[Flashcoders] browser security aggrevations (rant alert)

2007-04-24 Thread Andreas R
basic banner. you click on something, a url opens. However, this process has to go through a delegate. User clicks, releases; bam, Adobe flash player has stopped a potentially unsafe operation Banner has a search bar, enter key, when this inputfield has focus, calls getURL. Nuh uh. Adobe

Re: [Flashcoders] help with datagrid flash 8

2007-04-24 Thread Gustavo Duenas
thanks guys, I've just download a data connection wizard and a grid wizard from adobe exchange, I found it here: http://www.adobe.com/devnet/flash/articles/datawizards.html is quick to use and nice, the thing I have to figured out is how to assign the link property (open a webpage) to the

Re: [Flashcoders] browser security aggrevations (rant alert)

2007-04-24 Thread Иван Дембицкий
Andreas, try test your movies in internet. -- iv ___ 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

RE: [Flashcoders] browser security aggrevations (rant alert)

2007-04-24 Thread Holth, Daniel C.
Andreas, Are you testing on a webserver or locally? I rarely get errors from using ExternalInterface or getURL calls when testing online... Flash security is horrible to work with locally (hard-drive, CD-ROM, etc) and it can be a real nuisance to have to always upload your files to the

Re: [Flashcoders] browser security aggrevations (rant alert)

2007-04-24 Thread Muzak
So please, smarter people than i; How do you facilitate user interactions with the browser without crashing into this lunatic security management solution? What are the rules of thumb? You might want to start here: http://www.adobe.com/resources/security/

[Flashcoders] scoping issue (?) with static, recursive function

2007-04-24 Thread me myself
Okay, so I have an FLA with a series of embedded movieclips: garden tree branch twig flower. I want a static function -- in an as 2.0 class -- that, when given flower, returns tree. In other words, you can give in an embedded movieclip and it finds that clips ALMOST outermost parent.

Re: [Flashcoders] scoping issue (?) with static, recursive function

2007-04-24 Thread Andy Herrman
You need a 'return' before the recursive call: class com.research.StaticRecurse { public static function getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip { if (mc._parent._name == garden) { trace(inside getOuterMostParent:

Re: [Flashcoders] scoping issue (?) with static, recursive function

2007-04-24 Thread me myself
duh! Thanks, Andy. On 4/24/07, Andy Herrman [EMAIL PROTECTED] wrote: You need a 'return' before the recursive call: class com.research.StaticRecurse { public static function getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip { if (mc._parent._name ==

[Flashcoders] mc alpha not effecting static text

2007-04-24 Thread Andrew Sinning
When I change the alpha of a movie clip, the alpha of static text inside the clip remains at 100%. It looks just fine within Flash, but in the Player it stays at 100%. I'm using MX04. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] mc alpha not effecting static text

2007-04-24 Thread Andrew Sinning
Totally weird. If I change my static text fields to #dynamic and embed the characters then the alpha works. This is exactly the opposite of what it says in this article here: http://www.connectedpixel.com/blog/fonts/embedding What the heck? Andrew Sinning wrote: When I change the alpha

Re: [Flashcoders] mc alpha not effecting static text

2007-04-24 Thread Andrew Sinning
Figured it out: I don't have the font's installed on this machine. duh. Andrew Sinning wrote: When I change the alpha of a movie clip, the alpha of static text inside the clip remains at 100%. It looks just fine within Flash, but in the Player it stays at 100%. I'm using MX04. Thanks.

[Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread Andrew
Is there also some way to do this using a command called getinstance() ? I've seen it in some AS script and it looks like it passes data between classes? Cheers Andrew ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

[Flashcoders] Changing Green (halogreen) highlight color

2007-04-24 Thread Helmut Granda
Is there anyway to change the green highlight color for components without having to create a custom skin (The green/orange/blue highlight when the component has focus) ? TIA ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

[Flashcoders] Class for movie - best practice question

2007-04-24 Thread Johan Nyberg
Hi, just wanted to know if there is a best practice when creating a class for the mother movie (i.e. the flash-movie itself). Is this the way to go? var mother:MyFabFlashApp = new MyFabFlashApp(); ..or is there a better way? Seems kind of a stupid question, but I wanted to put it anyway in

Re: [Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread Ron Wheeler
I do not think that this passes any data but it does let you grab an instance (usually of a singleton) so that you can use setters and getters to pass the data. If the object is not a Singleton, I am not sure which instance you get so it is only part of the solution. Look at the book Head

Re: [Flashcoders] The great CS3 Swindle

2007-04-24 Thread Newsdee
I wouldn't hold my breath waiting for prices changing from this, unfortunately. At the end of the day pricing is purely a marketing function, and in that world the only rule is to charge as much as the customer is willing to pay. Then there are hundreds of ways to justify the price by calling

Re: [Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread Andy Herrman
getInstance() is usually used for accessing Singleton classes. These are classes of which only a single instance can exist. This way any class can call getInstance (a static method) to get the class, and that class can store shared data. Take a look at this:

Re: [Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread R�kos Attila
A Is there also some way to do this using a command called getinstance() ? A I've seen it in some AS script and it looks like it passes data between A classes? There is no such method in Flash's built-in classes, so propably it occured in someone's custom class. In general getInstance is a

RE: [Flashcoders] Changing Green (halogreen) highlight color

2007-04-24 Thread Matt Samet
_global.style.setStyle(themeColor, 0x6092B8); Replace 0x6092B8 with whatever color you want. You can even use string literals like haloGreen, haloBlue, etc. -=matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Tuesday, April 24,

Re: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread Robert Brisita
One way: In the same directory as your SWF. Have a main class with a static function that takes in a movie clip. In your FLA put code in Frame 1 like: MainClass.main(this); The this is the root movie clip. The static function main will pass it around to who ever needs it in your

Re: [Flashcoders] Changing Green (halogreen) highlight color

2007-04-24 Thread Andy Herrman
I believe you can use the setStyle function to do it. For instance, in some of my code where I'm setting up a combo box I have this (I forget which color setting actually changes the focus rectangle, but I think it's 'themeColor'): comboBox.setStyle('themeColor', 0x007CBA);

Re: [Flashcoders] Changing Green (halogreen) highlight color

2007-04-24 Thread John Mark Hawley
setStyle(themeColor, red ( or 0xFF or whatever ) ); From: Helmut Granda [EMAIL PROTECTED] Date: 2007/04/24 Tue PM 02:04:23 CDT To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Changing Green (halogreen) highlight color Is there anyway to change

[Flashcoders] links behaviors in a data grid component

2007-04-24 Thread Gustavo Duenas
Hi, I've recently downloaded a data grid editor and a data conn wizard, it went fine in order to retrieve data from a xml page, but I'd like to use the links in order to go to the site where the news is bigger, do you know how? in the wizard everything went ok, but when I tried to click on

RE: [Flashcoders] links behaviors in a data grid component

2007-04-24 Thread Matt Samet
I'm not sure what you mean. Are you trying to display clickable links (instead of just regular text) inside cells in a DataGrid? If so, you probably want to use a CellRenderer to do this. CellRenderers allow you to display custom content in each cell of a column inside the DataGrid. They can be

Re: [Flashcoders] links behaviors in a data grid component

2007-04-24 Thread Gustavo Duenas
Thanks Matt, it is exactly what I'm looking for: to make clickable the cell of the link column. Do you mind to send me where I can learn more about this cell renderer? Regards. Gustavo Duenas On Apr 24, 2007, at 4:34 PM, Matt Samet wrote: I'm not sure what you mean. Are you trying

RE: [Flashcoders] links behaviors in a data grid component

2007-04-24 Thread Merrill, Jason
Do you mind to send me where I can learn more about this cell renderer? Google is your friend. Your bestest bestest friend. http://www.flash-db.com/Tutorials/cellrenderer/ Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team

[Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda
Is there any specific reason why after calling clearInterval the variable with the interval returns 1 instead of undefined/null? Following the docs and creating a simple item we get different results (no different but no what our logic might expect) function callback() { trace(interval called:

Re: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Steven Sacks
An interval ID is just a number. If you clear the interval, it doesn't get rid of the number, it just stops the interval of that ID from running. delete intervalID; Helmut Granda wrote: Is there any specific reason why after calling clearInterval the variable with the interval returns 1

RE: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Karina Steffens
Dunno if there's a good reason behind it, but if you need it to return null you can always use delete intervalID just afar clearing the interval. Karina -Original Message- From: Helmut Granda [mailto:[EMAIL PROTECTED] Sent: 24 April 2007 22:19 To: Flashcoders mailing list Subject:

Re: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread Steven Sacks
Best practices: A lot of people use main.swf and main.as. FLASC/MTASC has a feature to support this very functionality. Never put classes in the same folder as your movie. Always put them in a namespace folder chain. For instance: class com.clientname.projectname.Main HTH, Steven

Re: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda
Thats what I thought. I just wanted to make sure I wasn't missing anything else that was essential. Thanks! On 4/24/07, Steven Sacks [EMAIL PROTECTED] wrote: An interval ID is just a number. If you clear the interval, it doesn't get rid of the number, it just stops the interval of that ID

Re: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread sean
There are a number of ways of essentially 'hacking' AS2 to behave in a more classic OO manner. Personally, as it IS a hack no matter what you do in AS2, I always keep it simple and just import a Main.as file, rather than go to unnecessarily elaborate lengths to fool myself that I'm really using a

Re: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Muzak
clearInterval stops an interval from executing, it doesn't remove the ID that was assigned to the interval. From the docs: quote setInterval: Returns Number - An integer that identifies the interval (the interval ID), which you can pass to clearInterval() to cancel the interval.

Re: [Flashcoders] mc alpha not effecting static text

2007-04-24 Thread Nick Johnston
Andrew Sinning wrote: Figured it out: I don't have the font's installed on this machine. duh. Andrew Sinning wrote: When I change the alpha of a movie clip, the alpha of static text inside the clip remains at 100%. It looks just fine within Flash, but in the Player it stays at 100%. I'm

Re: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread eric e. dolecki
you could try clearInterval( intervalID); delete intervalID; and then wait for the garbage truck to drive by and pick it up... eric On 4/24/07, Steven Sacks [EMAIL PROTECTED] wrote: An interval ID is just a number. If you clear the interval, it doesn't get rid of the number, it just stops

Re: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda
So once you create a new interval with the same name you will lose the path of the original? /*SAMPLE Of course we know this is not the way to do it ;) Its just for testing purposes */ var myInterval:Number = setInterval (this, test, 1000); var myInterval:Number = setInterval (this, test,

Re: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda
you could try clearInterval( intervalID); delete intervalID; and then wait for the garbage truck to drive by and pick it up... eric haha, nice... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re[2]: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread R�kos Attila
HG So once you create a new interval with the same name you will lose the path HG of the original? An interval has no name, it has a numeric ID - what has a name is the variable (or more variables if you want) where you store this ID. And yes, if you doesn't care about storing the ID (e.g. you

Re: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread Steven Sacks
If you like Java so much, why don't you marry it? If you want to make deferential commentary regarding Actionscript, go to Java forums and seek validation from your Java friends. Unlike us Flashcoders, I'm sure they'd be happy to oblige. It's extremely easy to make a document class in AS2

RE: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread Patrick Matte | BLITZ
Try this class. Put new ApplicationClass(this); on the first frame of the timeline. import mx.events.EventDispatcher; class ApplicationClass extends MovieClip{ public var addEventListener:Function; public var removeEventListener:Function; private var

RE: [Flashcoders] Papervision3D Terrain Demo with USGS SDTS DEM data

2007-04-24 Thread Palmer, Jim
The documentation is rather lacking - but it's relatively easy once you struggle through your first project. The best thing that's happening right now, beyond just the core PV3D code, are all the demos people are putting together with source code released. It's really tough just doing a

RE: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread David Ngo
Why would you extend MovieClip and composition a MovieClip as well? Seems a bit redundant, no? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte | BLITZ Sent: Tuesday, April 24, 2007 7:09 PM To: flashcoders@chattyfig.figleaf.com Subject: RE:

Re: [Flashcoders] Papervision3D Terrain Demo with USGS SDTS DEM data

2007-04-24 Thread Jordan Snyder
jim, I haven't seen anywhere to download it readily...is it in Beta only? Where might I get a copy? Cheers On 4/24/07, Palmer, Jim [EMAIL PROTECTED] wrote: The documentation is rather lacking - but it's relatively easy once you struggle through your first project. The best thing that's

RE: [Flashcoders] Papervision3D Terrain Demo with USGS SDTS DEM data

2007-04-24 Thread Palmer, Jim
Jordan, It's in bleeding-edge-beta only available through SVN repository. Check out the osflash landing page http://www.osflash.org/papervision3d and subscribe to the mailing list for acquisition information. -- Jim Palmer ! Mammoth Web Operations -Original Message- From: [EMAIL

RE: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread Patrick Matte | BLITZ
This AS2 class acts like the document class in AS3. You need to extend MovieClip like you need to extend Sprite or MovieClip in AS3. Tracing this in the class will result in _level0, its not composition. Its really useful for swf that you load, gives you the ability to type check everything on

[Flashcoders] Javascript SetVariable -- when does Flash see the change?

2007-04-24 Thread Douglas Pearson
We have a piece of JavaScript like this: swf.SetVariable(_level1.myvar,myvalue) ; This JS code is triggered by a piece of Flash code that is executed when the SWF loads. However, it appears that the variable is not immediately set: // Called at load time for the SWF getURL(javascript:doSet())

RE: [Flashcoders] Javascript SetVariable -- when does Flash see thechange?

2007-04-24 Thread John Dowdell
The browser is a big variable in latency of message-passing. You can confirm that many SWF will run at different rates in different browsers. The NPRuntime API is now implemented pretty well in today's popular browsers, but the size and timing of permissible messages may vary among

[Flashcoders] MouseEvent.MOUSE_WHEEL event not working for me.

2007-04-24 Thread Daniel Freeman
I can't get mouse wheel events to work. stage.addEventListener(MouseEvent.MOUSE_WHEEL,mousewheel); trace('mousewheel event set'); function mousewheel(ev:MouseEvent):void { trace('localX='+ev.localX+' localY='+ev.localY'); trace('stageX='+ev.stageX+'