Re: [Flashcoders] Communicating with a file upload sript in a htaccess protected directory...

2008-01-25 Thread Glen Pike

Hi,

   You may have to use a session based login rather than .htaccess and 
get the script to check if the user has a valid session before they log in.


   There is a problem with this in Flash because the FileReference 
upload method does not always post normal HTTP Headers may not transmit 
the session id / cookies, which you could use to check if someone is 
logged in.  There are workarounds to this if you look for FileReference 
upload session or something, which consist of passing the session id 
from HTML to Flash as Flash Vars then appending this to the URL of the 
file upload script...


   I also think that this maybe the same reason that your .htaccess 
method is failing - it probably thinks you have a different session when 
you post from Flash.


   Not 100%, but have a look at that.

  


Steven Henry wrote:

Hi

I'm having a problem with a Flash back-end application... I've seen 
this mentioned before but couldn't find a solution anywhere!


My SWF calls a PHP upload script is in a .htaccess protected 
directory. Windows machines prompt for the directory username & 
password when I try and upload anything (which is a bit of a pain in 
the ass, but works). On my Mac however, this prompt doesn't appear and 
the upload fails.


Is there any way to get around this prompt without comprimising the 
security of the upload script (which can't be in a public folder for 
obvious reasons).



Cheers,
Steven





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




--

Glen Pike
01736 759321
www.glenpike.co.uk 

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


[Flashcoders] Communicating with a file upload sript in a htaccess protected directory...

2008-01-25 Thread Steven Henry

Hi

I'm having a problem with a Flash back-end application... I've seen this 
mentioned before but couldn't find a solution anywhere!


My SWF calls a PHP upload script is in a .htaccess protected directory. 
Windows machines prompt for the directory username & password when I try 
and upload anything (which is a bit of a pain in the ass, but works). On 
my Mac however, this prompt doesn't appear and the upload fails.


Is there any way to get around this prompt without comprimising the 
security of the upload script (which can't be in a public folder for 
obvious reasons).



Cheers,
Steven





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


Re: [Flashcoders] scroll bars and live search

2008-01-25 Thread Cédric Tabin
Hello,

Some months ago, I devlopped a ScrollBar API (AS2 only !) that you can find
here : http://wiki.media-box.net/tutoriaux/flash/scrollbar. The page is in
french but all the documentation & code is in english :) I didn't work with
the v3 components so, I can't help you more :(

Regards,
Cedric

On Jan 25, 2008 10:35 PM, Corban Baxter <[EMAIL PROTECTED]> wrote:

> Ok so if one of you built this its great! But it made me think about
> scrolling in flash and how much of a pain it has been. But this blog:
> http://www.hornallanderson.com/#/blog/ has done an amazing job. And it
> raised a few questions. Is this just a reskin of the new v3
> components? And has anyone built something like this in AS2. I am
> thinking of getting started on a simple prototype but we will see.
>
> Also how would you go about doing a live search like they have done in
> their blog? Is this one using some type of word press tool like this:
> http://swx-wordpress.artillery.ch/. And then going from there. What do
> you guys think?
>
> --
> Corban Baxter
> http://blogprojectx4.com
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] scroll bars and live search

2008-01-25 Thread Corban Baxter
Ok so if one of you built this its great! But it made me think about
scrolling in flash and how much of a pain it has been. But this blog:
http://www.hornallanderson.com/#/blog/ has done an amazing job. And it
raised a few questions. Is this just a reskin of the new v3
components? And has anyone built something like this in AS2. I am
thinking of getting started on a simple prototype but we will see.

Also how would you go about doing a live search like they have done in
their blog? Is this one using some type of word press tool like this:
http://swx-wordpress.artillery.ch/. And then going from there. What do
you guys think?

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


Re: [Flashcoders] Communicating with a file upload sript in a htaccess protected directory...

2008-01-25 Thread Hans Wichman
Hi,

not sure but is validating first through normal means using a loadvars
object an option?
  loadvarsObj.addRequestHeader("Authorization","BASIC " + Base64.Encode
("username:password"));
  loadvarsObj.sendAndLoad(myUrl, loadvarsObj, "POST");

