[Flashcoders] Tracking end of movie clip stored in class?

2007-08-08 Thread Martin Scott Goldberg
Ok, have another quandry. I have an explosion class that, among other things creates and stores an instance of an explosion clip that runs for 5 frames. Each instance of the explosion class created is in turn attached to an array (shotExplosions[]). Explosions are added to the playfield clip

AW: Subject: [Flashcoders] FLV issues on Mac PC

2007-08-08 Thread Wenzler, Thomas
Hello Dan, if your swfs that are loaded to your main application load the flvs, and you use a build in FLV-playback component you might just run into a pathing issue with the components skin which causes the component to stop working. The component skin uses a relative path which you either have

Re: AW: Subject: [Flashcoders] FLV issues on Mac PC

2007-08-08 Thread Nick Gerig
try changing the path for Mac to mac syntax eg. : instead of / Wenzler, Thomas wrote: Hello Dan, if your swfs that are loaded to your main application load the flvs, and you use a build in FLV-playback component you might just run into a pathing issue with the components skin which causes the

[Flashcoders] Flash Projector Distribution

2007-08-08 Thread Dan Efergan
Hi FlashCoders, I'm about to create a reasonably simple presentation that's going to be distributed as a small self contained projector. It's pretty simple, playing a video and then into a basic pages of information, so there's no OS interactions. I'm wondering what peoples views are

[Flashcoders] Can I load AS2 swfs into an AS3 swf?

2007-08-08 Thread gluedanny
Hiya, the title sums up my question pretty well. I have a bunch of old swfs that are published to version 6 and are AS2. I want to load these into a movie published to v9 and in AS3 or maybe a flex app. Is this possible or do I have to converrt alll of my code? Cheers guys, Dan

RE: [Flashcoders] setStyle ComboBox (AS2)

2007-08-08 Thread Mendelsohn, Michael
Thanks for the reply. That didn't work either, though. :-/ Rhetorical question: are styling components easier in AS3? Ugh, all I want to do is color that outline. Try the following and omit the new CSSStyleDeclaration(): _global.styles.rectBorderClass.setStyle(borderStyle, solid);

Re: [Flashcoders] Flashcoders [Object vars vs Component Params]

2007-08-08 Thread elibol
This depends on when the component you're using is instantiated. I don't think the component will instantiate before the vars. The vars should be available on the very first frame, meaning they are set before you're even allowed to execute code... Does that answer your question? On 8/7/07, eric

Re: [Flashcoders] Can I load AS2 swfs into an AS3 swf?

2007-08-08 Thread Mark Winterhalder
On 8/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hiya, the title sums up my question pretty well. I have a bunch of old swfs that are published to version 6 and are AS2. I want to load these into a movie published to v9 and in AS3 or maybe a flex app. Is this possible or do I have to

Re: [Flashcoders] 3StudioMax to Flash CS3

2007-08-08 Thread Paul Andrews
I'd probably use 3D Max to render the angles that you want, and export the output as an image sequence rather than a video. Basically you build a rotating turntable type system in Max - rotating the objects in front of the camera to get the right angles. If you set this up correctly you can get

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Hans Wichman
Hi, unless you load your preloader in externally as well you have a problem. In order to make a preloader usefull you have to turn export in first frame of for all objects and export them on say frame 2 or 3 (by putting them in a clip). However if you have a lot of as2 classes, you'll need to

Re: [Flashcoders] Q: Mootools morph text effect

2007-08-08 Thread Dan Efergan
As Eric says, you'll want to run a setInterval (or place the code onto some suitable onEnterframe holder, such as a containing movieClip). The code you'll want to look at is updating the TextFormat of the text field. Using this you can update the fonts colour/size/ spacing. You'll

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Omar Fouad
Thanks for replying JC. In this way i should drag the library items on the second or third frame of the fla.. But i wont be able to attach them unless i go to that frame on runtime right? On 8/8/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, unless you load your preloader in externally as well

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Omar Fouad
is there a way attach a library item from a loaded swf. I think this would be the best solution... On 8/8/07, Omar Fouad [EMAIL PROTECTED] wrote: Thanks for replying JC. In this way i should drag the library items on the second or third frame of the fla.. But i wont be able to attach them

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Dan Efergan
You're pretty much there in your answer... you need to move both your linkage items and Class imports to later frames. Here's how I set up mine: - Frame One: Just the pre loading screen (no code yet) - Frame Two: Import Classes and start preloader - Frame Three: All Linked Objects To do

Re: [Flashcoders] XML.load() not asynchronous?

