RE: [Flashcoders] Component and Live Preview problems
Do you subclass UIComponent or just MovieClip? What code do you use for onUpdate? Try to trace components names etc while in live preview. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. > > -- original message: > I posted this on FlashNewbie and didn't have much luck getting it resolved. I > also found > a number of posts on Actionscript.org referencing this same problem, but I > couldn't find > any solutions, so I thought I would try here. I created a custom button > component with > live preview enabled for the label. The live preview works great with only > one button > component on stage. However, if I put another instance of my btn component on > stage, both > btn components are updated to the most recent component's label. Both buttons > have > different instance names. > > Any ideas on how to resolve this issue? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re:[Flashcoders] Author time/live preview of custom component
Seems you don't set your own onUpdate() and setSize() functions. Have a look at file mm_livepreview.as (can be found in ...First Run\Include). It manages all the Live Preview behaviour. Then try to check onUpdate() and setSize() functions in "native" MM components to see how it works. Feel free to ask more (offlist as well). -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. > - Manuel Saint-Victor wrote: > > When creating a custom component is there a way to allow the user to be able > to scaling changes in the authoring environment. I am using a component > with some visible markings on the stage with Drag-n-drop scaling- although I > can see the change in border size the movieclip inside stays the same size. > > Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] LoadMovie Problem?
Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie("C:\\ pages.swf", _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How will asfunction work in AS3/MXML? Jester?
Thanks, Jesse. I was able to find the right event using the code hints in Flexbuilder (see below) but I'm stuck until I find out how asfunction has changed so I can actually trigger the event. I'll hold my breath until the docs come back... import flash.events.* private function init():Void { myTextArea.addEventListener( TextEventType.LINK, linkClickHandler ); } public function linkClickHandler( event:TextEvent ):Void { myTextArea.text = "worked"; } On 1/30/06, JesterXL <[EMAIL PROTECTED]> wrote: > Docs are down, but here's some psuedo code for you: > > import flash.util.trace; > your_txt.addEventListener(TextStuff.LINK, onHyperlinkClicked); > > function onHyperlinkClicked( event:Event ) > { > trace("You clicked on " + event.target); // your_txt > trace("The text is: " + event.text); // doSomething > } > > I think asfunction is changed to something else; again, wait until the docs > come back up to get confirmation on WHAT it actually changed to, but that's > the basic code. Whatever you store after the "newAsfunction:" is passed > into the text property of the event. > > Only thing is, the text is just for context now, meaning doSomething is no > longer a function that is called, and the comma no longer seperates that as > the argument; it's basically just text that is passed into the event, so you > could remove doSomething, and leave foo. doSomething could be your event > listener function passed to the textField.addEventLisetener for example. > > > - Original Message - > From: "Tom Bray" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" > Sent: Tuesday, January 31, 2006 1:33 AM > Subject: [Flashcoders] How will asfunction work in AS3/MXML? Jester? > > > If I have a link like this in a Flex2 TextArea like this: > > click here > > Where do I put my doSomething() method? > > -Tom > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Component and Live Preview ~ problems
I wrote a post on working with live preview on my lame ass blog at http://www.judahfrangipane.com/?p=13. Judah JesterXL wrote: It's because LivePreview variables are different SWF's, but same depth. Gary wrote the original LivePreview.as file (in includes in Flash MX 2004's install directory), and you can take a look at it to see how it works. I had the same problem with my Flowchart components. Basically, things were getting created correctly in different movieclips, but the actual data was referencing a previous component. I had to hack the LivePreview.as with a few modifications on the 2 main functions that update the component, but I never fully resolved it. My suggestion is to start tweaking that file since it's the one that pretty much runs LivePreviews. ...or, create your own, and do it the MX way where you code the refreshing yourself, export a SWF, and point your component to that vs. using the internal Flash MX 2004 component LivePreview-auto-gen. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, January 30, 2006 11:21 PM Subject: [Flashcoders] Component and Live Preview ~ problems Hello All --- I posted this on FlashNewbie and didn't have much luck getting it resolved. I also found a number of posts on Actionscript.org referencing this same problem, but I couldn't find any solutions, so I thought I would try here. I created a custom button component with live preview enabled for the label. The live preview works great with only one button component on stage. However, if I put another instance of my btn component on stage, both btn components are updated to the most recent component's label. Both buttons have different instance names. Any ideas on how to resolve this issue? Thanks for any and all replies. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- "Always bear in mind that your own resolution to succeed is more important than any one thing." "You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." - Abraham Lincoln ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How will asfunction work in AS3/MXML? Jester?
Docs are down, but here's some psuedo code for you: import flash.util.trace; your_txt.addEventListener(TextStuff.LINK, onHyperlinkClicked); function onHyperlinkClicked( event:Event ) { trace("You clicked on " + event.target); // your_txt trace("The text is: " + event.text); // doSomething } I think asfunction is changed to something else; again, wait until the docs come back up to get confirmation on WHAT it actually changed to, but that's the basic code. Whatever you store after the "newAsfunction:" is passed into the text property of the event. Only thing is, the text is just for context now, meaning doSomething is no longer a function that is called, and the comma no longer seperates that as the argument; it's basically just text that is passed into the event, so you could remove doSomething, and leave foo. doSomething could be your event listener function passed to the textField.addEventLisetener for example. - Original Message - From: "Tom Bray" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, January 31, 2006 1:33 AM Subject: [Flashcoders] How will asfunction work in AS3/MXML? Jester? If I have a link like this in a Flex2 TextArea like this: click here Where do I put my doSomething() method? -Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How will asfunction work in AS3/MXML? Jester?
If I have a link like this in a Flex2 TextArea like this: click here Where do I put my doSomething() method? -Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Component and Live Preview ~ problems
It's because LivePreview variables are different SWF's, but same depth. Gary wrote the original LivePreview.as file (in includes in Flash MX 2004's install directory), and you can take a look at it to see how it works. I had the same problem with my Flowchart components. Basically, things were getting created correctly in different movieclips, but the actual data was referencing a previous component. I had to hack the LivePreview.as with a few modifications on the 2 main functions that update the component, but I never fully resolved it. My suggestion is to start tweaking that file since it's the one that pretty much runs LivePreviews. ...or, create your own, and do it the MX way where you code the refreshing yourself, export a SWF, and point your component to that vs. using the internal Flash MX 2004 component LivePreview-auto-gen. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, January 30, 2006 11:21 PM Subject: [Flashcoders] Component and Live Preview ~ problems Hello All --- I posted this on FlashNewbie and didn't have much luck getting it resolved. I also found a number of posts on Actionscript.org referencing this same problem, but I couldn't find any solutions, so I thought I would try here. I created a custom button component with live preview enabled for the label. The live preview works great with only one button component on stage. However, if I put another instance of my btn component on stage, both btn components are updated to the most recent component's label. Both buttons have different instance names. Any ideas on how to resolve this issue? Thanks for any and all replies. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] avoiding a stack of lists
Sorry for the delayed response, it's been a busy day. It's been a while since I have touched Lingo, so I won't comment there, but yah it's basically a list of properties. Associative arrays can be accessed in two ways. First: listRelationships:Object = new Object(); listRelationships["propertyName"] = "foo"; trace(listRelationships["propertyName"]); and second: listRelationships:Object = new Object(); listRelationships.propertyName = "foo"; trace(listRelationships.propertyName); The two syntaxes are equivalent and interchangeable. I used the first syntax because it easily allows you to access properties by name, passed through another variable. var itemID:String = "itemID1"; trace(listRelationships[itemID]); You would create your full data structure, each line representing one list item and containing an array of IDs linked to the given ID. Ideally you would pull this data in from an external source, such as through XML or through LoadVars, and build this data structure dynamically. Also, this is only one way of doing it. Another way may be more appropriate for you, given your particular requirements. var listRelationships:Object = new Object(); listRelationships["itemID1"] = ["itemID2", "itemID3"]; listRelationships["itemID2"] = ["itemID1"]; listRelationships["itemID3"] = ["itemID1", "itemID3"]; ... listRelationships["itemIDN"] = ["itemID6", "itemID7", "itemID8"]; When one of the items is selected or moused over, you call a function that you create, pass in the ID of the item in question, and use that ID to find the related IDs: function handleSelect(itemID:String):Void { var selectedItemData:Array = listRelationships[itemID]; for (var i:Number = 0; i < selectedItemData.length; i++) { // Get each row that should also be highlighted trace(selectedItemData[i]); } } I hope this helps. Nathan http://www.nathanderksen.com On Jan 30, 2006, at 9:26 AM, Kent Humphrey wrote: On 30 Jan 2006, at 17:13, Nathan Derksen wrote: Well, regardless of whether or not you use listeners, you still need to create the data relationship. I don't think encoding the relationships into 25 listeners is necessarily a good idea, either. An associative array, indexed by ID, could store the IDs of the other list items that are related, all in a single data structure. So for instance: listRelationships["itemID1"] = ["itemID2", "itemID3"]; listRelationships["itemID2"] = ["itemID1"]; listRelationships["itemID3"] = ["itemID2"]; This allows you to store arbitrary relationships between each list item. When a list item is moused over, just grab listRelationships [itemID] and you will get a corresponding array of list items to highlight. Nathan http://www.nathanderksen.com That sounds a bit more like where I'm at. Not that I've used associative arrays before, but they're basically the same as property lists in Lingo right? In your above example, wont I still need a listRelationships ["itemID1"] = [whatever] line for each item I'm wanting to reference? Or have I totally misunderstood what's going on there? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Component and Live Preview ~ problems
Sorry, using Flash 8. Thanks for any insight. Derek Vadneau flashcoderlist at ThunderUnderground.com wrote: >I remember this happening with my components at one point, but I think the >issue was with MX04 - pre 7.2. I'm not 100% on that but I do remember the >problem occurring. > >Are you using MX04? If so, are you using the 7.2 update? > >If not, I'll see if I can dig up some info about what I did ... >record-keeping is not my strong-suit ... > > >Derek Vadneau ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Component and Live Preview ~ problems
The 7.2 update did clear up many things. Components Live Preview was always a bit flaky however. The one most notorious for showing up incorrectly was the numeric stepper. On the positive side, they have always shown up correctly when actually compiled. They often don't look right in the editing environment. Kevin Jackson On 1/30/06, Derek Vadneau <[EMAIL PROTECTED]> wrote: > I remember this happening with my components at one point, but I think the > issue was with MX04 - pre 7.2. I'm not 100% on that but I do remember the > problem occurring. > > Are you using MX04? If so, are you using the 7.2 update? > > If not, I'll see if I can dig up some info about what I did ... > record-keeping is not my strong-suit ... > > > Derek Vadneau > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Monday, January 30, 2006 11:22 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Component and Live Preview ~ problems > > > Hello All --- > > I posted this on FlashNewbie and didn't have much luck getting it > resolved. I also found a number of posts on Actionscript.org referencing > this same problem, but I couldn't find any solutions, so I thought I would > try here. I created a custom button component with live preview enabled > for the label. The live preview works great with only one button component > on stage. However, if I put another instance of my btn component on stage, > both btn components are updated to the most recent component's label. Both > buttons have different instance names. > > Any ideas on how to resolve this issue? > > Thanks for any and all replies. > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Kevin Jackson [EMAIL PROTECTED] Who so would be a man must be a nonconformist. - Ralph Waldo Emerson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Component and Live Preview ~ problems
I remember this happening with my components at one point, but I think the issue was with MX04 - pre 7.2. I'm not 100% on that but I do remember the problem occurring. Are you using MX04? If so, are you using the 7.2 update? If not, I'll see if I can dig up some info about what I did ... record-keeping is not my strong-suit ... Derek Vadneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, January 30, 2006 11:22 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Component and Live Preview ~ problems Hello All --- I posted this on FlashNewbie and didn't have much luck getting it resolved. I also found a number of posts on Actionscript.org referencing this same problem, but I couldn't find any solutions, so I thought I would try here. I created a custom button component with live preview enabled for the label. The live preview works great with only one button component on stage. However, if I put another instance of my btn component on stage, both btn components are updated to the most recent component's label. Both buttons have different instance names. Any ideas on how to resolve this issue? Thanks for any and all replies. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Component and Live Preview ~ problems
Hello All --- I posted this on FlashNewbie and didn't have much luck getting it resolved. I also found a number of posts on Actionscript.org referencing this same problem, but I couldn't find any solutions, so I thought I would try here. I created a custom button component with live preview enabled for the label. The live preview works great with only one button component on stage. However, if I put another instance of my btn component on stage, both btn components are updated to the most recent component's label. Both buttons have different instance names. Any ideas on how to resolve this issue? Thanks for any and all replies. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] MM Javascript integration kit
Hi again, Well, I managed to get the latest source from SVN, but I can't make it work at all. Frustrating, as the version I downloaded from Macromedia was pretty painless to implement. However, I need the new version, as it works with fscommand. Can anyone provide a working example or a link to a tutorial that uses the new source? Thanks! Jim Kremens ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] re: Javascript Integration kit - attention Mike Chambers
In a thread a few days ago, Mike Chambers said, regarding the MM JsIntegration kit: "Did you pull the latest source from subversion?" Is the source on the Macromedia site not the latest? -- Jim Kremens ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] dateField and Remoting problem
I've tried posting this in the Adobe (Macromedia) forums with no luck. I'm hoping that someone here can help. Might be a newbie question, but I'm thinking I'd get better response here. Sorry for the cross-post and sorry if this is beneath the level of this list or OT. I'm trying to send a date from a dateField.selectedDate in Flash to a CFC. I'm using that date as a filter in the query. The query looks like this: SELECT * FROM trainTrack WHERE classDate > #Flash.Params[2]# ORDER BY className I've tried using a cfm page as a test page and I know that the following format will filter the result appropriately: SELECT * FROM trainTrack WHERE classDate >= #date2# ORDER BY className This works when used in the query, but whenever I try to do this with remoting it doesn't work. When I don't try to filter by date, the correct result of the query is returned so I'm fairly sure that the problem lies in the way that the date is formated when it hits the query. I've tried several ways to format the date, but I haven't had any luck. Oh, and I'm using Access as the DB (which might be some of my touble). I would really appreciate any insight! Thanks! Matt Adams --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] fscommand troubles
Hi all, I'm having trouble with something simple fscommands in an html page. If I publish my swf with the setting 'Flash with FSCommand' and I include the following code in the first (and only) frame of my swf: fscommand("yo"); and the js function that catches the fscommands looks like this: function testFsCommand_DoFSCommand(command, args) { alert(command); } and my movie id=testFsCommand I should see an alert that says "yo", right? Nothing happens... Are there any gotchas that I don't know about? Very weird... If anyone can shed some light on this, that would be great Thanks, -- Jim Kremens ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can AttachedVideo be Controlled by a Class?
You'll have to attach the video manually on the stage.. but that also mean u won't need the video holder mc anymore. Just reference the video object when you creat ethe class var foo = new foo(video); On 1/31/06, Steven Loe <[EMAIL PROTECTED]> wrote: > Can attachedVideo be controlled by a class? I have scrubbed that archives and > Googled... > > Is it possible to do something like this? (This Dosen't work). I don't want to > use a media component because this will be controlled by a keyListener (no on > screen video controls). > > class Foo { > var video_container:MovieClip; > var my_video:Video; > var my_nc:NetConnection; > var my_ns:NetStream; > > function Foo(target:MovieClip, x:Number, y:Number, depth:Number) { > var my_nc = new NetConnection(); > var my_ns = new NetStream(my_nc); > > video_container = target.createEmptyMovieClip("video_container", depth); > video_container.attachMovie("video_mc", "video_mc", 1); > my_video = video_container.video_mc.theVideo ; > trace("my_video: " + my_video); > //_level0.video_container.video_mc.theVideo > > my_nc.connect(null); > my_video.attachVideo(my_ns); > my_ns.play("flvs/preview.flv"); > } > } > > On the timeline: var myFoo:Foo = new Foo(this, 4); > > Any Thoughts/Ideas Greatly appreciated! > Thanks! -Steven > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Ramon Miguel M. Tayag ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Lines of code in a Flash project
Agreed, lines per hour is not a very valuable metric, but it's a relatively quick and easy metric to calculate. I remember reading somewhere that the average programmer writes about 10 lines of good production code per hour. I'm guessing this included all time for project coordination, architecture, documentation, revisions, builds, debugging, meetings, etc. Anyways, my query was just for personal curiosity and if anything a personal metric to gauge how I'm improving as a programmer over time — this is not some dubious new management method for gauging productivity — at least I hope not! So I guess I was hoping for some hidden feature in Flash's Project panel that would calculate the number of lines of code in a project, or some quick Flash Javascript API code sample that would do the same. I guess the quickest, simplest way is to just open each class and total the last line number. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Site Statistics RIA
Hi, Key parts of the UI of Google Analytics (formally Urchin) are Flash. -David > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Kevin Aebig > Sent: Monday, January 30, 2006 10:10 AM > To: 'Flashcoders mailing list' > Subject: RE: [Flashcoders] Flash Site Statistics RIA > > It's not the same, but it's still along the right lines. > Thanks John, I had given up hope... > > Cheers, > > !k > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of John Dowdell > Sent: January 26, 2006 1:54 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Flash Site Statistics RIA > > Kevin Aebig wrote: > > About a month ago, I saw a blog post from one of the guru's talking > > about > a > > great RIA for website statistics. It was a real minimalist > > application, > but > > well thought out and built. Does anyone know what I'm > talking about or > > can provide a link? > > Could it have been Shaun Inman's Mint? > http://www.haveamint.com/ > > jd > > > > > -- > John Dowdell . Adobe Developer Support . San Francisco CA USA > Weblog: http://weblogs.macromedia.com/jd > Aggregator: http://weblogs.macromedia.com/mxna > Technotes: http://www.macromedia.com/support/ > Spam killed my private email -- public record is best, thanks. > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re:AS3 reference live docs missing?
Is there a mirror for this somewhere? I was depending on this for a proof-of-concept I'm working on. Broken link: http://livedocs.macromedia.com/labs/1/flex/langref/index.html On 1/27/06, M S <[EMAIL PROTECTED]> wrote: > Let's hope they are filling in all the HOELS! :) Many things in the > interfaces that would be great to start reading. > > Sorry, a bit more detal > > www.macromedia.com/go/programmingAS3 This is a help book > > http://livedocs.macromedia.com/labs/1/flex/langref/ This is the language > reference API book. > > Peace, Mike > > On 1/27/06, M S <[EMAIL PROTECTED]> wrote: > > > > No, that is not the API book. I get the same page dead link to. > > > > On 1/27/06, Greg Hamer <[EMAIL PROTECTED]> wrote: > > > > > > Weird. This redirect link still works: > > > www.macromedia.com/go/programmingAS3 > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] except onRelease
That's retarded. But thanks for the insight. So I changed the code to attach a MC for the library that had another MC inside to load the img into and it worked fine. So all is good again today. Thanks! Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Winterhalder Sent: Monday, January 30, 2006 4:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] except onRelease hi Corban, > this[charThumb_MC].loadMovie(charThumb); loadMovie is delayed until all scripts in the frame have finished, so you assign the onRelease to a movieclip that will be replaced by a newly loaded one moments later. use a container to load it into, and assign your onRelease to the container. btw, createEmptyMovieClip returns a reference to the new clip, very useful if you don't want to type this[charThumb_MC] over and over again: var clip = this.createEmptyMovieClip(charThumb_MC, this.getNextHighestDepth()); clip._x = ... hth, mark On 1/30/06, Corban Baxter <[EMAIL PROTECTED]> wrote: > Guys can you tell me why this entire block of code work in F8 except the part > where it hits the onRelease its like it doesn't even make it a button when > applied. Any ideas? > > buildCharMenu = function(totalChars, setNum){ > setMax = setNum * 5; > trace("setMax: " + setMax); //if set is 1 this returns 4 > setMin = setMax - 5; //limits total created in set to be 5 > trace("setMin: " + setMin); //if setMax is 4 this returns 0 > > for(i=setMin; i charThumb = xmlNode.childNodes[i].attributes.thumb; > trace("charThumb: " + charThumb); > charThumb_MC = "charThumb" + i; //set new mc name > trace(charThumb_MC); > this.createEmptyMovieClip(charThumb_MC, > this.getNextHighestDepth()); > this[charThumb_MC]._x = 365 + (50 * i); //initially the value > is 0 so nothing is added > this[charThumb_MC]._y = 408; > //trace(charThumb_MC + ": " + this[charThumb_MC]._x); > this[charThumb_MC].loadMovie(charThumb); > this[charThumb_MC].myNum = i; > > this[charThumb_MC].onRelease = function(){ > input_char_info(myNum); > trace("myNum: " + myNum); > } > } > } > > Corban Baxter |rich media designer |www.funimation.com > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
Mike, do you have an example of this? My current test shows the opposite - that convolution is proving more cpu intensive than blurfilter? > Mike Mountain <[EMAIL PROTECTED]> wrote: > In my tests convolution filter was much faster than a blurfilter. > But it's an easy one to swap oout and test for yourself... > Andreas Rønning <[EMAIL PROTECTED]> wrote: > Does anyone know which is faster; a blurring one-pass convolution filter > or a blurfilter? Or are they just 2 sides to the same story? I need a > high performance blur operation for depth of field.. > > Cheers, > > - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] except onRelease
hi Corban, > this[charThumb_MC].loadMovie(charThumb); loadMovie is delayed until all scripts in the frame have finished, so you assign the onRelease to a movieclip that will be replaced by a newly loaded one moments later. use a container to load it into, and assign your onRelease to the container. btw, createEmptyMovieClip returns a reference to the new clip, very useful if you don't want to type this[charThumb_MC] over and over again: var clip = this.createEmptyMovieClip(charThumb_MC, this.getNextHighestDepth()); clip._x = ... hth, mark On 1/30/06, Corban Baxter <[EMAIL PROTECTED]> wrote: > Guys can you tell me why this entire block of code work in F8 except the part > where it hits the onRelease its like it doesn't even make it a button when > applied. Any ideas? > > buildCharMenu = function(totalChars, setNum){ > setMax = setNum * 5; > trace("setMax: " + setMax); //if set is 1 this returns 4 > setMin = setMax - 5; //limits total created in set to be 5 > trace("setMin: " + setMin); //if setMax is 4 this returns 0 > > for(i=setMin; i charThumb = xmlNode.childNodes[i].attributes.thumb; > trace("charThumb: " + charThumb); > charThumb_MC = "charThumb" + i; //set new mc name > trace(charThumb_MC); > this.createEmptyMovieClip(charThumb_MC, > this.getNextHighestDepth()); > this[charThumb_MC]._x = 365 + (50 * i); //initially the value > is 0 so nothing is added > this[charThumb_MC]._y = 408; > //trace(charThumb_MC + ": " + this[charThumb_MC]._x); > this[charThumb_MC].loadMovie(charThumb); > this[charThumb_MC].myNum = i; > > this[charThumb_MC].onRelease = function(){ > input_char_info(myNum); > trace("myNum: " + myNum); > } > } > } > > Corban Baxter |rich media designer |www.funimation.com > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] except onRelease
Guys can you tell me why this entire block of code work in F8 except the part where it hits the onRelease its like it doesn't even make it a button when applied. Any ideas? buildCharMenu = function(totalChars, setNum){ setMax = setNum * 5; trace("setMax: " + setMax); //if set is 1 this returns 4 setMin = setMax - 5; //limits total created in set to be 5 trace("setMin: " + setMin); //if setMax is 4 this returns 0 for(i=setMin; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Can AttachedVideo be Controlled by a Class?
Can attachedVideo be controlled by a class? I have scrubbed that archives and Googled... Is it possible to do something like this? (This Dosen't work). I don't want to use a media component because this will be controlled by a keyListener (no on screen video controls). class Foo { var video_container:MovieClip; var my_video:Video; var my_nc:NetConnection; var my_ns:NetStream; function Foo(target:MovieClip, x:Number, y:Number, depth:Number) { var my_nc = new NetConnection(); var my_ns = new NetStream(my_nc); video_container = target.createEmptyMovieClip("video_container", depth); video_container.attachMovie("video_mc", "video_mc", 1); my_video = video_container.video_mc.theVideo ; trace("my_video: " + my_video); //_level0.video_container.video_mc.theVideo my_nc.connect(null); my_video.attachVideo(my_ns); my_ns.play("flvs/preview.flv"); } } On the timeline: var myFoo:Foo = new Foo(this, 4); Any Thoughts/Ideas Greatly appreciated! Thanks! -Steven ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Specify scaling of components
Hi all, I am looking to control how some of my components are scaled. This is mostly so that I can define how each are draw. For instance I want to lock my button component to two different types of scaling. 1) Width only 2) Retain aspect ratio Is there any why this can be done? I know that I am able to override the draw and scale functions from the UIObject class but I want more user feedback than drawing it correctly after they attempt to scale. Rather I want the scaling handles within Flash to get constrained to one of my two above options. Is there any way to do this?? Thanks Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Do these lines only need to be in v2 extendingcomponents?
Perfect- Thanks Scott. On 1/30/06, Scott Hyndman <[EMAIL PROTECTED]> wrote: > > These variables are used by UIObject.createClassObject(). If you aren't > using this method, you don't need these variables. > > Scott > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Manuel > Saint-Victor > Sent: Mon 1/30/2006 1:36 PM > To: Flashcoders mailing list > Cc: > Subject:[Flashcoders] Do these lines only need to be in v2 > extendingcomponents? > > Do the following lines need to be in components that don't extend the V2 > component framework or can they be omitted: > // Components must declare these to be proper // components in the > components framework. > static var symbolName:String = "Dial"; > static var symbolOwner:Object = Dial; > var className:String = "Dial"; > > ? > Thanks, > > Mani > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] f8 preloader
Hey guys I am trying to paste some preloader code from a f6 project into an f8 project but its acting really weird. The traces I have put in for watching my percent grow don't even begine to trace until about 46%. I figured it would be some kind of issue with exporting to first frame stuff but I have none of that in the project. And the graphic I have on the first frame are like 1/10 of the total size of the project. Anyone know why this code might not work right in f8. Can I not run traces right away with code in f8? Weird stuff... [code on first frame] preloader_mc.onEnterFrame = function() { totalNum = getBytesTotal(); loadedNum = getBytesLoaded(); trace("loadedNum: "+loadedNum); trace("totalNum: "+totalNum); percent = Math.round((loadedNum/totalNum)*100); trace("percent:"+percent); if (percent == 100) { trace("PLAY!!!"); preloader_mc.percent_txt.text = "100"; //preloader_mc._yscale = 100; //preloader_mc._xscale = 100; play(); } else if (percent > 0) { preloader_mc.percent_txt.text = percent; //preloader_mc._yscale = percent; //preloader_mc._xscale = percent; } }; stop(); [/code on first frame] Corban Baxter | rich media designer | www.funimation.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Dynamic class creation-thoughts?
Nice job for creating dynamic linked library in flash, thanks to Farid and Scott. Of course compiled clips and components do the same, but using dlls gives us the ability to load classed whenever they are needed and not just including them all in the first frame! I was wondering if it is possible to load a class with a given string using pure ActionScript and I guess it's not. Well that's not an issue in flash and I was wrong to compare Java and flash in this case because in Java classes are compiled in separate .java files and it takes time for an application to load them all at startup, hence manually loading classes (as I described in my other post) can improve application performance, but since in flash all classes are embedded in a single compiled .swf file they are available when swf is loaded Kamy Scott Hyndman <[EMAIL PROTECTED]> wrote: Hey Kamyar, Sure it is...unless I misunderstand you. http://www.osflash.org/using_a_swf_as_a_dll Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Kamyar Nazeri Sent: Mon 1/30/2006 12:48 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] Dynamic class creation-thoughts? I looked into Java Virtual Machine "Class" code, it's not possible to load a class dynamically in flash. at least you need to have somehow the main package loaded in flash! after all it is ActionScript and it still needs lots of improvements in language syntax Kamyar Nazeri wrote: first, what you guys have done is dynamically refrencing a *loaded* class not dynamically creating a class! if the class is not yet loaded it returns null. and of course dynamically refrencing a class gives you nothing, I was wondering if it is possible to load a class dynamically? in Java there's a forName method on "Class" class that loads a class with given string and that's what we use with applications with dozens of classes, because it can take a long time for a big application to load all classes automatically, frustrating the user. so we can give users of our program the illusion of a faster start with the this trick: the class containing the main method does not explicitly refer to other classes. first display a splash screen. Then manually force the loading of other classes by calling Class.forName anybody? any suggestions for loading a class dynamically? [EMAIL PROTECTED] wrote: Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? > thank you all, i've already made it! > > var str:String = 'test1.test2.ClassC'; > var arr = str.split('.'); > var variable = _global; > > for (var i=0;i > { > variable = variable[arr[i]]; > trace(variable); > } > new variable(); > > > > On 1/30/06, Serge wrote: >> >> import pkg1.pkg2.pkg3.* >> or >> import pkg1.* >> >> >> new pkg1.pkg2.pkg3.className(), >> sorry, should be: >> new className() >> >> make sure pkg1 has classes you would like to be compiled in swf or >> use exclude xml file >> >> >> >> On 1/30/06, franto wrote: >> >> Hi all, >> >> >> >> maybe it is easy, maybe not, but i cant figure it out now, and i >> need it :) >> >> >> >> when i got class e,gpkg1.pkg2.pkg3.className >> >> >> >> i can make new instance in this way >> >> new pkg1.pkg2.pkg3.className() >> >> >> >> but i want to make it from string >> >> >> >> this dont work of course >> >> _global['pkg1.pkg2.pkg3.className'](); >> >> >> >> but this work: >> >> _global['pkg1']['pkg2']['pkg3']['className'](); >> >> >> >> can this done automatcally? i want jsut read string from XML and >> create new class instance, >> >> but i cant do it now. >> >> Any help is appreciated :) >> >> >> >> - >> Franto >> >> >> >> http://blog.franto.com >> >> http://www.flashcoders.sk >> >> ___ >> >> Flashcoders mailing list >> >> Flashcoders@chattyfig.figleaf.com >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > -- >
[Flashcoders] [ANN] F-ab -- browser for Flash movies
Hello, F-ab is a browser for Flash movies. Flash movies are switched by changing the channel like TV programs in it. You can see 1 Flash movies by changing the channel from "" to "". This product is a free-ware. System requirements: Mac OS: 10.4 or later Windows: XP Memory: 256 MB of RAM or more Display: 1024 x 768 or lager Java: Sun Microsystems J2SE 1.4 or later (Windows only) Download: http://www.f-ab.net/ Best regards, Jiro Harada [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[FlashCoders] RadioButton group
Hello all, Sorry for bothering you with this very basic question, but I need this very quickly and I can't remember how to do this. I have a single group of radio buttons on stage. How can I see which one is selected? Do I have to create a listener and save the changes on a variable? Thanks! Dimitrios ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Player Sub-Version Differences?
Thank you, John! Your suggestions look promising for sorting this out. -Marc At 11:27 AM 1/30/2006, you wrote: Marc Hoffman wrote: > I need to know what changes were made to the Flash Player > between versions 7.0.19.0 and 7.0.61.0. > Mike Chambers (or other MM reps) are you out there? Hi Marc... have you seen the Flash Player 7 Release Notes? http://www.macromedia.com/support/documentation/en/flashplayer/7/releasenotes.html Here are the Security Alerts which drew the later updaters: http://www.macromedia.com/devnet/security/security_zone/#flashplayer The 7.0.61 version was released a few months back for older operating systems which could not support the current 8.x Players, such as Win95, and MacOS Classic: http://www.macromedia.com/devnet/security/security_zone/mpsb05-07.html But that .61 version was for bounds-checking during input validation, and I don't know of anything which changed there for domain-checking. > In the project I inherited, web-based data exchange between Flash > and the server works in 7.0.19.0 but not in 7.0.61.0... I've tried > adding cross-domain xml files and modifying security (allow domain) > settings in the swf's, but no luck so far (possibly my syntax was > wrong, though). I'm hoping that learning the differences between > these two subversions will provide a solution. That sounds odd to me. Can you set up even a simple connection in the balking browser with a new test file? (This could help rule out anything in the larger, older file.) Does that balking browser change with the current Player (assuming it has a recent operating system)? It's not just one browser on one system where this has occurred, is it...? jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Player Sub-Version Differences?
Marc Hoffman wrote: > I need to know what changes were made to the Flash Player > between versions 7.0.19.0 and 7.0.61.0. > Mike Chambers (or other MM reps) are you out there? Hi Marc... have you seen the Flash Player 7 Release Notes? http://www.macromedia.com/support/documentation/en/flashplayer/7/releasenotes.html Here are the Security Alerts which drew the later updaters: http://www.macromedia.com/devnet/security/security_zone/#flashplayer The 7.0.61 version was released a few months back for older operating systems which could not support the current 8.x Players, such as Win95, and MacOS Classic: http://www.macromedia.com/devnet/security/security_zone/mpsb05-07.html But that .61 version was for bounds-checking during input validation, and I don't know of anything which changed there for domain-checking. > In the project I inherited, web-based data exchange between Flash > and the server works in 7.0.19.0 but not in 7.0.61.0... I've tried > adding cross-domain xml files and modifying security (allow domain) > settings in the swf's, but no luck so far (possibly my syntax was > wrong, though). I'm hoping that learning the differences between > these two subversions will provide a solution. That sounds odd to me. Can you set up even a simple connection in the balking browser with a new test file? (This could help rule out anything in the larger, older file.) Does that balking browser change with the current Player (assuming it has a recent operating system)? It's not just one browser on one system where this has occurred, is it...? jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Dynamic class creation-thoughts?
Hey Kamyar, Sure it is...unless I misunderstand you. http://www.osflash.org/using_a_swf_as_a_dll Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Kamyar Nazeri Sent: Mon 1/30/2006 12:48 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] Dynamic class creation-thoughts? I looked into Java Virtual Machine "Class" code, it's not possible to load a class dynamically in flash. at least you need to have somehow the main package loaded in flash! after all it is ActionScript and it still needs lots of improvements in language syntax Kamyar Nazeri <[EMAIL PROTECTED]> wrote: first, what you guys have done is dynamically refrencing a *loaded* class not dynamically creating a class! if the class is not yet loaded it returns null. and of course dynamically refrencing a class gives you nothing, I was wondering if it is possible to load a class dynamically? in Java there's a forName method on "Class" class that loads a class with given string and that's what we use with applications with dozens of classes, because it can take a long time for a big application to load all classes automatically, frustrating the user. so we can give users of our program the illusion of a faster start with the this trick: the class containing the main method does not explicitly refer to other classes. first display a splash screen. Then manually force the loading of other classes by calling Class.forName anybody? any suggestions for loading a class dynamically? [EMAIL PROTECTED] wrote: Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? > thank you all, i've already made it! > > var str:String = 'test1.test2.ClassC'; > var arr = str.split('.'); > var variable = _global; > > for (var i=0;i > { > variable = variable[arr[i]]; > trace(variable); > } > new variable(); > > > > On 1/30/06, Serge wrote: >> >> import pkg1.pkg2.pkg3.* >> or >> import pkg1.* >> >> >> new pkg1.pkg2.pkg3.className(), >> sorry, should be: >> new className() >> >> make sure pkg1 has classes you would like to be compiled in swf or >> use exclude xml file >> >> >> >> On 1/30/06, franto wrote: >> >> Hi all, >> >> >> >> maybe it is easy, maybe not, but i cant figure it out now, and i >> need it :) >> >> >> >> when i got class e,gpkg1.pkg2.pkg3.className >> >> >> >> i can make new instance in this way >> >> new pkg1.pkg2.pkg3.className() >> >> >> >> but i want to make it from string >> >> >> >> this dont work of course >> >> _global['pkg1.pkg2.pkg3.className'](); >> >> >> >> but this work: >> >> _global['pkg1']['pkg2']['pkg3']['className'](); >> >> >> >> can this done automatcally? i want jsut read string from XML and >> create new class instance, >> >> but i cant do it now. >> >> Any help is appreciated :) >> >> >> >> - >> Franto >> >> >> >> http://blog.franto.com >> >> http://www.flashcoders.sk >> >> ___ >> >> Flashcoders mailing list >> >> Flashcoders@chattyfig.figleaf.com >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > -- > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - What are the most popular cars? F
RE: [Flashcoders] Do these lines only need to be in v2 extendingcomponents?
These variables are used by UIObject.createClassObject(). If you aren't using this method, you don't need these variables. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Manuel Saint-Victor Sent: Mon 1/30/2006 1:36 PM To: Flashcoders mailing list Cc: Subject:[Flashcoders] Do these lines only need to be in v2 extendingcomponents? Do the following lines need to be in components that don't extend the V2 component framework or can they be omitted: // Components must declare these to be proper // components in the components framework. static var symbolName:String = "Dial"; static var symbolOwner:Object = Dial; var className:String = "Dial"; ? Thanks, Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Do these lines only need to be in v2 extending components?
Do the following lines need to be in components that don't extend the V2 component framework or can they be omitted: // Components must declare these to be proper // components in the components framework. static var symbolName:String = "Dial"; static var symbolOwner:Object = Dial; var className:String = "Dial"; ? Thanks, Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Player Sub-Version Differences?
Can anyone point me to a resource that describes the differences between sub-versions of the Flash Player? This information is key to fixing a complex Flash project I inherited. I need to know what changes were made to the Flash Player between versions 7.0.19.0 and 7.0.61.0. In the project I inherited, web-based data exchange between Flash and the server works in 7.0.19.0 but not in 7.0.61.0. I don't have any intermediate versions to test. I've read everything I could find on the Macromedia site pertaining to security changes in Flash 7. I've tried adding cross-domain xml files and modifying security (allow domain) settings in the swf's, but no luck so far (possibly my syntax was wrong, though). I'm hoping that learning the differences between these two subversions will provide a solution. Mike Chambers (or other MM reps) are you out there? thanks, Marc Hoffman ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ActionScript Cheatsheet Update (new URL)!
I love it on my desk too. Can't wait to see more updates and additions to this great piece. CB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Sunday, January 29, 2006 10:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] ActionScript Cheatsheet Update (new URL)! Great work! Wouldn't be a good idea to include the AS2 operators? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash 8 embeds fonts on OSX, even if you don't tell it to !
Hi people, For the record : When one uses MAc OSX Flash 8 Pro, you have different to use a font, by the way, for a reason that a presume, when you use _sans or Arial with "Use device fonts", in fact Flash embeds the outlines in the final swf. If someone else could test it on it's computer ?! - Put a textfield with _sans as font - Open File > Publish Settings - Check "Generate size report" - Look at the end of the output if there are _sans like this example : Nom de la police octetsCaractères ----- _sans21 _sans Gras 21 I think that MM embeds the outlines on osx, that way the mac and win version could have the same width. But it definitively give your swf an unecessary weight. Is it a known issue ? Is there a workaround that I don't know ? Thanks to confirm this annoying issue. --- erixtekila http://blog.v-i-a.net/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation-thoughts?
Take a look at this, basically the closest thing to what you're referring to in Java. http://www.osflash.org/sexie Farid - Original Message From: Kamyar Nazeri <[EMAIL PROTECTED]> To: Flashcoders mailing list Sent: Monday, January 30, 2006 12:48:04 PM Subject: Re: [Flashcoders] Dynamic class creation-thoughts? I looked into Java Virtual Machine "Class" code, it's not possible to load a class dynamically in flash. at least you need to have somehow the main package loaded in flash! after all it is ActionScript and it still needs lots of improvements in language syntax Kamyar Nazeri <[EMAIL PROTECTED]> wrote: first, what you guys have done is dynamically refrencing a *loaded* class not dynamically creating a class! if the class is not yet loaded it returns null. and of course dynamically refrencing a class gives you nothing, I was wondering if it is possible to load a class dynamically? in Java there's a forName method on "Class" class that loads a class with given string and that's what we use with applications with dozens of classes, because it can take a long time for a big application to load all classes automatically, frustrating the user. so we can give users of our program the illusion of a faster start with the this trick: the class containing the main method does not explicitly refer to other classes. first display a splash screen. Then manually force the loading of other classes by calling Class.forName anybody? any suggestions for loading a class dynamically? [EMAIL PROTECTED] wrote: Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? > thank you all, i've already made it! > > var str:String = 'test1.test2.ClassC'; > var arr = str.split('.'); > var variable = _global; > > for (var i=0;i > { > variable = variable[arr[i]]; > trace(variable); > } > new variable(); > > > > On 1/30/06, Serge wrote: >> >> import pkg1.pkg2.pkg3.* >> or >> import pkg1.* >> >> >> new pkg1.pkg2.pkg3.className(), >> sorry, should be: >> new className() >> >> make sure pkg1 has classes you would like to be compiled in swf or >> use exclude xml file >> >> >> >> On 1/30/06, franto wrote: >> >> Hi all, >> >> >> >> maybe it is easy, maybe not, but i cant figure it out now, and i >> need it :) >> >> >> >> when i got class e,gpkg1.pkg2.pkg3.className >> >> >> >> i can make new instance in this way >> >> new pkg1.pkg2.pkg3.className() >> >> >> >> but i want to make it from string >> >> >> >> this dont work of course >> >> _global['pkg1.pkg2.pkg3.className'](); >> >> >> >> but this work: >> >> _global['pkg1']['pkg2']['pkg3']['className'](); >> >> >> >> can this done automatcally? i want jsut read string from XML and >> create new class instance, >> >> but i cant do it now. >> >> Any help is appreciated :) >> >> >> >> - >> Franto >> >> >> >> http://blog.franto.com >> >> http://www.flashcoders.sk >> >> ___ >> >> Flashcoders mailing list >> >> Flashcoders@chattyfig.figleaf.com >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > -- > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - What are the most popular cars? Find out at
Re: [Flashcoders] FLV Syncronisation with Alpha Heavy Animations
Yea that's the idea behind it, if the animation is lagging behind the video, which it is doing in my case, then the cue point within the flv triggers the next frame or label for the animations so it appears to maintain sync. Also note in most cases, if label1 is a bunch of stuff coming on the screen, and label2 is more stuff coming on screen, label2 also gets rid of the stuff that came on during label1. That's in most cases but not all. I have yet to test this on a mac, but what we're doing is more intranet based and the client is all IE / PC but i am testing against firefox on a PC, which is a little slower on the pc than IE and it's doing well so far. But i imagine if you have everything setup properly it should work for both platforms... Dunc On 1/29/06, kris lane <[EMAIL PROTECTED]> wrote: > > Hey, > > So if the Animation is playing slower than the video, > it will cut to the next animation to keep up with the video cues? > > I know the mac is often quite slower for the flash animations, > but is the 10fps sort of performance typical of what the flash plugin > achieves? > > cheers > kris > > > Hi, > > I'm doing something very similar right now, although trying to keep > the > animations as "un-nested" as possible. I can't explain the > intricacies of > an FLV but I think you need to look at an external FLV like it's a > streaming > sound and not really tied to the timeline, or it plays above the > timeline, > that's what i tell my PM. So your animations will end up lagging > behind it. > We paid $60 US for captionate (http://buraks.com/captionate/), and > each fla > has a base mc on the main timeline which houses an flvplayback > component and > animations that span the length of the video, initial setup was > exactly like > yours, import video embedded and audio for animation matching, dump > both for > final. For each major animation sequence we have a frame label, > "one", > "two", "three"... then we use a jsfl script to puke out the frame > labels and > their corresponding times and captionate to fill the flv full of those > labels and times via cue points. the base mc is linked to a class > which > reads in those cue points and jumps to the specific frame labels > dependant > on where the flv video is. So depending on how animation intensive a > file > may be i may have roughly 20-30 frame labels for a 2 minute > video. Once you > get 1 setup it can be pretty automated beyond that, outside of the > monotonous production work for the animations. There are times where I > do > have to tweak times a little in captionate if something has to be spot > on > but it's usually pretty close. > > Embedding wasn't an option as the swf really seemed to take a > performance > hit in the end no matter how miniscule the animations were. > > hope this helped some, > Dunc > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Depth prob...
Cool. Jason Merrill >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of MJorge >>Sent: Monday, January 30, 2006 12:50 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] Depth prob... >> >> >>Ok, it´s working Thanks for the tip Jason... >> >>On 1/30/06, MJorge <[EMAIL PROTECTED]> wrote: >>> >>> Thks, >>> >>> So i´ll have to create a movieClip for each of my files i´m >>loading and >>> make tha attachMovie to them separately... >>> >>> On 1/30/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>> > >>> > You can only attach one movie clip per movie clip >>instance - so just >>> > create more empty movie clips to attach them to. If you >>attach a movie clip >>> > to an existing movie clip, the original gets overwritten. >>> > >>> > Jason Merrill >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>-Original Message- >>> > >>From: [EMAIL PROTECTED] >>> > >>[mailto: [EMAIL PROTECTED] >>Behalf Of MJorge >>> > >>Sent: Monday, January 30, 2006 12:32 PM >>> > >>To: Flashcoders mailing list >>> > >>Subject: [Flashcoders] Depth prob... >>> > >> >>> > >> >>> > >>I´m loading the vars from two different databases to Flash. >>> > >> >>> > >>But i´m having some prob´s with my "attachMovie" and the >>> > >>depth cause it >>> > >>will delete the other attachMovie it run´s at first >>> > >> >>> > >>Can someone help please? >>> > >> >>> > >> >>> > >>myVar = new LoadVars (); >>> > >>myNewVar = new LoadVars (); >>> > >>nomes = new Array (); >>> > >>newNomes = new Array (); >>> > >>// >>> > >>/// >>> > >>myVar.onLoad = function () >>> > >>{ >>> > >>for (var a in this) >>> > >>{ >>> > >>if (a != "onLoad") >>> > >>{ >>> > >> nomes.push (this[a]); >>> > >>} >>> > >>} >>> > >>ok = true; >>> > >>l = nomes.length; >>> > >>i = 0; >>> > >>howManyNew = ((nomes.length) - 1); >>> > >>for (n = 0; n < howManyNew; n += 8) >>> > >>{ >>> > >>mc = attachMovie ("teste_lib", "mainClip" + i, i++); >>> > >>mc.tit.text = nomes[n + 7]; >>> > >>mc._x = -227; >>> > >>mc._y = (i * 6) - 320; >>> > >>i++; >>> > >>} >>> > >>}; >>> > >>myNewVar.onLoad = function () >>> > >>{ >>> > >>for (var b in this) >>> > >>{ >>> > >>if (b != "onLoad") >>> > >>{ >>> > >>newNomes.push (this[b]); >>> > >>} >>> > >>} >>> > >>newOk = true; >>> > >>s = 0; >>> > >>len = ((newNomes.length) - 1); >>> > >>for (v = 0; v < len; v += 8) >>> > >>{ >>> > >>my_mc = attachMovie ("newTesteLib", "myClip" + s, s++); >>> > >>my_mc.tit.text = newNomes[v + 7]; >>> > >>my_mc._x = -30; >>> > >>my_mc._y = (s * 6) - 320; >>> > >>s++; >>> > >>} >>> > >>}; >>> > >>myNewVar.load ("http://www.mypage.com/file.php";); >>> > >>myVar.load (" http://www.mypage.com/file2.php";); >>> > >> >>> > >>-- >>> > >> >>> > >>Mário Jorge >>> > >>Icq: 164987050 >>> > >>Msn + Mail: [EMAIL PROTECTED] >>> > >>Web: http://www.beedigital.net >>> > >>Blog: http://www.beedigital.net/blog >>> > >>___ >>> > >>Flashcoders mailing list >>> > >>Flashcoders@chattyfig.figleaf.com >>> > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> > >> >>> > NOTICE: >>> > This message is for the designated recipient only and may contain >>> > privileged or confidential information. If you have >>received it in error, >>> > please notify the sender immediately and delete the >>original. Any other use >>> > of this e-mail by you is prohibited. >>> > ___ >>> > Flashcoders mailing list >>> > Flashcoders@chattyfig.figleaf.com >>> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> > >>> >>> >>> >>> -- >>> >>> Mário Jorge >>> Icq: 164987050 >>> Msn + Mail: [EMAIL PROTECTED] >>> Web: http://www.beedigital.net >>> Blog: http://www.beedigital.net/blog >>> >> >> >> >>-- >> >>Mário Jorge >>Icq: 164987050 >>Msn + Mail: [EMAIL PROTECTED] >>Web: http://www.beedigital.net >>Blog: http://www.beedigital.net/blog >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Depth prob...
Ok, it´s working Thanks for the tip Jason... On 1/30/06, MJorge <[EMAIL PROTECTED]> wrote: > > Thks, > > So i´ll have to create a movieClip for each of my files i´m loading and > make tha attachMovie to them separately... > > On 1/30/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > > > > You can only attach one movie clip per movie clip instance - so just > > create more empty movie clips to attach them to. If you attach a movie clip > > to an existing movie clip, the original gets overwritten. > > > > Jason Merrill > > > > > > > > > > > > > > > > > > >>-Original Message- > > >>From: [EMAIL PROTECTED] > > >>[mailto: [EMAIL PROTECTED] Behalf Of MJorge > > >>Sent: Monday, January 30, 2006 12:32 PM > > >>To: Flashcoders mailing list > > >>Subject: [Flashcoders] Depth prob... > > >> > > >> > > >>I´m loading the vars from two different databases to Flash. > > >> > > >>But i´m having some prob´s with my "attachMovie" and the > > >>depth cause it > > >>will delete the other attachMovie it run´s at first > > >> > > >>Can someone help please? > > >> > > >> > > >>myVar = new LoadVars (); > > >>myNewVar = new LoadVars (); > > >>nomes = new Array (); > > >>newNomes = new Array (); > > >>// > > >>/// > > >>myVar.onLoad = function () > > >>{ > > >>for (var a in this) > > >>{ > > >>if (a != "onLoad") > > >>{ > > >> nomes.push (this[a]); > > >>} > > >>} > > >>ok = true; > > >>l = nomes.length; > > >>i = 0; > > >>howManyNew = ((nomes.length) - 1); > > >>for (n = 0; n < howManyNew; n += 8) > > >>{ > > >>mc = attachMovie ("teste_lib", "mainClip" + i, i++); > > >>mc.tit.text = nomes[n + 7]; > > >>mc._x = -227; > > >>mc._y = (i * 6) - 320; > > >>i++; > > >>} > > >>}; > > >>myNewVar.onLoad = function () > > >>{ > > >>for (var b in this) > > >>{ > > >>if (b != "onLoad") > > >>{ > > >>newNomes.push (this[b]); > > >>} > > >>} > > >>newOk = true; > > >>s = 0; > > >>len = ((newNomes.length) - 1); > > >>for (v = 0; v < len; v += 8) > > >>{ > > >>my_mc = attachMovie ("newTesteLib", "myClip" + s, s++); > > >>my_mc.tit.text = newNomes[v + 7]; > > >>my_mc._x = -30; > > >>my_mc._y = (s * 6) - 320; > > >>s++; > > >>} > > >>}; > > >>myNewVar.load ("http://www.mypage.com/file.php";); > > >>myVar.load (" http://www.mypage.com/file2.php";); > > >> > > >>-- > > >> > > >>Mário Jorge > > >>Icq: 164987050 > > >>Msn + Mail: [EMAIL PROTECTED] > > >>Web: http://www.beedigital.net > > >>Blog: http://www.beedigital.net/blog > > >>___ > > >>Flashcoders mailing list > > >>Flashcoders@chattyfig.figleaf.com > > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > >> > > NOTICE: > > This message is for the designated recipient only and may contain > > privileged or confidential information. If you have received it in error, > > please notify the sender immediately and delete the original. Any other use > > of this e-mail by you is prohibited. > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > -- > > Mário Jorge > Icq: 164987050 > Msn + Mail: [EMAIL PROTECTED] > Web: http://www.beedigital.net > Blog: http://www.beedigital.net/blog > -- Mário Jorge Icq: 164987050 Msn + Mail: [EMAIL PROTECTED] Web: http://www.beedigital.net Blog: http://www.beedigital.net/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation-thoughts?
I looked into Java Virtual Machine "Class" code, it's not possible to load a class dynamically in flash. at least you need to have somehow the main package loaded in flash! after all it is ActionScript and it still needs lots of improvements in language syntax Kamyar Nazeri <[EMAIL PROTECTED]> wrote: first, what you guys have done is dynamically refrencing a *loaded* class not dynamically creating a class! if the class is not yet loaded it returns null. and of course dynamically refrencing a class gives you nothing, I was wondering if it is possible to load a class dynamically? in Java there's a forName method on "Class" class that loads a class with given string and that's what we use with applications with dozens of classes, because it can take a long time for a big application to load all classes automatically, frustrating the user. so we can give users of our program the illusion of a faster start with the this trick: the class containing the main method does not explicitly refer to other classes. first display a splash screen. Then manually force the loading of other classes by calling Class.forName anybody? any suggestions for loading a class dynamically? [EMAIL PROTECTED] wrote: Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? > thank you all, i've already made it! > > var str:String = 'test1.test2.ClassC'; > var arr = str.split('.'); > var variable = _global; > > for (var i=0;i > { > variable = variable[arr[i]]; > trace(variable); > } > new variable(); > > > > On 1/30/06, Serge wrote: >> >> import pkg1.pkg2.pkg3.* >> or >> import pkg1.* >> >> >> new pkg1.pkg2.pkg3.className(), >> sorry, should be: >> new className() >> >> make sure pkg1 has classes you would like to be compiled in swf or >> use exclude xml file >> >> >> >> On 1/30/06, franto wrote: >> >> Hi all, >> >> >> >> maybe it is easy, maybe not, but i cant figure it out now, and i >> need it :) >> >> >> >> when i got class e,gpkg1.pkg2.pkg3.className >> >> >> >> i can make new instance in this way >> >> new pkg1.pkg2.pkg3.className() >> >> >> >> but i want to make it from string >> >> >> >> this dont work of course >> >> _global['pkg1.pkg2.pkg3.className'](); >> >> >> >> but this work: >> >> _global['pkg1']['pkg2']['pkg3']['className'](); >> >> >> >> can this done automatcally? i want jsut read string from XML and >> create new class instance, >> >> but i cant do it now. >> >> Any help is appreciated :) >> >> >> >> - >> Franto >> >> >> >> http://blog.franto.com >> >> http://www.flashcoders.sk >> >> ___ >> >> Flashcoders mailing list >> >> Flashcoders@chattyfig.figleaf.com >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > -- > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - What are the most popular cars? Find out at Yahoo! Autos ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Depth prob...
Thks, So i´ll have to create a movieClip for each of my files i´m loading and make tha attachMovie to them separately... On 1/30/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > > You can only attach one movie clip per movie clip instance - so just > create more empty movie clips to attach them to. If you attach a movie clip > to an existing movie clip, the original gets overwritten. > > Jason Merrill > > > > > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAIL PROTECTED] Behalf Of MJorge > >>Sent: Monday, January 30, 2006 12:32 PM > >>To: Flashcoders mailing list > >>Subject: [Flashcoders] Depth prob... > >> > >> > >>I´m loading the vars from two different databases to Flash. > >> > >>But i´m having some prob´s with my "attachMovie" and the > >>depth cause it > >>will delete the other attachMovie it run´s at first > >> > >>Can someone help please? > >> > >> > >>myVar = new LoadVars (); > >>myNewVar = new LoadVars (); > >>nomes = new Array (); > >>newNomes = new Array (); > >>// > >>/// > >>myVar.onLoad = function () > >>{ > >>for (var a in this) > >>{ > >>if (a != "onLoad") > >>{ > >>nomes.push (this[a]); > >>} > >>} > >>ok = true; > >>l = nomes.length; > >>i = 0; > >>howManyNew = ((nomes.length) - 1); > >>for (n = 0; n < howManyNew; n += 8) > >>{ > >>mc = attachMovie ("teste_lib", "mainClip" + i, i++); > >>mc.tit.text = nomes[n + 7]; > >>mc._x = -227; > >>mc._y = (i * 6) - 320; > >>i++; > >>} > >>}; > >>myNewVar.onLoad = function () > >>{ > >>for (var b in this) > >>{ > >>if (b != "onLoad") > >>{ > >>newNomes.push (this[b]); > >>} > >>} > >>newOk = true; > >>s = 0; > >>len = ((newNomes.length) - 1); > >>for (v = 0; v < len; v += 8) > >>{ > >>my_mc = attachMovie ("newTesteLib", "myClip" + s, s++); > >>my_mc.tit.text = newNomes[v + 7]; > >>my_mc._x = -30; > >>my_mc._y = (s * 6) - 320; > >>s++; > >>} > >>}; > >>myNewVar.load ("http://www.mypage.com/file.php";); > >>myVar.load ("http://www.mypage.com/file2.php";); > >> > >>-- > >> > >>Mário Jorge > >>Icq: 164987050 > >>Msn + Mail: [EMAIL PROTECTED] > >>Web: http://www.beedigital.net > >>Blog: http://www.beedigital.net/blog > >>___ > >>Flashcoders mailing list > >>Flashcoders@chattyfig.figleaf.com > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > NOTICE: > This message is for the designated recipient only and may contain > privileged or confidential information. If you have received it in error, > please notify the sender immediately and delete the original. Any other use > of this e-mail by you is prohibited. > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Mário Jorge Icq: 164987050 Msn + Mail: [EMAIL PROTECTED] Web: http://www.beedigital.net Blog: http://www.beedigital.net/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Depth prob...
You can only attach one movie clip per movie clip instance - so just create more empty movie clips to attach them to. If you attach a movie clip to an existing movie clip, the original gets overwritten. Jason Merrill >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of MJorge >>Sent: Monday, January 30, 2006 12:32 PM >>To: Flashcoders mailing list >>Subject: [Flashcoders] Depth prob... >> >> >>I´m loading the vars from two different databases to Flash. >> >>But i´m having some prob´s with my "attachMovie" and the >>depth cause it >>will delete the other attachMovie it run´s at first >> >>Can someone help please? >> >> >>myVar = new LoadVars (); >>myNewVar = new LoadVars (); >>nomes = new Array (); >>newNomes = new Array (); >>// >>/// >>myVar.onLoad = function () >>{ >>for (var a in this) >>{ >>if (a != "onLoad") >>{ >>nomes.push (this[a]); >>} >>} >>ok = true; >>l = nomes.length; >>i = 0; >>howManyNew = ((nomes.length) - 1); >>for (n = 0; n < howManyNew; n += 8) >>{ >>mc = attachMovie ("teste_lib", "mainClip" + i, i++); >>mc.tit.text = nomes[n + 7]; >>mc._x = -227; >>mc._y = (i * 6) - 320; >>i++; >>} >>}; >>myNewVar.onLoad = function () >>{ >>for (var b in this) >>{ >>if (b != "onLoad") >>{ >>newNomes.push (this[b]); >>} >>} >>newOk = true; >>s = 0; >>len = ((newNomes.length) - 1); >>for (v = 0; v < len; v += 8) >>{ >>my_mc = attachMovie ("newTesteLib", "myClip" + s, s++); >>my_mc.tit.text = newNomes[v + 7]; >>my_mc._x = -30; >>my_mc._y = (s * 6) - 320; >>s++; >>} >>}; >>myNewVar.load ("http://www.mypage.com/file.php";); >>myVar.load ("http://www.mypage.com/file2.php";); >> >>-- >> >>Mário Jorge >>Icq: 164987050 >>Msn + Mail: [EMAIL PROTECTED] >>Web: http://www.beedigital.net >>Blog: http://www.beedigital.net/blog >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Depth prob...
I´m loading the vars from two different databases to Flash. But i´m having some prob´s with my "attachMovie" and the depth cause it will delete the other attachMovie it run´s at first Can someone help please? myVar = new LoadVars (); myNewVar = new LoadVars (); nomes = new Array (); newNomes = new Array (); / myVar.onLoad = function () { for (var a in this) { if (a != "onLoad") { nomes.push (this[a]); } } ok = true; l = nomes.length; i = 0; howManyNew = ((nomes.length) - 1); for (n = 0; n < howManyNew; n += 8) { mc = attachMovie ("teste_lib", "mainClip" + i, i++); mc.tit.text = nomes[n + 7]; mc._x = -227; mc._y = (i * 6) - 320; i++; } }; myNewVar.onLoad = function () { for (var b in this) { if (b != "onLoad") { newNomes.push (this[b]); } } newOk = true; s = 0; len = ((newNomes.length) - 1); for (v = 0; v < len; v += 8) { my_mc = attachMovie ("newTesteLib", "myClip" + s, s++); my_mc.tit.text = newNomes[v + 7]; my_mc._x = -30; my_mc._y = (s * 6) - 320; s++; } }; myNewVar.load ("http://www.mypage.com/file.php";); myVar.load ("http://www.mypage.com/file2.php";); -- Mário Jorge Icq: 164987050 Msn + Mail: [EMAIL PROTECTED] Web: http://www.beedigital.net Blog: http://www.beedigital.net/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] avoiding a stack of lists
On 30 Jan 2006, at 17:13, Nathan Derksen wrote: Well, regardless of whether or not you use listeners, you still need to create the data relationship. I don't think encoding the relationships into 25 listeners is necessarily a good idea, either. An associative array, indexed by ID, could store the IDs of the other list items that are related, all in a single data structure. So for instance: listRelationships["itemID1"] = ["itemID2", "itemID3"]; listRelationships["itemID2"] = ["itemID1"]; listRelationships["itemID3"] = ["itemID2"]; This allows you to store arbitrary relationships between each list item. When a list item is moused over, just grab listRelationships [itemID] and you will get a corresponding array of list items to highlight. Nathan http://www.nathanderksen.com That sounds a bit more like where I'm at. Not that I've used associative arrays before, but they're basically the same as property lists in Lingo right? In your above example, wont I still need a listRelationships ["itemID1"] = [whatever] line for each item I'm wanting to reference? Or have I totally misunderstood what's going on there? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] avoiding a stack of lists
On 30 Jan 2006, at 17:12, Alan MacDougall wrote: Close. Let's assume you're using mx.events.EventDispatcher. Your event broadcaster class starts like this: Wow. Thanks for all that. I'm not using classes so that's another thing I'll have to study up on... I've filed your post away for future reference, when I've got to grips with the whole OOP thing :> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] avoiding a stack of lists
Well, regardless of whether or not you use listeners, you still need to create the data relationship. I don't think encoding the relationships into 25 listeners is necessarily a good idea, either. An associative array, indexed by ID, could store the IDs of the other list items that are related, all in a single data structure. So for instance: listRelationships["itemID1"] = ["itemID2", "itemID3"]; listRelationships["itemID2"] = ["itemID1"]; listRelationships["itemID3"] = ["itemID2"]; This allows you to store arbitrary relationships between each list item. When a list item is moused over, just grab listRelationships [itemID] and you will get a corresponding array of list items to highlight. Nathan http://www.nathanderksen.com On Jan 30, 2006, at 8:30 AM, Alan MacDougall wrote: Kent Humphrey wrote: I've made a single item work with my initial solution, which was to have a list for each item that lists which items in the other lists should highlight. But by the time I've made 25 lists for my 25 (current) items, that seems like a lot of redundant and duplicated data somehow. That sounds to me like you want to use events -- the items which light up should listen to the items that trigger them. When the triggering item gets moused over, the listening item(s) can decide whether to react. This might just take your redundancy and put it somewhere else, but it keeps you from writing and checking a ton of different lists. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] avoiding a stack of lists
That sounds to me like you want to use events -- the items which light up should listen to the items that trigger them. When the triggering item gets moused over, the listening item(s) can decide whether to react. This might just take your redundancy and put it somewhere else, but it keeps you from writing and checking a ton of different lists. Yeah, that sounds good. I haven't used events and listeners much, so upfront it might take me longer than my first approach. But let me see if I have the theory right. Each item in the lists is assigned a listener object as it is created, which would be a list of the possible events that will trigger it. Each item also has an event object that fires when rolled over. Rolling over item A fires an event that all the other items hear, each other item checks its list of events that will trigger it, and if it finds the event that was fired, it does its thing. Does that sound about right? Close. Let's assume you're using mx.events.EventDispatcher. Your event broadcaster class starts like this: import mx.events.EventDispatcher; class myClass { // function declarations to be mixed in by EventDispatcher public var addEventListener:Function; public var removeEventListener:Function; public var dispatchEvent:Function; /* constructor */ public function MyClass() { EventDispatcher.initialize(this); } } The EventDispatcher.initialize() call simply "fills in" the blank function declarations, and your object -- no matter what its type was before -- now acts as an EventDispatcher. Now let's say you have greenSwitch and purpleSwitch, which are event dispatchers; and redLight, blueLight, and yellowLight, which don't need to be. Given basic color theory, you want red and blue to light up if you click the purple switch. class Switch { ... public function toggle():Void { var eventObject:Object = new Object; eventObject.type = "onSwitchChange"; eventObject.target = this; // sends a reference to itself! dispatchEvent(eventObject); } } class Light { ... // note that this function has the same name as the event public function onSwitchChange(eventObject:Object):Void { // animate something, probably by altering a movieclip } } And finally, the code that makes use of these objects: var purpleSwitch:Switch = new Switch(); var redLight:Light = new Light(); var blueLight:Light = new Light(); purpleSwitch.addEventListener(redLight); purpleSwitch.addEventListener(blueLight); purpleSwitch.toggle(); As you see here, purpleSwitch contains an array of all objects listening to it; then when you create and dispatch an event object, it simply calls the identically-named method on each listener object. It's nothing mystical -- just convenient. And the nice thing about it, for your purposes, is that none of the switches or lights really even needs to know what color they are... the logic is contained in their sender/listener relationship. If you need something more complex, just add properties to the eventObject, and have the listener object deal with that. Or just read from eventObject.target, which should be a reference to the broadcasting object. The classic example is to have a textField or something, which sends events when it's updated; a listener could get to the text with eventObject.target.text. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] skinning component oddity
I am attaching content into a scroll pane, and I noticed that all of the components that are attached into my scroll pane are recieving the skinning modifications I applied to the scroll pane. For example, I set the border of my scroll pane to be a red solid, using the following code: scrollPane_sp.setStyle("borderStyle", "solid"); scrollPane_sp.setStyle("borderColor", "0xFF"); then all of the text area components that are inside my scroll pane also have a solid red border. Anybody know why these components behave this way, or know of a way around this? -- thanks, Bryce mediaRAIN t 801.802.6464 f 801.802.6463 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Author time/live preview of custom component
When creating a custom component is there a way to allow the user to be able to scaling changes in the authoring environment. I am using a component with some visible markings on the stage with Drag-n-drop scaling- although I can see the change in border size the movieclip inside stays the same size. Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] avoiding a stack of lists
On 30 Jan 2006, at 16:30, Alan MacDougall wrote: I've made a single item work with my initial solution, which was to have a list for each item that lists which items in the other lists should highlight. But by the time I've made 25 lists for my 25 (current) items, that seems like a lot of redundant and duplicated data somehow. That sounds to me like you want to use events -- the items which light up should listen to the items that trigger them. When the triggering item gets moused over, the listening item(s) can decide whether to react. This might just take your redundancy and put it somewhere else, but it keeps you from writing and checking a ton of different lists. Yeah, that sounds good. I haven't used events and listeners much, so upfront it might take me longer than my first approach. But let me see if I have the theory right. Each item in the lists is assigned a listener object as it is created, which would be a list of the possible events that will trigger it. Each item also has an event object that fires when rolled over. Rolling over item A fires an event that all the other items hear, each other item checks its list of events that will trigger it, and if it finds the event that was fired, it does its thing. Does that sound about right? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation-thoughts?
first, what you guys have done is dynamically refrencing a *loaded* class not dynamically creating a class! if the class is not yet loaded it returns null. and of course dynamically refrencing a class gives you nothing, I was wondering if it is possible to load a class dynamically? in Java there's a forName method on "Class" class that loads a class with given string and that's what we use with applications with dozens of classes, because it can take a long time for a big application to load all classes automatically, frustrating the user. so we can give users of our program the illusion of a faster start with the this trick: the class containing the main method does not explicitly refer to other classes. first display a splash screen. Then manually force the loading of other classes by calling Class.forName anybody? any suggestions for loading a class dynamically? [EMAIL PROTECTED] wrote: Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? > thank you all, i've already made it! > > var str:String = 'test1.test2.ClassC'; > var arr = str.split('.'); > var variable = _global; > > for (var i=0;i > { > variable = variable[arr[i]]; > trace(variable); > } > new variable(); > > > > On 1/30/06, Serge wrote: >> >> import pkg1.pkg2.pkg3.* >> or >> import pkg1.* >> >> >> new pkg1.pkg2.pkg3.className(), >> sorry, should be: >> new className() >> >> make sure pkg1 has classes you would like to be compiled in swf or >> use exclude xml file >> >> >> >> On 1/30/06, franto wrote: >> >> Hi all, >> >> >> >> maybe it is easy, maybe not, but i cant figure it out now, and i >> need it :) >> >> >> >> when i got class e,gpkg1.pkg2.pkg3.className >> >> >> >> i can make new instance in this way >> >> new pkg1.pkg2.pkg3.className() >> >> >> >> but i want to make it from string >> >> >> >> this dont work of course >> >> _global['pkg1.pkg2.pkg3.className'](); >> >> >> >> but this work: >> >> _global['pkg1']['pkg2']['pkg3']['className'](); >> >> >> >> can this done automatcally? i want jsut read string from XML and >> create new class instance, >> >> but i cant do it now. >> >> Any help is appreciated :) >> >> >> >> - >> Franto >> >> >> >> http://blog.franto.com >> >> http://www.flashcoders.sk >> >> ___ >> >> Flashcoders mailing list >> >> Flashcoders@chattyfig.figleaf.com >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > -- > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: OT THANK YOU: Re: [Flashcoders] How to call functions in sequence
On Sun, Jan 29, 2006 at 10:04:22AM +0100, Sander wrote: > If your functions are motion-based, have a look at "Fuse". It's a set > of Tween classes that lets you execute a lot of tweens in sequence. 2 > can fire off when 1 finished if you want. You can tween position, > alpha, rotation and many more. You could also use setInterval to call the functions. Also, there's Sequence classses out there that are useful too: http://proto.layer51.com/d.aspx?f=1417 - Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] avoiding a stack of lists
Kent Humphrey wrote: I've made a single item work with my initial solution, which was to have a list for each item that lists which items in the other lists should highlight. But by the time I've made 25 lists for my 25 (current) items, that seems like a lot of redundant and duplicated data somehow. That sounds to me like you want to use events -- the items which light up should listen to the items that trigger them. When the triggering item gets moused over, the listening item(s) can decide whether to react. This might just take your redundancy and put it somewhere else, but it keeps you from writing and checking a ton of different lists. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] [Jobs] senior flash developer
Hi all, The company I work for, Tonic Design, which is an independant design & branding consultancy in Shoreditch, London, England, is looking to hire a senior flash developer. Tonic are a fun, vibrant company to work for, with spacious penthouse studios on Shoreditch High St. Our client list includes Sony, Hasbro, Daihatsu, MTV, Rankin, and Daihatsu, amongst others. Our website is here: http://www.tonic.co.uk The successful candidate will: - Be a good communicator, able to work with both creative & technical people. - Be able to create solid, reliable actionscript solutions in a team environment within tight deadlines. - Have a portfolio of URLs which demonstrate their abilities & approach to problem solving. - Significant experience in a relevant industry role Also, any of the following, although not compulsory, would be an advantage: - A good sense of humour - A solid understanding of software development processes & methodologies - A good grasp of the workings of low-level actionscript - Experience with international (including non-latin) localisation of flash websites - Knowledge of a statically typed programming language such as Java or C# - Games development experience If you are interested, please mail me offlist, at [EMAIL PROTECTED], with a copy of an up to date CV and a portfolio of URLs. We will not consider applicants without URLs. We consider experience and demonstrable ability to far outweigh any academic qualifications. Thanks, Alias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] avoiding a stack of lists
Here's more of a higher-level problem for you helpful people :> Imagine 3 lists, someListA, anotherListB, and lastListC. When I rollover something in someListA, I want the items in anotherListB and lastListC to highlight. And the same for rolling over something in anotherListB or lastListC. So rolling over an item in any list makes N items in the other lists highlight. I've made a single item work with my initial solution, which was to have a list for each item that lists which items in the other lists should highlight. But by the time I've made 25 lists for my 25 (current) items, that seems like a lot of redundant and duplicated data somehow. Anyone got any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] what's the best way to load FLV files?
What's the best way to load external FLV files? NetStream or Media Class? and someone knows whats the main diferences between both? as which one is fastest cheers, ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] targetting a mc from a list - solved
Well, yeah, these list items need to be client names and that kinda thing, so might be a single word, might be 3 or 4 words. String wrangling to the rescue. On 30 Jan 2006, at 15:10, Adrian Lynch wrote: Ah, so you had a ["mc 1", "mc 2"] type thing going on? Ade ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] FileReference
Hi, Is there a way to get the FileReference to open different browse window styles - or are we stuck with the one it gives!? The Windows / IE browse window I am after is basically a resizable window. Note, to see the default window which Flash triggers, paste this code onto the first frame of a blank movie: import flash.net.FileReference; var imageFile:FileReference = new FileReference(); imageFile.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]); Cheers, Jason. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Site Statistics RIA
It's not the same, but it's still along the right lines. Thanks John, I had given up hope... Cheers, !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: January 26, 2006 1:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash Site Statistics RIA Kevin Aebig wrote: > About a month ago, I saw a blog post from one of the guru's talking about a > great RIA for website statistics. It was a real minimalist application, but > well thought out and built. Does anyone know what I'm talking about or can > provide a link? Could it have been Shaun Inman's Mint? http://www.haveamint.com/ jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] targetting a mc from a list - solved
Ah, so you had a ["mc 1", "mc 2"] type thing going on? Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kent Humphrey Sent: 30 January 2006 15:02 To: Flashcoders mailing list Subject: Re: [Flashcoders] targetting a mc from a list - solved ok, found the problem, my actual list has strings with spaces in them, which is what is making it not work. So I guess I'll fill them with "_" and then replace them with " " when I need the string with spaces. Thanks for the help guys. On 30 Jan 2006, at 14:00, Adrian Lynch wrote: > Are you sure you're creating the nested MC as you think you are? > > What do you get if you do: > > trace(parent_mc.mc1); > > ??? > > Ade ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] targetting a mc from a list - solved
ok, found the problem, my actual list has strings with spaces in them, which is what is making it not work. So I guess I'll fill them with "_" and then replace them with " " when I need the string with spaces. Thanks for the help guys. On 30 Jan 2006, at 14:00, Adrian Lynch wrote: Are you sure you're creating the nested MC as you think you are? What do you get if you do: trace(parent_mc.mc1); ??? Ade ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Standalone Flash EXE and PHP
At 02:58 PM 1/29/2006, Robert Sandie wrote: Had the need to call a Flash Standalone EXE via PHP. Is it possible to pass it command line variables without integrating into an application like Screenweaver? -Rob Pass them to the movie using FlashVars Example at http://www.sephiroth.it/test/unserializer/ and the docs. Miles -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 1/27/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] targetting a mc from a list
Adrian's description is exactly how you would do it if you have set it up as you describe. Jason Merrill >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of Kent >>Humphrey >>Sent: Monday, January 30, 2006 8:54 AM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] targetting a mc from a list >> >> >>Thanks, but that doesn't work either. It looks like it should, but >>I'm still getting undefined. >> >>On 30 Jan 2006, at 13:31, Adrian Lynch wrote: >> >>> Try: >>> >>> parent_mc[listWhatever[0]]; >>> >>> Ade >>> >>> -Original Message- >>> From: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] Behalf Of Kent >>> Humphrey >>> Sent: 30 January 2006 13:25 >>> To: Flashcoders mailing list >>> Subject: [Flashcoders] targetting a mc from a list >>> >>> >>> I have a list: >>> (code is example only) >>> >>> listWhatever = ["mc1", "mc2"]; >>> >>> This list is cycled through to generate some mcs inside parent_mc. >>> I now want to target one of those mcs again. Lets say I want to >>> target the first one in my list. I thought I could use eval() to >>> generate the statement, like so: >>> >>> eval("parent_mc."+listWhatever[0]); >>> >>> But trace() that returns undefined. How do I do it? >>> >>> Thanks. >>> ___ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> >> >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] the tool used to make this presentation
Aren't we just talking about using cuepoints with the video? You can use cuepoints to trigger events in Flash like play a movie or call a function - even move a frame where a new movie clip sits. Or what is it that has you intrigued about the presentation? Jason Merrill >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of Joe >>Cutting >>Sent: Monday, January 30, 2006 4:55 AM >>To: flashcoders@chattyfig.figleaf.com >>Subject: Re: [Flashcoders] the tool used to make this presentation >> >> >> >> >>I'd say "by hand"... Maybe you think it's too boring to be made >>manually? ;-) >> >>Making me download over 20mb (!) to see some "speaking heads". >>Here's another link: >>"Talking-Head Video Is Boring Online" >>http://www.useit.com/alertbox/video.html >> >>I'm curious if any of you have patience to listen the whole thing. As >>for me, I drop after 5 minutes. >> >> >>Isn't this done using "Breeze" - Adobe's tool for making this >>kind of thing? >>Its a pretty clever piece of technology and it must be pretty >>hard for the >>Adobe guys to have to stand up in front of camera and talk about this >>kind of thing. >>Which is a real shame because I completely agree with Gregory (and >>Jacob Nielson) that the end >>result is really frustrating because the speed at which you get the >>information is >>much slower than reading - and its difficult to skip ahead to the >>bits you're interested in. >>In the last few years the standard of writing and >>communication on Macromedias >>site had really improved but every so often I click on a useful >>looking link which >>takes me straight to a breeze presentation and I give up >>straight away. >> >>While I was writing this it occured to me that a tool which >>automatically >>created a "photo-story" might solve this problem - you'd still get >>the visual impact but >>you'd be able to skim ahead to the bits you want. >> >>Do other people find these Breeze presentations useful? - I'd be >>really interested to >>know if you do. >> >>Joe >> >>___ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation-thoughts?
I may be idiot, but how would you generate a menu's items given dynamic data ??? I cannot but see dynamic instantation, can I ? same for games, same for MP3 players (and video), same for whatever almost anything ? cedric I don't see the ish. If you're making a shooter game and have classes for enemies and classes for bullets, how would you put that into effect WITHOUT dynamic instantiation. I'm a hell of a lot more concerned with the idea of dynamic definition. - Andreas X [EMAIL PROTECTED] wrote: Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? thank you all, i've already made it! var str:String = 'test1.test2.ClassC'; var arr = str.split('.'); var variable = _global; for (var i=0;i wrote: import pkg1.pkg2.pkg3.* or import pkg1.* >> new pkg1.pkg2.pkg3.className(), sorry, should be: new className() make sure pkg1 has classes you would like to be compiled in swf or use exclude xml file On 1/30/06, franto <[EMAIL PROTECTED]> wrote: Hi all, maybe it is easy, maybe not, but i cant figure it out now, and i need it :) when i got class e,gpkg1.pkg2.pkg3.className i can make new instance in this way new pkg1.pkg2.pkg3.className() but i want to make it from string this dont work of course _global['pkg1.pkg2.pkg3.className'](); but this work: _global['pkg1']['pkg2']['pkg3']['className'](); can this done automatcally? i want jsut read string from XML and create new class instance, but i cant do it now. Any help is appreciated :) - - --- Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation-thoughts?
I don't see the ish. If you're making a shooter game and have classes for enemies and classes for bullets, how would you put that into effect WITHOUT dynamic instantiation. I'm a hell of a lot more concerned with the idea of dynamic definition. - Andreas X [EMAIL PROTECTED] wrote: Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? thank you all, i've already made it! var str:String = 'test1.test2.ClassC'; var arr = str.split('.'); var variable = _global; for (var i=0;i wrote: import pkg1.pkg2.pkg3.* or import pkg1.* >> new pkg1.pkg2.pkg3.className(), sorry, should be: new className() make sure pkg1 has classes you would like to be compiled in swf or use exclude xml file On 1/30/06, franto <[EMAIL PROTECTED]> wrote: Hi all, maybe it is easy, maybe not, but i cant figure it out now, and i need it :) when i got class e,gpkg1.pkg2.pkg3.className i can make new instance in this way new pkg1.pkg2.pkg3.className() but i want to make it from string this dont work of course _global['pkg1.pkg2.pkg3.className'](); but this work: _global['pkg1']['pkg2']['pkg3']['className'](); can this done automatcally? i want jsut read string from XML and create new class instance, but i cant do it now. Any help is appreciated :) - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] targetting a mc from a list
Are you sure you're creating the nested MC as you think you are? What do you get if you do: trace(parent_mc.mc1); ??? Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kent Humphrey Sent: 30 January 2006 13:54 To: Flashcoders mailing list Subject: Re: [Flashcoders] targetting a mc from a list Thanks, but that doesn't work either. It looks like it should, but I'm still getting undefined. On 30 Jan 2006, at 13:31, Adrian Lynch wrote: > Try: > > parent_mc[listWhatever[0]]; > > Ade > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Kent > Humphrey > Sent: 30 January 2006 13:25 > To: Flashcoders mailing list > Subject: [Flashcoders] targetting a mc from a list > > > I have a list: > (code is example only) > > listWhatever = ["mc1", "mc2"]; > > This list is cycled through to generate some mcs inside parent_mc. > I now want to target one of those mcs again. Lets say I want to > target the first one in my list. I thought I could use eval() to > generate the statement, like so: > > eval("parent_mc."+listWhatever[0]); > > But trace() that returns undefined. How do I do it? > > Thanks. > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] targetting a mc from a list
Thanks, but that doesn't work either. It looks like it should, but I'm still getting undefined. On 30 Jan 2006, at 13:31, Adrian Lynch wrote: Try: parent_mc[listWhatever[0]]; Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kent Humphrey Sent: 30 January 2006 13:25 To: Flashcoders mailing list Subject: [Flashcoders] targetting a mc from a list I have a list: (code is example only) listWhatever = ["mc1", "mc2"]; This list is cycled through to generate some mcs inside parent_mc. I now want to target one of those mcs again. Lets say I want to target the first one in my list. I thought I could use eval() to generate the statement, like so: eval("parent_mc."+listWhatever[0]); But trace() that returns undefined. How do I do it? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation-thoughts?
Just a general, - what are people's thoughts on dynamic class instantiation? I've always been under the impression( and hence, been told) that one should avoid it at all costs. Thoughts? Discussion? Benefits? Would it be better to implement a factory type pattern to create the new instances of classes? > thank you all, i've already made it! > > var str:String = 'test1.test2.ClassC'; > var arr = str.split('.'); > var variable = _global; > > for (var i=0;i { > variable = variable[arr[i]]; > trace(variable); > } > new variable(); > > > > On 1/30/06, Serge <[EMAIL PROTECTED]> wrote: >> >> import pkg1.pkg2.pkg3.* >> or >> import pkg1.* >> >> >> new pkg1.pkg2.pkg3.className(), >> sorry, should be: >> new className() >> >> make sure pkg1 has classes you would like to be compiled in swf or >> use exclude xml file >> >> >> >> On 1/30/06, franto <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> >> >> maybe it is easy, maybe not, but i cant figure it out now, and i >> need it :) >> >> >> >> when i got class e,gpkg1.pkg2.pkg3.className >> >> >> >> i can make new instance in this way >> >> new pkg1.pkg2.pkg3.className() >> >> >> >> but i want to make it from string >> >> >> >> this dont work of course >> >> _global['pkg1.pkg2.pkg3.className'](); >> >> >> >> but this work: >> >> _global['pkg1']['pkg2']['pkg3']['className'](); >> >> >> >> can this done automatcally? i want jsut read string from XML and >> create new class instance, >> >> but i cant do it now. >> >> Any help is appreciated :) >> >> >> >> - >> Franto >> >> >> >> http://blog.franto.com >> >> http://www.flashcoders.sk >> >> ___ >> >> Flashcoders mailing list >> >> Flashcoders@chattyfig.figleaf.com >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > -- > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] targetting a mc from a list
Try: parent_mc[listWhatever[0]]; Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kent Humphrey Sent: 30 January 2006 13:25 To: Flashcoders mailing list Subject: [Flashcoders] targetting a mc from a list I have a list: (code is example only) listWhatever = ["mc1", "mc2"]; This list is cycled through to generate some mcs inside parent_mc. I now want to target one of those mcs again. Lets say I want to target the first one in my list. I thought I could use eval() to generate the statement, like so: eval("parent_mc."+listWhatever[0]); But trace() that returns undefined. How do I do it? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation
thank you all, i've already made it! var str:String = 'test1.test2.ClassC'; var arr = str.split('.'); var variable = _global; for (var i=0;i wrote: > > import pkg1.pkg2.pkg3.* > or > import pkg1.* > > >> new pkg1.pkg2.pkg3.className(), > sorry, should be: > new className() > > make sure pkg1 has classes you would like to be compiled in swf or use > exclude xml file > > > > On 1/30/06, franto <[EMAIL PROTECTED]> wrote: > >> Hi all, > >> > >> maybe it is easy, maybe not, but i cant figure it out now, and i need it > >> :) > >> > >> when i got class e,gpkg1.pkg2.pkg3.className > >> > >> i can make new instance in this way > >> new pkg1.pkg2.pkg3.className() > >> > >> but i want to make it from string > >> > >> this dont work of course > >> _global['pkg1.pkg2.pkg3.className'](); > >> > >> but this work: > >> _global['pkg1']['pkg2']['pkg3']['className'](); > >> > >> can this done automatcally? i want jsut read string from XML and > >> create new class instance, > >> but i cant do it now. > >> Any help is appreciated :) > >> > >> - > >> Franto > >> > >> http://blog.franto.com > >> http://www.flashcoders.sk > >> ___ > >> Flashcoders mailing list > >> Flashcoders@chattyfig.figleaf.com > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] targetting a mc from a list
I have a list: (code is example only) listWhatever = ["mc1", "mc2"]; This list is cycled through to generate some mcs inside parent_mc. I now want to target one of those mcs again. Lets say I want to target the first one in my list. I thought I could use eval() to generate the statement, like so: eval("parent_mc."+listWhatever[0]); But trace() that returns undefined. How do I do it? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation
import pkg1.pkg2.pkg3.* or import pkg1.* >> new pkg1.pkg2.pkg3.className(), sorry, should be: new className() make sure pkg1 has classes you would like to be compiled in swf or use exclude xml file On 1/30/06, franto <[EMAIL PROTECTED]> wrote: Hi all, maybe it is easy, maybe not, but i cant figure it out now, and i need it :) when i got class e,gpkg1.pkg2.pkg3.className i can make new instance in this way new pkg1.pkg2.pkg3.className() but i want to make it from string this dont work of course _global['pkg1.pkg2.pkg3.className'](); but this work: _global['pkg1']['pkg2']['pkg3']['className'](); can this done automatcally? i want jsut read string from XML and create new class instance, but i cant do it now. Any help is appreciated :) - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Bulk] Re: [Flashcoders] Dynamic class creation
import pkg1.pkg2.pkg3.* or import pkg1.* new pkg1.pkg2.pkg3.className() make sure pkg1 has classes you would like to be compiled in swf or use exclude xml file On 1/30/06, franto <[EMAIL PROTECTED]> wrote: Hi all, maybe it is easy, maybe not, but i cant figure it out now, and i need it :) when i got class e,gpkg1.pkg2.pkg3.className i can make new instance in this way new pkg1.pkg2.pkg3.className() but i want to make it from string this dont work of course _global['pkg1.pkg2.pkg3.className'](); but this work: _global['pkg1']['pkg2']['pkg3']['className'](); can this done automatcally? i want jsut read string from XML and create new class instance, but i cant do it now. Any help is appreciated :) - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation
This should do the job. 1. ClassFactory to create classes specified by strings. class ClassFactory { public static function create(className:String):Object { // Split the class name into its parts var parts:Array = className.split("."); // a variable to build a reference to the class var classRef:Object = _global; // Iterate over the parts, digging deeper each time // into the namespace heirarchy for(var n=0;n < parts.length;n++) { classRef = classRef[parts[n]]; } // Check that the class exists if(classRef == undefined) { throw new ClassCreationException("Class not found : " + className); } else { return new classRef(); } } } 2. The Class Creation Exception, nothing special :) class ClassCreationException extends Error { public function ClassCreationException(msg:String) { message = msg; } } and some test code to check it works : var className:String = "com.test.MyClass"; import com.test.MyClass; var c:MyClass; try { var c:Object = ClassFactory.create(className); } catch(e) { trace(e.message); } of course, you need the reference to the class you want to create somewhere or the compiler wont include it when it builds the swf, hence the var c:MyClass line. for me thats the worst part of the whole thing, but theres ways you can organise this, e.g. a simple include that just lists the declarations you will need #include "forceIncludes.as" which just contains a list of the references im sure there are other solutions to this little problem, if anyone else has any bright ideas id like to know. Of course, the other part of this is that the class factory can only return objects that are typed as 'Object' so you lose quite a bit of type safety like this, unless of course you are creating objects that all conform to a specific interface. You might want to modify the class factory to add methods that return particular types of objects with a return type set to their common interface. It depends on what your requirements are really on how you architect this part. hope that all makes sense. thanks, Martin franto wrote: Hi all, maybe it is easy, maybe not, but i cant figure it out now, and i need it :) when i got class e,gpkg1.pkg2.pkg3.className i can make new instance in this way new pkg1.pkg2.pkg3.className() but i want to make it from string this dont work of course _global['pkg1.pkg2.pkg3.className'](); but this work: _global['pkg1']['pkg2']['pkg3']['className'](); can this done automatcally? i want jsut read string from XML and create new class instance, but i cant do it now. Any help is appreciated :) - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Martin Wood http://relivethefuture.com/choronzon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation
I've done exactly that using eval() before. Give it a try. Cheers, Mischa On 1/30/06, franto <[EMAIL PROTECTED]> wrote: > Hi all, > > maybe it is easy, maybe not, but i cant figure it out now, and i need it :) > > when i got class e,gpkg1.pkg2.pkg3.className > > i can make new instance in this way > new pkg1.pkg2.pkg3.className() > > but i want to make it from string > > this dont work of course > _global['pkg1.pkg2.pkg3.className'](); > > but this work: > _global['pkg1']['pkg2']['pkg3']['className'](); > > can this done automatcally? i want jsut read string from XML and > create new class instance, > but i cant do it now. > Any help is appreciated :) > > - > Franto > > http://blog.franto.com > http://www.flashcoders.sk > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Dynamic class creation
Hi all, maybe it is easy, maybe not, but i cant figure it out now, and i need it :) when i got class e,gpkg1.pkg2.pkg3.className i can make new instance in this way new pkg1.pkg2.pkg3.className() but i want to make it from string this dont work of course _global['pkg1.pkg2.pkg3.className'](); but this work: _global['pkg1']['pkg2']['pkg3']['className'](); can this done automatcally? i want jsut read string from XML and create new class instance, but i cant do it now. Any help is appreciated :) - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
In my tests convolution filter was much faster than a blurfilter. But it's an easy one to swap oout and test for yourself... > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Andreas Rønning > Sent: 30 January 2006 10:03 > To: Flashcoders mailing list > Subject: [Flashcoders] ConvolutionFilter performance > > Does anyone know which is faster; a blurring one-pass > convolution filter or a blurfilter? Or are they just 2 sides > to the same story? I need a high performance blur operation > for depth of field.. > > Cheers, > > - Andreas > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
AW: [Flashcoders] BitmapData.loadBitmap in external SWF
I am not accessing it from the main swf but from the swf i loaded into the main swf ... > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag > von Adrian De Rivero > Gesendet: Montag, 30. Januar 2006 11:15 > An: Flashcoders mailing list > Betreff: Re: [Flashcoders] BitmapData.loadBitmap in external SWF > > i am not 100% sure, but as far as i know you can t access a > libary of a > loded swf from the main swf. > > On 1/29/06, Sönke Rohde <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have got a problem with BitmapData.loadBitmap used in an > external loaded > > swf. > > When I run my external SWF all works as expected but when I > load the SWF > > from my main movie the BitmapData fails to load. > > The bitmapdata is exported with a linkageId in my external SWF. > > It seems like my main movie has no access to the library of > my external > > swf. > > When I try to attach the bitmap as a movieclip-symbol it > also works though > > it can't be a library problem? > > > > Any ideas? > > > > Thanks, > > Sönke > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] BitmapData.loadBitmap in external SWF
i am not 100% sure, but as far as i know you can t access a libary of a loded swf from the main swf. On 1/29/06, Sönke Rohde <[EMAIL PROTECTED]> wrote: > > Hi, > I have got a problem with BitmapData.loadBitmap used in an external loaded > swf. > When I run my external SWF all works as expected but when I load the SWF > from my main movie the BitmapData fails to load. > The bitmapdata is exported with a linkageId in my external SWF. > It seems like my main movie has no access to the library of my external > swf. > When I try to attach the bitmap as a movieclip-symbol it also works though > it can't be a library problem? > > Any ideas? > > Thanks, > Sönke > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] ConvolutionFilter performance
Does anyone know which is faster; a blurring one-pass convolution filter or a blurfilter? Or are they just 2 sides to the same story? I need a high performance blur operation for depth of field.. Cheers, - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] the tool used to make this presentation
>> I'd say "by hand"... Maybe you think it's too boring to be made manually? ;-) Making me download over 20mb (!) to see some "speaking heads". Here's another link: "Talking-Head Video Is Boring Online" http://www.useit.com/alertbox/video.html I'm curious if any of you have patience to listen the whole thing. As for me, I drop after 5 minutes. >> Isn't this done using "Breeze" - Adobe's tool for making this kind of thing? Its a pretty clever piece of technology and it must be pretty hard for the Adobe guys to have to stand up in front of camera and talk about this kind of thing. Which is a real shame because I completely agree with Gregory (and Jacob Nielson) that the end result is really frustrating because the speed at which you get the information is much slower than reading - and its difficult to skip ahead to the bits you're interested in. In the last few years the standard of writing and communication on Macromedias site had really improved but every so often I click on a useful looking link which takes me straight to a breeze presentation and I give up straight away. While I was writing this it occured to me that a tool which automatically created a "photo-story" might solve this problem - you'd still get the visual impact but you'd be able to skim ahead to the bits you want. Do other people find these Breeze presentations useful? - I'd be really interested to know if you do. Joe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders