[flexcoders] Re: Error 1046 on custom component...

2008-04-13 Thread dougmccune
Double check the package structure and the package statements at the
top of the custom class. It sounds like maybe you grabbed the class
file from some other package structure, moved it to some other
structure, and forgot to change the package declaration at the top of
the file. When this happens the intellisense will automatically
generate a namespace, but it won't actually find the file.

Doug

--- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote:

 I copied a custom component changing its name, and a few other items. 
 In FB 2.01 the intellisense sees it just fine, it sees all of the 
 properties and methods just fine as well.
 
 When I compile the mxml that references it I get;
 
 1046: Type was not found or was not a compile-time constant: 
 ValidatedTextArea.
 
 where ValidatedTextArea is the component inserted with the help of 
 intellisense. I do have an xmlns tag that creates a namespace, or my 
 intellisense wouldn't work. I have tried many things, including 
 restarting the IDE computer, and cleaning the app.
 
 I would post some code, but I am not sure what is needed to 
 troubleshoot this problem. ValidatedTextArea extends TextArea, and 
 compiles with no problem. ValidatedTextArea's main purpose for living 
 is to use an extended TextInput component that I have created.
 
 As usual, it is late I am going to bed. All help is appreciated.
 
 Paul





[flexcoders] Re: Help Extending TabNavigator/ButtonBar

2007-02-08 Thread dougmccune
And I just posted my latest version of an extended TabNavigator with
the source.

http://dougmccune.com/blog/2007/02/07/quest-for-the-perfect-tabnavigator-part-3-with-source/

Doug

--- In flexcoders@yahoogroups.com, Jason Hawryluk [EMAIL PROTECTED] wrote:

 Bump...
 
 My version is now up with source for those that wish to have a look.
 

http://flexibleexperiments.wordpress.com/2007/02/05/flex-201-extending-the-t
 ab-navigator/
 
 Enjoy.
 
 Jason
 
 
   -Message d'origine-
   De : flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] la
 part de Doug McCune
   Envoyé : mardi 23 janvier 2007 09:45
   À : flexcoders@yahoogroups.com
   Objet : Re: [flexcoders] Help Extending TabNavigator/ButtonBar
 
 
   I know Jason said he's going to be releasing a new TabNavigator
component,
 but I couldn't resist trying my hand at it.
 
   Here's my enhanced TabNavigator:

http://dougmccune.com/blog/2007/01/23/the-quest-for-the-perfect-tabnavigator
 /
 
   It uses existing code for closeable and draggable tabs, and adds in
 functionality for scrolling tabs if there are too many, and also
displaying
 the drop-down list on the right side. No source code yet, but that
will come
 in another day or two after I clean it up a bit.
 
   Jason, I'll be interested to see how you approach it...
 
 
   Ciarán wrote:
 
 Thanks Jason, would be a great help. Just subscribed to the feed. =)
 
 -Ciarán
 
 On 1/22/07, Jason Hawryluk [EMAIL PROTECTED] wrote:
 
 
 
 
  I'm working on a blog post for something similar, but more
toward the
 way flex builder does it with a drop down at the end. Plus a bunch
of other
 goodies. ;)
 
 
 
  I may have it up this week, need to finish this current post
first,
 plus do some paying work. :)
 
 
 
  I'll also provide source.
 
 
 
  jason
 





[flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread dougmccune
You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug


--- In flexcoders@yahoogroups.com, Mike Anderson [EMAIL PROTECTED] wrote:

 Hello All,
 
 I have a problem, and maybe I am overlooking something here...
 
 What I need to do, is attach multiple functions, to an Event for a
 particular Component.
 
 Using inline MXML, this is easy - you just separate out each function,
 with a semi-colon and list them one after another.
 
 BUT, I am trying NOT to put my functions within the MXML - I am using
 Code-Behind, and I need to add my Event Listeners within the
 ActionScript - using the Object.addEventListener() method.
 
 Thing is, how do I add several functions using this type of methodology?
 Or can it even be done?
 
 Thanks in advance for any help you can offer regarding this,
 
 Mike





[flexcoders] Re: Returning 'this' from an overridden method?

2007-02-07 Thread dougmccune
Just from first glance I'd suggest not following the design pattern of
returning the object from the function like you're doing. It seems
like the only reason you're doing it is to make it so you can write a
bunch of statements all on one line. In terms of someone else reading
your code, I think it would make a lot more sense if they saw this:

camera.move(10, 12);
camera.rotateX(45);
camera.rotateY(90);

It turns 1 line into 3 lines, but I think it's far less confusing and
this follows the same design pattern that most other Actionscript
classes follow. Methods like move, rotate, etc are used often in
various classes and usually they do what they're supposed to do and
return void. In my experience I've never really seen an OOP class that
returns itself very much.

So that's not a direct answer to your question, merely a coding
suggestion.

Doug


--- In flexcoders@yahoogroups.com, David_Stafford
[EMAIL PROTECTED] wrote:

 Please pardon this simple-minded question from an AS3 novice.
 
 My base class often returns 'this' from methods which makes it 
 convenient to write code like:
 
   camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );
 
 The problem comes when code extends the base class and overrides one 
 of these functions.  The compiler insists, correctly, that the return 
 type of an overriding function must match the one in the base class.  
 What I want to do is return the 'this' object that is of the type of 
 the derived class.  Is this possible?
 
 The following is a contrived example to demonstrate.  It won't 
 compile because the overridden function in the derived class wants to 
 return a type of MyCamera rather than Camera:
 
 
 public class Camera
   {
   var x:int = 0;
   var y:int = 0;
 
   public function move( x:int, y:int ) :Camera
 {
 this.x += x;
 this.y += y;
 
 return( this );
 }  
   }
 
 public class MyCamera extends Camera
   {
   override public function move( x:int, y:int ) :MyCamera
 {
 super.move( x, y ); 
 
 if( x  0 )  x = 0;
 if( y  0 )  y = 0;
 
 return( this );
 } 
   }





