Re: [Flashcoders] inline images in html text fields?

2006-10-02 Thread Josh Santangelo

Nope. Flash's CSS support is extremely limited.

-josh

On Oct 2, 2006, at 8:35p, Joseph Balderson wrote:


Doesn't the CSS styling 'display:inline' work for the IMG tag?

__

Joseph Balderson, Flash Developer & RIA Specialist
http://www.joeflash.ca | 416-768-0987
Writing partner, Community MX | http://www.communitymx.com
Développement Bilingue/Francophone disponible

Jorge Antonio Diaz Gutierrez wrote:
Josh, I have same problem. What Happens to me is that, when I  
place few
pictures continuously it overlaps one and another by placing   
tags

one behind the other. It would be cool to see any example about it.
Jorge
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Josh
Santangelo
Sent: Saturday, September 30, 2006 3:28 PM
To: Flashcoders mailing list
Subject: [Flashcoders] inline images in html text fields?
I know that while you can use the  tag in html text fields  
to  load images or symbols, that the image must be left- or right- 
aligned  with the text, and the text wraps around it. I have a  
need to have  small images *inline* with the text, however. I'm  
wondering if  anyone's worked out a hack to make this work (or at  
least appear to  work).
The first thing that comes to mind is to place some other  
character  where the image will go, search for it, figure out its  
position, and  then attach the image on top of it in the  
appropriate place. However  I'm not sure if it's possible to find  
the exact position of a  character in a TextField.
I recall seeing someone demo just that thing on a blog post   
somewhere, but I haven't bookmarked it, and I think it was  
probably  AS3 anyway (this needs to run in FP8). Flash Paper  
Viewer is able to  highlight search results in this way, but I  
believe there's some very  Flash Paper specific things going on  
there (having worked on the  first version of it myself).

Any clues would be much appreciated.
thanks,
-josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Projector Wrapper

2006-10-02 Thread Ray Chuan

Hi,

Curiously, John Greden, who is from the same agency as you, happens to
be an active promoter of Xray on this and other list(s). If John can
do it, there's no reason why Nicholas can't.

On 10/3/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

> Would be interesting to compare with recently released Screenweaver HX
> (http://haxe.org/swhx).

...says one of the authors of Screenweaver HX.  Being a shill doesn't
work unless you use a different name.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Cheers,
Ray Chuan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Setter Problem

2006-10-02 Thread Ray Chuan

Hi,
try tracing 'imgViewerFrame' instead of 'frame' on line 32:

trace("setImageViewerFrame() is setting var imgViewerFrame to "+frame)

In your delegated function 'handleButtonClicked' try tracing 'this',
to see if there is anything wrong with the scope.

On 10/3/06, Victor Gaudioso <[EMAIL PROTECTED]> wrote:

Hey all, can anyone kindly tell me why my Setter function does not affect
the trace in the Event Handler of my Class.  I have commented the two
problem areas of the code.  Thanks very much in advance, Victor

CODE:


// ** AUTO-UI IMPORT STATEMENTS **
import com.acmewebworks.controls.BaseClip;
import mx.utils.Delegate;
import com.creativenetdesign.imageviewer.ImageViewer;
import mx.controls.Label;
import com.creativenetdesign.imageviewer.ControlPanel;
// ** END AUTO-UI IMPORT STATEMENTS **
class com.creativenetdesign.imageviewer.Main extends BaseClip{
// Constants:
 public static var CLASS_REF = com.creativenetdesign.imageviewer.Main;
 public static var LINKAGE_ID:String =
"com.creativenetdesign.imageviewer.Main";
// Public Properties:
 var imgViewerFrame:Number
// Private Properties:
// UI Elements:
// ** AUTO-UI ELEMENTS **
 private var controlPanel:ControlPanel;
 private var ImageViewer:ImageViewer;
 private var labelTitle:Label;
// ** END AUTO-UI ELEMENTS **
// Initialization:
 public function Main() {}
 private function onLoad():Void { configUI(); }
// Public Methods:
 // PROBLEM ***
 // This is the setter function that is beling called from the FLA timeline:
 // imv_mc.setImageViewerFrame = 3
 public function set setImageViewerFrame(frame:Number):Void {
imgViewerFrame = frame;
 //this trace works fine
 trace("setImageViewerFrame() is setting var imgViewerFrame to "+frame)
}
 // END PROBLEM ***
// Semi-Private Methods:
// Private Methods:
 private function configUI():Void {
  trace("MAIN INIT")
  // init ImageViewer
  controlPanel.addEventListener("controlClick", Delegate.create(this,
handleButtonClicked));
  }
  //
  // PROBLEM 
  // imgViewerFrame always traces out to UNDEFINED
  private function handleButtonClicked(obj:Object):Void {
  trace("MAIN HEARD "+obj.type+" FROM "+obj.target+" image viwer is on
frame: "+imgViewerFrame);
  // END PROBLEM 
  var viewerOnFrame:Number = _level0.main.imageViewer_mc._currentframe
  //trace("VIEWER FRAME IS "+viewerOnFrame)
   if (obj.target == _level0.main.controlPanel.next_btn){
if (viewerOnFrame == 1 ){
_level0.main.imageViewer_mc.gotoAndStop(2)
   }else if (viewerOnFrame == 2){
_level0.main.imageViewer_mc.gotoAndStop(3)
   }else if (viewerOnFrame == 3){
_level0.main.imageViewer_mc.gotoAndStop(4)
   }
   else if (viewerOnFrame == 4){
_level0.main.imageViewer_mc.gotoAndStop(5)
   }
   else if (viewerOnFrame == 5){
_level0.main.imageViewer_mc.gotoAndStop(6)
   }
   else if (viewerOnFrame == 6){
_level0.main.imageViewer_mc.gotoAndStop(1)
   }
  }
  //
  if (obj.target == _level0.main.controlPanel.prev_btn){
if (viewerOnFrame == 1 ){
_level0.main.imageViewer_mc.gotoAndStop(6)
   }else if (viewerOnFrame == 2){
_level0.main.imageViewer_mc.gotoAndStop(1)
   }else if (viewerOnFrame == 3){
_level0.main.imageViewer_mc.gotoAndStop(2)
   }
   else if (viewerOnFrame == 4){
_level0.main.imageViewer_mc.gotoAndStop(3)
   }
   else if (viewerOnFrame == 5){
_level0.main.imageViewer_mc.gotoAndStop(4)
   }
   else if (viewerOnFrame == 6){
_level0.main.imageViewer_mc.gotoAndStop(5)
   }
  }
 }

}
- Original Message -
From: "Kevin Cannon" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Monday, October 02, 2006 9:21 AM
Subject: Re: [Flashcoders] Disabling Nested MCs?


> Hi Jake,
>
> Ahh, I so that's how you do it. I think the current way I have tweens
> working won't allow be to easily do that, but when I start using Fuse
> Kit it should be a doddle.
>
> Thanks,
>
> - Kevin
>
> On 02/10/06, Jake Prime <[EMAIL PROTECTED]> wrote:
>> Hi Kevin
>>
>> Try:
>>
>> map._visible = false;
>>
>> This will disable all buttons in map, and if the whole map is 0 alpha
>> anyway will make no visible difference.
>>
>> Jake
>>
>> On 02/10/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> >
>> > I have an interactive map with various clickable countries on it. At
>> > certain times the map fades out to alpha = 0.
>> >
>> > When that happens the country movieclips are still clickable so I need
>> > to disable them.
>> >
>> > I expected map.enabled = false; to do it, but it seems to have no
>> > effect since the map movieclip itself has no actions.
>> >
>> > If there a way to disable the nested MCs without having to do it by
>> > manually disabling them all? I don't want to reinvent the wheel if
>> > there's a native way of doing it.
>> >
>> > Thanks,
>> >
>> > - Kevin
>> _

Re: [Flashcoders] inline images in html text fields?

2006-10-02 Thread Joseph Balderson

Doesn't the CSS styling 'display:inline' work for the IMG tag?

__

Joseph Balderson, Flash Developer & RIA Specialist
http://www.joeflash.ca | 416-768-0987
Writing partner, Community MX | http://www.communitymx.com
Développement Bilingue/Francophone disponible

Jorge Antonio Diaz Gutierrez wrote:

Josh, I have same problem. What Happens to me is that, when I place few
pictures continuously it overlaps one and another by placing  tags
one behind the other. It would be cool to see any example about it.

Jorge

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Josh
Santangelo
Sent: Saturday, September 30, 2006 3:28 PM
To: Flashcoders mailing list
Subject: [Flashcoders] inline images in html text fields?

I know that while you can use the  tag in html text fields to  
load images or symbols, that the image must be left- or right-aligned  
with the text, and the text wraps around it. I have a need to have  
small images *inline* with the text, however. I'm wondering if  
anyone's worked out a hack to make this work (or at least appear to  
work).


The first thing that comes to mind is to place some other character  
where the image will go, search for it, figure out its position, and  
then attach the image on top of it in the appropriate place. However  
I'm not sure if it's possible to find the exact position of a  
character in a TextField.


I recall seeing someone demo just that thing on a blog post  
somewhere, but I haven't bookmarked it, and I think it was probably  
AS3 anyway (this needs to run in FP8). Flash Paper Viewer is able to  
highlight search results in this way, but I believe there's some very  
Flash Paper specific things going on there (having worked on the  
first version of it myself).


Any clues would be much appreciated.

thanks,
-josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] timeout for XML.load?

