Re: [Flashcoders] When is "1" not "1"?

2008-03-10 Thread Dave Mennenoh

When "1" had line feeds...

Well, I'm not quite sure how yet but somehow I'm getting a couple of line 
feeds in my def variable when it comes back to the LoadVars.onLoad.


I do:
$defUser = "1";
echo("&im=".$fName."&def=".$defUser);

But I found I get "1" plus a couple of line feeds...

I sure like AMFPHP a whole lot better.



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] When is "1" not "1"?

2008-03-10 Thread Dave Mennenoh
OK, it's late and I must be an idiot because I am not figuring this out. 
This is from an old project - where I used _global and frames.. hey it's 
like three years ago. :)


relevant PHP called with LoadVars:

$defUser = "1";
echo("&im=".$fName."&def=".$defUser);


And in Flash on frame A:

rv.onLoad = function(success:Boolean){
 if (success) {
  _global.userData.isDefault = this["def"];
 trace("isDefault: "+this["def"]);

It traces "isDefault: 1" as I expect it should...

Next Frame - frame B I go:

trace("_global.userData.isDefault: "+_global.userData.isDefault);
 if(_global.userData.isDefault == "1"){
  trace("_global.userData.isDefault == 1: true");
 }else{
  trace("_global.userData.isDefault == 1: false");
 }

It traces "_global.userData.isDefault: 1"

and: _global.userData.isDefault == 1: false

I cannot figure out why it isn't true. I have tried in my LoadVars doing: 
_global.userData.isDefault = String(this["def"]); to make sure it's "1", and 
I've tried testing for the number 1, but it's still false.


Service Capture shows the 1 being returned properly from PHP... maybe I 
should not use "1"...


WTH?




Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Is there any grid component in AS 3.0

2008-03-10 Thread eric e. dolecki
check out Flex.

On Mon, Mar 10, 2008 at 8:08 PM, anuj sharma <[EMAIL PROTECTED]> wrote:

> Hi All
> I am looking for a grid container in AS 3.0. With my search I found that
> AS
> 3.0 supports Data Grid but for holding data not for visual layout
> perspective. I am looking something for visual layout perspective. My aim
> is
> that if user drops 4 objects on the main screen  and hits arrange button
> then 4 objects will be arranged in a 2x2 grid format. Any ideas e(xcept to
> manually specifying the coordinates) how would i do that and which
> container
> i will use for that.
> Thanks in advance
> Anuj
> ___
> 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] any basic examples of recording voice in Flash AS3..???

2008-03-10 Thread BOYD SPEER
ARGGGHH!

(dang!) Thanks, Glen..  :)

- Original Message -
From: Glen Pike <[EMAIL PROTECTED]>
Date: Monday, March 10, 2008 7:08 pm
Subject: Re: [Flashcoders] any basic examples of recording voice in Flash 
AS3..???
To: Flash Coders List 

> Can't be done.
> 
> "Because sound data from a microphone or from RTMP streams do 
> not pass 
> through the global SoundMixer object, the 
> |SoundMixer.computeSpectrum()| 
> method will not return data from those sources."
> 
> http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0296.html
>  
> 
> 
> 
> 
> BOYD SPEER wrote:
> > The files may not need to be saved and replayed later so would 
> it be possible to just record to a variable (of limited size) 
> ... maybe 5 to 10 seconds max. Would this be possible to do 
> without the media server??
> >
> > - Original Message -
> > From: ben gomez farrell <[EMAIL PROTECTED]>
> > Date: Monday, March 10, 2008 6:14 pm
> > Subject: Re: [Flashcoders] any basic examples of recording 
> voice in Flash AS3..???
> > To: Flash Coders List 
> >
> >   
> >> This isn't possible without the Flash media server (or 
> something 
> >> like 
> >> it), so I'd start there and check out some techdocs on the 
> adobe 
> >> website.  I haven't looked myself, but I think this is a 
> >> fairly basic 
> >> thing, so it should be easy to find examples as long as you 
> know 
> >> you're 
> >> looking at the media server.
> >> ben
> >>
> >> BOYD SPEER wrote:
> >> 
> >>> I am hoping to find basic examples of recording and playback 
> >>>   
> >> of voice in Flash AS3. 
> >> 
> >>> any links or suggestions greatly appreciated...
> >>> Thanks,
> >>> -
> >>> Boyd
> >>> ___
> >>> 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
> >
> >
> >   
> 
> -- 
> 
> Glen Pike
> 01736 759321
> www.glenpike.co.uk 
> ___
> 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] Is there any grid component in AS 3.0

2008-03-10 Thread anuj sharma
Hi All
I am looking for a grid container in AS 3.0. With my search I found that AS
3.0 supports Data Grid but for holding data not for visual layout
perspective. I am looking something for visual layout perspective. My aim is
that if user drops 4 objects on the main screen  and hits arrange button
then 4 objects will be arranged in a 2x2 grid format. Any ideas e(xcept to
manually specifying the coordinates) how would i do that and which container
i will use for that.
Thanks in advance
Anuj
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] any basic examples of recording voice in Flash AS3..???

2008-03-10 Thread Glen Pike

Can't be done.

"Because sound data from a microphone or from RTMP streams do not pass 
through the global SoundMixer object, the |SoundMixer.computeSpectrum()| 
method will not return data from those sources."


http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0296.html 





BOYD SPEER wrote:

The files may not need to be saved and replayed later so would it be possible 
to just record to a variable (of limited size) ... maybe 5 to 10 seconds max. 
Would this be possible to do without the media server??