[flexcoders] Re: Can drag-able content within a container, update it's Scrollbars?

2007-02-07 Thread dougmccune
If it's really a matter of scrolling a container that has scrollbars
by dragging the contents, I would use a mouselistener (as mike
suggested) that would update the verticalScrollPosition and
horizontalScrollPosition of the parent container. You wouldn't
actually be moving the inner stuff at all. You would sort of be
faking the dragging.

Why do it like this? 1. dragging too far one way or the other wouldn't
drag the inner components out of the viewable area, 2. if you actually
wanted to use the scrollbars as well then they would still work (and
they would update correctly as you're dragging)

Just my two cents.

Doug


--- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote:

 I think i need to respectfully disagree on this.  For the type of
panning 
 of elements within a container, i think startDrag and stopDrag
should suit 
 his needs nicely.
 
 At 06:04 AM 2/4/2007, Michael Schmalle wrote:
 
 Hi Mike
 
 Check out the http://Panel.asPanel.as class for the standard way of 
 dragging things in Flex. Don't use startDrag() and stopDrag().
 
 You will see addEventListener() to the systemManager and stage. in the 
 sm.MOUSE_MOVE is where your actual instance logic goes.
 
 As far as your scroll bars question;
 
 Put the SWFLoader in a canvas and you should get the desired effect
as you 
 pan.
 
 but... as I think about this more, there is something missing. Let
me know 
 what this info does for you.
 
 Peace, Mike
 
 On 2/4/07, Mike Anderson mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:
 
 Hello All,
 
 I have a Box Component, that contains a SWFLoader.
 
 When the SWFLoader's Content grows beyond the bounds of the Box
 Container, I have the Scrollbars automatically appear.
 
 This particular content that the SWFLoader houses, is always going
to be
 a Map. Obviously, when viewing Maps, Panning and Zooming are
 commonplace - and I want to provide the users the ability to drag the
 Map Content around within the Box Component.
 
 Since I come from the Flash World, startDrag() and stopDrag() are very
 familiar commands to me, and of course those were the first Methods
that
 came to mind, when making my Maps drag-able within my Flex App.
 
 Is startDrag() and stopDrag() still the preferred methods of moving
 content around on the screen, when it comes to Flex Apps?
 
 Now, I know there is the DragManager.as Class that comes bundled with
 Flex - but isn't that more for the purpose of Dragging one Component's
 Content, into another one? And then keeping track of any Data that
 should get sent along, whenever the Drop Event takes place?
 
 In this particular case, I just want to be able to Pan the Maps around.
 
 Will startDrag() and stopDrag() suffice in this instance?
 
 Also, is there a way where the Scrollbars on the Box Container, can
 sense the Content is being moved around, and to update the Scrollbar
 positions accordingly?
 
 How would I go about doing something like that?
 
 Thanks in advance, for any help you can offer.
 
 Mike
 
 
 
 
 --
 Teoti Graphix
 http://www.teotigraphix.comhttp://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.comhttp://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.
 
 
 Jeff Tapper
 Founding Partner
 Tapper, Nimer and Associates Inc.
 [EMAIL PROTECTED]
 (718) 576-1775





[flexcoders] Re: How can I test a UIComponent to see if it is user editable?

2007-02-06 Thread dougmccune
I don't think there's a good answer to this question. There's no way
to figure out via AS whether a component MIGHT dispatch a given event.

I did a search on livedocs to try to find all classes that dispatch a
change event. This only seems to include base classes, so subclasses
of any of these controls won't show up, so you'd hve to figure those
out. Also note that this doesn't mean that some classes might dispatch
other events that signify change that aren't specifically the same
change event. And these change events don't necessarily mean user
input either. All it means is that the component dispatches an event
called change.

Here's the livedocs search:
http://livedocs.macromedia.com/cfusion/search/index.cfm?loc=en_usterm=site%3Alivedocs.macromedia.com%2Fflex%2F201++%22change%3DNo+default%22action=Search

And here are the classes that come up:
mx.controls.RadioButtonGroup
mx.controls.sliderClasses.Slider (which means HSlider and VSlider as well)
mx.controls.ColorPicker
mx.containers.Accordion
mx.containers.ViewStack
mx.controls.DateChooser
mx.controls.NumericStepper
mx.controls.Button
mx.controls.DateField
mx.controls.PopUpMenuButton
mx.controls.ComboBox
mx.controls.TextInput 
mx.controls.TextArea
mx.controls.Tree
mx.controls.listClasses.ListBase (so that would mean all list controls
like List, TileList, DataGrid, etc)

So your best bet is probably to put together a more complete list of
each component you want to define as having user input and then just
check against that list using the is test as already mentioned. But
I think the basic answer to your question is no, there's no good way
to do this.

Doug



--- In flexcoders@yahoogroups.com, Ralf Bokelberg
[EMAIL PROTECTED] wrote:

 I guess the only way to do it reliable is to ask for the type.
 You can use if(  X instanceof Y)  for example
 
 Cheers,
 Ralf.
 
 On 2/6/07, gotgoose09 [EMAIL PROTECTED] wrote:
 
No one has done type checking like this before? If not, oh well. :)
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  gotgoose09 thegoosmans@ wrote:
  
   My current code now loops through the children of a container