2006-10-02 Thread Victor Gaudioso
you could wrap your onLoad event in a dealy function and set it to run the 
onLoad after say 1 second.  It is kind of hacky but may work for what you 
need.
- Original Message - 
From: "Josh Santangelo" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, October 02, 2006 7:01 PM
Subject: [Flashcoders] timeout for XML.load?


I'm wondering if it's possible to alter the value which is used as a 
timeout for the XML.load method -- that is, the amount of time before 
which the onLoad event fires when no response is returned. I'm  dealing 
with a server which does not always return data very quickly,  but does 
return it if you wait long enough.


(I'm guessing the answer is: No, this is determined by the host 
browser/application and there's nothing you can do about it. But I 
thought I'd ask.)


thanks,
-josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] timeout for XML.load?

2006-10-02 Thread Josh Santangelo
I'm wondering if it's possible to alter the value which is used as a  
timeout for the XML.load method -- that is, the amount of time before  
which the onLoad event fires when no response is returned. I'm  
dealing with a server which does not always return data very quickly,  
but does return it if you wait long enough.


(I'm guessing the answer is: No, this is determined by the host  
browser/application and there's nothing you can do about it. But I  
thought I'd ask.)


thanks,
-josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] when classes die...

2006-10-02 Thread Scott Hyndman

No. Write a method that does cleanup.

Scott

On 02/10/06, grimmwerks <[EMAIL PROTECTED]> wrote:

Ok, I've got an app that uses a static variable; I've got 'templates'
that use x instances of this class.

When the user loads in a new template when a previous template has
already existed, I get some 'leftover' variables.

Is there a function that is called when a class is 'killed', ie the
opposite of when a class is birthed with 'new'?

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] when classes die...

2006-10-02 Thread grimmwerks

Ok, I've got an app that uses a static variable; I've got 'templates'
that use x instances of this class.

When the user loads in a new template when a previous template has
already existed, I get some 'leftover' variables.

Is there a function that is called when a class is 'killed', ie the
opposite of when a class is birthed with 'new'?

--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Selection class makes me want to kick someone in the face

2006-10-02 Thread Josh Santangelo
Could you use MovieClip.onSetFocus instead of MovieClip.onPress or  
does that only fire when a clip is tabbed to? Just a thought, haven't  
tried it.


-josh

On Oct 2, 2006, at 4:12a, Andreas Rønning wrote:


...which is, i gather, somewhat of a general consensus.

I'm working on a tablet pc application that requires the user to be  
able to select text and transfer this text to other parts of the  
application.

The ideal way is as such:

1. The user makes a selection from *any selectable text field*
2. A button appears near the selected text
3. The user taps the button
4. The selected text is copied to a buffer
5. The selection is cleared
6. An event is broadcast

Now my problem is, this is what happens:

1. The user makes a selection
2. A button appears near the selected text
3. The user taps the button
4. The text field loses focus, launching Selection.onSetFocus,  
which checks if the current selection, now "null", is an editable  
textfield. Naturally,

null is not, so the button becomes hidden.
5. The user releases the now invisible button
6. Selection.onSetFocus gathers that the new selection is "null",  
and uh, returns focus to the text field, which retains its selection.
7. Now that the textfield, which is "valid" in terms of this  
purpose, the button is shown again.


Hmm.. Infinite cycle. Not cool.

The big issue here is that Selection.onSetFocus is called prior to  
MovieClip.onPress. This basically means there's no way i can make  
changes to the current selection
before onSetFocus is called. With this in mind: How the bloody hell  
is it possible to make changes to a selection with a button?
The more i kick this horse around, the more contrived the AS looks,  
and it's becoming seriously demoralizing.


Any input is appreciated.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Selection class makes me want to kick someone in theface