- Original Message -
From: ben gomez farrell <[EMAIL PROTECTED]>
Date: Monday, March 10, 2008 6:14 pm
Subject: Re: [Flashcoders] any basic examples of recording voice in Flash 
AS3..???
To: Flash Coders List 

  
This isn't possible without the Flash media server (or something 
like 
it), so I'd start there and check out some techdocs on the adobe 
website.  I haven't looked myself, but I think this is a 
fairly basic 
thing, so it should be easy to find examples as long as you know 
you're 
looking at the media server.

ben

BOYD SPEER wrote:

I am hoping to find basic examples of recording and playback 
  
of voice in Flash AS3. 


any links or suggestions greatly appreciated...
Thanks,
-
Boyd
___
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


  


--

Glen Pike
01736 759321
www.glenpike.co.uk 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadVars() under Director

2008-03-10 Thread Andrew Sinning
Turns out that there is a bug in the way the trace() function sends 
message to the Director message window.  Flash works just fine.  It's 
the trace -> Director interface that's broke.


Andrew Sinning wrote:
When I run an AS2 Flash movie under Director, the LoadVars() object 
doesn't like the percent sign (%).  I have to escape it with a 
backslash ("\%").  Running the movie under Flash the backslash shows 
up.  (BTW: I'm not using the decode() function, just reading in the 
text and parsing it manually.)


I do have the current Flash xtra for Director.  I'm running the most 
recent build of DMX04 under Windows.


Could this have to do with the LoadVars.contentType property?

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] any basic examples of recording voice in Flash AS3..???

2008-03-10 Thread BOYD SPEER
The files may not need to be saved and replayed later so would it be possible 
to just record to a variable (of limited size) ... maybe 5 to 10 seconds max. 
Would this be possible to do without the media server??

- Original Message -
From: ben gomez farrell <[EMAIL PROTECTED]>
Date: Monday, March 10, 2008 6:14 pm
Subject: Re: [Flashcoders] any basic examples of recording voice in Flash 
AS3..???
To: Flash Coders List 

> This isn't possible without the Flash media server (or something 
> like 
> it), so I'd start there and check out some techdocs on the adobe 
> website.  I haven't looked myself, but I think this is a 
> fairly basic 
> thing, so it should be easy to find examples as long as you know 
> you're 
> looking at the media server.
> ben
> 
> BOYD SPEER wrote:
> > I am hoping to find basic examples of recording and playback 
> of voice in Flash AS3. 
> > any links or suggestions greatly appreciated...
> > Thanks,
> > -
> > Boyd
> > ___
> > 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] any basic examples of recording voice in Flash AS3..???

2008-03-10 Thread ben gomez farrell
This isn't possible without the Flash media server (or something like 
it), so I'd start there and check out some techdocs on the adobe 
website.  I haven't looked myself, but I think this is a fairly basic 
thing, so it should be easy to find examples as long as you know you're 
looking at the media server.

ben

BOYD SPEER wrote:
I am hoping to find basic examples of recording and playback of voice in Flash AS3. 
any links or suggestions greatly appreciated...

Thanks,
-
Boyd
___
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] AIR and FTP

2008-03-10 Thread Michael Avila
You would need to be able to communicate using the file transfer protocol
(FTP) ...
Try starting here:http://maliboo.pl/projects/FlexFTP/

On Mon, Mar 10, 2008 at 3:36 PM, Corban Baxter <[EMAIL PROTECTED]> wrote:

> Hey guys I had seen a post a while back about someone talking about
> building a FTP client with AIR? Does anyone remember this or am I
> dreaming? It is possibly to build right?
>
> --
> Corban Baxter
> http://www.projectx4.com
> ___
> 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] AIR and FTP

2008-03-10 Thread Corban Baxter
Hey guys I had seen a post a while back about someone talking about
building a FTP client with AIR? Does anyone remember this or am I
dreaming? It is possibly to build right?

-- 
Corban Baxter
http://www.projectx4.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] any basic examples of recording voice in Flash AS3..???

2008-03-10 Thread BOYD SPEER
I am hoping to find basic examples of recording and playback of voice in Flash 
AS3. 
any links or suggestions greatly appreciated...
Thanks,
-
Boyd
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AAC Streaming in Flash Player

2008-03-10 Thread Steven Sacks
Are you asking because your initial attempt didn't work or just in 
general?  I haven't tried it.  You should give it a shot and let us 
know!  :)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] LoadVars() under Director

2008-03-10 Thread Andrew Sinning
When I run an AS2 Flash movie under Director, the LoadVars() object 
doesn't like the percent sign (%).  I have to escape it with a backslash 
("\%").  Running the movie under Flash the backslash shows up.  (BTW: 
I'm not using the decode() function, just reading in the text and 
parsing it manually.)


I do have the current Flash xtra for Director.  I'm running the most 
recent build of DMX04 under Windows.


Could this have to do with the LoadVars.contentType property?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Request some guidance

2008-03-10 Thread anuj sharma
Hi guys
I need some guidance from you. I almost reach the final stage of my project.
My scenario is I have multiple instances of UILoaders on the main stage. The
user can drag and drop those UILoaders wherever he wants on the main stage.
The user can put one on top to replace them too.I am successful in
implementing till now.I used AS 3.0. Finally i have to create a new
application using somehow the same code in which if user places UILoader on
top of already existing UILoader, the new UILoader does not get replaced but
moved/ gets away to give place to the placed video on the main stage. in
other words :- Let's say 4 UILoaders are placed in 2x2 matrix position on
the main stage and if you place 5th UILoader in center (on top) of all the 4
loaders, then all the 4 UIloaders will animate to bounce outwards to give
space to 5th UILoader. I used hitTestObject and hitTestPoint in my project
but I am not sure which way to go in this case. How would animation work in
this case and which is the best approach to tackle this kind of situation.
Anybody has any idea how would i do that?
Your help and guidance will be highly appreciated.
Thanks a lot
Anuj
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash is full of surprises. I will show you how to move movie-clip using a reference to another deleted clip.