and adds
   an event handler to each one to listen for a change event.
  
   However, I want to only add event handlers to UIComponents that have
   some sort of value that the user can change.
  
   Some examples of these components are: TextInput, ComboBox,
   RadioButton, CheckBox, ColorPicker, List, RichTextEditor, etc.
  
   My current code is something like this: (simplified)
  
   var component:UIComponent = container.getChildAt(i);
   if (component is Container)
   {
   // add event handlers to the container's children
   }
   else if (component is UIComponent  enabled in component)
   {
   // add an event handler to component
   }
  
   Unfortunately, this doesn't work for all the various input controls.
   e.g. The RichTextEditor is a Container, so the code tries adding
event
   handlers to it's children (I want an event handler on the actual
   RichTextEditor).
  
   Is there a reliable way of detecting a user editable control?
  
   Thanks in advance!
  
 
   
 
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35





[flexcoders] Re: Time Entry Component

2007-01-31 Thread dougmccune
Ohh, that's a fun component. Can you make one that ticks up the
seconds (like the bottom example) but also lets you change the time?
That seems the most like the Windows one. If you change the seconds it
just starts ticking from the new value you entered.

My other comment is to ask why setting the selection on am/pm seems to
bump the width a little. Clicking any of the other fields doesn't seem
to change the width of the component, but clicking am/pm bumps it out
a little. I don't know why, something about setting the selection on
the text field, or setting the min/max values on the NumericStepper?

Doug


--- In flexcoders@yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED]
wrote:

 Hi,
 
 So if it turns out that there is indeed a Time Entry control in
Flex, I end
 up looking like a doof... HOWEVER, I haven't seen anything remotely
 resembling a time entry similar to the Windows time... so
 
 http://www.stretchmedia.ca/code_examples/time_entry/TimeEntryTester.html
 
 Would love feedback, testing from the group, and then I'll go ahead
and post
 on Exchange.
 
 
 Brendan
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca





[flexcoders] Re: Convert ByteArray to Bitmap

2007-01-30 Thread dougmccune
If you're loading an image type supported by Flex (gif, jpeg, png,
swf) then you don't need to know anything about the image. You don't
need to know the width or height.

All you do is use Loader.loadBytes(byteArray). This would load the
image exactly the same as if you loaded from a URL.

Doug


--- In flexcoders@yahoogroups.com, dario.drome [EMAIL PROTECTED] wrote:

 I agree with Franto friend: You need to know something about the 
 bytearray you are receiving, i.e. format, disposition, etc.
 Most of image formats have a kind of header where you could find its 
 width, height and so on.
 Once you know the dimensions and the format, you would need to use 
 the apropriate decoder to transform the bytearray in pixels of a Flex 
 Bitmapdata object.
 
 --- In flexcoders@yahoogroups.com, franto kormanak@ wrote:
 
  if you dont know what is it ByteArray how you want todisplayit :)
  you have to know at least 1 parameter, width or height...
  
  thats my opinion
  Franto
  
  On 1/26/07, Steve Cox scox@ wrote:
  
  All,
  
  
  
   I'm retrieving an image via remoting as a ByteArray. How can I 
 convert
   this to a Bitmap without knowing the width/height of the image? 
 I've seen
   SetPixels – but that requires me knowing the dimensions of an 
 image – which
   I don't.
  
  
  
   Any ideas?
  

  
  
  
  
  -- 
  
 --
 ---
  Franto
  
  http://blog.franto.com
  http://www.flashcoders.sk
 