2006-10-02 Thread Bjorn Schultheiss
You have to rework your logic to the way flash handles selections,
Note, there can be a lag between new selections.
Also some things you just wont be able to do :(
 

> 2. A button appears near the selected text 3. The user taps the button 4.
The text field loses focus, launching Selection.onSetFocus, which checks if
the current selection, >
> now "null", is an editable textfield. Naturally, null is not, so the
button becomes hidden.

Focus will go something like
TextField, null, Button, If your listening for onSetFocus
Here's what I used 

public function onTextFocusOut( event : Object ) : Void
{
clearInterval( this.searchTextForRuleInterval );
getNextSelectionCounter = 0;
getNextSelectionInterval = setInterval( this,
"getNextSelection", 100 );
Key.removeListener( this );
Mouse.removeListener( this );
}

private function getNextSelection() : Void
{
var sFocus : String = String( Selection.getFocus() );
var aIndex : Number = sFocus.indexOf( "addRule_btn" );
var bIndex : Number = sFocus.indexOf( "displayText" );
var cIndex : Number = sFocus.indexOf( "Commit_btn" );

if ( aIndex !== -1 || cIndex !== -1 )
{
clearInterval( this.getNextSelectionInterval );
return;
}

else if ( sFocus == undefined || sFocus == "null" || sFocus
== null )
{
this.getNextSelectionCounter ++;
if ( this.getNextSelectionCounter >= 6)
{
clearInterval( this.getNextSelectionInterval
);
return;
}
}
else if ( bIndex == -1 && sFocus !== undefined )
{
if ( sFocus == undefined || sFocus == "null" ||
sFocus == null )
{
return;
}
else
{

ds.currentManager.getActions().updateState(ActionStates.commonWizardNav);
clearInterval( this.getNextSelectionInterval
);
return;
}
}
}



Although the code is ugly atleast it helps you determine what really
actually has focus!


Hope I helped


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
Rønning
Sent: Monday, 2 October 2006 9:13 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Selection class makes me want to kick someone in
theface

...which is, i gather, somewhat of a general consensus.

I'm working on a tablet pc application that requires the user to be able to
select text and transfer this text to other parts of the application.
The ideal way is as such:

1. The user makes a selection from *any selectable text field* 2. A button
appears near the selected text 3. The user taps the button 4. The selected
text is copied to a buffer 5. The selection is cleared 6. An event is
broadcast

Now my problem is, this is what happens:

1. The user makes a selection
2. A button appears near the selected text 3. The user taps the button 4.
The text field loses focus, launching Selection.onSetFocus, which checks if
the current selection, now "null", is an editable textfield. Naturally, null
is not, so the button becomes hidden.
5. The user releases the now invisible button 6. Selection.onSetFocus
gathers that the new selection is "null", and uh, returns focus to the text
field, which retains its selection.
7. Now that the textfield, which is "valid" in terms of this purpose, the
button is shown again.

Hmm.. Infinite cycle. Not cool.

The big issue here is that Selection.onSetFocus is called prior to
MovieClip.onPress. This basically means there's no way i can make changes to
the current selection before onSetFocus is called. With this in mind: How
the bloody hell is it possible to make changes to a selection with a button?
The more i kick this horse around, the more contrived the AS looks, and it's
becoming seriously demoralizing.

Any input is appreciated.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf 

Re: [Flashcoders] Delegate Help

2006-10-02 Thread Yehia Shouman

You have different ways to do that, Highlighted in red what I added to your
code in the 2 styles:

1) If you plan to do it clean, here it goes.

import mx.utils.Delegate;
private var xml:XML= new XML();
private function playFlv(file:String){
   trace(file);
}

private function getFLV(id:String):Void{
   xml= new XML();
   xml.onLoad = Delegate.create(this,this.handleLoad);
   xml.load(id);
}

private function handleLoad(ok)
{
if(ok){
//xml will be available now because you have declared it above as a class
//private variable.
var node:Array = xml.firstChild.childNodes;
   etc...
 playFLV("test");
 }
}


2) If you plan to not use that xml anywhere anymore, use this fast way, by
declaring a "ref" private variable inside the getFLV function scope which
points at the class.


private function playFlv(file:String){
   trace(file);
}

private function getFLV(id:String):Void{
   var xml:XML = new XML();
   var ref=this;
   xml.onLoad = function(ok){

   if(ok){
   var node:Array = xml.firstChild.childNodes;
   etc...

   ref.playFlv("test");
   }
   };

   xml.load(id);
}


Good luck with both ways
Yehia Shouman



On 10/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


i need to call playFlv() inside another function, but this ain't
working... and i have never used Delegate class or some other workaround


private function playFlv(file:String){
trace(file);
}

private function getFLV(id:String):Void{
var xml:XML = new XML();
xml.onLoad = function(ok){

if(ok){
var node:Array = xml.firstChild.childNodes;
etc...

playFlv("test");
}
};

xml.load(id);
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Delegate Help

2006-10-02 Thread [EMAIL PROTECTED]
i need to call playFlv() inside another function, but this ain't 
working... and i have never used Delegate class or some other workaround



private function playFlv(file:String){
   trace(file);
}

private function getFLV(id:String):Void{
   var xml:XML = new XML();
   xml.onLoad = function(ok){
  
   if(ok){
   var node:Array = xml.firstChild.childNodes;  
   etc...
   
   playFlv("test");

   }
   };
  
   xml.load(id);

}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Has anyone had any experience with Bit Components?

2006-10-02 Thread Jim Armstrong

Rich Rodecker wrote:

for skinnability, they are great.  there are some wierd issues you'll
encounter here and there, I would check over the products forums for some
examples. One such example is that I dont think you can change the 
animation
of the accordion pane.  The documentation is decent enough, I don't 
have any

issues with it.
agreed - very easy to skin.  Used them in four different projects.  Ran 
into a few issues in an e-commerce app., but nothing that could not be 
diagnosed and quickly worked around.



good luck!

- jim

--
Singularity >> Flash :: Flex :: Math :: www.2112fx.com/blog
TechNotes >> Computational Geometry :: www.2112fx.com/technotes.html


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Ridiculous problem

2006-10-02 Thread Scott Hyndman

I've hit a couple problems like this in the past, which are truly
unexplainable. They're player (or compilation) bugs, without a doubt.
My experience showed that moving this code to around can shows that
assignment succeeds.

You could also do this:

userInterface.attachMovie("textForwarderMC","textForwarderClip",TEXTFORWARDERDEPTH);
textForwarder = userInterface.textForwarderMC;

It's a hack, but hey...if it works, right?

Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Has anyone had any experience with Bit Components?

2006-10-02 Thread Rich Rodecker

for skinnability, they are great.  there are some wierd issues you'll
encounter here and there, I would check over the products forums for some
examples. One such example is that I dont think you can change the animation
of the accordion pane.  The documentation is decent enough, I don't have any
issues with it.

On 10/2/06, Rudi Yardley <[EMAIL PROTECTED]> wrote:


I'm looking to build a media delivery application and am looking for
some basic ultra skinnable lightweight components to use for it. I have
been looking around a bit and was wondering if anyone has had experience
with Bit Components and if so how have they found their implementation?
Basically I am looking for something that can replace v2 components and
be skinned at run time (ie click a button and you have a red component
set, click another for a blue component set etc). I am hoping these
components are shipped as compiled components with source code for
extensibility. I am also hoping there is some decent documentation
available for them. It has also crossed my mind that I may need to add
animation to some of the components that fail to animate such as the
accordion.

Any thoughts?

Rudi

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Has anyone had any experience with Bit Components?

2006-10-02 Thread Rudi Yardley
I'm looking to build a media delivery application and am looking for
some basic ultra skinnable lightweight components to use for it. I have
been looking around a bit and was wondering if anyone has had experience
with Bit Components and if so how have they found their implementation?
Basically I am looking for something that can replace v2 components and
be skinned at run time (ie click a button and you have a red component
set, click another for a blue component set etc). I am hoping these
components are shipped as compiled components with source code for
extensibility. I am also hoping there is some decent documentation
available for them. It has also crossed my mind that I may need to add
animation to some of the components that fail to animate such as the
accordion. 

Any thoughts?

Rudi

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:Repurpose flex to flash

2006-10-02 Thread Marcelo de Moraes Serpa

Well, it's perfectly possible to do it on Flash 8<, only the speed (both
rendering and processing) would be slower I think (this is indeed an
amazingly fast demo)

On 10/2/06, Kevin Newman <[EMAIL PROTECTED]> wrote:


I'm don't have the tiny details to answer your question, but I do know
that the YahooMaps Flash component was built in Flex, even though it's
intended to be used in Flash (they have both a Flex and Flash version,
both built in Flex). So it must be possible.

Kevin N.


