Re: [Flashcoders] Pause/Play a swf

2008-09-24 Thread sebastian
It's not that complicated once you get your head around it. If you can write a function that stops and starts your movie from INSIDE the movie, then you can call that same function from OUTSIDE of it, just by referencing the name of the MC and then the function you want to call. So break it i

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Merrill, Jason
Yeah, I get tired of doing this just to get code completion: var thisCustomObject:CustomObject = myObjects[i] as CustomObject; thisCustomObject.alpha = .5 Besides the obvious type checking benefits, with Vectors, I won't have to do it that way anymore to get good code completion from what I have

Re: [Flashcoders] Pause/Play a swf

2008-09-24 Thread Jim Elmore
This is getting very deep for me. The movie clips have timers that would have to stop, and I don't know I would tell a timer to stop and resume that is running in another movie clip. Perhaps I've built this wrong. On Sep 24, 2008, at 5:03 PM, sebastian wrote: Yes it is, but, erm, it's rea

Re: [Flashcoders] Re: Flashcoders Digest, Vol 12, Issue 16

2008-09-24 Thread Jim Elmore
Well, no. That stops the movie clip, but not a timer inside the movie clip. On Sep 24, 2008, at 1:16 PM, David Cohn wrote: Jim, Do you want something like this? (movie_clip is the instance name) movie_clip.play(); movie_clip.stop(); movie_clip.gotoAndStop(x); // for

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Zeh Fernando
Also autocompletion and member verification and such for IDEs like FDT and FlashDevelop since it already knows the type of each list item. It's a god-given once you get used to it. I've been using Vectors like there's no tomorrow on a particular project of mine and it's really awesome. Going back t

Re: [Flashcoders] Problems creating a drag and drop