greetz
JC

On Fri, Jan 25, 2008 at 7:38 PM, Glen Pike <[EMAIL PROTECTED]>
wrote:

> Hi,
>
>You may have to use a session based login rather than .htaccess and
> get the script to check if the user has a valid session before they log
> in.
>
>There is a problem with this in Flash because the FileReference
> upload method does not always post normal HTTP Headers may not transmit
> the session id / cookies, which you could use to check if someone is
> logged in.  There are workarounds to this if you look for FileReference
> upload session or something, which consist of passing the session id
> from HTML to Flash as Flash Vars then appending this to the URL of the
> file upload script...
>
>I also think that this maybe the same reason that your .htaccess
> method is failing - it probably thinks you have a different session when
> you post from Flash.
>
>Not 100%, but have a look at that.
>
>
>
> Steven Henry wrote:
> > Hi
> >
> > I'm having a problem with a Flash back-end application... I've seen
> > this mentioned before but couldn't find a solution anywhere!
> >
> > My SWF calls a PHP upload script is in a .htaccess protected
> > directory. Windows machines prompt for the directory username &
> > password when I try and upload anything (which is a bit of a pain in
> > the ass, but works). On my Mac however, this prompt doesn't appear and
> > the upload fails.
> >
> > Is there any way to get around this prompt without comprimising the
> > security of the upload script (which can't be in a public folder for
> > obvious reasons).
> >
> >
> > Cheers,
> > Steven
> >
> >
> >
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
>
> --
>
> Glen Pike
> 01736 759321
> www.glenpike.co.uk 
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] nested for loops stumper

2008-01-25 Thread Muzak

Classes/Components
Events
Delegate

So instead of having:

some_btn.onRollOver = function(){}

do this:

import mx.utils.Delegate;
myCustomButton.addEventListener("rollover", Delegate.create(this, 
rolloverHandler);

Where myCustomButton is a custom component dispatching an event (in this case 
rollover).

And in the event handler you can reference the component that dispatched the 
event through the argument passed to the event handler

function rolloverHandler(o:Object):Void {
   trace("target: " + o.target);
}

regards,
Muzak

- Original Message - 
From: "Bob Wohl" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Friday, January 25, 2008 6:23 PM
Subject: Re: [Flashcoders] nested for loops stumper



so then would it be this._parent["mc_"+i] ?

enlighten please.

On Jan 25, 2008 9:08 AM, Muzak <[EMAIL PROTECTED]> wrote:


You should never have to do that.
If for some reason you have to, something is wrong with your workflow.

"this" is and should always be "this".

- Original Message -
From: "Rob Emenecker" <[EMAIL PROTECTED]>
To: "'Flash Coders List'" 
Sent: Friday, January 25, 2008 3:53 PM
Subject: RE: [Flashcoders] nested for loops stumper


>
>> yep, you need some kind of scope declaration to tell you where the
>> items are. a lot of people use thisRoot = this; (or something that
>> states the location) and then all you have to do is pass 'thisRoot'
>> around as a reference to where that item is. That way you never
>> have to say 'this' when it's not actualy 'this'.
>
> Thumps himself in the head! Doh! What a great idea. Never thought of
doing
> that!
>


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


Re: [Flashcoders] nested for loops stumper

2008-01-25 Thread Bob Wohl
so then would it be this._parent["mc_"+i] ?

enlighten please.

On Jan 25, 2008 9:08 AM, Muzak <[EMAIL PROTECTED]> wrote:

> You should never have to do that.
> If for some reason you have to, something is wrong with your workflow.
>
> "this" is and should always be "this".
>
> - Original Message -
> From: "Rob Emenecker" <[EMAIL PROTECTED]>
> To: "'Flash Coders List'" 
> Sent: Friday, January 25, 2008 3:53 PM
> Subject: RE: [Flashcoders] nested for loops stumper
>
>
> >
> >> yep, you need some kind of scope declaration to tell you where the
> >> items are. a lot of people use thisRoot = this; (or something that
> >> states the location) and then all you have to do is pass 'thisRoot'
> >> around as a reference to where that item is. That way you never
> >> have to say 'this' when it's not actualy 'this'.
> >
> > Thumps himself in the head! Doh! What a great idea. Never thought of
> doing
> > that!
> >
> >
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] missing glyphs

