Re: [Flashcoders] Flash C3 and Embedding resources

2007-06-01 Thread Muzak
[Embed] is Flex only, because FlexBuilder doesn't have a library, like the Flash IDE has. regards, Muzak - Original Message - From: "Smith, Philip" <[EMAIL PROTECTED]> To: Sent: Friday, June 01, 2007 3:10 AM Subject: [Flashcoders] Flash C3 and Embedding resources Hi there, I was rea

RE: [Flashcoders] IE6: javascript issues w. events calling:getURL/SWFAddress/Object

2007-06-01 Thread Daniel Portilla Heras
Hi Sebastián, why don't you put the window target in the getURL??? getURL("javascript:urchinTracker('"+__newURL.parameters.myURL+"')", "_self") This works fine for me. Bye Daniel Portilla Heras Dpto. Desarrollo Virtual Training TELECOR Tlfno: 915970193 Ext. 5864 (corp: 315 5864) [EMAIL PROTECTE

Re: [Flashcoders] IE6: javascript issues w. events calling:getURL/SWFAddress/Object

2007-06-01 Thread sebastian chedal
Hello everyone, thanks for your fast responces, When I use: //AS: ExternalInterface.call ("check"); //JS: function check () { alert("check"); } This works fine on ALL browsers. But if I use: AS: ExternalInterface.call ("spawnWindow", fullString,__data.paramete

Re: [Flashcoders] IE6: javascript issues w. events calling:getURL/SWFAddress/Object

2007-06-01 Thread Romain Ecarnot
Hi Sebastien, Perhaps Fever can help you in your task. Fever has a built-in class named GAnalytic which is responsible to track links, outgoing and download links. ( working with swfobject script ) You can take a look at dedicated article on my blog here ( in french ) : http://www.customactions.

Re: [Flashcoders] Can't set selectionColor property of List from withinclass

2007-06-01 Thread Muzak
Component styles are set through the setStyle() method. You can do this either globally or on an instance directly. Check the docs. For the list: List component > Customizing the List component function setUserList(myUserList:List) { userList = myUserList; userList.setStyle("useRollOver"

Re: [Flashcoders] IE6: javascript issues w. events calling:getURL/SWFAddress/Object

2007-06-01 Thread sebastian chedal
Wow! I actually solved the issue now! And it was because of an issue in the parameters... :p Doh! [there was a space in the title name: __data.parameters.myTitle which only made an issue for IE6] PHEW!!! I'm really happy its functioning! =D again, thanks for ALL your help! wk, seb. On 6/1/0

[Flashcoders] Can't set selectionColor property of List from within class

2007-06-01 Thread Alistair Colling
Hi there, I'm working on a class that is passed instances of components so that nearly all of the code is inside the class. I want to set the colour of selected items to white so the list always looks the same. I am trying to set the selectionColor property from within my class but I get th

Re: [Flashcoders] Strange ComboBox issues when loaded in a child SWF

2007-06-01 Thread Andy Herrman
I have 2 movies. The main movie has all of the code, and the UI resources movie contains all of the assets, with no code and nothing on the stage. When the main movie loads it displays a loading progress bar, creates an empty movie clip and then loads the UI resources SWF into that empty clip.

Re: [Flashcoders] Can't set selectionColor property of List from withinclass

2007-06-01 Thread Alistair Colling
Thanks Muzak, that works great. I am now trying to find what property controls the green glow that appears around the whole listbox when it's hi-lighted as I want to lose that too and it doesn't seem to be mentioned in the docs. Cheers! Ali On 1 Jun 2007, at 12:49, Muzak wrote: Componen

RE: [Flashcoders] combo box problem

2007-06-01 Thread Randy Tinfow
> Don't use getNextHighestDepth() when using the v2 component framework. > Use the DepthManager. Tried following the DepthManager syntax from the help, but can't get it to work. Can't find any references to more assitance via Google. Do you have any links to useful documentation for the DepthMan

[Flashcoders] MVC question

2007-06-01 Thread Giles Roadnight
Hi All I am building my first MVC (Model View Controller) and have a question about how I should set it up. I have a load of classes: BookView, ControlView (both views), Controller and PAModel. Controller holds all the other classes and sets them all up. Both views have a function - setModel:

Re: [Flashcoders] Can't set selectionColor property of List fromwithinclass

2007-06-01 Thread Muzak
I don't think there's an implemented/documented way of doing this. Disable it on the UIComponent class (which will disable the focus rectangle for all components) by overriding the drawFocus method. import mx.core.UIComponent; UIComponent.prototype.drawFocus = null; Or on the component instance:

Re: [Flashcoders] combo box problem

2007-06-01 Thread Muzak
import mx.managers.DepthManager; import mx.controls.ComboBox; var _cb:ComboBox = ComboBox(createClassChildAtDepth(ComboBox, DepthManager.kTop)); trace(_cb.getDepth()); regards, Muzak - Original Message - From: "Randy Tinfow" <[EMAIL PROTECTED]> To: Sent: Friday, June 01, 2007 4:50 PM

Re: [Flashcoders] Can't set selectionColor property of List fromwithinclass

2007-06-01 Thread Alistair Colling
Muzak! thanks so much this is a massive help :) Have a great weekend! On 1 Jun 2007, at 17:25, Muzak wrote: _list.drawFocus = null; ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.fig

[Flashcoders] loading AVM1 movie as AVM2 movie

2007-06-01 Thread Takayuki Fukatsu
I made simple loader subclass, that loads AVM1 movie as AVM2 movie. When loaded swf is AVM1 movie, it internally rewrites flags for AVM2 movie. All as2 script inside the movie will be ignored ( I think ). It may be userful in some situation :-) http://www.fladdict.net/blog-en/2007/06/avm2loader_