2008-03-10 Thread Glen Pike
Sorry if I am speaking out of turn, but isn't this point a bit moot 
(redundant)?


How else would you expect to be able to attach movieclips and manipulate 
them in a loop as you would normally?


e.g.

function doClips() {
   var mc:MovieClip;

   for(var i = 0;i < 10;i++) {
  mc = attachMovie("star", "star_mc_" + i, getNextHighestDepth());
  //mc.removeClip();
  mx._x = 100 * i;
   }
  
   //would expect to manipulate the last one.

   mc._y = 100;
}

doClips();
//compile error, but would not work anyway.
mc._y = 200;
//would work.
star_mc_9._y = 200;

I bet the reference goes out of scope once you exit the function you are in?

If not, then that maybe a bug.

Glen

Andy Herrman wrote:

So you're saying variables like mc are effectively pointers?

Well crap.  I thought I didn't have to worry about pointers when I
wasn't working in C... :)

(I say after just debugging some really weird memory issue in C++ code...)

  -Andy

On Mon, Mar 10, 2008 at 4:08 AM, strk <[EMAIL PROTECTED]> wrote:
  

On Sun, Mar 09, 2008 at 06:50:58PM +0300, Pavel Empty wrote:

 > //Create a clip from the library and store its reference to "mc" variable.
 > var mc:MovieClip = _root.attachMovie("Star", "star_mc",
 > _root.getNextHighestDepth());

 'mc' is a "soft reference" to the Star instance.


 > //Destroy the clip
 > mc.removeMovieClip();

 'mc' becomes a "dangling" reference, which means it'll be looking
 for a substitute with same target name when dereferenced.


 > //Create another star clip once again with the same name "star_mc"
 > //Notice that I do not assign the clip reference to "mc" variable.
 > _root.attachMovie("Star", "star_mc", _root.getNextHighestDepth());
 >
 > //And now I move "mc". It references the first clip, which was destroyed.
 > //I expect nothing to happen, but...
 > mc._x = 100;
 >
 > The second clip moves!
 > That is, the second clip was referenced using "mc".

 Dereferencing 'mc' here yelds the new Star insatnce, having
 the same target path as the original one.

 --strk;


___
 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


  


--

Glen Pike
01736 759321
www.glenpike.co.uk 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Sound and Timer Class

2008-03-10 Thread Helmut Granda
Hi all,

I have a slight problem with the sound object and the Timer class. I
have a movie that loads sounds dynamically at random intervals. it works
perfect until the movie is reset.
Basically the user gets to stop the sounds and start all over. and
it starts fine until you reach the point where they left off before, say you
played sound 1, 2 and 3 was in cue when you stoped the movie, well next time
arround when the movie starts playing when it reaches sound 2 it starts
playing sound 3 at the same time, then the rest over lap 3 with 4 and 4 with
5 and so forth.

Here is a snippet of the class


var soundDelayed : Object ;
var sTimer : Timer ;

private function playSectionSound ( sound : Object , delay : Number
= 0  ) : void

{



if (delay > 0 )

{
soundDelayed = sound ;
sTimer= new Timer(( delay ), 1);
sTimer.start();
sTimer.addEventListener(TimerEvent.TIMER, sTimerHandler);

} else {
soundDelayed = sound;
playVoiceOver ( soundDelayed ) ;

}

} ;

private function playVoiceOver ( vo : Object )

{
trace("PLAY VOICE OVER = " + vo)
volumeChannel = vo.play();

var transform: SoundTransform ;
transform = channel.soundTransform;

if (volumeStatus == "off")

{

transform.volume = 0;
volumeChannel.soundTransform = transform ;

}

} ;

Down the line to kill everything i call the following:

sTimer.stop();
sTimer.reset();
sTimer.removeEventListener(TimerEvent.TIMER, sTimerHandler);
soundDelayed = null

and it seems to work until the sound overlaps...

suggestions? TIA
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AAC Streaming in Flash Player

2008-03-10 Thread Mike Skinner

I understand that the latest Flash player can do AAC files.

What I'm not clear on is if it can do a live stream. (As in RTSP)?

Can anyone help with advice on this?

Thanks so much
Mike

Mike Skinner
Media Developer
Global Media Outreach
A Ministry of Campus Crusade for Christ
(321) 274-6575, mobile


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash is full of surprises. I will show you how to move movie-clip using a reference to another deleted clip.

2008-03-10 Thread Andy Herrman
So you're saying variables like mc are effectively pointers?

Well crap.  I thought I didn't have to worry about pointers when I
wasn't working in C... :)

(I say after just debugging some really weird memory issue in C++ code...)

  -Andy

On Mon, Mar 10, 2008 at 4:08 AM, strk <[EMAIL PROTECTED]> wrote:
> On Sun, Mar 09, 2008 at 06:50:58PM +0300, Pavel Empty wrote:
>
>  > //Create a clip from the library and store its reference to "mc" variable.
>  > var mc:MovieClip = _root.attachMovie("Star", "star_mc",
>  > _root.getNextHighestDepth());
>
>  'mc' is a "soft reference" to the Star instance.
>
>
>  > //Destroy the clip
>  > mc.removeMovieClip();
>
>  'mc' becomes a "dangling" reference, which means it'll be looking
>  for a substitute with same target name when dereferenced.
>
>
>  > //Create another star clip once again with the same name "star_mc"
>  > //Notice that I do not assign the clip reference to "mc" variable.
>  > _root.attachMovie("Star", "star_mc", _root.getNextHighestDepth());
>  >
>  > //And now I move "mc". It references the first clip, which was destroyed.
>  > //I expect nothing to happen, but...
>  > mc._x = 100;
>  >
>  > The second clip moves!
>  > That is, the second clip was referenced using "mc".
>
>  Dereferencing 'mc' here yelds the new Star insatnce, having
>  the same target path as the original one.
>
>  --strk;
>
>
> ___
>  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] fullscreen keyboard functionality