[EMAIL PROTECTED] wrote:
> Saw a fantastic Flex demo recently
>
> http://demo.quietlyscheming.com/fisheye/index.html
>
> Seems counterproductive but my question is there anyway to leverage the
code from a Flex only app to Flash?
>
> Jim Bachalo
>
>
>
>
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> 
> "...all improvisation is life in search of a style."
>  - Bruce Mau,'LifeStyle'
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:Repurpose flex to flash

2006-10-02 Thread Kevin Newman
I'm don't have the tiny details to answer your question, but I do know 
that the YahooMaps Flash component was built in Flex, even though it's 
intended to be used in Flash (they have both a Flex and Flash version, 
both built in Flex). So it must be possible.


Kevin N.


[EMAIL PROTECTED] wrote:

Saw a fantastic Flex demo recently

http://demo.quietlyscheming.com/fisheye/index.html

Seems counterproductive but my question is there anyway to leverage the code 
from a Flex only app to Flash?

Jim Bachalo




[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] allowScriptAccess

2006-10-02 Thread Steven Sacks | BLITZ
> Just waisted 3 hours of my time trying to debug my JS/Flash
application.

Here's a general debugging tip that I hope will save you time and
frustration in the future.

One of the best things you can do when a part of your application isn't
working, and it isn't readily apparent why, is create a brand new file
and make a simple test that does the single action that is failing in
your main file. 

If it fails, you can debug it much easier in the simple test since the
number of possibilities are greatly reduced, and implement the fix in
the main file after. 

If it succeeds, then you have a good clue that it's something else and
you can either slowly add pieces to your simple test until it fails or
begin looking elsewhere in your main file.

HTH,
Steven

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Disabling Nested MCs?

2006-10-02 Thread Rich Rodecker

just add the map._visible = false part to after the tween ends.  If you're
using the built in Tween class there is an onMotionFinished event handler
you can use on the tween, and pretty much most of the other tweening engines
have something comparable.

On 10/2/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:


Hi Jake,

Ahh, I so that's how you do it. I think the current way I have tweens
working won't allow be to easily do that, but when I start using Fuse
Kit it should be a doddle.

Thanks,

- Kevin

On 02/10/06, Jake Prime <[EMAIL PROTECTED]> wrote:
> Hi Kevin
>
> Try:
>
> map._visible = false;
>
> This will disable all buttons in map, and if the whole map is 0 alpha
> anyway will make no visible difference.
>
> Jake
>
> On 02/10/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have an interactive map with various clickable countries on it. At
> > certain times the map fades out to alpha = 0.
> >
> > When that happens the country movieclips are still clickable so I need
> > to disable them.
> >
> > I expected map.enabled = false; to do it, but it seems to have no
> > effect since the map movieclip itself has no actions.
> >
> > If there a way to disable the nested MCs without having to do it by
> > manually disabling them all? I don't want to reinvent the wheel if
> > there's a native way of doing it.
> >
> > Thanks,
> >
> > - Kevin
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Profanity - (to Lieven especially)

2006-10-02 Thread Michael Bedar

sad but true


On Oct 2, 2006, at 1:44 PM, Steven Sacks | BLITZ wrote:


Could we keep the language on this list down a tad?


Profanity filters used by corporations to keep tabs on their  
employees'
email communication are just as important as keeping track of what  
their
employees are talking about to ensure vital company secrets aren't  
being

let out.

In this post-Janet-Jackson-wardrobe-malfunction era, it's important to
remember that the morals and values police are everywhere and
corporations are extremely sensitive to public opinion.  If the people
reading Jason's emails (and make no mistake - there are people reading
his emails to make sure he's not releasing company secrets) find  
profane

words in his incoming emails, they may react like auto insurance
companies do when they punish you by raising your rates for getting  
hit
by some random person at absolutely no fault of your own, and fire  
him.


Jason might lose his fvcking job because of your shi++y language. Show
some respect you k0ksuckers and intentionally misspell or l33t 5p34k
your g0d d4mn swear words.  The thought police aren't very bright so
they won't be able to read them.

See?  Everybody wins!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Ridiculous problem

2006-10-02 Thread Michael Bedar
what type is  "textForwarder" declared as?  leave it untyped or set  
it to type MovieClip instead of type "TextForwarder"





On Oct 2, 2006, at 5:09 AM, Andreas Rønning wrote:

TextForwarder is a MovieClip extension. In its constructor it  
traces ("TF instanced");


textForwarder =
userInterface.attachMovie 
("textForwarderMC","textForwarderClip",TEXTFORWARDERDEPTH);


trace("TF: "+textForwarder);

output:
TF instanced
TF: undefined

Boy am i stumped. What would cause this? The class works admirably,  
except, of course, it apparently can't be referenced, because it's  
always undefined.


--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Profanity - (to Lieven especially)

2006-10-02 Thread Nick Weekes
If this was a forum, that would be a sticky for the n00bs.  Practical advice
with a sense of humour, you don't get that everyday...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: 02 October 2006 18:45
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Profanity - (to Lieven especially)

> Could we keep the language on this list down a tad?  

Profanity filters used by corporations to keep tabs on their employees'
email communication are just as important as keeping track of what their
employees are talking about to ensure vital company secrets aren't being let
out.