2007-08-08 Thread Ian Thomas
Michael - if the loading happens very fast, then the XML has loaded _before you've set the onLoad function_. So change the order: _root.attachMovie(loading, loading, 10); xmlData.onLoad = function(success:Boolean):Void { // do this when loaded }; xmlData.load(myUrl); Ian On 8/8/07,

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Omar Fouad
ok I did this. I unchecked the load on first frame checkbox, and dragged all the linkage items on the third frame. but Flash is not attaching anyone of them unless the playhead reaches the third frame.. No way about attaching them in frame 1 or 2. ? *frustrated* On 8/8/07, Dan Efergan [EMAIL

[Flashcoders] Dynamically setting properties...

2007-08-08 Thread Karim Beyrouti
Hi List, I am trying to add values to properties a classes, the classes properties are defined like this: function get isActive():Boolean{ return _isActive; } function set isActive( val:Boolean):Void{ _isActive= val; } so instead of douing this to add values to the class:

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Hans Wichman
Hi Omar, you are right there is no way. So: frame 1 - preloader that holds on frame 1 until _framesloaded == _framestotal, then JUMP to frame 4 frame 2 - export classes here frame 3 - dump all library items on this frame frame 4 - this is where your actual movie/processing begins In your

[Flashcoders] fms application class

2007-08-08 Thread [p e r c e p t i c o n]
Hi folks, i know htis isn't the fms list, but can anyone tell how to define a method in the asc file... for example i tried to define a method like this application.helloServer = function() { trace(hello from server); } but it isn't recognized as a method... i'm trying to not have to

[Flashcoders] AS3 how to link movieclip manually put on the stage to class member

2007-08-08 Thread Martin Tremblay
Hello group ! Just trying to find the best way to link a movieclip manually put on the stage to a class member. Right now this is what I'm doing. public class A extends MovieClip { private var m_mcOnTheStage:MovieClip; public function A ():void {

Re: [Flashcoders] Dynamically setting properties...

2007-08-08 Thread JOR
What is the error you're getting? Maybe add a trace statement in there to see where it's breaking. You could be trying to set a property that exists only in obj but not in a_sprite. for ( var i in obj ) { trace (i + = + obj[i]); a_sprite[i] =

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Steven Sacks
Once again, Keep It Simple Steven is here to help. ;) Unless your boss is forcing you to do this in one swf, you should make a loader swf that loads in the swf with all these linked clips. Trivial example: var mc = this.createEmptyMovieClip(site, this.getNextHighestDepth());

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Omar Fouad
Yes, now it works.. I also tried in dragging all the items into a MovieClip on the third frame with this action on: onClipEvent(load) {this.unloadMovie(); delete this;} in order to get rid of them from the stage, to save resource. Thanks JC for yer help CHEERS On 8/8/07, Hans Wichman [EMAIL

Re: [Flashcoders] AS3 how to link movieclip manually put on the stage to class member

2007-08-08 Thread JOR
You don't need the extra private var. You can do something like this: public class A extends MovieClip { //onthestage_mc is a movieclip manually put in the .fla private var onthestage_mc:MovieClip; public function A ():void { } } James O'Reilly — Consultant Adobe Certified Flash

RE: [Flashcoders] AS3 how to link movieclip manually put on the stage to class member

2007-08-08 Thread Patrick Matte|BLITZ
Why don't you just attach the class to your movieclip in the library ? Right-click on the movieclip in the library, click on linkage, write a linkage id in the class field and write the path to your class in the base class field. Example Class : BlueCircle BaseClass : project.shapes.Circle You

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Alan MacDougall
Omar Fouad wrote: is there a way attach a library item from a loaded swf. I think this would be the best solution... This suggestion hits close to the correct answer. Really, if your library is so big that it's killing your app's startup time, your wisest option is to load the items on

Re: [Flashcoders] fms application class

2007-08-08 Thread Andy Herrman
Your syntax looks fine. What do you mean by it isn't recognized as a method? -Andy On 8/8/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi folks, i know htis isn't the fms list, but can anyone tell how to define a method in the asc file... for example i tried to define a method

[Flashcoders] connect to fms using as3

2007-08-08 Thread [p e r c e p t i c o n]
hello experts... i'm trying to connect to an fms2 server using as3 like this... connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR,

Re: [Flashcoders] fms application class

2007-08-08 Thread [p e r c e p t i c o n]
hi Andy, the server logs indicate that the method isn't defined... however if i define it using Client.helloServer = function() it seems to work, but my concern is that this isn't really remote...i want the client to call the application's method thanks p On 8/8/07, Andy Herrman [EMAIL

Re: [Flashcoders] Preloading problem

2007-08-08 Thread Omar Fouad
Well i thought about it. I just don't like the idea of having to load an external swf when i have the starting one empty.. But well i'll see what would be better. Thanks for your help everybody. On 8/8/07, Alan MacDougall [EMAIL PROTECTED] wrote: Omar Fouad wrote: is there a way attach a

RE: [Flashcoders] XML.load() not asynchronous?

2007-08-08 Thread Mendelsohn, Michael
Thanks for the reply, Ian. I did change the order, but everything still stops. I tried to observe the flow with a timeout, and what it does is trace Start A and Start B really quickly, then everything delays, then when the xml is loaded, the movie works again, and the other trace statement

[Flashcoders] passing a cookie to a .NET web service

2007-08-08 Thread Corban Baxter
Is there a way for us to pass a cookie in flash to a .NET web service that has enable session turned on? Anyone ever tried this? -- Corban Baxter http://www.projectx4.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

[Flashcoders] Synchronized game timing

2007-08-08 Thread Mick G
I'm after a little theory here from people who have created multi-player games before. I have a java socket-server in place and all the functionality of the game working fine. I just need a way to synchronize the game (as best as I can). What I'm trying to do is restart a new game every 3

RE: [Flashcoders] 3StudioMax to Flash CS3

2007-08-08 Thread Ashwan Wadhwa
This looks interesting, though I don't need an actual 3D renderer to view the objects. I was unclear in my previous mail, all the 400+ objects are in the same scene(!). And this scene is to be viewed from 3-4 different viewpoints. Also, again something I missed in my previous post, the objects

[Flashcoders] Flash 9 and IE Stack Overflow

2007-08-08 Thread Jeff Harrington
I'm writing a custom video player and it's really simple but after a few minutes of use (and a bunch of video seeks (I'm using FMS)) I start getting that little IE Stack Overlow 0 alert. This is without the Flash Script is running slowly alert... I've seen a few blogs saying this is a problem

RE: [Flashcoders] Dynamically setting properties...

2007-08-08 Thread Karim
Already added the trace, all props in my obj are fine and match up with the getter/setters in the class. FYI: I am adding these properties to instances of classes ( that extend movieclip, project is AS2).. Karim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Flashcoders] fms application class

2007-08-08 Thread Andy Herrman
The only way for a client to call a method is for that method to exist on the Client's object. That's just the way the Flash RPC stuff works. You can either add it to the Client prototype (which I don't like) or add it to the client object after they connect (my preferred way). For instance:

Re: [Flashcoders] Synchronized game timing

2007-08-08 Thread Joshua Sera
Are you trying to do a real-time game? Because I've been playing around with real-time games with Flash and Java myself in the last month or so, and so far, my conclusion is that it's not workable. The big reason being that Flash can't handle UDP packets. TCP/IP is just way too slow to deal with

[Flashcoders] Fuse is adding up instead of tweening the difference

2007-08-08 Thread Marcelo de Moraes Serpa
Hey guys, I'm having a really weird issue here. If someone could help me, I would be really grateful. I'm using the Fuse Kit (and ZigoEngine) to do the tweens of my AS2 Ria. I've a MovieClip which gets stretched up and then after some seconds, needs to get to its original size. If I put the

Re: [Flashcoders] XML.load() not asynchronous?

2007-08-08 Thread Mark Hawley
The wait you're seeing isn't the XML file loading, it's Flash parsing the XML. I'm guessing it's pretty large. You see Start A. You begin the XML load. You see Start B. The XML finishes loading. Flash starts parsing the XML into an XML object. ...this takes a while, and Flash is so busy it can't

Re: [Flashcoders] Fuse is adding up instead of tweening the difference

2007-08-08 Thread R�kos Attila
Number values mean absolute positions and string values mean relative positions. This is a documented feature :) Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:Marcelo de Moraes Serpa [EMAIL PROTECTED] To: Flashcoders mailing list

[Flashcoders] AS3 Sound Looping Problem

2007-08-08 Thread Eric Lee
Howdy Coders, I'm in desparate need of some AS3 help. I'm loading a swf with sound embedded in the timeline into another file thusly: var urlRequest:URLRequest = new URLRequest(animatio ns/ANIM_Test4.swf); var animLoader:Loader = new Loader(); animLoader.load(urlR equest);

RE: [Flashcoders] AS3 Sound Looping Problem

2007-08-08 Thread Patrick Matte|BLITZ
I think there's an unload method on Loader, try that. Or else, create a SoundChannel for your sound instead of putting it on the timeline and stop it when you remove the loader. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-08 Thread Karina Steffens
It's really easy to fix - have a look at this article on my blog: http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm Karina -Original Message- From: Niels Endlich [mailto:[EMAIL PROTECTED] Sent: 06 August 2007 15:18 To: flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] AS3 Sound Looping Problem

2007-08-08 Thread Eric Lee
Unload doesn't work either. I have a sample of this problem up here: http://www.stillwantmore.com/temp/sound_problem.zip Open up elee_test.fla and you'll see what's going on. Even after the clip is removed, the sound plays, and will continue looping if you leave it open. I'm trying the sound

Re: [Flashcoders] AS3 Sound Looping Problem

2007-08-08 Thread R�kos Attila
I also met this problem recently and stopping the loaded movie's timeline before calling removeChild() has solved it. I also tried unload(), but without success. Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:Eric Lee [EMAIL PROTECTED] To:

Re: [Flashcoders] fms application class

2007-08-08 Thread [p e r c e p t i c o n]
hey Andy, thanks, yes this helps alot...i was confused about the client having the definition and conceptually i still don't get what's remote about it...the clientObj is an instance of the connection right? and that's instantiated on the client-side right?...anyway as long as it works i'm not

[Flashcoders] Re: Fuse is adding up instead of tweening the difference

2007-08-08 Thread Marcelo de Moraes Serpa
Oh.. then it must be it... thanks for the tip On 8/8/07, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Hey guys, I'm having a really weird issue here. If someone could help me, I would be really grateful. I'm using the Fuse Kit (and ZigoEngine) to do the tweens of my AS2 Ria. I've a

[Flashcoders] Dang IE...

2007-08-08 Thread Dave Mennenoh
Anyone seen this? In IE I am getting this error: Line: 1, Char: 86, Object doesn't support this property or method, Code:0 Page validates with the W3 school's validator service. Works without error in FF. Works fine in IE, but generates this error that I cannot figure out, and my client is

Re: [Flashcoders] Synchronized game timing

2007-08-08 Thread Mick G
It doesn't have to be constant perfect timing. Basically it more of a casual multi-user scribble-pad. I only need synchronization to automatically clear the canvas every 5 minutes. That's the only thing that needs to be in sync and it can have a second inaccuracy but not much more. It's working

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-08 Thread Troy Rollins
On Aug 8, 2007, at 6:41 PM, Karina Steffens wrote: It's really easy to fix - have a look at this article on my blog: http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and- flash.htm As I mentioned earlier in the thread, and Muzak just mentioned also, calling that technique

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-08 Thread Steven Sacks
A solution is to convert the image into a textfile which is then used to draw the image on the screen using bitmap drawing tools. This, of course, is easily hacked by anybody with a copy of Flash because they can read your textfile and draw the bitmap themselves. The next step is to encrypt

Re: [Flashcoders] AS3 Sound Looping Problem

2007-08-08 Thread Muzak
import flash.media.*; SoundMixer.stopAll(); regards, Muzak - Original Message - From: Eric Lee [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, August 09, 2007 12:37 AM Subject: RE: [Flashcoders] AS3 Sound Looping Problem Unload doesn't work either. I have a

Re: [Flashcoders] Synchronized game timing

2007-08-08 Thread Joshua Sera
So I'm assuming you want synchronization because if it's off, then more or less of the users scribbles could be erased when the screen clears, so different people would wind up seeing different things. Each message from the client to the server could have a unique ID(something incrementing so you

[Flashcoders] Flash Developer Forums

2007-08-08 Thread Paul Chang
Hello, I realize that this list is for discussing code, so I'll make this brief. My San Francisco based company is looking to hire an in-house Flash developer and I would appreciate any pointers to lists or url's that might help me find high quality people. Anyone on this list who

Re: [Flashcoders] Synchronized game timing

2007-08-08 Thread David Rorex
Just have the server send the clear message at the same time to all clients. Assuming it sends all the messages in the same order to everyone, then there will be no problem. Don't even put any kind of timer on the client side, have the server time it. eg: A = client A B = client B S = server

Re: [Flashcoders] Fuse is adding up instead of tweening the difference

2007-08-08 Thread Marcelo de Moraes Serpa
Hi Rákos, Typecasting to Number() did the trick (i.e: Number(initHeight)). I'm intrigued however. Let me explain: The value comes untyped from a XML file (loaded through pixlib's ConfigLoader). Once it is in the player (untyped Object), I assign it to a variable of type number. Then I pass it to

[Flashcoders] AS3/Flex: F8 swf / flv Performance Issues

2007-08-08 Thread Jer Brand
Noob at Flex: Been toying with converting a project over from Flash 8 to Flex using FlashDevelop 3 Beta + SDK. I've noticed that when I embed a Flash 8 swf containing a masked flv, CPU usage goes through the roof -- bouncing between 75 and 100% as the swf plays. The equivalent flash 8 layout

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-08 Thread Muzak
With AS3 you can load the image as binary data (Base64 encoded). import flash.events.*; import flash.net.*; import flash.display.Loader; import flash.utils.ByteArray; import com.dynamicflash.util.Base64; var url:String = http://www.muzakdeezign.com/flashcoders/binary_image/image.cfm; var