[flexcoders] Re: Loader.load(URLRequest) - ByteArray ?

2007-01-28 Thread dougmccune
Use a URLLoader, which gives you the ByteArray as the data property
after it has been loaded.

Doug

--- In flexcoders@yahoogroups.com, Andrew D. Goodfellow
[EMAIL PROTECTED] wrote:

 I feel like I must be missing something. I have a Loader object that
I am
 loading image data to, sometimes as a URLRequest and sometimes as a
 ByteArray. It depends on if I am getting the data from an upload or
from the
 database.
 
 How do I go about getting a ByteArray back out of the Loader object?
I have
 seen many posts on Loader and ByteArray, but I don't see a solution,
unless
 I am missing something obvious... Anyone?
 
 -Andy





[flexcoders] Re: New Component Released - Animated Gif Loader

2007-01-19 Thread dougmccune
Brendan- The example at the end of this post is for you :)

http://dougmccune.com/blog/2007/01/19/how-to-load-animated-gifs-using-adobe-flex-20/

--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

  Sorry, but I've gotta ask but what the heck are people still using
 animated GIFs for?
 
 That statement sucks. You know there are people that still have 56k
and no
 cell phones to.
 
 Know anything about accessibility?
 
 Doug 
 
 Hey man, you did it, they didn't. You learned it and they didn't.
It's all
 your gain. It's like getting made fun of for reading the dictionary
which by
 the way I have. ;-)
 
 Peace, Mike
 
 On 1/19/07, Doug McCune [EMAIL PROTECTED] wrote:
 
 oh, I know, I know. That rotating earth is what comes up in the
  wikipedia article for animated gif. I just saw a few people ask
about it
  and then decided it would be a fun challenge. So now I have the
incredibly
  useful knowledge about the byte order or an animated gif file.
 
 
 
  Brendan Meutzner wrote:
 
   Sorry, but I've gotta ask but what the heck are people still using
  animated GIFs for?  I kinda thought it was so yesterday...?  You
know, the
  waving flag, the (sorry Doug... I saw your demo) rotating earth,
etc...
 
  Brendan
 
 
 
   On 1/18/07, JesterXL [EMAIL PROTECTED] wrote:
  
 I musta read like 3 C classes that convert GIF's to SWF's only to
   realize I'd have to take years to learn C JUST to get Flash
Player to
   support this in converting the C to AS3... and now you've coded it,
   HOT!!!
  
  
On Jan 18, 2007, at 5:20 PM, dougmccune wrote:
  
 [I apologize if this is a double post, had a timeout when I first
   tried posting.]
  
   I just released a new commercial component for Flex that loads and
   plays animated GIFs. This has been brought up a few times here on
   flexcoders and flexcomponents. Now there's no need to hack together
   some weird IFrame solution, or figure out how to do the server-side
   conversion of all your GIFs. You can try the demo version for
free and
   the commercial version is $50.
  
   Here's the description I posted on Flex Exchange:
  
   The AnimatedGifLoader loads and plays animated GIF files. This
   component adds support for animated GIFs, a feature that has been
   lacking from Flex.
  
   This works just like the SWFLoader component from the Flex
Framework.
   Use it inline in your MXML code or by using Actionscript. This
   component supports everything the SWFLoader component does, with
a few
   additions.
  
   New methods: play(), pause()
   New properties: autoPlay, playing, currentFrame, delay
  
   Test it out with your own animated GIFs to see how it works by
   clicking on the sample URL.
  
   I've written up the full details on my blog. There are some examples
   and you can even test out any GIF you want by uploading it and
seeing
   it loaded by the component instantly:
   http://dougmccune.com/blog/
2007/01/17/animatedgifloader/http://dougmccune.com/blog/2007/01/17/animatedgifloader/
  
   Here's the Flex Exchange posting:
   http://www.adobe.com/cfusion/ exchange/index.cfm?view=sn610#
view=sn611
   viewName=Flex%20Extension loc=en_usauthorid=61303741
page=0scrollPos
   =0subcatid=0snid=sn611 itemnumber=0extid=1103970
catid=0http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610#view=sn611viewName=Flex%20Extensionloc=en_usauthorid=61303741page=0scrollPos=0subcatid=0snid=sn611itemnumber=0extid=1103970catid=0
  
   Feedback is always appreciated!
  
   Thanks,
   Doug McCune
  
  
  
 
   
 
 
 
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] New Component Released - Animated Gif Loader

2007-01-18 Thread dougmccune
[I apologize if this is a double post, had a timeout when I first
tried posting.]

I just released a new commercial component for Flex that loads and
plays animated GIFs. This has been brought up a few times here on
flexcoders and flexcomponents. Now there's no need to hack together
some weird IFrame solution, or figure out how to do the server-side
conversion of all your GIFs. You can try the demo version for free and
the commercial version is $50. 