2008-09-24 Thread Glen Pike
Hi, Have a look at this tutorial: http://www.monkeyflash.com/flash/drag-and-drop-in-as3/ You may want to be looking at / checking if event.target.dropTarget for the MOUSE_UP handler. This post gives you a better idea about MOUSE_LEAVE: http://www.ericd.net/2007/09/mouseleave-

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Ian Thomas
The idea of strongly typed arrays is to catch errors at compile time that otherwise might crop up at runtime. Untyped: var arr:Array=[]; arr.push(new Button()); arr.push(123); for (var i:int=0;i=[]; arr.push(new Button()); arr.push(123); // Won't compile, as the compiler knows that

Re: [Flashcoders] Pause/Play a swf

2008-09-24 Thread sebastian
Yes it is, but, erm, it's really hard to answer your question because there is no one way to implement it and, I have no idea how your scripted movie clips are running themselves... If each of your sub movies has a function that starts/pauses the playback, then you can simply have the parent M

Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Paul Andrews
- Original Message - From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Wednesday, September 24, 2008 8:44 PM Subject: RE: [Flashcoders] AS3 additions/changes in CS4? Not sure what strongly typed arrays are. What are the advantages? Being able to type the

RE: [Flashcoders] Problems creating a drag and drop

2008-09-24 Thread Lord, Susan, CTR, DSS
Thanks for the information. I think that may be part of my problem. I tried out the code on that site and Flash does not like the following circle.contains(event.target) If I take that out the code runs, but of course doesn't work. Does anyone know where I can find a good example on how to do a

Re: [Flashcoders] addChild multiple instances of a loader

2008-09-24 Thread EECOLOR
If img.jpg is on the same server as your swf, you wont have a problem. Otherwise you would need a crossdomain.xml. >From the top of my head you could do something like this: function onLoadComplete(e:Event):void { var bitmap:Bitmap = Bitmap(_loader.content); var clone1:Bitmap = new Bitmap(

Re: [Flashcoders] parsing newlines in textdocuments

2008-09-24 Thread EECOLOR
I think I would go for this: Replace the \r\n with \n and then split on \n. Greetz Erik On 9/8/08, Martin Klasson <[EMAIL PROTECTED]> wrote: > Hi Coders, > > I am gonna to make a parser for the MicroDVD subtitle format, > but I am not being able to find the documentation, yet a simple example

Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Mac Angell
> It is true that FZip can't read ZIPs created with the MAC OS X Archive > utility, or any ZIP that makes us of data descriptors. > > For your other problem, i created a very simple Flex AIR app that tests > roundtripping (creates a ZIP and loads it back in): > > http://codeazur.com.br/la

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Mendelsohn, Michael
Not sure what strongly typed arrays are. What are the advantages? > OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf

[Flashcoders] Handling unsupported NetStream media files

2008-09-24 Thread strk
Is there a way to be notified about unsupported media files loaded trough NetStream ? I mean, if you do something like trying to play an OGG file, is there any method of your NetStream object that would be called to signal "can't do that" ? --strk; () ASCII Ribbon Campaign /\ Keep it simp

Re: [Flashcoders] Problems creating a drag and drop

2008-09-24 Thread Matt S.
You might need to add the "releaseOutside" hack for AS3, since there is no releaseOutside anymore: http://www.kirupa.com/forum/showthread.php?p=1948182#post1948182 On Wed, Sep 24, 2008 at 2:43 PM, Lord, Susan, CTR, DSS <[EMAIL PROTECTED]> wrote: > Hi there, > > I am having problems with my event

Re: [Flashcoders] Problems creating a drag and drop

2008-09-24 Thread Rob Romanek
Hey Glen when you say "your mouse up is outside the stage" do you mean that the mouse up is occurring outside of the dragged object in which case the object catching the up event is the stage object. (Rest of your sentence seems to imply that.) Susan, if you imagine your cursor moving faste

Re: [Flashcoders] Problems creating a drag and drop

2008-09-24 Thread Glen Pike
Hi, It could be because your mouse up is outside the stage - I have had problems with that - search for "MOUSE_LEAVE" or something similar - it maybe on the stage object. Glen Lord, Susan, CTR, DSS wrote: Hi there, I am having problems with my event listener for my drag and drop. Som

[Flashcoders] Problems creating a drag and drop

2008-09-24 Thread Lord, Susan, CTR, DSS
Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging

RE: [Flashcoders] AS3 additions/changes in CS4?

2008-09-24 Thread Merrill, Jason
OOooh - strongly typed arrays! Awesome! I've been waiting for that for a long time! Sweet. Jason Merrill Bank of America  Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas a

Re: [Flashcoders] Can you embed .mp4 files in timeline?

2008-09-24 Thread Zeh Fernando
You just can't, Flash CS3 doesn't support the format. There's nothing else to be said. H264 support was added later, when the IDE had already shipped. Flash 9.x.115 supports it because it was added later, but the player is not the editor. Zeh On Wed, Sep 24, 2008 at 1:53 PM, Matthew Ganz <[EMAIL

Re: [Flashcoders] Can you embed .mp4 files in timeline?

2008-09-24 Thread Jason Van Cleave
no real explanation but Adobe said: CS4/Flash Player 10 will not allow this either (embedding H.264 video or AAC audio in the timeline). On Wed, Sep 24, 2008 at 1:22 PM, Jason Van Cleave <[EMAIL PROTECTED]> wrote: > I posted the same question a while back after not being able to do it > either. I

Re: [Flashcoders] Can you embed .mp4 files in timeline?

2008-09-24 Thread Jason Van Cleave
I posted the same question a while back after not being able to do it either. I just tried emailing Adobe to see if it is a CS3 limitation and will post any response I get from them. On Wed, Sep 24, 2008 at 12:53 PM, Matthew Ganz <[EMAIL PROTECTED]> wrote: > Thanks for your response, Steven. Any i

[Flashcoders] Re: Flashcoders Digest, Vol 12, Issue 16

2008-09-24 Thread David Cohn
Jim, Do you want something like this? (movie_clip is the instance name) movie_clip.play(); movie_clip.stop(); movie_clip.gotoAndStop(x); // for scrubber --Dave Date: Wed, 24 Sep 2008 08:58:14 -0400 From: Jim Elmore <[EMAIL PROTECTED]> Subject: [Flashcoders] Pause/Pla

Re: [Flashcoders] Can you embed .mp4 files in timeline?

2008-09-24 Thread Matthew Ganz
Thanks for your response, Steven. Any idea why you can't do it or is it just from personal experience? - Original Message - From: "Steven Sacks" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Wednesday, September 24, 2008 12:06 PM Subject: Re: [Flashcoders] Can you embed .mp4 files i

Re: [Flashcoders] Can you embed .mp4 files in timeline?

2008-09-24 Thread Steven Sacks
No. Matt Ganz wrote: Hey, Just trying one more time Using Flash CS3 and publishing to flash player 9, can you import and embed .mp4 files in the flash timeline? I can't. I can link to it via an flvplayback component. Thanks, Matt ___ Flashcoder

Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Jon Bradley
On Sep 24, 2008, at 9:57 AM, Claus Wahlers wrote: Hey Claus, one of the reasons I can't use it is because of its inability to work with a .zip file created on Mac OSX. AS3 Zip from nochump avoids the alder32 issue by implementing the deflate() mechanism in software. http://nochump.com/b

Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Claus Wahlers
Hey Claus, one of the reasons I can't use it is because of its inability to work with a .zip file created on Mac OSX. The other reason, is that I've attempted to use it to write out a .zip file, and I can't get it to produce a valid .zip file. I've even tried loading in a .zip, and then saving i

[Flashcoders] Re: Pause/Play a swf

2008-09-24 Thread Jim Elmore
This is AS3. On Sep 24, 2008, at 8:58 AM, Jim Elmore wrote: I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to s

[Flashcoders] Pause/Play a swf

2008-09-24 Thread Jim Elmore
I have a slide show built of scripted movie clips placed on the main timeline to sync to a voice over audio. This is way over my head, but I'd like to add play/pause functionality and a scrubber to this show. Is that possible to start and stop scripted movie clips from any frame in the swf?

[Flashcoders] Can you embed .mp4 files in timeline?

2008-09-24 Thread Matt Ganz
Hey, Just trying one more time Using Flash CS3 and publishing to flash player 9, can you import and embed .mp4 files in the flash timeline? I can't. I can link to it via an flvplayback component. Thanks, Matt ___ Flashcoders mailing list Flashcode