RE: [Flashcoders] Flash C3 and Embedding resources

2007-06-01 Thread Smith, Philip
Muzak, thanks. If a graphical library linkage element you want to add/attach is in the host .swf library (ie 'Box' class), how you would access it from a sub-loaded .swf without throwing an error? subSWF->addChild(new Box()) --undefined. -Original Message- From: [EMAIL PROTECTED] [mailto

Re: [Flashcoders] textheight and embedded text

2007-06-01 Thread David Cohn
Can anyone confirm or deny that the textHeight property doesn't respond with embedded fonts? Or am I just going crazy? Thanks, --Dave I'm trying to dynamically fit text into a Dynamic TextField by repetitively adding text and checking the textHeight property (I want to add an ellipsis at t

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

[Flashcoders] Trying to understandi Live Preview

2007-06-01 Thread John laPlante
Live Preview has often been a difficult topic to understand. But a couple of very useful posts are available about it. http://readlist.com/lists/chattyfig.figleaf.com/flashcoders/0/243.html http://proalias.com/pipermail/flashcomponents_proalias.com/2005-April/000159.html But, I wonder if it is p

[Flashcoders] Q: Simulate tab indents in dynamic text

2007-06-01 Thread moveup
Hi I have one dynamic text field that is scrollable. I'd like to import text organized into columns. Is there any way to simulate tab indents in a dynamic text field so I can keep the text columns without resorting to using multiple text boxes? Any suggestions appreciated! [e] jbach at bitstrea

Re: [Flashcoders] Trying to understandi Live Preview

2007-06-01 Thread Muzak
Not sure what exactly you're having problems with. If you want the component (on stage) to be interactive, that's not going to work (AFAIK). You could create a paramater available in the Property Inspector to toggle info on and off. import mx.utils.Delegate; class LivePreviewTest extends MovieC

RE: [Flashcoders] combo box problem

2007-06-01 Thread Randy Tinfow
We'd tried this on our own with no success. The brilliant Felix Turner gave us the simple solution: Put the main combobox in a MC and everything else on the stage in a different MC and always make sure the combobox MC is always on top. Too easy... Thanks for all the suggestions. RT > -

[Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Ung, Seng
Has anyone noticed that the tree component is missing from the CS3 Web Premium prof. copy after the installation? Is there a link from Adobe site for us to download the tree component? ___ Flashcoders@chattyfig.figleaf.com To change your subscription opti

RE: [Flashcoders] Flash C3 and Embedding resources

2007-06-01 Thread Smith, Philip
Thank you very much! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Romanek Sent: Friday, June 01, 2007 10:39 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash C3 and Embedding resources Try this out in your sub-loaded swf v

[Flashcoders] survival off eventlisteners on class instance redeclaration?

2007-06-01 Thread Latcho
Hi list, IfI attach e new instance of a class to a *var myClass*=new friendlyClass() and then attach an eventlistener to it classHello.*addEventLister*("greeting",sayHello) now say that, after a while I want to overwrite the myClass variable with a new and fresh instance of the same *myClass*

[Flashcoders] Re: survival off eventlisteners on class instance redeclaration?

2007-06-01 Thread Latcho
sorry, that supposed to be* _myClass_*.addEventLister("greeting",sayHello) Latcho wrote: Hi list, IfI attach e new instance of a class to a *var myClass*=new friendlyClass() and then attach an eventlistener to it classHello.*addEventLister*("greeting",sayHello) now say that, after a while I w

Re: [Flashcoders] combo box problem

2007-06-01 Thread Hans Wichman
Hi, cool randy, glad its fixed. Note however that that is the solution the article posted before describes:) greetz JC On 6/1/07, Randy Tinfow <[EMAIL PROTECTED]> wrote: We'd tried this on our own with no success. The brilliant Felix Turner gave us the simple solution: Put the main combobox

Re: [Flashcoders] Trying to understandi Live Preview

2007-06-01 Thread John laPlante
Thank you for that fine idea to set a parameter and turn the instruction on and off that way. I suspected that it is not possible to interact with a Live Preview movie but I've never seen any documentation to that affect. Muzak wrote: Not sure what exactly you're having problems with. If you

Re: [Flashcoders] MVC question

2007-06-01 Thread Latcho
I think you made an error in the use off the eventlistener maybe this will explain http://www.actionscript.org/resources/articles/205/1/The-Delegate-Class/Page1.html var FUNC=function(){trace("funky")} var SCOPE=this; var MYDELEGATE=mx.utils.Delegate.create(SCOPE,FUNC) this.Model.addEventListe

Re: [Flashcoders] MVC question

2007-06-01 Thread Latcho
my info in last mail bight be short-sightened if you refered to a function in the classobject itself with the second "this" this.Model.addEventListener("PagesUpdated",this); Giles Roadnight wrote: Hi All I am building my first MVC (Model View Controller) and have a question about how I shoul

Re: [Flashcoders] MVC question

2007-06-01 Thread Charles Parcell
Perhaps you want to look at the Proxy pattern? http://en.wikipedia.org/wiki/Proxy_design_pattern Charles P. On 6/1/07, Giles Roadnight <[EMAIL PROTECTED]> wrote: Hi All I am building my first MVC (Model View Controller) and have a question about how I should set it up. I have a load of cla

RE: [Flashcoders] combo box problem

2007-06-01 Thread Randy Tinfow
Then the REAL problem is that we can't read well! Thanks, RT > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Hans Wichman > Sent: Friday, June 01, 2007 4:35 PM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] combo box prob

[Flashcoders] Best Practices question...

2007-06-01 Thread sean
Hi all, this should be kind of a simple one. I have been creating my Private variables as simple camelCased names. private var variableName:VariableType; I have seen other people creating them as underscore camelCased names and recently I was challenged that the underscore was the correct

Re: [Flashcoders] Best Practices question...

2007-06-01 Thread Steven Sacks
I only use underscore for private variables if I have a public getter and/or setter for that private variable. Otherwise, I don't use underscore. It's also a easy way to see, at a glance, which private variables are private and which are public but private. private var _title:String; public

Re: [Flashcoders] MVC question

2007-06-01 Thread Muzak
In an ARP type application, most of the setup is done in the onLoad method of the Application view (which is a container for all views). In other words, BookView, ControlView, etc are children of Application. Also make sure to initialize the EventDispatcher outside the class constructor, throug

Re: [Flashcoders] Best Practices question...

2007-06-01 Thread Steven Sacks
Also, when it comes to flags, I use the isSomething naming convention regardless of private/public status. If it's a private flag with a public getter, I make the public getter the name of the flag without the is. private var isActive:Boolean; public function get active():Boolean { return

Re: [Flashcoders] Best Practices question...

2007-06-01 Thread Ammon Lauritzen
[EMAIL PROTECTED] wrote: >this should be kind of a simple one. I have been creating my Private > variables as simple camelCased names. > >private var variableName:VariableType; > > I have seen other people creating them as underscore camelCased names and > recently I was challenged that t

Re: [Flashcoders] Best Practices question...

2007-06-01 Thread Muzak
There is no right answer ;-) When the first Flash component framework was released, private variables had a double underscore. __width __height etc.. Basically because they usually replaced existing built-in properties, like _width, _height, etc.. So what we ended up with was: Built-in _wi

RE: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Kalani Bright
Thats funny. Adobe has put the axe to the tree component and many other components requiring you to use Flex if you want to use them. Adobe's reign of terror and the rise of the Anti-Flash...Flex. First they came for the Accordion and I did not speak out because I did not use the Accordion. Then

Re: [Flashcoders] Best Practices question...

2007-06-01 Thread Steven Sacks
And since we're talking best practices, you don't > have any public instance variables anyhow, hmm? :) I don't know what "best practice" you're referring to that claims that you shouldn't have public instance variables. The Wikipedia says "NEED CITATION". Which I will promptly ignore as rubb

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Muzak
That's not the only things *missing*.. No Flash Remoting No Webservices - Original Message - From: "Kalani Bright" <[EMAIL PROTECTED]> To: Sent: Saturday, June 02, 2007 1:11 AM Subject: RE: [Flashcoders] Flash CS3 Prof copy: missing Tree component. > Thats funny. Adobe has put the

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Austin Kottke
I think it's kind of odd actually. Remove functionality in the newest version... I know they have to convert all the components to as3 - seems kind of odd though. The web service removal is a major problem though as this is kind of a basic. ___ Flash

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Steven Sacks
Flash Remoting has always been a separate download, but I would think that they would have shipped it with CS3 considering. I assume it's on their site as a separate download? Muzak wrote: That's not the only things *missing*.. No Flash Remoting No Webservices - Original Message