Here's the description I posted on Flex Exchange:

The AnimatedGifLoader loads and plays animated GIF files. This
component adds support for animated GIFs, a feature that has been
lacking from Flex.

This works just like the SWFLoader component from the Flex Framework.
Use it inline in your MXML code or by using Actionscript. This
component supports everything the SWFLoader component does, with a few
additions.

New methods: play(), pause()
New properties: autoPlay, playing, currentFrame, delay

Test it out with your own animated GIFs to see how it works by
clicking on the sample URL.

I've written up the full details on my blog. There are some examples
and you can even test out any GIF you want by uploading it and seeing
it loaded by the component instantly:
http://dougmccune.com/blog/2007/01/17/animatedgifloader/

Here's the Flex Exchange posting:
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610#view=sn611viewName=Flex%20Extensionloc=en_usauthorid=61303741page=0scrollPos=0subcatid=0snid=sn611itemnumber=0extid=1103970catid=0

Feedback is always appreciated! 

Thanks,
Doug McCune



[flexcoders] Casting a variable - Best Practice?

2007-01-11 Thread dougmccune
Quick question (I know both work, just wondering what people do in
practice):

Option A: var castVar:Type = uncastVar as Type;

OR

Option B: var castVar:Type = Type(uncastVar);

I've been going with using option A (with as) mainly because calling
Array(uncastVar) or ArrayCollection(uncastVar) does not cast to Array
or ArrayCollection, but instead instantiates new Arrays, which is
confusing. So instead of trying to remember to do most of my casting
using Type(variable) unless I'm trying to cast to Array, I figured it
was easier to just always use as. 

Also, is there a specific reason for the choice to not allow
Array(var) to simply cast to an array? It seems a little odd that
casting that works for every other datatype doesn't for one or two.



[flexcoders] Re: SEO Compatibility

2006-12-14 Thread dougmccune
I just wanted to pipe up with my opinion on this matter, because it
comes up a lot and the answers are always similar. And I get a little
frustrated because it seems like Adobe tries to say this isn't a
problem when it really is.

To reiterate this scenario: Someone asks Why isn't Flex content
searchable by Google? Or how can I make it searchable by Google? and
then someone invariably responds Of course you can get your Flex (or
Flash) stuff indexed by Google! Google indexes SWFs and also here's a
bunch of roundabout ways to add textual content into the HTML wrapper,
etc, etc.

While I know Adobe employees don't like to admit this, the answer is
very simple: It is often impossible, and if not impossible then at
least extremely difficult, to get your Flex content indexed by search
engines. That's the straight answer. No more no less.

If I make a dynamic app using ASP, PHP, Coldfusion, or whatever that
outputs HTML, Google will index all the dynamic content because it
follows query-string links (or if you use mod_rewrite or whatever). So
if I have a full message board written like this then Google will
index all the content. The only way to get the same thing to happen
with a Flex app is to develop an alternative, non-Flex interface to
output the message board contents. Basically you have to make a PHP or
ASP version of your app as well as the Flex version.

I find any attempt by Adobe to pretend like this isn't a huge problem
very frustrating. EBay, Amazon, MySpace, YouTube, digg, you name any
large website and you can be guaranteed that they will not be using
Flex for the Web frontend for customers. They might use it for tons of
internal business apps (ebay) or for something that can remain
completely unindexed by Google (Yahoo Maps) or for media content
(YouTube), but they will never use Flex or Flash (as it currently is)
for the real frontend user interfaces. 

Sorry for going on a bit of a rant. But just once I'd like to see an
answer from an Adobe employee saying Yup, this is a real problem.
What you really want to do, for all practical purposes, is nearly
impossible with Flex. We're trying to work on it but for now you're
SOL. Because that's the real answer.



--- In flexcoders@yahoogroups.com, John Dowdell [EMAIL PROTECTED] wrote:

 sanjaypmg wrote:
  Is Flex SEO Compatible?
  If yes, How can I my flex application SEC compatible? so that it can 
  be easily available for search engines available.
 
 Work in Adobe Flex produces SWF files. Text within SWF files can be 
 found and used by the search engines (contrary to widespread myth).
Example:
 http://www.google.com/search?q=%22contrary+evidence%22+filetype%3Aswf
 
 If your content includes material fed in via database, then the search 
 engine would not usually see that you use those words.
 
 As with all SEO tasks, you'd first figure what search terms you have a 
 chance to compete on (eg, you will never appear on the first page of 
 results for search terms like buy flowers online). Then set up your 
 HTML hosting page with TITLE, URL, metadata and reinforcement of the 
 targeted text terms. Then make sure you get plenty of inbound links
from 
 authoritative sources, preferably with your targeted search terms as 
 anchor text.
 
 jd
 
 
 
 
 
 
 
 -- 
 John Dowdell . Adobe Developer Support . San Francisco CA USA
 Weblog: http://weblogs.macromedia.com/jd
 Aggregator: http://weblogs.macromedia.com/mxna
 Technotes: http://www.macromedia.com/support/
 Spam killed my private email -- public record is best, thanks.





