Re: [Flashcoders] Flash https / IE wierdness

2007-06-20 Thread Giles Roadnight

Many thanks for that.

On 6/19/07, Carl Welch [EMAIL PROTECTED] wrote:


We had the same problem. We were banging our heads against the wall
trying to figure out why it wasn't working in IE over a https
connection until we found this:

//header(Expires: Mon, 25 Jan 1970 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0);
//header(Pragma: no-cache);

seem to make it all work in both IE and Firefox.

here's a googled cached version of the page explaining this:

http://72.14.253.104/search?q=cache:qw2g8oXGQLwJ:www.gmrweb.net/2005/08/18/flash-remoting-https-internet-explorer/+flash-remoting-https-internet-explorerhl=enct=clnkcd=1gl=usclient=firefox-a




On 6/19/07, Giles Roadnight [EMAIL PROTECTED] wrote:
 Hi All

 I have a swf that loads an rss feed then loads images and displays them.

 This works fine on our local dev server, the live server and on the
staging
 server on Firefox. However on the staging server the images do not
appear
 and none of the text in the rss appear either.

 The only difference is that the staging server is running on https (it
comes
 up with an invalid certificate when you load the site).

 It's very odd that it works in firefox and not in IE.

 Does IE handle https urls any different than Firefox?

 Thanks

 Hope someone can help.
 ___
 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



--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
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] Flash https / IE wierdness

2007-06-19 Thread Giles Roadnight

Hi All

I have a swf that loads an rss feed then loads images and displays them.

This works fine on our local dev server, the live server and on the staging
server on Firefox. However on the staging server the images do not appear
and none of the text in the rss appear either.

The only difference is that the staging server is running on https (it comes
up with an invalid certificate when you load the site).

It's very odd that it works in firefox and not in IE.

Does IE handle https urls any different than Firefox?

Thanks

Hope someone can help.
___
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] setNewTextFormat

2007-06-12 Thread Giles Roadnight

Hi All

I have a loop that creates pages, creates textfields then adds text. Some of
this text has font tags and some doesn't. I want to use a default textFormat
so that an embedded font is used when no font is specified in the text:

   currentPage.createTextField(my_txt, 1, 5, 5,
currentPage._width - 10, currentPage._height - 10);
   currentPage.my_txt.autoSize = false;
   currentPage.my_txt.multiline = true;
   currentPage.my_txt.wordWrap = true;
   currentPage.my_txt.selectable = false;
   currentPage.my_txt.embedFonts = true;
   currentPage.my_txt.html = true;

   var my_fmt:TextFormat = new TextFormat();
   my_fmt.font = Arial;
   currentPage.my_txt.setNewTextFormat (my_fmt);

   currentPage.my_txt.htmlText = this.Model.pages[i].text;

This works fine for text that has Arial specified in a font tag but for all
the other pages which are just text no text appears (when tracing I see that
Times is used which is not embedded).

Why isn't this working? The setNewTextformat should change the default
textformat for the field from then on? I am still getting Times though.

Many 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


Re: [Flashcoders] setNewTextFormat

2007-06-12 Thread Giles Roadnight

Some of the text that is being pulled in from xml will have font tags
attached and some won't so I want to se thte default format.

I have got round it for now with an if statement so the default format is
only set if there is no font tag in the string.

However in the case of a string with only part of the text surrounded by a
font tag the rest of the string will still default to the times font which
won't appear.

On 6/12/07, o renken [EMAIL PROTECTED] wrote:


hey

one question...why are you mixing html and TextFormat? i try to use one of
both.
where did you get the font for each textField from?
so you could do it on that way

var default_font=arial
var html_font=
if(text_html_font==undefined){
   html_font=default_font
}
currentPage.my_txt.htmlText =font face='+html_font+'
this.Model.pages[i].text+/font;

greets
olee



2007/6/12, Giles Roadnight [EMAIL PROTECTED]:
 Hi All

 I have a loop that creates pages, creates textfields then adds text.
Some of
 this text has font tags and some doesn't. I want to use a default
textFormat
 so that an embedded font is used when no font is specified in the text:

 currentPage.createTextField(my_txt, 1, 5, 5,
 currentPage._width - 10, currentPage._height - 10);
 currentPage.my_txt.autoSize = false;
 currentPage.my_txt.multiline = true;
 currentPage.my_txt.wordWrap = true;
 currentPage.my_txt.selectable = false;
 currentPage.my_txt.embedFonts = true;
 currentPage.my_txt.html = true;

 var my_fmt:TextFormat = new TextFormat();
 my_fmt.font = Arial;
 currentPage.my_txt.setNewTextFormat (my_fmt);

 currentPage.my_txt.htmlText = this.Model.pages[i].text;

 This works fine for text that has Arial specified in a font tag but for
all
 the other pages which are just text no text appears (when tracing I see
that
 Times is used which is not embedded).

 Why isn't this working? The setNewTextformat should change the default
 textformat for the field from then on? I am still getting Times though.

 Many 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



--
http://www.renkster.de/#/about/
___
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] setNewTextFormat

2007-06-12 Thread Giles Roadnight

Yes, it does seem to be broken. I think I'll just add font tags around text
if there are none present.

Thansk for the help.