2008-01-25 Thread Mendelsohn, Michael
Thanks Ain.  There doesn't seem to be much of a solution.   I couldn't open the 
fla in the zip file, but I'm guessing you created it in CS3, which I don't 
have.  (8) 

However, I did come up with a not versatile workaround for my purposes:

// where tf is a TextFormat...
// unicode glyphs not showing up
//var symbol:String = (i == 0) ? "\u2264" : "\u2265";
//var symbol:String = (i == 0) ? "≤" : "≥";
var symbol:String = (i == 0) ? "<" : ">";
objMarkText.text = String("Objective: " + symbol + " " + _root[String("kra" + 
(i + 1) + "objective")]);
// workaround for unicode glyphs not showing up...
tf.underline = true;
objMarkText.setTextFormat(11, tf);
tf.underline = false;


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ain Tohvri
Sent: Friday, January 25, 2008 11:16 AM
To: Flash Coders List
Subject: Re: [Flashcoders] missing glyphs

No guarantees, but you might want to check out this Michael: 
http://tekkie.flashbit.net/flash/embedding-fonts-in-flash-cs3

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


Re: [Flashcoders] missing glyphs

2008-01-25 Thread Ain Tohvri

No guarantees, but you might want to check out this Michael: 
http://tekkie.flashbit.net/flash/embedding-fonts-in-flash-cs3

Regards,

Ain Tohvri
Flashbit LLC


On 23.01.2008, at 18:06, Mendelsohn, Michael wrote:


Hi list...
I've embedded a font that I confirmed in Windows' character map that  
it has the glyphs for ≤ and ≥.  These glyphs trace fine, but they  
don't appear in my textField.  Any idea what I'm missing?


Thanks,
- Michael M.



var objMarkText:TextField = _root.createTextField("tf", 1, 0, 0, 1,  
1);

objMarkText.embedFonts = true;
var symbol:String = (i==0)?"\u2264":"\u2265";
objMarkText.text = symbol;
trace(objMarkText.text);

// traces correctly...but glyph doesn't show up in objMarkText.text


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



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


Re: [Flashcoders] nested for loops stumper

2008-01-25 Thread Muzak
You should never have to do that. 
If for some reason you have to, something is wrong with your workflow.


"this" is and should always be "this".

- Original Message - 
From: "Rob Emenecker" <[EMAIL PROTECTED]>

To: "'Flash Coders List'" 
Sent: Friday, January 25, 2008 3:53 PM
Subject: RE: [Flashcoders] nested for loops stumper




yep, you need some kind of scope declaration to tell you where the 
items are. a lot of people use thisRoot = this; (or something that 
states the location) and then all you have to do is pass 'thisRoot' 
around as a reference to where that item is. That way you never 
have to say 'this' when it's not actualy 'this'.


Thumps himself in the head! Doh! What a great idea. Never thought of doing
that!




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


RE: [Flashcoders] nested for loops stumper

2008-01-25 Thread Rob Emenecker
 
> yep, you need some kind of scope declaration to tell you where the 
> items are. a lot of people use thisRoot = this; (or something that 
> states the location) and then all you have to do is pass 'thisRoot' 
> around as a reference to where that item is. That way you never 
> have to say 'this' when it's not actualy 'this'.

Thumps himself in the head! Doh! What a great idea. Never thought of doing
that!


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


RE: [Flashcoders] missing glyphs

2008-01-25 Thread Mendelsohn, Michael
Thanks for replying Cory.  I am doing that.  I have a TextFormat with an 
embedded font that is displaying correctly.  The issue is these two glyphs of 
that font not showing up.  The rest of the font's characters are there.

Even when I use either of these when building the string, the glyphs don't 
display:
var symbol:String = (i == 0) ? "≤" : "≥";
// or...
var symbol:String = (i == 0) ? "\u2264" : "\u2265";

Also, trace(symbol) traces the glyphs no problem.