2008-03-10 Thread Allandt Bik-Elliott (Receptacle)

ah that's good news for me

thanks

On 10 Mar 2008, at 17:39, Cedric Muller wrote:


Maybe it is only disabled when in browser mode ?


"These restrictions apply to the Flash plug-in and ActiveX control  
but not to the Flash stand-alone player or Flash projectors."


cedric


hi

i'm making a cs3 projector which uses stage.displayState =  
StageDisplayState.FULL_SCREEN to go full screen. However when i  
checked in the help file, it said
"All keyboard-related ActionScript, such as keyboard events and  
text entry in TextField instances, is disabled in full-screen  
mode. The exception is the keyboard shortcuts that close full- 
screen mode."


This made me pretty worried about having limited to no  
functionality for my app if i made it full screen so i wrote this  
to test it:


assets on stage:
input text field called input_txt
dynamic text field called output_txt
button called button

code:

import flash.display.*;
import flash.events.MouseEvent;

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;

button.addEventListener(MouseEvent.CLICK, myClickMethod);
function myClickMethod(e:Event):void {
output_txt.text = input_txt.text;
}

and this works absolutey fine.

I'm really confused. Is the reference in the help file only for  
browser-based full-screen commands? Is it for actionscript  
generated TextFields? If i go ahead with my app, am i going to  
come massively unstuck further down the line?


hope you can help
alz

___
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] H.264 Video Loop problem

2008-03-10 Thread Shant Parseghian
Hi

I am streaming an H.264 mov and when the file finishes playing I use seek to
jump back to the beginning of the net stream to create a loop. There is a
slight hiccup when doing this. Is it because I am streaming and the player
needs to re-buffer? If I was streaming from Flash Media Server would I still
see this buffer? Is there any smooth way to loop a streamed video?

-Shant
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] fullscreen keyboard functionality

2008-03-10 Thread Steven Sacks

Allandt Bik-Elliott (Receptacle) wrote:
"All keyboard-related ActionScript, such as keyboard events and text 
entry in TextField instances, is disabled in full-screen mode. The 
exception is the keyboard shortcuts that close full-screen mode."



The docs are wrong.  Any Papervision 3D demo that goes fullscreen 
disproves that.  It wouldn't be the first time the Flash docs were 
incorrect.


Francis - you need to regulate!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread Ian Thomas
On Mon, Mar 10, 2008 at 5:38 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:

>  Using MovieClip.getRect() or MovieClip.getBounds() within b) (or a, of
>  course) works fine.
>
>  Using MovieClip.getRect() or MovieClip.getBounds() within c) returns
>  undefined (at least, in my setup).

Sorry - to be clearer - using getRect() or getBounds() _on any object_
in c) returns undefined. If you write code in c) that calls getRect()
or getBounds() on b) e.g. _parent.getBounds(_parent) works fine.

Ian
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread Ian Thomas
Further to this, what looks like is happening is this:

There are 3 layers:

a) An AS3 App that instantiates/addChilds ->
b) An AS2 Shell _embedded_ within the AS3 App that loads ->
c) An AS2 .swf file.

a & b communicate using Grant Skinners SWFBridge, and have no problems
communicating.

Using MovieClip.getRect() or MovieClip.getBounds() within b) (or a, of
course) works fine.

Using MovieClip.getRect() or MovieClip.getBounds() within c) returns
undefined (at least, in my setup).

Running c) standalone, getRect() and getBounds() work fine.

All other code in c) and b) works fine.

At the moment it's looking like a player bug. Anyone got any other
ideas/things to test?

Cheers,
   Ian


On Mon, Mar 10, 2008 at 4:29 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:
> Thanks for that, Glen.
>
>  No loading of images in involved here. I'm just trying to retrieve the
>  sizes of objects already on the stage.
>
>  Cheers,
>Ian
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] fullscreen keyboard functionality

2008-03-10 Thread Cedric Muller

Maybe it is only disabled when in browser mode ?


"These restrictions apply to the Flash plug-in and ActiveX control  
but not to the Flash stand-alone player or Flash projectors."


cedric


hi

i'm making a cs3 projector which uses stage.displayState =  
StageDisplayState.FULL_SCREEN to go full screen. However when i  
checked in the help file, it said
"All keyboard-related ActionScript, such as keyboard events and  
text entry in TextField instances, is disabled in full-screen mode.  
The exception is the keyboard shortcuts that close full-screen mode."


This made me pretty worried about having limited to no  
functionality for my app if i made it full screen so i wrote this  
to test it:


assets on stage:
input text field called input_txt
dynamic text field called output_txt
button called button

code:

import flash.display.*;
import flash.events.MouseEvent;

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;

button.addEventListener(MouseEvent.CLICK, myClickMethod);
function myClickMethod(e:Event):void {
output_txt.text = input_txt.text;
}

and this works absolutey fine.

I'm really confused. Is the reference in the help file only for  
browser-based full-screen commands? Is it for actionscript  
generated TextFields? If i go ahead with my app, am i going to come  
massively unstuck further down the line?