Re: [Flashcoders] Best Practices question...

2007-06-01 Thread Ammon Lauritzen
On 6/1/07, Steven Sacks <[EMAIL PROTECTED]> wrote: > And since we're talking best practices, you don't > have any public instance variables anyhow, hmm? :) I don't know what "best practice" you're referring to that claims that you shouldn't have public instance variables. Grin. Well, he said

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Muzak
I know it's a seperate download and have been checking the Adobe site now and then for a new release, but nothing.. One would think that they'd learn from previous *mistakes*. Every new release people ask "where's Flash Remoting?" IIRC it took Macromedia six months to come up with the first AS2 Re

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Nick Johnston
Ung, Seng wrote: Has anyone noticed that the tree component is missing from the CS3 Web Premium prof. copy after the installation? Is there a link from Adobe site for us to download the tree component? ___ Flashcoders@chattyfig.figleaf.com To change you

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread iiley
Adobe has put the axe to the tree component and many other components requiring you to use Flex if you want to use them. Hmm, maybe third-party component set is a good choice too, like AsWing, it has Tree, Accordion, Menu & MenuBar ... :) -- iiley AsWing http://www.aswing

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Muzak
And I'll bet that not even half this list knows how to get them to work (no offense anyone). regards, Muzak - Original Message - From: "iiley" <[EMAIL PROTECTED]> To: Sent: Saturday, June 02, 2007 4:10 AM Subject: Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component. > >Adob

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread iiley
I agree with you Muzak, i guess so too. But for a new framework, yes you need time to study, but i'll bet AsWing is worth to spent minutes to try. There are Tutorials : http://www.aswing.org/?page_id=6 There are Showcase : http://www.aswing.org/?page_id=7 Component Set Demo : http://demo.aswing.

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-01 Thread Muzak
ASWing is a nice alternative, but not a replacement for the Flash components. Meaning, if Adobe wanted people to use other components, why did they even bother with a crippled set in the first place. ASWing components are code only, there's no visual representation on stage, no representation in

Re: [Flashcoders] survival off eventlisteners on class instance redeclaration?

2007-06-01 Thread eka
Hello :) The event listener is registered in a collection (array or other data object) in the instance ( you use the event model of the AS3 framework in Flex ? or the event model in the mx AS2 library ?) If you destroy the instance your registration is canceled because the collection is a proper