[flexcoders] Re: not draggable TitleWindow

2006-11-30 Thread dougmccune
Someone else posted this same question to the list a while ago, I
extended TitleWindow to create an undraggable version. It's a pretty
simple extension, I went with intercepting the mousedown event on the
titleBar. Not sure if I had a reason for doing that instead of
overriding the startDragging method as already suggested.

But anyway, here's my code (or if it's hard to read in the email you
can go here:
http://dougmccune.com/PanelTest/bin/srcview/source/com/dougmccune/containers/UndraggableTitleWindow.as.html)

package com.dougmccune.containers
{
import flash.events.MouseEvent;
import mx.containers.TitleWindow;
import mx.controls.Button;

public class UndraggableTitleWindow extends mx.containers.TitleWindow
{


override protected function createChildren():void
{
super.createChildren();

titleBar.addEventListener(MouseEvent.MOUSE_DOWN,
stopEvent, false, 1);
}

private function stopEvent(event:MouseEvent):void {

if (event.target is Button) {
super.dispatchEvent(event);
return;
}

event.stopImmediatePropagation();
}
}
}


--Doug


--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Hi,
 
 Without getting into the mx_internal namespace, this is an option;
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow
 xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 width=400 height=300
 
 mx:Script
 ![CDATA[
 
 private var _draggable:Boolean = false;
 
 /**
  * Determines if the title window is draggable.
  */
 public function get draggable():Boolean
 {
 return _draggable;
 }
 
 /**
  * Determines if the title window is draggable.
  */
 public function set draggable(value:Boolean):void
 {
 _draggable = value;
 }
 
 /**
  * Override the dragging method to block drag.
  */
 override protected function
startDragging(event:MouseEvent):void
 {
 if (_draggable)
 {
 super.startDragging(event);
 }
 }
 
 ]]
 /mx:Script
 
 /mx:TitleWindow
 
 
 Other than the above for a custom mxml component, this is about the
best you
 can get becasue the titleBar property is protected.
 
 Peace, Mike
 
 On 11/30/06, Roman Protsiuk [EMAIL PROTECTED] wrote:
 
Hi, everyone.
 
  I guess there is some way to make TitleWindow not draggable, isn't
there?
  Tried
  titleBar.mouseEnabled = false;
  that didn't help.
 
  Any ideas?
 
  Thanks,
  R.
   
 
 
 
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread dougmccune
try:

public function removeMe(event:CloseEvent):void {
   var window:TitleWindow = TitleWindow(event.currentTarget);
   PopUpManager.removePopUp(window);
}

--- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED]
wrote:

 When I try this.
 
 public function removeMe(event:CloseEvent):void {
   PopUpManager.removePopUp(event.currentTarget);
 }
 
 I get this error. 
 1118: Implicit coercion of a value with static type Object to a
 possibly unrelated type mx.core:IFlexDisplayObject.   
 
 
 
 --- In flexcoders@yahoogroups.com, dougmccune dmccune@ wrote:
 
  How about:
  
  public function removeMe(event:CloseEvent){
PopUpManager.removePopUp(event.currentTarget);
  }
   
  
  --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanList@
  wrote:
  
   I have tried using that, and it gives me a big goose egg.
   
   This is the updated code.
   
   
   
   public function createWindow(wTitle:String, wX:Number, wY:Number,
   wWidth:Number, wHeight:Number):void {
title = new TitleWindow();
title.name = wTitle;
title.id = wTitle;
title.title = wTitle;
title.x = wX;
title.y = wY;
title.visible = true;
title.showCloseButton = true;
title.addEventListener(CloseEvent.CLOSE, removeMe);
   
windowArray.push(title);
PopUpManager.addPopUp(title, mainCanvas);
addStates(wX, wY, wWidth, wHeight);
   }
   
   public function removeMe(event:CloseEvent){
PopUpManager.removePopUp(this)
   }
   
   
   
   
   
   
   
   
   
   --- In flexcoders@yahoogroups.com, Dustin Mercer dustin.mercer@
   wrote:
   
Have you tried:
   
title.addEventListener(  CloseEvent.CLOSE, setState );
   
instead of:
   
title.addEventListener(  MouseEvent.CLICK, setState );
   
   
   
That should take care of it...
   
   
   
   
   

   
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
   On
Behalf Of Jeremy Rottman
Sent: Thursday, October 19, 2006 1:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating JarJam button Effect.
   
   
   
I am taking an idea from the JarJam demo that adobe has posted on
   adobe
labs and recreating it to suit our needs. I almost have it
complete
   and
working, but I have run into two little snags.
   
When I create the titlewindow with actionscript, I am unable
to get
   the
close button at the top of the titlewindow to work. I have
looked at
every example I could find and not a single one works. With the
 code I