hope you can help
alz

___
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] fullscreen keyboard functionality

2008-03-10 Thread Allandt Bik-Elliott (Receptacle)

hi

i'm making a cs3 projector which uses stage.displayState =  
StageDisplayState.FULL_SCREEN to go full screen. However when i  
checked in the help file, it said
"All keyboard-related ActionScript, such as keyboard events and text  
entry in TextField instances, is disabled in full-screen mode. The  
exception is the keyboard shortcuts that close full-screen mode."


This made me pretty worried about having limited to no functionality  
for my app if i made it full screen so i wrote this to test it:


assets on stage:
input text field called input_txt
dynamic text field called output_txt
button called button

code:

import flash.display.*;
import flash.events.MouseEvent;

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;

button.addEventListener(MouseEvent.CLICK, myClickMethod);
function myClickMethod(e:Event):void {
output_txt.text = input_txt.text;
}

and this works absolutey fine.

I'm really confused. Is the reference in the help file only for  
browser-based full-screen commands? Is it for actionscript generated  
TextFields? If i go ahead with my app, am i going to come massively  
unstuck further down the line?


hope you can help
alz

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Repeated action on mouse down

2008-03-10 Thread Allandt Bik-Elliott (Receptacle)

naturally i let a typo get in

all instances of gallery_prev_btn are just prev_btn but the theory is  
sound




should be

var prev_btn:MovieClip =  
itemOverlay_mc.largeFormatImage_mc.attachMovie 
("gallery_prev_btn","gallery_prev_btn",11,{_x:905, _y:36});


On 10 Mar 2008, at 16:25, Allandt Bik-Elliott (Receptacle) wrote:

i had a similar problem with a gallery i was doing and someone  
pointed out on the flashnewbie list that if you have any v2  
components in the movie, they will steal the focus after the first  
use of a button


the way around it was to turn off focusmanager to stop the  
component doing this on the press and then turn it back on on release


code:
	var prev_btn:MovieClip =  
itemOverlay_mc.largeFormatImage_mc.attachMovie 
("gallery_prev_btn","gallery_prev_btn",11,{_x:905, _y:36});

prev_btn.onRelease = function():Void {
// execute button code here
		focusManager.enabled = true; // turn focusManager back on for v2  
components

};

gallery_prev_btn.onPress = function():Void {
		focusManager.enabled = false;  // stop focusManager stealing the  
focus for v2 components

};

i think it was keith reinfeld who gave me that one

a


On 10 Mar 2008, at 14:44, McVirusS wrote:


You could do it like this:
- onMouseDown -> start a timer that repeats a certain action
- onMouseUp -> stop timer

- Original Message - From: "Lehr, Theodore M (N-SGIS)"  
<[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Monday, March 10, 2008 2:59 PM
Subject: [Flashcoders] Repeated action on mouse down


How would I repeat an action with a button click held down? Seems  
like
onMouseDown should repeat the action, but seems to only do it  
once

Ted
___
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: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread Ian Thomas
Thanks for that, Glen.

No loading of images in involved here. I'm just trying to retrieve the
sizes of objects already on the stage.

Cheers,
   Ian

On Mon, Mar 10, 2008 at 4:20 PM, Glen Pike <[EMAIL PROTECTED]> wrote:
> Not sure if this applies to AS3, but in AS2, you had problems getting
>  the width & height of loaded images & swfs until they were completely
>  loaded.
>
>  The AS2 method was to implement the onLoadInit() function of the
>  MovieClipLoader class and get info there.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread Glen Pike
Not sure if this applies to AS3, but in AS2, you had problems getting 
the width & height of loaded images & swfs until they were completely 
loaded.


The AS2 method was to implement the onLoadInit() function of the 
MovieClipLoader class and get info there.


Glen

Ian Thomas wrote:

Hi Eka,
   Thanks for that - I'm well aware of the limitations. I'm using
Grant Skinner's SWFBridgeAS2 to talk between the two VMs. The problem
isn't that AS2 code isn't working - the rest of the contained AS2
MovieClip is running correctly, including all scripts. The only
function failing is MovieClip.getBounds(), which is why I'm confused.

Cheers,
   Ian

On Mon, Mar 10, 2008 at 4:06 PM, ekameleon <[EMAIL PROTECTED]> wrote:
  

hello :)

 PS : in AS3 application AS2 code source can't work... the AVM2 (new virtual
 machine of the flashPlayer 9) can't use AVM1 scripts (AS1 or AS2)

 eKA+ :)


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01736 759321
www.glenpike.co.uk 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread Ian Thomas
Looking at it, it's MovieClip.getRect() too. How weird - must be some
sort of display parenting issue. I'll dig deeper and see what I can
find out; must be some sort of player bug.