I *thought* actionscript is saved as Unicode, or maybe that's just .as files.  
This is script in the .fla itself.  Maybe that has something to do with it?

Still thinking...
- MM


> If you set the embedFonts property to true for a text field, you must
specify a font for that text by using the font property of a
TextFormat object applied to the text field. If the specified font is
not embedded in the SWF file, the text is not displayed.

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


Re: [Flashcoders] Video has no mouseEnabled, help (AS3)

2008-01-25 Thread Matthias Dittgen
Hi!

oh, I found a solution. I have to do a parent.mouseEnabled = false,
too, because parent is the parent of the video as well as the sprite.
That's it! Oh, this saves my day! :-)
Your suggestion would become my next attempt, Glen. I am glad, I now
don't have to do that.

Matthias

On Jan 25, 2008 3:18 PM, Glen Pike <[EMAIL PROTECTED]> wrote:
> Overlay video with a transparent Sprite??
>
>
> Matthias Dittgen wrote:
> > Hello,
> >
> > I have a Sprite listening for MouseEvents below a Video. Video
> > overlaps half the Sprite. The Sprite only receives mouseEvents where
> > it is not overlapped by the Video.
> > If Video was a Sprite, too, I could mouseEnable = false it, but Video
> > doesn't have this property.
> > Any suggestion?
> >
> > Matthias
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> >
>
> --
>
> Glen Pike
> 01736 759321
> www.glenpike.co.uk 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Video has no mouseEnabled, help (AS3)

2008-01-25 Thread Glen Pike

Overlay video with a transparent Sprite??

Matthias Dittgen wrote:

Hello,

I have a Sprite listening for MouseEvents below a Video. Video
overlaps half the Sprite. The Sprite only receives mouseEvents where
it is not overlapped by the Video.
If Video was a Sprite, too, I could mouseEnable = false it, but Video
doesn't have this property.
Any suggestion?

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


  


--

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


[Flashcoders] Video has no mouseEnabled, help (AS3)

2008-01-25 Thread Matthias Dittgen
Hello,

I have a Sprite listening for MouseEvents below a Video. Video
overlaps half the Sprite. The Sprite only receives mouseEvents where
it is not overlapped by the Video.
If Video was a Sprite, too, I could mouseEnable = false it, but Video
doesn't have this property.
Any suggestion?

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


Re: [Flashcoders] Errors in Flex when not declaring objects in theDocument Class

2008-01-25 Thread Muzak
File > Publish Settings 
On the Flash tab, next to ActionScript 3.0, click: Settings

Disable the "Automatically declare.." option.

regards,
Muzak

- Original Message - 
From: "Johan Nyberg" <[EMAIL PROTECTED]>

To: 
Sent: Friday, January 25, 2008 10:26 AM
Subject: [Flashcoders] Errors in Flex when not declaring objects in theDocument 
Class


Hi, I've started using Flex as a code editor for coding Flash. But I  
have a problem. Flex keeps screaming error when I don't declare  
objects (MovieClips and Sprites) on the stage. But in the Document  
Class you shouldn't declare these - they are automatically declared in  
the internal namespace. When I declare them, I get a conflict in Flash  
saying:


1151: A conflict exists with definition hiddenPictures_mc in namespace  
internal.


If anybody has a solution to this problem, it would be greatly  
appreciated!



Regards,

Johan Nyberg

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


[Flashcoders] Errors in Flex when not declaring objects in the Document Class

2008-01-25 Thread Johan Nyberg
Hi, I've started using Flex as a code editor for coding Flash. But I  
have a problem. Flex keeps screaming error when I don't declare  
objects (MovieClips and Sprites) on the stage. But in the Document  
Class you shouldn't declare these - they are automatically declared in  
the internal namespace. When I declare them, I get a conflict in Flash  
saying:


1151: A conflict exists with definition hiddenPictures_mc in namespace  
internal.


If anybody has a solution to this problem, it would be greatly  
appreciated!



Regards,

Johan Nyberg
Designer and web developer

[EMAIL PROTECTED]
08 - 50 00 24 30
070 - 407 83 00



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