[Flashcoders] flex simple question call function

2006-09-18 Thread Caruso Canepari
Hi, a supid question. I'm trying to use Flex Builder. How can I call this function? I can't get it working. Thanks. mx:Script ![CDATA[ import flash.display.*; public function drawer():void{ var mySprite:Sprite = new Sprite();

Re: [Flashcoders] flex simple question call function

2006-09-18 Thread Adrian Ionut Beschea
try posting your flex question on the flexcoders list : http://www.flexcoders.org/index.html - Original Message From: Caruso Canepari [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, September 18, 2006 10:00:52 AM Subject: [Flashcoders] flex simple question call

RE: [Flashcoders] flex simple question call function

2006-09-18 Thread Bjorn Schultheiss
Use the onCreationComplete event For example mx:Application onCreationComplete=drawer() Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Ionut Beschea Sent: Monday,

Re: [Flashcoders] a question of geometry

2006-09-18 Thread David Skoglund
I suppose you know the width/diameter of the circles? 1. First calulate the length of you line: ringLength=circle1Diameter+circle2Diameter etc 2. Calculate the ringRadius from ringLength (I don't remember the formula but it's high school math) 3. Calculate the angle that every circle should be

Re: [Flashcoders] masking a clip which uses the drawing api

2006-09-18 Thread Janis Radins
Masking with elements made up by drawing API works 100%, ive done it many times. What is it that doesnt work for you? 2006/9/15, Merrill, Jason [EMAIL PROTECTED]: Is it not possible to mask a clip into which you draw things using the drawing API? I'm not totally sure about masking, but in

RE: [Flashcoders] flex simple question call function

2006-09-18 Thread Caruso Canepari
Hi, I get this error: The prefix mx for element mx:Application is not bound. The code is this: ?xml version=1.0 encoding=utf-8? mx:Application creationComplete=drawer() mx:Script ![CDATA[ import flash.display.*; import flash.events.*; public function drawer():void{ var

RE: [Flashcoders] a question of geometry

2006-09-18 Thread Danny Kodicek
I suppose you know the width/diameter of the circles? 1. First calulate the length of you line: ringLength=circle1Diameter+circle2Diameter etc 2. Calculate the ringRadius from ringLength (I don't remember the formula but it's high school math) 3. Calculate the angle that every circle should

RE: [Flashcoders] Hex to HSB

2006-09-18 Thread Mike Mountain
I'm doing this in flash 9, the hex to rgb conversion is sweet and plenty fast enough, it's when I throw in the HSB conversion that is bogs down. It has to be done pixel by pixel as the type of transform depends on the input value of each individual pixel. [We're doing tilemap adjustments for

[Flashcoders] generate gif from flash

2006-09-18 Thread rishi
I want to make an animated gif from an swf at runtime. Any ideas most welcome. Also I have ben having hard times to implement PNG encoder . Has someone implemented it successfully. I need to make png at the desktop and look at it as a great help . Regards Rishi

Re: [Flashcoders] generate gif from flash

2006-09-18 Thread Arul Prasad M L
for the PNG encoder - check out Tinic Uro's blog, he had implemented one.. btw, Thats in AS3... ~Arul Prasad. On 9/18/06, rishi [EMAIL PROTECTED] wrote: I want to make an animated gif from an swf at runtime. Any ideas most welcome. Also I have ben having hard times to implement PNG encoder

[Flashcoders] netstream problem

2006-09-18 Thread Yves Peckstadt
Hello, I am working on a video player at the moment but the netstream object is giving me a hard time. I need to make use of the bytesTotal and bytesLoaded values to maintain the buffering but bytesTotal isn't working at all for me. In IE (6.0) it always returns -1 untill it's fully buffered

Re: [Flashcoders] a question of geometry

2006-09-18 Thread John McCormack
I can email an image to anyone that wants it, or you can draw it like this... I think this is what you want... Draw a point and a line vertically upwards of length R. Draw a large letter V (inverted cone) upwards from the point. Draw an arc, radius R to cut the V. Where the arc cuts the vertical

[Flashcoders] isPlaying in Actionscript 2.0

2006-09-18 Thread Matthias Dittgen
Hello, Does anybody know a solution for the someMovieClip.isPlaying() Solution in Actionscript 2.0 to use with MTASC? I can't get the AS1 solution to work: MovieClip.prototype.isPlaying = function(){ if (this._previousframe == undefined) this._previousframe = this._currentframe; if

RE: [Flashcoders] a question of geometry

2006-09-18 Thread Danny Kodicek
I can email an image to anyone that wants it, or you can draw it like this... I think this is what you want... Draw a point and a line vertically upwards of length R. Draw a large letter V (inverted cone) upwards from the point. Draw an arc, radius R to cut the V. Where the arc cuts the

[Flashcoders] Re: isPlaying in Actionscript 2.0

2006-09-18 Thread Matthias Dittgen
here's mine: ;) private function stopAllMovies(instance) { instance.onEnterFrame = function () { if (this.counter == undefined) { this.counter = 1; this.frameBefore = this._currentframe; } if

[Flashcoders] Color

2006-09-18 Thread Laurent CUCHET
Hello, I apply a color but I dont know how to suppress the tranform Have you got an idea ? Thank you al_mc.onRollOver = function() { _root.reg.text = Alsace; var my_color1:Color = new Color(this._name); myValue1 = 0xFFF; my_color1.setRGB(myValue1); }; al_mc.onRollOut =

Re: [Flashcoders] Color

2006-09-18 Thread Arul Prasad M L
al_mc.onRollOver = function() { _root.reg.text = Alsace; var my_color1:Color = new Color(this._name); this.defaultColor = this.getRGB(); myValue1 = 0xFFF; my_color1.setRGB(myValue1); }; al_mc.onRollOut = function() { _root.reg.text = Alsace; var my_color1:Color = new

Re: [Flashcoders] Flash Develop and XPath

2006-09-18 Thread Ron Wheeler
You will have to give us a bit of information before anyone can comment. What do you want to do? (Example XML not a bad idea) What have you tried? (You might show a small piece of code) What happened when you tried that? (Error messages? Debug output?) Ron Jorge Antonio Diaz Gutierrez wrote:

[Flashcoders] for function

2006-09-18 Thread Laurent CUCHET
Hi, There is 100 textfields ( rec1 to rec100 ) and I try to fill all of them with a for function : for (var i:Number = 1; i=100; i++) { rec[i].text = i; } It doent work Havee you got an idea why ? Thank you ___ Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] for function

2006-09-18 Thread Merrill, Jason
In your code below, you are treating rec like an array, not a string. Try this: for (var i:Number = 1; i=100; i++) { this[rec+i].text = i; } Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL

Re: [Flashcoders] for function

2006-09-18 Thread Christian Pugliese
rec[i] means 'rec' array index 'i'. try this: _root[rec+i].text = i; Laurent CUCHET wrote: Hi, There is 100 textfields ( rec1 to rec100 ) and I try to fill all of them with a for function : for (var i:Number = 1; i=100; i++) { rec[i].text = i; } It doent work Havee you got an idea

RE: [Flashcoders] Flash Develop and XPath

2006-09-18 Thread Jorge Antonio Diaz Gutierrez
Ron, I'm working with FlashDevelop 2 RC3, this is the code I use: import mx.xpath.* class Main { static function main() { var xmlTexto:XML = new XML; xmlTexto.onLoad = function (success:Boolean) {

[Flashcoders] For and Var

2006-09-18 Thread Laurent CUCHET
I try to use for to fill different var, but it doesnt work for (var i:Number = 1; i=7; i++) { var [s+i]:Number = flashSQL.MoveNext[var8+i]; this[rec+i].text = Number([s+i]); } Var make errors , do you see why ? Thank you ___

RE: [Flashcoders] For and Var

2006-09-18 Thread Merrill, Jason
//var [s+i]:Number = flashSQL.MoveNext[var8+i]; //Number([s+i]); That's like black magic or something. Several things wrong there. You need to learn to use some traces in your code to know where it's breaking, but basically, the array access operator is used to evaluate an object name in an

Re: [Flashcoders] flex simple question call function

2006-09-18 Thread greg h
Missing namespace in your mx:Application tag. Try: mx:Application creationComplete=drawer() xmlns:mx= http://www.adobe.com/2006/mxml; Name spacing the mx: prefix of the Flex components is required in every mx:Application tag (and top level tag in all Flex components). Flex Builder 2

[Flashcoders] rewrite flash.net.Responder source code is where??

2006-09-18 Thread Martin Weiser
Hello, in as2 i have successfully rewritten Relayresponder class, so that it had extra property id, by wich i coukd exactly track my calls and responses from amfphp, i'd like the same for flex applications, i can extent responder and it works, but i would like to rewrite it and need the

Re: [Flashcoders] rewrite flash.net.Responder source code is where??

2006-09-18 Thread eka
Hello :) in AS3 RelayResponder is native .. you can't read this class... but you can encapsulate it with composition if you want ... EKA+ :) 2006/9/18, Martin Weiser [EMAIL PROTECTED]: Hello, in as2 i have successfully rewritten Relayresponder class, so that it had extra property id, by

[Flashcoders] class function call onMouseAction

2006-09-18 Thread [EMAIL PROTECTED]
please, anyone knows what's the silly error I'm not catching here? when I assign the rollOver to the class instance (setPlayButton), I don't getting able to access the 'getPlayFile function' thru its rollOver, why? public function create(name:String, target:MovieClip, depth:Number,

RE: [Flashcoders] Software Development Position

2006-09-18 Thread Kevin Aebig
I hear what you mean, as that has bit me in the ass a few times. I honestly believe though that the people who learn out of passion, instead of requirement, end up with a better understanding in the end anyhow. !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [Flashcoders] class function call onMouseAction

2006-09-18 Thread Merrill, Jason
This is a scope issue. This function you wrote is in a class, but mc doesn't know how to access methods of that class. You could get around it by assigning a property to mc which is an instance of the class, and then calling the getPlayFile() method that way. As you have it now, mc doesn't have

Re: [Flashcoders] Software Development Position

2006-09-18 Thread John Grden
LOLOLOLOL Is this because their job will be fixing someone else's 5 year old spaghetti code? Then the kicker is that this person must be in the Detroit area or willing to relocate. Just had to laugh, that was hilarious On 9/15/06, hank williams [EMAIL PROTECTED] wrote: I am all for job

RE: [Flashcoders] Software Development Position

2006-09-18 Thread Kevin Aebig
Of course, but it's quite rare. I'm not saying all non-graduates are passionate about learning their trade either. More often than not being passionate about what you do for a living is pretty rare... !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [Flashcoders] Software Development Position

2006-09-18 Thread hank williams
Thats interesting. I dont know many computer programmers that arent passionate - degree or not. Of course I am not a useful statistical sample, but obviously have had a different life experience. On 9/18/06, Kevin Aebig [EMAIL PROTECTED] wrote: Of course, but it's quite rare. I'm not saying all

[Flashcoders] ExternalInterface error

2006-09-18 Thread Mendelsohn, Michael
Hi list... [IE6, WinXP, FP9] Why am I getting an error icon in the status bar when I try to do this simple call to javascript? Thanks, - Michael M. In the Flash: / public function loadVideo(theVid, callingLink) { if (ExternalInterface.available) {

RE: [Flashcoders] ExternalInterface error

2006-09-18 Thread Merrill, Jason
Are you testing on a web site with your browser or locally in your browser? Locally you will get warnings/errors due to the new security restrictions in FP8/9. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From:

RE: [Flashcoders] Software Development Position

2006-09-18 Thread Kevin Aebig
Just so we're clear, I don't mean they simply enjoy their jobs. I'm talking about the guys who constantly learn, adapt and take their work home with them on a regular basis. The guys who eat, breathe and sleep their jobs. I've found that there are many guys fresh out of school who are like this

[Flashcoders] Breeze in Acrobat 8 and renamed Adobe Acrobat Connect

2006-09-18 Thread greg h
fyi ... The Flash/Acrobat integration begins ... sort of ... Adobe announced Acrobat 8 this morning. The announcement includes Acrobat Connect. Acrobat 8 Reader now includes menu options for Acrobat Connect which is essentially a rebranded Breeze service! Oh, and Breeze is now the Adobe

[Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
Please take a look at the folowing website: http://whitehorsemedia.com If you are visiting the page for the first time, the navigation in the Flash header does not load (I am using xml to define my navigation and actionscript to parse it). However, when you click on a link in the body of the

RE: [Flashcoders] Breeze in Acrobat 8 and renamed Adobe Acrobat Connect

2006-09-18 Thread Merrill, Jason
Finally! They've had that same Youth Voices banner ad on their site all summer! Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of greg h

Re: [Flashcoders] Software Development Position

2006-09-18 Thread hank williams
But it sounds like you consider having a family or other committments mutually exclusive to passion or even continued learning. My definition of passion did not require neglecting family though certainly after hours work is generally an indicator of passion. Personally, I know of several

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread slangeberg
Looked fine to me! Scott On 9/18/06, Aaron Roberson [EMAIL PROTECTED] wrote: Please take a look at the folowing website: http://whitehorsemedia.com If you are visiting the page for the first time, the navigation in the Flash header does not load (I am using xml to define my navigation and

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Chad Mefferd
Aaron, I'm viewing on a Mac OSX 1.3.9 in Safari. Your Galley page is fighting with the underlying menu for which should be forward in the z-index but the menu links are now working where as they didn't on your last site check. Chad Mefferd - Director of Digital Media Morris Printing Group

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
The navigation to the right of the horse and below the company name and tagline loaded on first try? What browswer are you using? -Aaron On 9/18/06, slangeberg [EMAIL PROTECTED] wrote: Looked fine to me! Scott On 9/18/06, Aaron Roberson [EMAIL PROTECTED] wrote: Please take a look at the

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
Chad, I have the z-index for the Flash movie set to 0 and the window mode to transparent, which is supposed to fix the discrepancy between the Gallery image and the Flash movie. It works in Firefox 1.5 on Windows. I will check into it for Safari. Thanks, Aaron On 9/18/06, Chad Mefferd [EMAIL

[Flashcoders] Embedded video in a Windows Projector

2006-09-18 Thread Jay Pozo
Anyone ever do this successfully? The videos work fine on my Mac, when I publish and preview in Flash, but when I publish a projector file (exe), it looks like the controller for every embedded video disappears. The first frame of the embedded movie shows, so it looks like projector is seeing

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
I just realized that the problem of the navigation not loading the first time around happens when a user has Flash 7 and uses the express install to update to 9. Once the update is complete and they are redirected to the website, the navigation doesn't load. If you have the Flash uninstaller

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread slangeberg
Yeah, as far as i can tell!: FireFox 1.5.0.7 Flash Player 9.0.16 Scott On 9/18/06, Aaron Roberson [EMAIL PROTECTED] wrote: The navigation to the right of the horse and below the company name and tagline loaded on first try? What browswer are you using? -Aaron On 9/18/06, slangeberg [EMAIL

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread slangeberg
Works fine in IE 6, as well Scott On 9/18/06, Aaron Roberson [EMAIL PROTECTED] wrote: The navigation to the right of the horse and below the company name and tagline loaded on first try? What browswer are you using? -Aaron On 9/18/06, slangeberg [EMAIL PROTECTED] wrote: Looked fine to me!

RE: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Ryan Potter
Maybe it is apocalyptic radiation from the mushroom cloud in banner image at the top? Anyway, SWFObject should not be the problem here. If you see the flash at all it would seem to be working. The only thing I can think of would be that your detection script is not working properly. Are

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread slangeberg
That's because you probably need to restart the browser to fully load the new flash player. For that reason, I don't even use the updater. I just let the alternate content (using SWFObject) link to the flash installer at adobe's site. Not as cool, but seems to be most reliable. I'd be happy to

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
I just walked around the office and confirmed that on three other computers in both IE and Firefox the navigation does not appear the first time visiting the site. Even when clicking on the graphic buttons in the content of the home page the navigation still doesn't show up. The only ways to get

RE: [Flashcoders] Software Development Position

2006-09-18 Thread Kevin Aebig
Not even close. I think you don't quite get what I mean and for some reason seem to think that not being passionate about programming is negative. !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hank williams Sent: Monday, September 18, 2006 10:12 AM

RE: [Flashcoders] ExternalInterface error

2006-09-18 Thread Mendelsohn, Michael
Locally, in the browser, I suppose I should say. It's all sitting on an http server. As long as that seems normal, I'm fine with it, thanks. - MM Are you testing on a web site with your browser or locally in your browser? Locally you will get warnings/errors due to the new security

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
Danton and Slangeberg, You didn't have to click elsewhere on the website (namely the Home or Contact links in the header or the navigation in the footer) in order to get the navigation beside the horse to display? That is odd, because on more than one computer in our office the navigation does

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
On 9/18/06, slangeberg [EMAIL PROTECTED] wrote: That's because you probably need to restart the browser to fully load the new flash player. For that reason, I don't even use the updater. I just let the alternate content (using SWFObject) link to the flash installer at adobe's site. Not as cool,

Re: [Flashcoders] Software Development Position

2006-09-18 Thread Martin Wood
Kevin Aebig wrote: Just so we're clear, I don't mean they simply enjoy their jobs. I'm talking about the guys who constantly learn, adapt and take their work home with them on a regular basis. The guys who eat, breathe and sleep their jobs. I've found that there are many guys fresh out of

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Danton Chin
Works for me using IE 6.0.2800.1106 and in Netscape versions 7.2 and 8.1. Regards, Danton Aaron Roberson wrote: Please take a look at the folowing website: http://whitehorsemedia.com If you are visiting the page for the first time, the navigation in the Flash header does not load (I am using

RE: [Flashcoders] specifying type of an array contents?

2006-09-18 Thread Mike Keesey
One technique I often use is to create the array as a private member of a class and guard it against including invalid classes. For example: import mypackage.Item; class mypackage.ItemList extends Object { public function ItemList() { super(); _items = new

RE: [Flashcoders] specifying type of an array contents?

2006-09-18 Thread Steven Sacks | BLITZ
You are using the wrong syntax, that's all. for (var btn in btnClipArray) { btnClipArray[btn].removeMovieClip(); } btn is simply referring to the index in the array, not the object in that array's position. If you traced btn you'd get a number counting down from the length - 1 of the

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
The radiation levels for the atomic bomb are within specs for apocalyptic terror - that must not be the problem. I didn't have the detection on frame one and the code for the nav on frame two but I changed it so that I have the detection on frame one and the code for the nav on frame 6 but it

Re: [Flashcoders] a question of geometry

2006-09-18 Thread Andreas R
Danny Kodicek wrote: I can email an image to anyone that wants it, or you can draw it like this... I think this is what you want... Draw a point and a line vertically upwards of length R. Draw a large letter V (inverted cone) upwards from the point. Draw an arc, radius R to cut the V. Where the

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Danton Chin
Aaron, Your website loaded up quickly when I visited it the first time. The navigation appeared without having to click anywhere else. Now, however, after exiting both browsers it took your website several minutes to load your home page and I don't get any navigation in both browsers. These

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Éric Thibault
Same thing for me! Danton Chin a écrit : Aaron, Your website loaded up quickly when I visited it the first time. The navigation appeared without having to click anywhere else. Now, however, after exiting both browsers it took your website several minutes to load your home page and I don't

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
Danton, Thank you so much! You narrowed it down alright. The navigation doesn't appear when visiting www.whitehorsemedia.com while it does appear when visiting whitehorsemedia.com (without the preceding www). Now I have to discover why it would work with one and not the other... -Aaron On

Re: [Flashcoders] For and Var

2006-09-18 Thread JOR
I think Laurent was trying to cast the value of a variable with a dynamic name to a number and not the dynamic name s+i to a number which can be done like this: // assuming flashSQL.MoveNext[var8+i] can be cast to a number // you can do it like this this[s+i] = Number(

[Flashcoders] PocketPC and local SO

2006-09-18 Thread Andreas R
Does anyone know if the windows mobile flash player (6) supports local shared objects? - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Site Check Please - Problem with swfObject

2006-09-18 Thread Aaron Roberson
The problem is with loading the xml so I am going to open a new thread with an appropriate heading. Thanks everybody! Aaron P.S. The reason everyone was able to see the navigation was because I included a link to http://whitehorsemedia.com which loaded it correctly while I was visiting

[Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Aaron Roberson
I have a menu constructed from XML and I am parsing it in Flash to create my site navigation. However, I am having a problem loading the xml so that it is parsed and displayed on my website when accessed directly (as in http://whitehorsemedia.com) and when accessed using www.whitehorsemedia.com

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Serge Jespers
Hi Aaron, Put a crossdomain.xml in the root of the server and it will all work out... The file should look like this: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/ dtds/cross-domain-policy.dtd cross-domain-policy allow-access-from

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread l u c h y x
Why don't use relative paths ?. On 9/18/06, Serge Jespers [EMAIL PROTECTED] wrote: Hi Aaron, Put a crossdomain.xml in the root of the server and it will all work out... The file should look like this: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Claus Wahlers
Aaron Roberson wrote: I have a menu constructed from XML and I am parsing it in Flash to create my site navigation. However, I am having a problem loading the xml so that it is parsed and displayed on my website when accessed directly (as in http://whitehorsemedia.com) and when accessed using

[Flashcoders] Calling Actionscript from PHP

2006-09-18 Thread Andrew Lechner
Hello, I'm a PHP/Perl developer who's not terribly familiar with Flash or Actionscript. A Flash developer friend of mine suggested I try asking a question here. I find myself in a position where I need to call an Actionscript function from PHP. This PHP page is not viewed by the user, it's

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Aaron Roberson
Serge, Thank you for your help. I copied and pasted that code into a new document named crossdomain.xml and uploaded it to the root of my server and now it works! Here is a page on Adobe.com about crossdomain.xml: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 This is the

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread l u c h y x
Your movie should receive or load a URLparameter such as: mymenu.swf?xml_config_path=?php echo $_SERVER['host']./menudp.xml;? And you don't need to hard-code the uri in the SWF anymore. On 9/18/06, Aaron Roberson [EMAIL PROTECTED] wrote: Serge, Thank you for your help. I copied and pasted

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Aaron Roberson
Luchyx, Thanks for the suggestion, I am going to pass in the url using flash vars as you have suggested. -Aaron On 9/18/06, l u c h y x [EMAIL PROTECTED] wrote: Your movie should receive or load a URLparameter such as: mymenu.swf?xml_config_path=?php echo $_SERVER['host']./menudp.xml;? And

[Flashcoders] Using transform matrix

2006-09-18 Thread Jiri Heitlager
I need to build an application for a client to scale and rotate an image. I am thinking of using a tranfomation matrix, but am not so familiar with it. I read the article of Senocular: http://www.senocular.com/flash/tutorials/transformmatrix/ i did some tests. The app itself places four

RE: [Flashcoders] Calling Actionscript from PHP

2006-09-18 Thread Mark Lapasa
You can have your Flash Client connect to a PHP Socket. When events happen on the server-side, notify the socket which the Flash client will listen for new data from the backend. The ActionScript XMLSocket handler will need to fire the client-side method. Whoever is doing the ActionScript side of

[Flashcoders] search text file for keyword and add button

2006-09-18 Thread Kurt Dommermuth
Hi All, First, I apologize if this was covered already. If so, please point me in the right direction. I need to search through dynamic text for a keyword, create a highlight or button of some sort over it that links to a glossary. I don't see a problem finding the keyword, but I do see a

Re: [Flashcoders] Calling Actionscript from PHP

2006-09-18 Thread Jordan Snyder
Anything executed within Flash is client-side. If you're talking about avoiding calling a Flash function via JavaScript, then there are ways to do so, but yes, you would need something that is constantly connected to the Flash client, such as FMS or an XMLSocket server. That is the only way

[Flashcoders] Find item in array

2006-09-18 Thread Mendelsohn, Michael
Hi list... Is there an easy/quick way to find out if an item is in an array? For instance: Var a:Array = [a,b,c,d]; Var y:Number = a[b]; //y would be the position in the array of b or undefined if it's not in the array/ I'm looking for the equivalent of Director's getOne() function. Thanks, -

RE: [Flashcoders] My First oop AS 2.0 project, any tips or comments?

2006-09-18 Thread Mark Lapasa
It's good, it's not at bad. You got something going there. You got pretty much the syntax and structure. Moock's book is a great introduction to get started with OO in Flash. One suggestion to make is that your setX() and setY() methods are suitable candidate for using setter/getter methods.

Re: [Flashcoders] Calling Actionscript from PHP

2006-09-18 Thread Rich Rodecker
I think we can probably help you o ut better if we had a better idea of what you were trying to accomplish. As prviously stated, actionscript is always going to execute inside, when you are dealing with the flash player. Sockets can be one way of dealing with the issue, but it may be

Re: [Flashcoders] search text file for keyword and add button

2006-09-18 Thread Kurt Dommermuth
I'll reply to my own message. I'm finding some threads in the archive that discuss this. Hopefully there'll be something definitive there. sorry to rehash this. thank you! Kurt At 04:23 PM 9/18/2006, you wrote: Hi All, First, I apologize if this was covered already. If so, please point

RE: [Flashcoders] Find item in array

2006-09-18 Thread Merrill, Jason
Is there an easy/quick way to find out if an item is in an array? No built in methods I know of. But quick and easy, is just to loop. Something like: public function findStringItem(theArray:Array, identifier:String):Number{ var i:Number = theArray.length

Re: [Flashcoders] Flash Player 9 textfield problem

2006-09-18 Thread John Dowdell
Telmo Dias wrote: Never mind this post. It's a known issue when using the wmode=transparent, which is described here: http://www.5etdemi.com/blog/archives/2005/06/firefox-wmodetransparent-is-completely-screwy-and-breaks-textfields/ Browsers vary. With WMODE, we're piping the Player's

[Flashcoders] Embed fonts problem

2006-09-18 Thread Leonardo Sá
Hello all, I have set up a regular dynamic text field in flash. However, when I try to embed a font on it (which is Arial) it just wont show up. It shows no text at all where it supposed to be. When i use no embedded fonts, the text shows up fine, but anti-alias does not work. Any ideas? best

[Flashcoders] htmlText javascript link being ignored in Safari

2006-09-18 Thread Marlon Harrison
I have a dynamic text field where I create an html link based on a couple of pieces of data. Here's an example of the code for the link: var aTag:String = p class = 'landing'a href=\javascript:openVidPlayer('/vidplayer.html?video=+sel.v_id+category=+sel.cat+');\ target = '_parent'+sel.ttl+/a/p;

[Flashcoders] flv playback component question...

2006-09-18 Thread badi malik
hi, I've noticed that the cuePoints array is often null even when the component is already on stage and i fill in the parameters in the properties box...does anyone know the real location of the cue points?...when i try to call findNearestCuePoint i get error msgs...the metadata contains the

Re: [Flashcoders] Embed fonts problem

2006-09-18 Thread Craig Taylor
Leonardo Type some text into the text field anything like 'text field' and it will then show. Cheers-Craig Leonardo Sá wrote: Hello all, I have set up a regular dynamic text field in flash. However, when I try to embed a font on it (which is Arial) it just wont show up. It shows no text at

RE: [Flashcoders] htmlText javascript link being ignored in Safari

2006-09-18 Thread Mike Keesey
I can think of a reason: SAFARI SUCKS!!! Sorry, I can't be more helpful; just had to get that out there. ;) Okay, I'll try to be a little helpful--have you tried putting an alert() call in your JS function to see if Safari's calling it at all? Or, better yet, try calling the function from an

Re: [Flashcoders] Embed fonts problem

2006-09-18 Thread Aaron Roberson
Did you choose export to first frame in the linkage property? Right click on the embeded font in the library and choose linkage to set this. HTH, Aaron On 9/18/06, Leonardo Sá [EMAIL PROTECTED] wrote: Hello all, I have set up a regular dynamic text field in flash. However, when I try to embed

Re: [Flashcoders] Embed fonts problem

2006-09-18 Thread Leonardo Sá
Actually im setting it via actionscript like: instancename.text = something; something will show up just fine if i dont use any embedded fonts. It wont otherwise. Thanks for the reply! On 9/18/06, Craig Taylor [EMAIL PROTECTED] wrote: Leonardo Type some text into the text field anything

Re: [Flashcoders] htmlText javascript link being ignored in Safari

2006-09-18 Thread Iv
Hello Marlon, - use allowDomain=always in html. MH I have a dynamic text field where I create an html link based on a MH couple of pieces of data. MH Here's an example of the code for the link: MH var aTag:String = p class = 'landing'a MH

Re: [Flashcoders] Find item in array

2006-09-18 Thread slangeberg
Yeah, you may want to try an indexed(?, sorry tired!) array: var a:Array = new Array(); a[b] = 1; . . a[d] = 4; then, var y:Number = a[b]; will result in y == 1; Scott On 9/18/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Hi list... Is there an easy/quick way to find out if an item

[Flashcoders] more flv playback component questions...

2006-09-18 Thread badi malik
hi again, does anyone know how to make the playback component respond to minutes...it appears as though it only like seconds but doesn't like something like 64 seconds... thanks b ___ Flashcoders@chattyfig.figleaf.com To change your subscription

[Flashcoders] Kongregate

2006-09-18 Thread Jim Greer
Hi all - I want to announce my soon-to-launch Flash game startup to this list - I'm looking for game developers and players. The site takes games uploaded by indie developers and puts them into a rich community framework with persistent rewards, metagames, collectible items, chat, etc. Game

Re: Re: [Flashcoders] htmlText javascript link being ignored in Safari

2006-09-18 Thread Marlon Harrison
Do you mean allowScriptAccess? I tried allowScriptAccess and that didn't work. I've never heard of allowDomain On 9/18/06, Iv [EMAIL PROTECTED] wrote: Hello Marlon, - use allowDomain=always in html. MH I have a dynamic text field where I create an html link based on a MH couple of pieces of

Re: [Flashcoders] Find item in array

2006-09-18 Thread JOR
Merrill, Jason wrote: while (--i -(-1)) { Jason, very interesting way of counting through the array. I haven't see this approach before. Are there any benefits to using (--i -(-i)) in the expression over something like the following?: while (i--) { It seems like your loop would need

RE: [Flashcoders] Find item in array

2006-09-18 Thread Steven Sacks | BLITZ
It's the fastest because: Pre-decrementation (--i) is faster than post-decrementation (i--) And substraction (- (-1) is faster than addition (+ 1). They are faster because it's less code that gets produced when you compile. http://flasm.sourceforge.net/#optimization For most cases, it's a

[Flashcoders] ::dk:: getColumnNames not returning all column names

2006-09-18 Thread dnk
Hi there. I have a remoting app in which i use PHP/amfphp to get data into my app. Now in my PHP I have the following SQL query performed to create a join on 2 tables... SELECT dkcms_photo.*, dkcms_profiles.uFname FROM dkcms_photo LEFT JOIN dkcms_profiles ON dkcms_profiles.uId =

  1   2   >