Any and all ideas welcomed - I can't dream up a way to fake
getBounds() immediately (without some fancy blitting around of
Bitmaps, and that's much too heavyweight).

Cheers,
  Ian

On Mon, Mar 10, 2008 at 4:16 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:
> Hi Eka,
>Thanks for that - I'm well aware of the limitations. I'm using
>  Grant Skinner's SWFBridgeAS2 to talk between the two VMs. The problem
>  isn't that AS2 code isn't working - the rest of the contained AS2
>  MovieClip is running correctly, including all scripts. The only
>  function failing is MovieClip.getBounds(), which is why I'm confused.
>
>  Cheers,
>Ian
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Repeated action on mouse down

2008-03-10 Thread Allandt Bik-Elliott (Receptacle)
i had a similar problem with a gallery i was doing and someone  
pointed out on the flashnewbie list that if you have any v2  
components in the movie, they will steal the focus after the first  
use of a button


the way around it was to turn off focusmanager to stop the component  
doing this on the press and then turn it back on on release


code:
	var prev_btn:MovieClip =  
itemOverlay_mc.largeFormatImage_mc.attachMovie 
("gallery_prev_btn","gallery_prev_btn",11,{_x:905, _y:36});

prev_btn.onRelease = function():Void {
// execute button code here
		focusManager.enabled = true; // turn focusManager back on for v2  
components

};

gallery_prev_btn.onPress = function():Void {
		focusManager.enabled = false;  // stop focusManager stealing the  
focus for v2 components

};

i think it was keith reinfeld who gave me that one

a


On 10 Mar 2008, at 14:44, McVirusS wrote:


You could do it like this:
- onMouseDown -> start a timer that repeats a certain action
- onMouseUp -> stop timer

- Original Message - From: "Lehr, Theodore M (N-SGIS)"  
<[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Monday, March 10, 2008 2:59 PM
Subject: [Flashcoders] Repeated action on mouse down


How would I repeat an action with a button click held down? Seems  
like
onMouseDown should repeat the action, but seems to only do it  
once

Ted
___
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] getBounds AS3/AS2 issue

2008-03-10 Thread Ian Thomas
Hi Eka,
   Thanks for that - I'm well aware of the limitations. I'm using
Grant Skinner's SWFBridgeAS2 to talk between the two VMs. The problem
isn't that AS2 code isn't working - the rest of the contained AS2
MovieClip is running correctly, including all scripts. The only
function failing is MovieClip.getBounds(), which is why I'm confused.

Cheers,
   Ian

On Mon, Mar 10, 2008 at 4:06 PM, ekameleon <[EMAIL PROTECTED]> wrote:
> hello :)
>
>  PS : in AS3 application AS2 code source can't work... the AVM2 (new virtual
>  machine of the flashPlayer 9) can't use AVM1 scripts (AS1 or AS2)
>
>  eKA+ :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread ekameleon
hello :)

PS : in AS3 application AS2 code source can't work... the AVM2 (new virtual
machine of the flashPlayer 9) can't use AVM1 scripts (AS1 or AS2)

eKA+ :)

2008/3/10, ekameleon <[EMAIL PROTECTED]>:
>
> Hello :)
>
> Test my AVM2Loader class :
>
> Référence : http://www.ekameleon.net/vegas/docs/
> Class   :
> http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/asgard/display/AVM2Loader.as
>
> If you want install my framework :
> http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
>
> you can use the AS3 SVN repository to checkout the sources :
> http://svn1.cvsdude.com/osflash/vegas/AS3/
>
> EKA+ :)
>
>
> 2008/3/10, Ian Thomas <[EMAIL PROTECTED]>:
> >
> > Has anyone got any idea why when I create an instance of an AVM1Movie
> > (embedded) within an AS3 app, AS2's MovieClip.getBounds() function
> > returns undefined within the contained movie whereas it works
> > perfectly well if the AS2 movie is run outside the AS3 app?
> >
> > Same result with Flex2.01 and Flex3 compilers.
> >
> > Cheers,
> >Ian
> > ___
> > 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] getBounds AS3/AS2 issue

2008-03-10 Thread ekameleon
Hello :)

Test my AVM2Loader class :

Référence : http://www.ekameleon.net/vegas/docs/
Class   :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/asgard/display/AVM2Loader.as

If you want install my framework :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

you can use the AS3 SVN repository to checkout the sources :
http://svn1.cvsdude.com/osflash/vegas/AS3/

EKA+ :)


2008/3/10, Ian Thomas <[EMAIL PROTECTED]>:
>
> Has anyone got any idea why when I create an instance of an AVM1Movie
> (embedded) within an AS3 app, AS2's MovieClip.getBounds() function
> returns undefined within the contained movie whereas it works
> perfectly well if the AS2 movie is run outside the AS3 app?
>
> Same result with Flex2.01 and Flex3 compilers.
>
> Cheers,
>Ian
> ___
> 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] Using States, MXML, Events, O' My

2008-03-10 Thread Anthony Cintron
Thanks guys, this actually worked for me over the weekend. I created a
stateManager and did all the changing within there. I did use the below
technique. I'm not so familiar with the command patter, although I have
heard of it. I may look into that for future reference. All in all -
everything worked out great. I appreciate the assistance.

On Mon, Mar 10, 2008 at 11:17 AM, Glen Pike <[EMAIL PROTECTED]>
wrote:

> You can access the thing that sends the event in your listener - the guy
> before did not give you the entire signature for an event listener
> function (you pass the event in the MXML tag and add it as the argument
> to the function - same with any handler, you can specify what goes in
> the function argument, by default the click rollover and other Flex
> events will have an object associated with them that you can pass around):
>
> 
>
> 
>  label="myButton"/>
>
> Hey presto, you can wrap this event up and fire it again from this
> component upto the top.  That's the only awkward bit as you have to
> write code for each.  There may be other ways / frameworks like Jason
> said that ensure you don't have to write these bits of code in every
> nested component to pass an event from bottom to top, but I have not
> investigated / learnt about this stuff.
>
> HTH
>
> Glen
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Anthony Cintron
Flash || Flash Developer
www.sweetiesandgangsters.com
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] getBounds AS3/AS2 issue

2008-03-10 Thread Ian Thomas
Has anyone got any idea why when I create an instance of an AVM1Movie
(embedded) within an AS3 app, AS2's MovieClip.getBounds() function
returns undefined within the contained movie whereas it works
perfectly well if the AS2 movie is run outside the AS3 app?