In this post-Janet-Jackson-wardrobe-malfunction era, it's important to
remember that the morals and values police are everywhere and corporations
are extremely sensitive to public opinion.  If the people reading Jason's
emails (and make no mistake - there are people reading his emails to make
sure he's not releasing company secrets) find profane words in his incoming
emails, they may react like auto insurance companies do when they punish you
by raising your rates for getting hit by some random person at absolutely no
fault of your own, and fire him.

Jason might lose his fvcking job because of your shi++y language. Show some
respect you k0ksuckers and intentionally misspell or l33t 5p34k your g0d
d4mn swear words.  The thought police aren't very bright so they won't be
able to read them.

See?  Everybody wins!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash webcam sites ...

2006-10-02 Thread greg h

Stephen,

Following are some sample sites.  Not Community sites or online chat.
Perhaps others can post examples of those?

Please post back regarding how you might use webcams in your Flash projects.

hth,

g

Flex Barcode Reader
http://renaun.com/blog/2006/05/17/33/

Grant Skinner Flash 8 experiments w/ webcam.  Note: several include links
for source code or weblog entries that provide further detail.  Others may
include video demos too.
http://incomplet.gskinner.com/index2.html#webcamfire
http://incomplet.gskinner.com/index2.html#snowcam
http://incomplet.gskinner.com/index2.html#camgoo
http://incomplet.gskinner.com/index2.html#savebmp
http://incomplet.gskinner.com/index2.html#vidpong
http://incomplet.gskinner.com/index2.html#mister
http://incomplet.gskinner.com/index2.html#camwriter
http://incomplet.gskinner.com/index2.html#camwriter2
http://incomplet.gskinner.com/index2.html#psychadelic
http://incomplet.gskinner.com/index2.html#dynamickeying
http://incomplet.gskinner.com/index2.html#drumkit
http://incomplet.gskinner.com/index2.html#motiondj


On 10/2/06, Stephen Ford <[EMAIL PROTECTED]> wrote:


I have recently purchased a webcam for my pc.

Does anyone know of any sites (flash or other) that currently incorpotate
webcams into their site.

Community sites / online chat / etc, I want to see how webcams are
currently being used on the net.

I saw one site a while back that used flash with webcams, but can't recall
the URL.

Cheers.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Projector Wrapper

2006-10-02 Thread Steven Sacks | BLITZ
> Would be interesting to compare with recently released Screenweaver HX
> (http://haxe.org/swhx).

...says one of the authors of Screenweaver HX.  Being a shill doesn't
work unless you use a different name.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Profanity - (to Lieven especially)

2006-10-02 Thread Steven Sacks | BLITZ
> Could we keep the language on this list down a tad?  

Profanity filters used by corporations to keep tabs on their employees'
email communication are just as important as keeping track of what their
employees are talking about to ensure vital company secrets aren't being
let out.

In this post-Janet-Jackson-wardrobe-malfunction era, it's important to
remember that the morals and values police are everywhere and
corporations are extremely sensitive to public opinion.  If the people
reading Jason's emails (and make no mistake - there are people reading
his emails to make sure he's not releasing company secrets) find profane
words in his incoming emails, they may react like auto insurance
companies do when they punish you by raising your rates for getting hit
by some random person at absolutely no fault of your own, and fire him.

Jason might lose his fvcking job because of your shi++y language. Show
some respect you k0ksuckers and intentionally misspell or l33t 5p34k
your g0d d4mn swear words.  The thought police aren't very bright so
they won't be able to read them.

See?  Everybody wins!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RE: PDF2SWF - or other means to convert bytestream PDF to SWF??

2006-10-02 Thread Ettwein, Josh

I hope they don't find out that the PDF is also stored in memory while
it's converting! Next they'll ask you to convert the file without it
ever actually going into RAM!

>>> Haha, that's about where I'm at with this project!

Seriously though, if it were me, I'd tell them it has to be in a temp
file and will be destroyed as soon as it's converted. If you can't
convince them, and you have a linux server, you might look into FIFOs
/ named pipes. Basically, what you do is something like:

>>> I've used named pipes plenty, but this is all .Net/winduhs on the 
>>> backend that will be handling the input/output of the pdf2swf cli.


>>> I'm gonna have to modify pdf2swf, it looks like...

Good luck!
-David R

By the way, using flashpaper in an automated server environment
violates the license agreement. Though if you are a small operation,
adobe may not bother to go after you.

>>> Did not know that - that's a good one to know. And no, this is for a
huge, 600+ screen app, it's not small by any stretch of the imagination,
so I would certainly be violating the lic agreement if I were to use it.
Thanks for the heads up.

Josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Setter Problem

2006-10-02 Thread Victor Gaudioso
Hey all, can anyone kindly tell me why my Setter function does not affect 
the trace in the Event Handler of my Class.  I have commented the two 
problem areas of the code.  Thanks very much in advance, Victor


CODE:


// ** AUTO-UI IMPORT STATEMENTS **
import com.acmewebworks.controls.BaseClip;
import mx.utils.Delegate;
import com.creativenetdesign.imageviewer.ImageViewer;
import mx.controls.Label;
import com.creativenetdesign.imageviewer.ControlPanel;
// ** END AUTO-UI IMPORT STATEMENTS **
class com.creativenetdesign.imageviewer.Main extends BaseClip{
// Constants:
public static var CLASS_REF = com.creativenetdesign.imageviewer.Main;
public static var LINKAGE_ID:String = 
"com.creativenetdesign.imageviewer.Main";

// Public Properties:
var imgViewerFrame:Number
// Private Properties:
// UI Elements:
// ** AUTO-UI ELEMENTS **
private var controlPanel:ControlPanel;
private var ImageViewer:ImageViewer;
private var labelTitle:Label;
// ** END AUTO-UI ELEMENTS **
// Initialization:
public function Main() {}
private function onLoad():Void { configUI(); }
// Public Methods:
// PROBLEM ***
// This is the setter function that is beling called from the FLA timeline:
// imv_mc.setImageViewerFrame = 3
public function set setImageViewerFrame(frame:Number):Void {
   imgViewerFrame = frame;
//this trace works fine
trace("setImageViewerFrame() is setting var imgViewerFrame to "+frame)
   }
// END PROBLEM ***
// Semi-Private Methods:
// Private Methods:
private function configUI():Void {
 trace("MAIN INIT")
 // init ImageViewer
 controlPanel.addEventListener("controlClick", Delegate.create(this, 
handleButtonClicked));

 }
 //
 // PROBLEM 
 // imgViewerFrame always traces out to UNDEFINED
 private function handleButtonClicked(obj:Object):Void {
 trace("MAIN HEARD "+obj.type+" FROM "+obj.target+" image viwer is on 
frame: "+imgViewerFrame);

 // END PROBLEM 
 var viewerOnFrame:Number = _level0.main.imageViewer_mc._currentframe
 //trace("VIEWER FRAME IS "+viewerOnFrame)
  if (obj.target == _level0.main.controlPanel.next_btn){
   if (viewerOnFrame == 1 ){
   _level0.main.imageViewer_mc.gotoAndStop(2)
  }else if (viewerOnFrame == 2){
   _level0.main.imageViewer_mc.gotoAndStop(3)
  }else if (viewerOnFrame == 3){
   _level0.main.imageViewer_mc.gotoAndStop(4)
  }
  else if (viewerOnFrame == 4){
   _level0.main.imageViewer_mc.gotoAndStop(5)
  }
  else if (viewerOnFrame == 5){
   _level0.main.imageViewer_mc.gotoAndStop(6)
  }
  else if (viewerOnFrame == 6){
   _level0.main.imageViewer_mc.gotoAndStop(1)
  }
 }
 //
 if (obj.target == _level0.main.controlPanel.prev_btn){
   if (viewerOnFrame == 1 ){
   _level0.main.imageViewer_mc.gotoAndStop(6)
  }else if (viewerOnFrame == 2){
   _level0.main.imageViewer_mc.gotoAndStop(1)
  }else if (viewerOnFrame == 3){
   _level0.main.imageViewer_mc.gotoAndStop(2)
  }
  else if (viewerOnFrame == 4){
   _level0.main.imageViewer_mc.gotoAndStop(3)
  }
  else if (viewerOnFrame == 5){
   _level0.main.imageViewer_mc.gotoAndStop(4)
  }
  else if (viewerOnFrame == 6){
   _level0.main.imageViewer_mc.gotoAndStop(5)
  }
 }
}

}
- Original Message - 
From: "Kevin Cannon" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, October 02, 2006 9:21 AM
Subject: Re: [Flashcoders] Disabling Nested MCs?



Hi Jake,

Ahh, I so that's how you do it. I think the current way I have tweens
working won't allow be to easily do that, but when I start using Fuse
Kit it should be a doddle.

Thanks,

- Kevin

On 02/10/06, Jake Prime <[EMAIL PROTECTED]> wrote:

Hi Kevin

Try:

map._visible = false;

This will disable all buttons in map, and if the whole map is 0 alpha
anyway will make no visible difference.

Jake

On 02/10/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an interactive map with various clickable countries on it. At
> certain times the map fades out to alpha = 0.
>
> When that happens the country movieclips are still clickable so I need
> to disable them.
>
> I expected map.enabled = false; to do it, but it seems to have no
> effect since the map movieclip itself has no actions.
>
> If there a way to disable the nested MCs without having to do it by
> manually disabling them all? I don't want to reinvent the wheel if
> there's a native way of doing it.
>
> Thanks,
>
> - Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http:

Re: [Flashcoders] Disabling Nested MCs?

2006-10-02 Thread Kevin Cannon

Hi Jake,

Ahh, I so that's how you do it. I think the current way I have tweens
working won't allow be to easily do that, but when I start using Fuse
Kit it should be a doddle.

Thanks,

- Kevin

On 02/10/06, Jake Prime <[EMAIL PROTECTED]> wrote:

Hi Kevin

Try:

map._visible = false;

This will disable all buttons in map, and if the whole map is 0 alpha
anyway will make no visible difference.

Jake

On 02/10/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an interactive map with various clickable countries on it. At
> certain times the map fades out to alpha = 0.
>
> When that happens the country movieclips are still clickable so I need
> to disable them.
>
> I expected map.enabled = false; to do it, but it seems to have no
> effect since the map movieclip itself has no actions.
>
> If there a way to disable the nested MCs without having to do it by
> manually disabling them all? I don't want to reinvent the wheel if
> there's a native way of doing it.
>
> Thanks,
>
> - Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Disabling Nested MCs?

2006-10-02 Thread Jake Prime

Hi Kevin

Try:

map._visible = false;

This will disable all buttons in map, and if the whole map is 0 alpha
anyway will make no visible difference.

Jake

On 02/10/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:

Hi,

I have an interactive map with various clickable countries on it. At
certain times the map fades out to alpha = 0.

When that happens the country movieclips are still clickable so I need
to disable them.

I expected map.enabled = false; to do it, but it seems to have no
effect since the map movieclip itself has no actions.

If there a way to disable the nested MCs without having to do it by
manually disabling them all? I don't want to reinvent the wheel if
there's a native way of doing it.

Thanks,

- Kevin

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Disabling Nested MCs?

2006-10-02 Thread Kevin Cannon

Hi,

I have an interactive map with various clickable countries on it. At
certain times the map fades out to alpha = 0.

When that happens the country movieclips are still clickable so I need
to disable them.

I expected map.enabled = false; to do it, but it seems to have no
effect since the map movieclip itself has no actions.

If there a way to disable the nested MCs without having to do it by
manually disabling them all? I don't want to reinvent the wheel if
there's a native way of doing it.

Thanks,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flashcom mailing list

2006-10-02 Thread greg h

Following was posted last week on the
blogover
at
flashcomguru.com:

September 27, 2006
Alternative Mailing List for Flashcom and Flash
Video

After I have been receiving many emails on a daily basis from people asking
me what has happened to chattyfig's flashcomm
listI want to
remind everyone about the existence of the Flash
Media List .

It's not as popular as chattyfig but around 200 people are signed up
already. You're welcome to
subscribeand ask
questions related to Flash Media Server, Flash Video and the like -
or simply have a chat and say hello.

I don't want to encourage anyone to leave chattyfig's flashcomm list but
maybe this list offers an alternative until figleaf can fix their database
problems , which
will hopefully be soon.

You can subscribe to the Flash Media
Listhere:
http://www.flashcomguru.com/flashmedialist/

** END BLOG POST **

fwiw, some members of the Flash Media Server team (Asa Whillock and Steve
Wolkoff) are now on the Flash Media
Listand have posted
there.

hth,

g

On 9/30/06, hank williams <[EMAIL PROTECTED]> wrote:


The last message on flashcomm was on august 25th. On sept 15th Dave
Watts said it was down until further notice.

The funny thing is that I didnt even notice until your post. Even
before august 25th volume was way down. Certainly from a developer
perspective, Flashcomm seems to be dying.

Regards,
Hank

On 9/30/06, Frederic v. Bochmann <[EMAIL PROTECTED]> wrote:
> Whats up with the Flashcom mailing list on figleaf ?
>
> When going to this page I get an error:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Reload MC

2006-10-02 Thread Marcelo de Moraes Serpa

What do you mean? By seeing your code, and your explanation, I don't really
get what you really want..

On 10/2/06, Bruno Mendoza <[EMAIL PROTECTED]> wrote:


Hi,

I'm learning actionscript programming laguage.

I've a MC containing three instance of a button (name:buttonX) and 3
instances of a MC(name:contentX).  When I click over one of this buttons
it takes to the frame X.

The problem appear when I click again over some of the buttons.  I don't
get the contentX reload.

The code is:

stop();
this.headerNavBar.boton1.onRelease = function() {
gotoAndStop(3);
};
this.headerNavBar.boton2.onRelease = function() {
gotoAndStop(4);
};
this.headerNavBar.boton3.onRelease = function() {
gotoAndStop(5);
trace(_currentframe);
};
this.headerNavBar.boton4.onRelease = function() {
gotoAndStop(6);
};


very easy, isn't it? xD

Grettings.

--


Bruno Jesus Mendoza Guedes_.-,
  .--'  '-._
Ingenieria Tecnica en Informatica de Gestion   _/`-  _  '.
Tlf (+34) 928 200 285 - (+34) 690 809 949 ''._`.. \
[EMAIL PROTECTED]  (quitar XXX)` \;
 ;_\

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Reload MC

2006-10-02 Thread Bruno Mendoza

Hi,

I'm learning actionscript programming laguage.

I've a MC containing three instance of a button (name:buttonX) and 3 
instances of a MC(name:contentX).  When I click over one of this buttons 
it takes to the frame X.


The problem appear when I click again over some of the buttons.  I don't 
get the contentX reload.


The code is:

stop();
this.headerNavBar.boton1.onRelease = function() {
   gotoAndStop(3);
};
this.headerNavBar.boton2.onRelease = function() {
   gotoAndStop(4);
};
this.headerNavBar.boton3.onRelease = function() {
   gotoAndStop(5);
   trace(_currentframe);
};
this.headerNavBar.boton4.onRelease = function() {
   gotoAndStop(6);
};


very easy, isn't it? xD

Grettings.

--


Bruno Jesus Mendoza Guedes_.-,
 .--'  '-._
Ingenieria Tecnica en Informatica de Gestion   _/`-  _  '.
Tlf (+34) 928 200 285 - (+34) 690 809 949 ''._`.. \
[EMAIL PROTECTED]  (quitar XXX)` \;
;_\

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Selection class makes me want to kick someone intheface

2006-10-02 Thread Muzak
If I'm getting this right, you're running into the annoying 'feature' of the 
FocusManager stealing focus when a 
TextArea/TextInput/ComboBox previously had focus. If that is the case and you 
want to get rid of it, use the following, preferably 
in the main timeline of you app

function onMouseDown():Void {
focusManager.enabled = false;
}
function onMouseUp():Void {
focusManager.enabled = true;
}

focusManager is a movieclip instance created by the v2 Component Framework. It 
lives in the root/main timeline.
So if you need to target it from within a class, use _root.focusManager

It's one of those exceptions where using _root is kewl (in my book) ;-)

Does that fix your problem?

regards,
Muzak

- Original Message - 
From: "Andreas Rønning" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Monday, October 02, 2006 1:41 PM
Subject: Re: [Flashcoders] Selection class makes me want to kick someone 
intheface


> All this stuff is true, but my problem isn't getting the selection, it is 
> *unselecting* it. As in setSelection(0,0);
> My problem is more related to not being able to control setSelection with an 
> onPress without having it borking on me.
>
> Right now i've "solved" it with a clearSelection method that runs an 80ms 
> interval before it calls setSelection(0,0); and it 
> works. It just seems like such a foolish solution :(
>
> - A


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Boolean variable

2006-10-02 Thread Merrill, Jason
>>I want the variable to be stored in a shared object. :)

You'll need a Flash file to store the shared object, and if you close
the browser window, there is no Flash file anymore, so I'm not sure how
you would accomplish this. I'm not sure you can capture the close
browser window event as it pretty much closes the browser window
immediately.  If you could, you could try capturing the browser close
with a Javascript function and I suppose maybe write a custom JS
function which communicates with a Flash file, which saves the SO, but
again, not sure how or if you can capture the browser close - and run a
script before the browser shuts down. You may be out of luck, but then,
I'm not a browser guru either. Perhaps someone else knows more about the
IE DOM and can chime in.  Maybe also check Microsoft (or whatever
browser you are targeting) and JS resources.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Batista Mihai
>>Sent: Friday, September 29, 2006 5:38 PM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: [Flashcoders] Boolean variable
>>
>>I want the variable to be stored in a shared object. :)
>>
>>
>>-
>>How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call
rates.
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] btn action function with params

2006-10-02 Thread Merrill, Jason
>>Put simply, I just wanted to be able to call a function from a button
action
>>in one line of code without having to add a new "function()" action
after
>>the button.

That's called an anonymous function, which it sounds like you don't
want.  So then, you can do this:

function myFunction(){
}

myBtn.onRelease = myFunction

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Selection class makes me want to kick someone in theface

2006-10-02 Thread Andreas Rønning

All this stuff is true, but my problem isn't getting the selection, it is 
*unselecting* it. As in setSelection(0,0);
My problem is more related to not being able to control setSelection with an 
onPress without having it borking on me.

Right now i've "solved" it with a clearSelection method that runs an 80ms 
interval before it calls setSelection(0,0); and it works. It just seems like such a 
foolish solution :(

- A

Giles Taylor wrote:

Hi Andreas,
I've got round this in the past by getting the selection when it is made rather 
than when the button is pushed.
Something like (you may need to fiddle with the scopes):

richText_txt.onMouseDown = function(){
if((this._parent._xmouse > this._x) && (this._parent._xmouse < (this._x + this._width)) 
&& (this._parent._ymouse > this._y) && (this._parent._ymouse < (this._y + this._height))){
ref.selecting = true;
}
};

richText_txt.onMouseUp = function(){
if(ref.selecting == true){
//Store the selection info at this point!!!
}
ref.selecting = false;
};

Hope that helps,
Giles

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning
Sent: 02 October 2006 12:13
To: Flashcoders mailing list
Subject: [Flashcoders] Selection class makes me want to kick someone in theface

...which is, i gather, somewhat of a general consensus.

I'm working on a tablet pc application that requires the user to be able to 
select text and transfer this text to other parts of the application.
The ideal way is as such:

1. The user makes a selection from *any selectable text field* 2. A button 
appears near the selected text 3. The user taps the button 4. The selected text 
is copied to a buffer 5. The selection is cleared 6. An event is broadcast

Now my problem is, this is what happens:

1. The user makes a selection
2. A button appears near the selected text 3. The user taps the button 4. The text field 
loses focus, launching Selection.onSetFocus, which checks if the current selection, now 
"null", is an editable textfield. Naturally, null is not, so the button becomes 
hidden.
5. The user releases the now invisible button 6. Selection.onSetFocus gathers that the 
new selection is "null", and uh, returns focus to the text field, which retains 
its selection.
7. Now that the textfield, which is "valid" in terms of this purpose, the 
button is shown again.

Hmm.. Infinite cycle. Not cool.

The big issue here is that Selection.onSetFocus is called prior to 
MovieClip.onPress. This basically means there's no way i can make changes to 
the current selection before onSetFocus is called. With this in mind: How the 
bloody hell is it possible to make changes to a selection with a button?
The more i kick this horse around, the more contrived the AS looks, and it's 
becoming seriously demoralizing.

Any input is appreciated.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Selection class makes me want to kick someone in theface

2006-10-02 Thread Giles Taylor
Hi Andreas,
I've got round this in the past by getting the selection when it is made rather 
than when the button is pushed.
Something like (you may need to fiddle with the scopes):

richText_txt.onMouseDown = function(){
if((this._parent._xmouse > this._x) && (this._parent._xmouse < (this._x 
+ this._width)) && (this._parent._ymouse > this._y) && (this._parent._ymouse < 
(this._y + this._height))){
ref.selecting = true;
}
};

richText_txt.onMouseUp = function(){
if(ref.selecting == true){
//Store the selection info at this point!!!
}
ref.selecting = false;
};

Hope that helps,
Giles

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning
Sent: 02 October 2006 12:13
To: Flashcoders mailing list
Subject: [Flashcoders] Selection class makes me want to kick someone in theface

...which is, i gather, somewhat of a general consensus.

I'm working on a tablet pc application that requires the user to be able to 
select text and transfer this text to other parts of the application.
The ideal way is as such:

1. The user makes a selection from *any selectable text field* 2. A button 
appears near the selected text 3. The user taps the button 4. The selected text 
is copied to a buffer 5. The selection is cleared 6. An event is broadcast

Now my problem is, this is what happens:

1. The user makes a selection
2. A button appears near the selected text 3. The user taps the button 4. The 
text field loses focus, launching Selection.onSetFocus, which checks if the 
current selection, now "null", is an editable textfield. Naturally, null is 
not, so the button becomes hidden.
5. The user releases the now invisible button 6. Selection.onSetFocus gathers 
that the new selection is "null", and uh, returns focus to the text field, 
which retains its selection.
7. Now that the textfield, which is "valid" in terms of this purpose, the 
button is shown again.

Hmm.. Infinite cycle. Not cool.

The big issue here is that Selection.onSetFocus is called prior to 
MovieClip.onPress. This basically means there's no way i can make changes to 
the current selection before onSetFocus is called. With this in mind: How the 
bloody hell is it possible to make changes to a selection with a button?
The more i kick this horse around, the more contrived the AS looks, and it's 
becoming seriously demoralizing.

Any input is appreciated.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Selection class makes me want to kick someone in the face

2006-10-02 Thread Adrian Ionut Beschea


I don't know if I understood your problem but here's a thought. 
The setFocus event gives you oldFocus and newFocus as argument.
If oldfocus is you button, you can code around it in your setfocus handler. 





Andreas Rønning <[EMAIL PROTECTED]> wrote: ...which is, i gather, somewhat of a 
general consensus.

I'm working on a tablet pc application that requires the user to be able to 
select text and transfer this text to other parts of the application.
The ideal way is as such:

1. The user makes a selection from *any selectable text field*
2. A button appears near the selected text
3. The user taps the button
4. The selected text is copied to a buffer
5. The selection is cleared
6. An event is broadcast

Now my problem is, this is what happens:

1. The user makes a selection
2. A button appears near the selected text
3. The user taps the button
4. The text field loses focus, launching Selection.onSetFocus, which checks if 
the current selection, now "null", is an editable textfield. Naturally,
null is not, so the button becomes hidden.
5. The user releases the now invisible button
6. Selection.onSetFocus gathers that the new selection is "null", and uh, 
returns focus to the text field, which retains its selection.
7. Now that the textfield, which is "valid" in terms of this purpose, the 
button is shown again.

Hmm.. Infinite cycle. Not cool.

The big issue here is that Selection.onSetFocus is called prior to 
MovieClip.onPress. This basically means there's no way i can make changes to 
the current selection
before onSetFocus is called. With this in mind: How the bloody hell is it 
possible to make changes to a selection with a button?
The more i kick this horse around, the more contrived the AS looks, and it's 
becoming seriously demoralizing.

Any input is appreciated.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



-
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Selection class makes me want to kick someone in the face

2006-10-02 Thread Mike Cobb

-

You could use onSetFocus to update a variable with the 'lastFocused'. 
This could then be used in your button code.





Andreas Rønning wrote:

...which is, i gather, somewhat of a general consensus.

I'm working on a tablet pc application that requires the user to be able 
to select text and transfer this text to other parts of the application.

The ideal way is as such:

1. The user makes a selection from *any selectable text field*
2. A button appears near the selected text
3. The user taps the button
4. The selected text is copied to a buffer
5. The selection is cleared
6. An event is broadcast

Now my problem is, this is what happens:

1. The user makes a selection
2. A button appears near the selected text
3. The user taps the button
4. The text field loses focus, launching Selection.onSetFocus, which 
checks if the current selection, now "null", is an editable textfield. 
Naturally,

null is not, so the button becomes hidden.
5. The user releases the now invisible button
6. Selection.onSetFocus gathers that the new selection is "null", and 
uh, returns focus to the text field, which retains its selection.
7. Now that the textfield, which is "valid" in terms of this purpose, 
the button is shown again.


Hmm.. Infinite cycle. Not cool.

The big issue here is that Selection.onSetFocus is called prior to 
MovieClip.onPress. This basically means there's no way i can make 
changes to the current selection
before onSetFocus is called. With this in mind: How the bloody hell is 
it possible to make changes to a selection with a button?
The more i kick this horse around, the more contrived the AS looks, and 
it's becoming seriously demoralizing.


Any input is appreciated.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. Thanks.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Selection class makes me want to kick someone in the face

2006-10-02 Thread Andreas Rønning

...which is, i gather, somewhat of a general consensus.

I'm working on a tablet pc application that requires the user to be able to 
select text and transfer this text to other parts of the application.
The ideal way is as such:

1. The user makes a selection from *any selectable text field*
2. A button appears near the selected text
3. The user taps the button
4. The selected text is copied to a buffer
5. The selection is cleared
6. An event is broadcast

Now my problem is, this is what happens:

1. The user makes a selection
2. A button appears near the selected text
3. The user taps the button
4. The text field loses focus, launching Selection.onSetFocus, which checks if the 
current selection, now "null", is an editable textfield. Naturally,
null is not, so the button becomes hidden.
5. The user releases the now invisible button
6. Selection.onSetFocus gathers that the new selection is "null", and uh, 
returns focus to the text field, which retains its selection.
7. Now that the textfield, which is "valid" in terms of this purpose, the 
button is shown again.

Hmm.. Infinite cycle. Not cool.

The big issue here is that Selection.onSetFocus is called prior to 
MovieClip.onPress. This basically means there's no way i can make changes to 
the current selection
before onSetFocus is called. With this in mind: How the bloody hell is it 
possible to make changes to a selection with a button?
The more i kick this horse around, the more contrived the AS looks, and it's 
becoming seriously demoralizing.

Any input is appreciated.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash webcam sites ...

2006-10-02 Thread Stephen Ford
I have recently purchased a webcam for my pc.
 
Does anyone know of any sites (flash or other) that currently incorpotate 
webcams into their site.
 
Community sites / online chat / etc, I want to see how webcams are currently 
being used on the net.
 
I saw one site a while back that used flash with webcams, but can't recall the 
URL.
 
Cheers.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] allowScriptAccess

2006-10-02 Thread Igor Volk

Just waisted 3 hours of my time trying to debug my JS/Flash application.
Flash simply refused to call any JavaScript defined in HTML at all. The
culprit turned out to be the new insane "security" features of Flash Player
that even its own creators got themselves confused about. allowScriptAccess
HTML parameter gets, by default, published from Flash IDE with "sameDomain"
value. In fact, as they say on Adobe site, it isn't a valid parameter at
all!!! The 2 valid values there are "always" and "never". Setting the value
to "always" obviously got it all working, still, Adobe, why by default
desable JS interations and also have your IDE write wrong HTML publishing
Flash?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Ridiculous problem

2006-10-02 Thread Andreas Rønning

It was cast before. No difference.

- A

Matthias Dittgen wrote:

Hello Andreas,

try with casting:

var textForwarder:ClassName =
ClassName(userInterface.attachMovie("textForwarderMC","textForwarderClip",TEXTFORWARDERDEPTH)); 



attachMovie has MovieClip as return type. You would like to cast to
your class which you call "(TextForwarder is a )MovieClip extension".
I use the syntax above, and it works perfectly for me. The only
difference is, that I use something like this:

var instanceName:ClassName =
ClassName(this.attachMovie(ClassName.SymbolName,"instanceName",this.getNextHighestDepth())); 



and my Class looks like this:

class ClassName extends MovieClip
{
public static var SymbolName:String = 
"__Packages.com.domain.ClassName";

public static var SymbolOwner:Function = ClassName;
public static var SymbolLinked = 
Object.registerClass(SymbolName,SymbolOwner);


// constructor
public function ClassName()
{
}
}

Have fun!
Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Ridiculous problem

2006-10-02 Thread Matthias Dittgen

Hello Andreas,

try with casting:

var textForwarder:ClassName =
ClassName(userInterface.attachMovie("textForwarderMC","textForwarderClip",TEXTFORWARDERDEPTH));

attachMovie has MovieClip as return type. You would like to cast to
your class which you call "(TextForwarder is a )MovieClip extension".
I use the syntax above, and it works perfectly for me. The only
difference is, that I use something like this:

var instanceName:ClassName =
ClassName(this.attachMovie(ClassName.SymbolName,"instanceName",this.getNextHighestDepth()));

and my Class looks like this:

class ClassName extends MovieClip
{
public static var SymbolName:String = "__Packages.com.domain.ClassName";
public static var SymbolOwner:Function = ClassName;
public static var SymbolLinked = 
Object.registerClass(SymbolName,SymbolOwner);

// constructor
public function ClassName()
{
}
}

Have fun!
Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Ridiculous problem "solution"

2006-10-02 Thread Andreas Rønning

var tempTF = userInterface.attachMovie(etc)
textForwarder = tempTF;

That solved it. But i'd really like to know why

- A

Andreas Rønning wrote:
TextForwarder is a MovieClip extension. In its constructor it traces 
("TF instanced");


textForwarder =
userInterface.attachMovie("textForwarderMC","textForwarderClip",TEXTFORWARDERDEPTH); 



trace("TF: "+textForwarder);

output:
TF instanced
TF: undefined

Boy am i stumped. What would cause this? The class works admirably, 
except, of course, it apparently can't be referenced, because it's 
always undefined.




--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Ridiculous problem

2006-10-02 Thread Andreas Rønning
TextForwarder is a MovieClip extension. In its constructor it traces 
("TF instanced");


textForwarder =
userInterface.attachMovie("textForwarderMC","textForwarderClip",TEXTFORWARDERDEPTH);

trace("TF: "+textForwarder);

output:
TF instanced
TF: undefined

Boy am i stumped. What would cause this? The class works admirably, 
except, of course, it apparently can't be referenced, because it's 
always undefined.


--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com