have provided does anyone see why this wont work?
   
Any help with this is greatly appreciated.
   
Here is a link to my test application, and source.
http://beta.homesmartagent.com/transitions/JamJarEffect.html
http://beta.homesmartagent.com/transitions/JamJarEffect.html
http://beta.homesmartagent.com/transitions/srcview/
http://beta.homesmartagent.com/transitions/srcview/
   
  
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread dougmccune
I think this is what you want:
http://dougmccune.com/PanelTest/bin/JamJarEffect.html

View source to check it out. The key is a simple extension of
TitleWindow. It's called UndraggableTitleWindow and basically catches
the mouse down event on the titlebar and cancels it from propogating
so it never starts dragging.

You still have the problem that clicking on the button keeps making
new instances of the popup over and over, so that should probably be
fixed.



--- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED]
wrote:

 Also just another quick note, using your code of event.currentTarget as
 DisplayObject rendered the error of 1067: Implicit coercion of a
value of
 type flash.display:DisplayObject to an unrelated type
 mx.core:IFlexDisplayObject.
 
 On 10/20/06, mdoberenz [EMAIL PROTECTED] wrote:
 
You'll want to do this...
 
  public function removeMe(event:CloseEvent):void {
  PopUpManager.removePopUp(event.currentTarget as
  DisplayObject);
  }
 
  Should work...
 
  By the way, I'd suggest not using a TitleWindow, but instead, use a
  Panel. I noticed that I can move the TitleWindow around wherever I
  want it to be. If that's a desired effect, then I'd remove the 
  from the left-hand side b/c it's a bit confusing.
 
  However, if you do this, you probably won't use the PopUpManager to
  create the TitleWindow. You'll need to position the panel and move
  it wherever you'll need it using code.
 
  Just my take on it.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Jeremy
  Rottman rottmanList@
  wrote:
  
   When I try this.
  
   public function removeMe(event:CloseEvent):void {
   PopUpManager.removePopUp(event.currentTarget);
   }
  
   I get this error.
   1118: Implicit coercion of a value with static type Object to a
   possibly unrelated type mx.core:IFlexDisplayObject.
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  dougmccune dmccune@ wrote:
   
How about:
   
public function removeMe(event:CloseEvent){
PopUpManager.removePopUp(event.currentTarget);
}
   
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Jeremy Rottman rottmanList@
wrote:

 I have tried using that, and it gives me a big goose egg.

 This is the updated code.



 public function createWindow(wTitle:String, wX:Number,
  wY:Number,
 wWidth:Number, wHeight:Number):void {
 title = new TitleWindow();
 title.name = wTitle;
 title.id = wTitle;
 title.title = wTitle;
 title.x = wX;
 title.y = wY;
 title.visible = true;
 title.showCloseButton = true;
 title.addEventListener(CloseEvent.CLOSE, removeMe);

 windowArray.push(title);
 PopUpManager.addPopUp(title, mainCanvas);
 addStates(wX, wY, wWidth, wHeight);
 }

 public function removeMe(event:CloseEvent){
 PopUpManager.removePopUp(this)
 }









 --- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com,
  Dustin Mercer
  dustin.mercer@
 wrote:
 
  Have you tried:
 
  title.addEventListener( CloseEvent.CLOSE, setState );
 
  instead of:
 
  title.addEventListener( MouseEvent.CLICK, setState );
 
 
 
  That should take care of it...
 
 
 
 
 
  
 
  From: flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 On
  Behalf Of Jeremy Rottman
  Sent: Thursday, October 19, 2006 1:55 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Creating JarJam button Effect.
 
 
 
  I am taking an idea from the JarJam demo that adobe has
  posted on
 adobe
  labs and recreating it to suit our needs. I almost have it
  complete
 and
  working, but I have run into two little snags.
 
  When I create the titlewindow with actionscript, I am unable
  to get
 the
  close button at the top of the titlewindow to work. I have
  looked at
  every example I could find and not a single one works. With
  the
   code I
  have provided does anyone see why this wont work?
 
  Any help with this is greatly appreciated.
 
  Here is a link to my test application, and source.
  http://beta.homesmartagent.com/transitions/JamJarEffect.html
  http://beta.homesmartagent.com/transitions/JamJarEffect.html
  http://beta.homesmartagent.com/transitions/srcview/
  http://beta.homesmartagent.com/transitions/srcview/
 

   
  
 
   
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email

[flexcoders] Re: Uploads Needed Greater than 100 MB

2006-10-19 Thread dougmccune
I'm going to piggy-back off this post and ask a similar question: 

Why are you limited to only selecting a maximum number of files at
once when the user uses FileReference? I'm referring to when the user
selects multiple files per upload. The max limit is large, but maxes
out at something like 250 files. If the user selects more than that a
fairly unhelpful error message pops up and the file browser window
goes away.