Same result with Flex2.01 and Flex3 compilers.

Cheers,
   Ian
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Using States, MXML, Events, O' My

2008-03-10 Thread Glen Pike
You can access the thing that sends the event in your listener - the guy 
before did not give you the entire signature for an event listener 
function (you pass the event in the MXML tag and add it as the argument 
to the function - same with any handler, you can specify what goes in 
the function argument, by default the click rollover and other Flex 
events will have an object associated with them that you can pass around):



   

label="myButton"/>


Hey presto, you can wrap this event up and fire it again from this 
component upto the top.  That's the only awkward bit as you have to 
write code for each.  There may be other ways / frameworks like Jason 
said that ensure you don't have to write these bits of code in every 
nested component to pass an event from bottom to top, but I have not 
investigated / learnt about this stuff.


HTH

Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Using States, MXML, Events, O' My

2008-03-10 Thread Merrill, Jason
I would recommend using some design patterns or frameworks.  For
example, Cairgorm lets you broadcast special events (Cairngorm events)
which are responded to by a central Cairngorm command class.  This
command class can change the state of the application. 

As for not doing it in MXML because it contains animations, you can
extend the Button class or even better just make a custom button
component (which is also just extending the Button class) and animate
within that component, then in your MXML you can insert the buttons and
change the state by doing:



By nesting buttons deep within actionscript classes you can use event
bubbling to capture the event, but really, there are better less
complicated ways to handle this.

Jason Merrill
Bank of America  
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GT&O Innovative Learning Blog & subscribe.




 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Anthony Cintron
>>Sent: Friday, March 07, 2008 11:24 PM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] Using States, MXML, Events, O' My
>>
>>The custom class that has the button event is a composite 
>>class inside another class (we'll call that MainInterActive 
>>class). MainInterActive is than instantiated in a main mxml 
>>application inside a state node. I could try what you 
>>mentioned but the composite classes' buttons are not really 
>>available  to the main application. Unless there is a way I 
>>could subscribe to that button, although it is a child of the 
>>child class in MainInterActive.
>>The reason why I'm not creating the buttons using mxml is 
>>because they are doing some funky animations.
>>
>>thanks for your help on this, any ideas for a resolution on 
>>accessing the button or buttons event?
>>
>>Anthony
>>
>>On Fri, Mar 7, 2008 at 9:30 PM, Merrill, Jason < 
>>[EMAIL PROTECTED]> wrote:
>>
>>> If your button in the custom class is broadcasting an 
>>event, say for 
>>> an example, and event called "changed", you can add an 
>>event listener 
>>> in a script tag in the main MXML.  A snippet would be:
>>>
>>>private function addListeners():void
>>>{
>>>
>>> myCustomClassInstance.addEventListener("changed", onChanged);
>>>}
>>>
>>>private function onChanged():void
>>>{
>>>currentState = "myOtherState";
>>>}
>>>
>>> However, if you class creates buttons, why not have those buttons 
>>> created with MXML instead of Actionscript?
>>>
>>> There is a great Flex list on Yahoo! called Flexcoders 
>>which would be 
>>> more capable to answer this than this list.
>>>
>>> Jason Merrill
>>> Bank of America
>>> GT&O L&LD Solutions Design & Development eTools & Multimedia
>>>
>>> Bank of America Flash Platform Developer Community
>>>
>>>
>>> Are you a Bank of America associate interested in 
>>innovative learning 
>>> ideas and technologies?
>>> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
>>> >>[mailto:[EMAIL PROTECTED] On Behalf Of 
>>> >>Anthony Cintron
>>> >>Sent: Friday, March 07, 2008 6:14 PM
>>> >>To: flashcoders@chattyfig.figleaf.com
>>> >>Subject: [Flashcoders] Using States, MXML, Events, O' My
>>> >>
>>> >>I have a question about MXML and ActionScript and how they 
>>> >>communicate with each other.  I'm working with the State tage to 
>>> >>change views. I have a Class called SpacePorter; it has 4 buttons 
>>> >>that dispatchEvents( MyButton.BUTTON_CLICKED). Space Porter is 
>>> >>instantiated into my Home Class.
>>> >>Home class is than created using mxml in my root Application.
>>> >>Now, I want to be able with AS3 or MXML to subscribe to that 
>>> >>Broadcast so my State can change, depending on the button 
>>that was 
>>> >>clicked. I can't quite wrap my head around this with my 
>>lack of MXML 
>>> >>and ActionScript relations - especially with the CDATA 
>>tags. I tried 
>>> >>getting the button object through AS, by doing:
>>> >>homeView.button, but it seems as though i can't get to the 
>>> >>properties of an mxml (instantiated object) from a AS 
>>script inside 
>>> >>the script tag.
>>> >>
>>> >>I hope this makes some sense, if need be I can explain some more. 
>>> >>Could really use the help on this. This is great real 
>>world attempt 
>>> >>of me using Flex.
>>> >>
>>> >>Anthony C.
>>> >>
>>> >>--
>>> >>___
>>> >>Flashcoders mailing list
>>> >>Flashcoders@chattyfig.figleaf.com
>>> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>> >>
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://

Re: [Flashcoders] Repeated action on mouse down

2008-03-10 Thread McVirusS

You could do it like this:
- onMouseDown -> start a timer that repeats a certain action
- onMouseUp -> stop timer

- Original Message - 
From: "Lehr, Theodore M (N-SGIS)" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Monday, March 10, 2008 2:59 PM
Subject: [Flashcoders] Repeated action on mouse down



How would I repeat an action with a button click held down? Seems like
onMouseDown should repeat the action, but seems to only do it once

Ted
___
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] Repeated action on mouse down