On 6/12/07, Danny Kodicek [EMAIL PROTECTED] wrote:



 Hi All

 I have a loop that creates pages, creates textfields then
 adds text. Some of this text has font tags and some doesn't.
 I want to use a default textFormat so that an embedded font
 is used when no font is specified in the text:

 currentPage.createTextField(my_txt, 1, 5, 5,
 currentPage._width - 10, currentPage._height - 10);
 currentPage.my_txt.autoSize = false;
 currentPage.my_txt.multiline = true;
 currentPage.my_txt.wordWrap = true;
 currentPage.my_txt.selectable = false;
 currentPage.my_txt.embedFonts = true;
 currentPage.my_txt.html = true;

 var my_fmt:TextFormat = new TextFormat();
 my_fmt.font = Arial;
 currentPage.my_txt.setNewTextFormat (my_fmt);

 currentPage.my_txt.htmlText = this.Model.pages[i].text;

 This works fine for text that has Arial specified in a font
 tag but for all the other pages which are just text no text
 appears (when tracing I see that Times is used which is not embedded).

 Why isn't this working? The setNewTextformat should change
 the default textformat for the field from then on? I am still
 getting Times though.

setNewTextFormat is, in my opinion, broken: it works for text entered by a
user but not for text entered through ActionScript. You need to run
setTextFormat manually after changing it.

Danny

___
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] MVC question

2007-06-01 Thread Giles Roadnight

Hi All

I am building my first MVC (Model View Controller) and have a question about
how I should set it up.

I have a load of classes: BookView, ControlView (both views), Controller and
PAModel.

Controller holds all the other classes and sets them all up. Both views have
a function - setModel:

   public function setModel(newModel:PAModel):Void
   {
   this.Model = newModel;
   this.Model.addEventListener(PagesUpdated,this);
   this.Model.addEventListener(currentPageUpdate,this);
   }

that sets the model (obviously) and sets up event listeners.

If I try to fire this function in the controller constructor it doesn't fire
- presumably the classes haven't woken up yet so I am firing it from a
function that fires when XML has loaded. This doesn't seem like the best way
of doing it though.

What is the best way round this? I have tried firing a onInit function from
the views when they are ready but this doesn't seem to work. I assume it's
because the addEventListener function doesn't work when the controller tries
to register as a listener.

Thanks for the help.
___
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] functions for other classes within a class

2007-05-25 Thread Giles Roadnight

Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

   private var portfolio:MovieClip;

   public function Controller()
   {
   trace(Controller constructor:  + this.portfolio);

   this.portfolio.addEventListener(onClick,this);

   this.portfolio.onInit = this.portfolioOnInit;
   }

   private function portfolioOnInit():Void
   {
   trace(onInit:  + this);
   this.flipCorner(bottom_right);
   }

}

But I get a compile error saying that flipCorner does not exist. It doesn't
exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.
___
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] functions for other classes within a class

2007-05-25 Thread Giles Roadnight

Thanks for the reply but with this code (and variations including the code
you sent):

import mx.utils.Delegate;

class com.tequila.canon.PosterArtist.Controller {

   private var portfolio:MovieClip;

   public function Controller()
   {
   trace(Controller constructor:  + this.portfolio);

   this.portfolio.addEventListener(onClick,this);

   //this.portfolio.onInit = this.portfolioOnInit;
   this.portfolio.onInit = Delegate.create(this.portfolio,
this.portfolioOnInit);
   }

   private function portfolioOnInit():Void
   {
   trace(onInit:  + this);
   this.flipCorner(bottom_right);
   }

}

I still get this error:

**Error** C:\Documents and Settings\giles roadnight\workspace\Poster
Artist\com\tequila\canon\PosterArtist\Controller.as: Line 22: There is no
method with the name 'flipCorner'.
this.flipCorner(bottom_right);

Total ActionScript Errors: 1  Reported Errors: 1

Thanks

On 5/25/07, Johannes Nel [EMAIL PROTECTED] wrote:


use mx.utils.Delegate to assign the function
   this.portfolio.onInit = Delegate.create(this,portfolioOnInit);

On 5/25/07, Giles Roadnight [EMAIL PROTECTED] wrote:

 Hi All

 I have this code within a class:

 class com.tequila.canon.PosterArtist.Controller {

 private var portfolio:MovieClip;

 public function Controller()
 {
 trace(Controller constructor:  + this.portfolio);

 this.portfolio.addEventListener(onClick,this);

 this.portfolio.onInit = this.portfolioOnInit;
 }

 private function portfolioOnInit():Void
 {
 trace(onInit:  + this);
 this.flipCorner(bottom_right);
 }

 }

 But I get a compile error saying that flipCorner does not exist. It
 doesn't
 exist in COntroller but it does exist in portfolio.

 How do I get around this?

 Many Thanks

 Giles.
 ___
 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




--
j:pn
http://www.lennel.org
___
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] functions for other classes within a class

2007-05-25 Thread Giles Roadnight

Aha - it works!!! Thanks :)

On 5/25/07, Jobe Makar [EMAIL PROTECTED] wrote:


Hi,

Replace this:
this.flipCorner(bottom_right);

With this:
portfolio.flipCorner(bottom_right);

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message -
From: Giles Roadnight [EMAIL PROTECTED]
To: Flashcoders@chattyfig.figleaf.com
Sent: Friday, May 25, 2007 11:13 AM
Subject: [Flashcoders] functions for other classes within a class


 Hi All

 I have this code within a class:

 class com.tequila.canon.PosterArtist.Controller {

private var portfolio:MovieClip;

public function Controller()
{
trace(Controller constructor:  + this.portfolio);

this.portfolio.addEventListener(onClick,this);

this.portfolio.onInit = this.portfolioOnInit;
}

private function portfolioOnInit():Void
{
trace(onInit:  + this);
this.flipCorner(bottom_right);
}

 }

 But I get a compile error saying that flipCorner does not exist. It
 doesn't
 exist in COntroller but it does exist in portfolio.

 How do I get around this?

 Many Thanks

 Giles.
 ___
 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