I'd like the user to be able to queue up hundreds (400+) of files for
upload. I know it's a lot (and discussion of whether uploading
hundreds of files is ever good can wait for another day), but is this
a technical problem, or a design choice by the Adobe team?


--- In flexcoders@yahoogroups.com, wwwpl [EMAIL PROTECTED] wrote:

 In the FileReference documentation, it says that the file upload limit
 is 100 Megabytes.  I am curious why the developers chose this value
 and why it is not configurable.  Maybe it is configurable and I don't
 know it yet.  If anyone could enlighten me on this subject, I would
 appreciate it.  We have a Flex application that uploads large files. 
 The restrictions on FileReference are a pain.  I would also like to
 see other file upload options, like ftp etc.  Right now it is just http.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: Creating JarJam button Effect.

2006-10-19 Thread dougmccune
How about:

public function removeMe(event:CloseEvent){
  PopUpManager.removePopUp(event.currentTarget);
}
 

--- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED]
wrote:

 I have tried using that, and it gives me a big goose egg.
 
 This is the updated code.
 
 
 
 public function createWindow(wTitle:String, wX:Number, wY:Number,
 wWidth:Number, wHeight:Number):void {
  title = new TitleWindow();
  title.name = wTitle;
  title.id = wTitle;
  title.title = wTitle;
  title.x = wX;
  title.y = wY;
  title.visible = true;
  title.showCloseButton = true;
  title.addEventListener(CloseEvent.CLOSE, removeMe);
 
  windowArray.push(title);
  PopUpManager.addPopUp(title, mainCanvas);
  addStates(wX, wY, wWidth, wHeight);
 }
 
 public function removeMe(event:CloseEvent){
  PopUpManager.removePopUp(this)
 }
 
 
 
 
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Dustin Mercer dustin.mercer@
 wrote:
 
  Have you tried:
 
  title.addEventListener(  CloseEvent.CLOSE, setState );
 
  instead of:
 
  title.addEventListener(  MouseEvent.CLICK, setState );
 
 
 
  That should take care of it...
 
 
 
 
 
  
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of Jeremy Rottman
  Sent: Thursday, October 19, 2006 1:55 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Creating JarJam button Effect.
 
 
 
  I am taking an idea from the JarJam demo that adobe has posted on
 adobe
  labs and recreating it to suit our needs. I almost have it complete
 and
  working, but I have run into two little snags.
 
  When I create the titlewindow with actionscript, I am unable to get
 the
  close button at the top of the titlewindow to work. I have looked at
  every example I could find and not a single one works. With the code I
  have provided does anyone see why this wont work?
 
  Any help with this is greatly appreciated.
 
  Here is a link to my test application, and source.
  http://beta.homesmartagent.com/transitions/JamJarEffect.html
  http://beta.homesmartagent.com/transitions/JamJarEffect.html
  http://beta.homesmartagent.com/transitions/srcview/
  http://beta.homesmartagent.com/transitions/srcview/
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: pop up a new window behind

2006-10-16 Thread dougmccune
I hope that was in fact a question about using PopupManager to open
Flex TitleWindow components, not about how to use javascript from
within a Flex app to do those annoying popunder advertisements...


--- In flexcoders@yahoogroups.com, Michael Labriola [EMAIL PROTECTED]
wrote:

 
 The PopUpManager.createPopUp method calls addPopUp which, as part of
 the method seems to ensure that the new Popup is on top. 
 
 After it is created, you could manually move it around using
 setChildIndex... a good place to look is at PopUpManager.bringToFront 
 
 Hope that help a little,
 Mike
 
 
 
 
 --- In flexcoders@yahoogroups.com, Lisa Nelson ltwede@ wrote:
 
  Anyone know how to pop up a new window behind the one currently in
  focus?
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Icons formerly included in Flex SDK (Beta)

2006-10-06 Thread dougmccune
An older version of the Flex SDK had a folder called Icons that
contained a series of various UI icons. I think I read in some readme
that the idea was to provide some basic GUI elements to help
standardize the look and feel of Flex apps. 

So a few questions for someone from Adobe:
1. I have the icons from the beta install, can I still use them?
2. Is an icon set going to be included in future versions of the SDK? 
3. Why was the icon set removed?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Run ppt file in flex

2006-09-22 Thread dougmccune
Someone mentioned Breeze already, but I figured I'd throw in that you
can buy a single license of Breeze Presenter for about $1,000 (without
buying the server or other more expensive parts), which lets you do
the PowerPoint to SWF conversion. But you would still have to manually
convert each PPT you wanted and then figure out how to pull that into
Flex. 

--- In flexcoders@yahoogroups.com, Larry Larson [EMAIL PROTECTED] wrote:

 There is a useful (if expensive) application called Articulate that  
 takes a PPT and turns into a swf that you could then, of course, use  
 in Flex somehow.
 
 Larry Larson
 LarsonAssociates
 NYC







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/