2008-03-10 Thread Cedric Muller

onMouseMove and then check if mouse 'isDown' ?


How would I repeat an action with a button click held down? Seems like
onMouseDown should repeat the action, but seems to only do it once

Ted
___
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] Repeated action on mouse down

2008-03-10 Thread Lehr, Theodore M (N-SGIS)
How would I repeat an action with a button click held down? Seems like
onMouseDown should repeat the action, but seems to only do it once

Ted
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] [AS3] Writing a SWF to a PDF

2008-03-10 Thread Stuart Moir
Is there anyone who can rewrite this line of code so it will write a SWF to a 
PDF?

this.write (sprintf('q %.2f 0 0 %.2f %.2f %.2f cm '+a+' '+b+' '+c+' '+d+' 0 0 
cm '+scaleX+' 0 0 '+scaleY+' 0 0 cm/I%d Do Q', pWidth*k, pHeight*k, pX*k, 
(currentPage.h-(pY+pHeight))*k, info.i));

This current code is taken from alivepdf and is the section that writes a JPG 
to a PDF?

SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] visible area of content in V2 ScrollPane

2008-03-10 Thread Piers Cowburn
The vPosition value is the y offset of the content, so the size of  
the scroll bar handle is irrelevant when you're trying to work out  
the visible are of the content.



On 10 Mar 2008, at 12:52, Mendelsohn, Michael wrote:

It certainly seems this simple, but what if the scrollPane on the  
stage
is 100px tall, but its content is 587px tall.  The scrollbar  
dragger is

then proportionately smaller and therefore, it's more difficult to
figure out what the visible range of the content is.  There would
probably be a formula for it, right?

- MM

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Piers
Cowburn
Sent: Friday, March 07, 2008 4:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] visible area of content in V2 ScrollPane

Hi Michael,

The top value is ScrollPane.vPosition, the bottom will be
ScrollPane.vPosition + ScrollPane.height

HTH,
Piers


___
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] visible area of content in V2 ScrollPane

2008-03-10 Thread Mendelsohn, Michael
It certainly seems this simple, but what if the scrollPane on the stage
is 100px tall, but its content is 587px tall.  The scrollbar dragger is
then proportionately smaller and therefore, it's more difficult to
figure out what the visible range of the content is.  There would
probably be a formula for it, right?

- MM

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Piers
Cowburn
Sent: Friday, March 07, 2008 4:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] visible area of content in V2 ScrollPane

Hi Michael,

The top value is ScrollPane.vPosition, the bottom will be  
ScrollPane.vPosition + ScrollPane.height

HTH,
Piers


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash is full of surprises. I will show you how to move movie-clip using a reference to another deleted clip.

2008-03-10 Thread strk
On Sun, Mar 09, 2008 at 06:50:58PM +0300, Pavel Empty wrote:

> //Create a clip from the library and store its reference to "mc" variable.
> var mc:MovieClip = _root.attachMovie("Star", "star_mc",
> _root.getNextHighestDepth());

'mc' is a "soft reference" to the Star instance.

> //Destroy the clip
> mc.removeMovieClip();

'mc' becomes a "dangling" reference, which means it'll be looking
for a substitute with same target name when dereferenced.

> //Create another star clip once again with the same name "star_mc"
> //Notice that I do not assign the clip reference to "mc" variable.
> _root.attachMovie("Star", "star_mc", _root.getNextHighestDepth());
> 
> //And now I move "mc". It references the first clip, which was destroyed.
> //I expect nothing to happen, but...
> mc._x = 100;
>
> The second clip moves!
> That is, the second clip was referenced using "mc".

Dereferencing 'mc' here yelds the new Star insatnce, having
the same target path as the original one.

--strk;
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash is full of surprises. I will show you how to move movie-clip using a reference to another deleted clip.

2008-03-10 Thread Shang
You are right about the "_root.star_mc" thing. I think it's more like
_root["star_mc"]. If you add your 2nd movie clip but not naming it as
"star_mc" I'm sure " mc._x = 100" will not work.

On Mon, Mar 10, 2008 at 12:39 AM, Keith <[EMAIL PROTECTED]> wrote:

> //--> You only removed the MovieClip.
> mc.removeMovieClip();
>
> //--> If you use "delete" it will remove the reference to the variable.
> delete mc;
>
>
> I'm glad it works this way, because I can reuse my variables.
> When I'm done I can call "delete"
> -- Keith H --
>
>
>
>
> Pavel Empty wrote:
> > Hey!
> > Recently I was surprised with Flash environment behavior.
> > Just want to share with you my observations.
> >
> > Look at this very simple code:
> >
> > //Create a clip from the library and store its reference to "mc"
> variable.
> > var mc:MovieClip = _root.attachMovie("Star", "star_mc",
> > _root.getNextHighestDepth());
> >
> > //Destroy the clip
> > mc.removeMovieClip();
> >
> > //Create another star clip once again with the same name "star_mc"
> > //Notice that I do not assign the clip reference to "mc" variable.
> > _root.attachMovie("Star", "star_mc", _root.getNextHighestDepth());
> >
> > //And now I move "mc". It references the first clip, which was
> destroyed.
> > //I expect nothing to happen, but...
> > mc._x = 100;
> >
> > The second clip moves!
> > That is, the second clip was referenced using "mc".
> >
> > Do you know why does Flash behave this way?
> >
> > My guess is that Flash keeps an absolute path to the clip inside clip
> > reference.
> > So, in my case, the clip "_root.star_mc" was found and then moved
> > successfully.
> >
> > Pasha
> > ___
> > 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
>



-- 
www.shang-liang.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders