RE: [Flashcoders] special characters

2005-11-13 Thread Gregory_GOusable
Enrico, I tried what you've described - indeed!
you wrote:
How can I write the '' char, inside an html dynamic textfield?

In fact, writing  char isn't a problem, but loading it from text
file is: it's either recognized as tag or (if you use lt; etc)
another variable.
But if you try create a local var with html inside it, everything is
ok.
Solution:
1) I'd suggest to use XML file with CDATA instead of plain text.
Do you mind?
2) If the first doesn't fit you, maybe try to use another
char/combination in your txt file, then after loading replace them
with  or  using string manipulations. And then assign this string to
a textfield.
-- 
Best regards,
 Gregory_GOusable

http://GOusable.com
Flash components development.
Usability services.


 I need to write, inside a .txt file that must be load into a dynamic
 textfield, the char '' and '';
 but, if I wrote so, the loading stop when arrive to '', because Flash think
 this is the start of a tag, and I can't write neither 'lt;' nor 'gt;',
 because '' for Flash it means the start of a new text block.
 Where can I find a table of equivalent 'coded' chars, that is possible to
 use within Flash?
 
  Enrico Tomaselli
   + web designer +
   [EMAIL PROTECTED]
 http://www.metatad.it
 
 

 
 Well, I find on Macromedia site the table that I search, but the trouble its
 always on...
 If, instead than '' I write %3C, Flash recognize this like '', and it
 think that is a tag open, then - without the expected tag close - the load
 of following text stops.
 Trying to find a solution to this, I have met another strange behavior:
 thinkin' that, if the problem is the 'open without close tag', I wrote
 something like this
 condition 1: %3Cfont color=#ff%3E/font condition 2
 where, obviously, white (#ff) is the background color; well, Flash show
 like below!
condition 1:  condition 2
 Then, what it done is the follow:
 - don't stop the following text loading
 - don't show the char ''
 - instead show the char '', that should be white (no visible) ...
 I'm upcoming to become crazy!
 There is a solution to this problem? How can I write the '' char, inside an
 html dynamic textfield?
 
  Enrico Tomaselli
   + web designer +
   [EMAIL PROTECTED]
 http://www.metatad.it


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


Re: [Flashcoders] hot spots for buttons / video alpha channels

2005-11-13 Thread Ian Thomas
On 11/13/05, Millie Niss [EMAIL PROTECTED] wrote:


 (this seems to happen frequently when the button cinsists of
 say, a rectangle on one layer, with a text on a layer above it. Often, you
 use a button like this and discover that the text isn't clickable, and the
 only hot area is the part of teh rectangle outside the textfield). This is
 very annoying and leads to a tedioous extra step of moving the buttins or
 their hot area to make them work...


This might be caused by having the text area as 'selectable'. You can turn
that
off by either setting .selectable=false via code, or in the IDE by selecting
the text field
and turning off the selectable option (the thing which looks like 'Ab' on
the same line as
the Use Device Fonts checkbox in Properties).

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


RE: [Flashcoders] UIScrollbar bug?

2005-11-13 Thread Paul Steven
On further investigation it looks like the UIScrollbar component does not
work if there is any element from a shared library on screen.

I have created a simple test file (mx2004) to illustrate this.

http://www.mediakitchen.co.uk/scrollbar.zip

I would really appreciate some advice on this as I really need to get around
this problem

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul
Steven
Sent: 12 November 2005 13:04
To: Flashcoders mailing list
Subject: [Flashcoders] UIScrollbar bug?


I am trying to plonk a UIScrollBar component on a multiline input text area
in my Flash MX 2004 movie.

The scrollbar does appear to be snapping but no scroll arrows are appeaaring
no matter how many lines of text I type.

The weird thing is that if I delete a movie clip that I have on the stage,
it starts working. The movie clip is basically a sound on/off button from a
shared library.

Similarly if I create a new movie and then add the shared library movie clip
to the stage, it stops working.

Any idea why a shared library item would stop the scrollbar working?

Thanks

Paul

___
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] ScrollPane weirdness

2005-11-13 Thread Steven Sacks
Assuming this is the swf/clip you loaded into the scrollpane:

After it is finished loading, have the swf call the following:

this._parent.setScrollProperties(this._width, 1, this._height, 1);

Hope this works for you.

-Steven


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of redknot
 Sent: Saturday, November 12, 2005 1:09 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] ScrollPane weirdness
 
 I am trying to display an external .swf inside a ScrollPane component.
 
 The swf does not fully display, it is cut off  about a hundred pixels 
 before the end of the swf.
 
 Strangely, if I republish the swf that my designer sent me from the 
 original .fla file, then the swf displays in the scrollPane with a 
 LOT of extra white space at the bottom, so it the scrollbar becomes 
 unusable really.  In the swf it's mainly text content on a white 
 background.
 
 I have searched all over for a solution, but I'm not getting any 
 closer!  Any ideas how I can definitively get the scrollPane to 
 disply the correct length of the external swf?
 
 Thanks folks,
 Lorraine
 
 
 -- 
 
 ___
 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] special characters

2005-11-13 Thread MetaArt
Well,
the question is that the (.txt) files are done by unskilled users, using  a
simple appl to apply some basic features to chars (like bold, italic,
underlined), so I must use simple text files.
But, at last, maybe the string manipulation option is the only way...
thank you for suggestion.

 Enrico Tomaselli
  + web designer +
  [EMAIL PROTECTED]
http://www.metatad.it

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


RE: [Flashcoders] Flipbook in AS2

2005-11-13 Thread Stephen Hueners
Thnkx for the offer...i think http://www.flippingbook.com/ is going to work
just fine for me...I'm needing a full page turn and need the turn event
fired from AS. appreciated


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Klishin
Sent: Saturday, November 12, 2005 7:01 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flipbook in AS2

Stephen Hueners wrote:
 Back in the days of player 6 there was a sample floating around that
 demonstrated a book whose pages could be 'flipped' - dragged open from one
 to the next. The author (the copy I have attributes pixelwit.com but if I
 recall there was some issues with the original source of the idea) did a
 great job with masking, gradients, and rotation to simulate the act of
page
 turning.
 
 But it doesn't translate to AS2. Anyone seen anything similar? Skewing
 pre-existing bitmaps won't work for me...I'm generating page content at
 runtime.

I have my own AS2 version but it does only dragging (you cannot turn the 
page over, just turn it up). Everything is done via code, without 
attaching movies and complicated movie clip structure.

It's not really well commented but if you would like to see it write to 
me personally, I don't mind to share...

-- 
Michael Klishin

http://www.novemberain.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


Re: [Flashcoders] special characters

2005-11-13 Thread Ian Thomas
In which case the onData option might be your best bet. The text files can
then be whatever you like - it's up to you to process them in whatever way
you wish.

Basically by providing your own LoadVars.onData() function, you completely
replace Flash's default processing of text files - you are just handed the
raw text as a string and can do what you like with it.

Take a look in the documentation.

Cheers,
Ian

On 11/13/05, MetaArt [EMAIL PROTECTED] wrote:

 Well,
 the question is that the (.txt) files are done by unskilled users, using a
 simple appl to apply some basic features to chars (like bold, italic,
 underlined), so I must use simple text files.
 But, at last, maybe the string manipulation option is the only way...
 thank you for suggestion.

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


Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread Ian Thomas
Hi Javier,
This is because you've got things happening in the wrong order:
- You create your EventTry() object, which calls init()
- Init fires the event, but onEvent is still undefined
- Init then calls die()
- Die() deletes the EventTry object
- You then set onEvent to your function - after everything else has already
happened.

You need to set the onEvent object _before_ you fire the event to have
anything
meaningful happen.

I can't understand how your old classes would have worked, looking at this
code. Perhaps you're doing something slightly differently now?

Hope that helps,
Ian


On 11/13/05, Javier Tello [EMAIL PROTECTED] wrote:

 Hello, I'm having troubles implementing the EventDispatcher class with
 flash8.

 I do the same I use to do before, but now the class doesn't fired the
 event. Here is a sample class:
 ___

 import mx.events.EventDispatcher;
 //
 class EventTry {

 //event functions;
 private var dispatchEvent:Function;
 private var addEventListener:Function;
 private var removeEventListener:Function;
 //
 //fired events;
 public var onEvent:Function;

 public function EventTry(){

 EventDispatcher.initialize(this);
 this.addEventListener(onEvent,this);
 init();
 }
 //
 private function init(){
 dispatchEvent({type:onEvent, target:this});
 die();
 }
 private function die(){
 removeEventListener(onEvent,this);
 this=null;
 delete this;
 trace(EventTry die);
 }
 }
 ___

 And here is the fla code:

 import com.mg.temp.EventTry;
 //
 var etry:EventTry=new EventTry();
 etry.onEvent=function(){
 trace(onEvent fired);
 }
 //end

 ___
 Here I doesn't get the etry. onEvent function fired. Also no error,
 it just ignore the statement.
 Curiously my older classes run well with such a code.
 Any help would be appreciate,
 thanks,
 Javier.

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


Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread Muzak
The whole deal with event dispatching is that you listen for certain event to 
take place from the outside, not from the inside.

The way you have it now, you're not really making use of event dispatching 
(well only in an weird way), but it's more like adding 
(overriding) a method of the class.

instance.onEvent=function(){}

You should do something like this:

import mx.utils.Delegate;
function eventHandler(o:Object) {
trace(EVENT ::: eventHandler);
}
var etry:EventTry=new EventTry();
etry.addEventListener(eventName, Delegate.create(this, this.eventHandler));

The only problem you might then run into is that if you try to dispatch an 
event in the constructor of the class (or the init method 
called from the constructor) is that the EventDispacher mixin has not taken 
place yet. There's a delay (1 frame?) you have to take 
into account. You can get around that by using a setInterval or if the class 
extends the MovieClip class, by defining an onLoad 
method in the class and dispatch the event there.

regards,
Muzak

- Original Message - 
From: Javier Tello [EMAIL PROTECTED]
To: Flashcoders Mailing List Flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 2:33 PM
Subject: [Flashcoders] dispatching events from a class


 Hello, I'm having troubles implementing the EventDispatcher class with flash8.

 I do the same I use to do before, but now the class doesn't fired the event. 
 Here is a sample class:
 ___

 import mx.events.EventDispatcher;
 //
 class  EventTry {

 //event functions;
 private var dispatchEvent:Function;
 private var addEventListener:Function;
 private var removeEventListener:Function;
 //
 //fired events;
 public var onEvent:Function;

 public function EventTry(){

 EventDispatcher.initialize(this);
 this.addEventListener(onEvent,this);
 init();
 }
 //
 private function init(){
 dispatchEvent({type:onEvent, target:this});
 die();
 }
 private function die(){
 removeEventListener(onEvent,this);
 this=null;
 delete this;
 trace(EventTry die);
 }
 }
 ___

 And here is the fla code:

 import com.mg.temp.EventTry;
 //
 var etry:EventTry=new EventTry();
 etry.onEvent=function(){
 trace(onEvent fired);
 }
 //end

 ___
 Here I doesn't get the etry. onEvent function fired. Also no error, it just 
 ignore the statement.
 Curiously my older classes run well with such a code.
 Any help would be appreciate,
 thanks,
 Javier.


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


Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread Javier Tello
Still doesn't work. If you look at the code the class fired the event 
before deleting itself. Anyway I simplify it without the die() method:

//
import mx.events.EventDispatcher;
//
//
class EventTry {
//
//members;
//event functions;
private var dispatchEvent:Function;
private var addEventListener:Function;
private var removeEventListener:Function;
//
//fired events;
public var onEvent:Function;
//
//
public function EventTry() {
EventDispatcher.initialize(this);
//here I define onEvent;
this.addEventListener(onEvent, this);
init();
}

private function init() {
dispatchEvent({type:onEvent, target:this}); 
}   
}

and in the fla,
import EventTry;
//
var eventry:EventTry=new EventTry();
eventry.onEvent=function(){
trace(onEvent fired);
}

I make this class just as an example. Other classes I do before in the 
flashmx2004 ide run well.


Please, try to look at it again,

Thanks,

Javier.

El 13/11/2005, a las 14:45, Ian Thomas escribió:


Hi Javier,
This is because you've got things happening in the wrong order:
- You create your EventTry() object, which calls init()
- Init fires the event, but onEvent is still undefined
- Init then calls die()
- Die() deletes the EventTry object
- You then set onEvent to your function - after everything else has 
already

happened.

You need to set the onEvent object _before_ you fire the event to have
anything
meaningful happen.

I can't understand how your old classes would have worked, looking at 
this

code. Perhaps you're doing something slightly differently now?

Hope that helps,
Ian


On 11/13/05, Javier Tello [EMAIL PROTECTED] wrote:


Hello, I'm having troubles implementing the EventDispatcher class with
flash8.

I do the same I use to do before, but now the class doesn't fired the
event. Here is a sample class:
___

import mx.events.EventDispatcher;
//
class EventTry {

//event functions;
private var dispatchEvent:Function;
private var addEventListener:Function;
private var removeEventListener:Function;
//
//fired events;
public var onEvent:Function;

public function EventTry(){

EventDispatcher.initialize(this);
this.addEventListener(onEvent,this);
init();
}
//
private function init(){
dispatchEvent({type:onEvent, target:this});
die();
}
private function die(){
removeEventListener(onEvent,this);
this=null;
delete this;
trace(EventTry die);
}
}
___

And here is the fla code:

import com.mg.temp.EventTry;
//
var etry:EventTry=new EventTry();
etry.onEvent=function(){
trace(onEvent fired);
}
//end

___
Here I doesn't get the etry. onEvent function fired. Also no error,
it just ignore the statement.
Curiously my older classes run well with such a code.
Any help would be appreciate,
thanks,
Javier.


___
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] dispatching events from a class

2005-11-13 Thread Martin Wood
that still wont work because you are dispatching the event before you 
bind the function as the handler.


what are you trying to achieve (apart from getting the event to fire), i 
know this is just an example, but it seems a bit strange.


anyway, you cant call init in the constructor to dispatch the event, 
because theres no method to handle the event.


you could take out the call to init from the constructor and call it 
seperately, then it should work :


var eventry:EventTry=new EventTry();
eventry.onEvent=function(){
 trace(onEvent fired);
}

eventry.init();


martin.

Javier Tello wrote:
Still doesn't work. If you look at the code the class fired the event 
before deleting itself. Anyway I simplify it without the die() method:



--
want to know what i think? probably not

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


Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread Javier Tello

Yes!!
Thanks a lot Martin, in the way you explain it, works. I didn´t notice 
it before because in real coding perhaps doesn't have such issue. But 
it's something to remember.


_
that still wont work because you are dispatching the event before you 
bind the function as the handler.


what are you trying to achieve (apart from getting the event to fire), 
i know this is just an example, but it seems a bit strange.


anyway, you cant call init in the constructor to dispatch the event, 
because theres no method to handle the event.


you could take out the call to init from the constructor and call it 
seperately, then it should work :

_

So the sample code can look like this:

//
//import classes;
import mx.events.EventDispatcher;
//
//
class EventTry {
//
//members;
//event functions;
private var dispatchEvent:Function;
public var addEventListener:Function;
private var removeEventListener:Function;
//
//fired events;
public var onEvent:Function;
//
private var msg:String;
//
public function EventTry(msg:String) {
this.msg = msg;
EventDispatcher.initialize(this);
this.addEventListener(onEvent, this);
//init();
}
public function getMsg():String {
return msg;
}
//
public function callEvent() {
dispatchEvent({type:onEvent, target:this});
die();
}
//
private function die() {
removeEventListener(onEvent, this);
trace(EventTry deleted);
}
}

And the fla:
import com.mg.temp.EventTry;
//
var eventry:EventTry = new EventTry(hello again);
eventry.onEvent = function() {
trace(this.getMsg());
};
eventry.callEvent();
//second call to see the event removed.
eventry.callEvent();
//
stop();

Also thanks for the other useful approaches.
Regards,

Javier.

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


Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread Javier Tello
Thanks Jester, I know, it was a discussion about using or not the 
prototype keyword, and if actionscript will support it in future 
versions. But like you say, it is still being used also in as3. I will 
try it.


Regards,

Javier.

El 13/11/2005, a las 17:44, JesterXL escribió:

EventDispatcher uses the Decorator pattern, and technically adds 
methods to
whatever you pass in.  Since you are running it in the constructor, 
you are

adding methods to the instance.  You are better off adding them to the
class' prototype, so that only 4 methods are added to your class 
instead of

4 per instance.  Everytime you make a new instance of your class, 4 new
methods are added to the instance, meaning 4 more functions in RAM vs. 
just
4 on the prototype, and all instances, 1 or million, all pointing to 
just

those same 4 in memory.

You use a static initializer to do this, it runs once, during the class
registration phase.

class YourClass
{
public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

private static var mixin:Void =
EventDispatcher.initialize(YourClass.prototype);
}

From then on, you can use the functions as you have; this is just way 
more

efficient for RAM usage.

To your credit, a lot of base classes such as UIComponent, in both 
Flex,
Flash, and Flex 2  ActionSript 3 utilize events from yourself, so 
the:


addEventListener(mouseDown, this);

Will be more common.

- Original Message -
From: Javier Tello [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:25 AM
Subject: Re: [Flashcoders] dispatching events from a class


Yes ok Muzak, but  for example, it's the way the Tween class were
implemented. It is like an onEnterFrame build in event, just to get
less code lines in the main movie.

I do not remember who, but someone discuss this issue, relating how to
implement the EventDispatcher class, and explaining to do it in the
constructor.


El 13/11/2005, a las 15:15, Muzak escribió:


 Delegate.create(this, this.eventHandler));

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

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



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


[Flashcoders] XML onData, onLoad and replaceing #; strings.

2005-11-13 Thread Barrett
So I have a delima, I know that I can see the #xD; as text if I access the
node in xml.onData, however when I attempt to modify the string output while
in onLoad the #xD; was already converted into new lines, which are
unnessary and need to be removed. The question is, how do I modify the
string after I get into onLoad, or pass the onData data variable so its
usable.

The text stands as suck in the XML file:
blah blah blah
#xD;
blah blah blah

How do I remove or change those types of strings.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] dispatching events from a class = HELP

2005-11-13 Thread Bruno Mosconi
Hi, I'm also having problems with Events. Could someone give me a little
help on this issue?

The EventListener is firing fine, but its associated method CAN NOT call
another Class method. Why?

Here is the Main Class: (Here is the Problem)

import com.ultrafactor.LblButton;
class com.ultrafactor.TabBox extends MovieClip
{
private var tab_0:LblButton;

public function TabBox()
{   
main();
}

private function main():Void
{
setButtonListeners();
}

// don't know why it takes so long...
// is there any other elegant way to do it??
private function setButtonListeners():Void
{
i=0;
this.onEnterFrame = function()
{
this.i++;
if(this.i==20) 
{
delete this.onEnterFrame;
}
else
{

tab_0.addEventListener(release,this.clickTab);
}   
}
}

private function clickTab(evtObj:Object):Void
{
trace(click);// WORK
this.test();// DO NOT WORK
}

//Can't call this Method!!!
private function test():Void
{
trace(test);
}
}

The used Classes:
import mx.core.UIObject;
import mx.core.UIComponent;
class com.ultrafactor.Button extends mx.core.UIComponent
{
private var initializing:Boolean = true;
private var autoRepeat:Boolean;
private var interval;

function Button()
{
super.init();
useHandCursor = true;
}

private function size(Void):Void
{
super.invalidate();
}

private function draw(Void):Void
{
if (initializing)
{
initializing = false;
}
size(); 
}

private function onRollOver():Void
{
if (interval != undefined)
{
clearInterval(interval);
delete interval;
}

gotoAndStop(2);
}

private function onDragOver():Void
{
onPress();
}

private function onRollOut():Void
{
gotoAndStop(1);
}

private function onDragOut():Void
{
onRollOut();
}

private function onRelease():Void
{
dispatchEvent({type:click});

onRollOver();
}

private function onPress():Void
{
gotoAndStop(3);

dispatchEvent({type:buttonDown});
if (autoRepeat)
{
interval = setInterval(this, onPressDelay,
getStyle(repeatDelay));
}
}

private function onPressDelay(Void):Void
{
dispatchEvent({type:buttonDown});
if (autoRepeat)
{
clearInterval(interval);
interval = setInterval(this, onPressRepeat,
getStyle(repeatInterval));
}
}

private function onPressRepeat(Void):Void
{
dispatchEvent({type:buttonDown});
updateAfterEvent();
}
}

import com.ultrafactor.Button;
import mx.core.UIObject;
import mx.core.UIComponent;
import mx.events.EventDispatcher;
class com.ultrafactor.LblButton extends Button
{
private function dispatchEvent() {};
public  function addEventListener() {};
public  function removeEventListener() {};

private var lbl:TextField;  
private var link:String;

private var initializing:Boolean = true;
private var initText:String;

function LblButton()
{
mx.events.EventDispatcher.initialize(this);
super.init();
}

public function setLabel(t:String):Void
{
if (initializing)
{
initText = t;
}
else
{
lbl.embedFonts = true;
lbl.text = t;

invalidate(); 
}

draw();
}

public function getLabel():String
{
if (initializing)
return initText;

return lbl.text;
}

public function 

Re: [Flashcoders] swf to svg

2005-11-13 Thread Helen Triolo

Yes:  http://flash-creations.com/notes/sample_svgtoflash.php

(What is thecanvasproject?)

Helen

Eric R. Shinn wrote:

Is there ActionScript 2.0 code out there to convert SVG to an object  
the DrawingAPI can understand?


Cheers,

Eric R. Shinn
[EMAIL PROTECTED]



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


Re: [Flashcoders] dispatching events from a class = HELP

2005-11-13 Thread Ian Thomas
You need to use a Delegate. As this is a question which comes up about one a
week on this mailing list (not your, fault, I know!) I'm afraid I'm going to
direct you to the Flashcoders Wiki page about the problem rather than answer
you in full here...

http://www.osflash.org/flashcoders/as2

Hope that helps,
Ian

On 11/13/05, Bruno Mosconi [EMAIL PROTECTED] wrote:

 Hi, I'm also having problems with Events. Could someone give me a little
 help on this issue?

The EventListener is firing fine, but its associated method CAN NOT call
 another Class method. Why?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread JesterXL
Actually, there aren't many Decorators in AS3 that I can find.

Additionally, EventDispatcher is built-in.  MovieClip actually extends 
EventDispatcher, so no need for all the mixin stuff.

- Original Message - 
From: Javier Tello [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 12:33 PM
Subject: Re: [Flashcoders] dispatching events from a class


Thanks Jester, I know, it was a discussion about using or not the
prototype keyword, and if actionscript will support it in future
versions. But like you say, it is still being used also in as3. I will
try it.

Regards,

Javier.

El 13/11/2005, a las 17:44, JesterXL escribió:

 EventDispatcher uses the Decorator pattern, and technically adds
 methods to
 whatever you pass in.  Since you are running it in the constructor,
 you are
 adding methods to the instance.  You are better off adding them to the
 class' prototype, so that only 4 methods are added to your class
 instead of
 4 per instance.  Everytime you make a new instance of your class, 4 new
 methods are added to the instance, meaning 4 more functions in RAM vs.
 just
 4 on the prototype, and all instances, 1 or million, all pointing to
 just
 those same 4 in memory.

 You use a static initializer to do this, it runs once, during the class
 registration phase.

 class YourClass
 {
 public var addEventListener:Function;
 public var removeEventListener:Function;
 private var dispatchEvent:Function;

 private static var mixin:Void =
 EventDispatcher.initialize(YourClass.prototype);
 }

 From then on, you can use the functions as you have; this is just way
 more
 efficient for RAM usage.

 To your credit, a lot of base classes such as UIComponent, in both
 Flex,
 Flash, and Flex 2  ActionSript 3 utilize events from yourself, so
 the:

 addEventListener(mouseDown, this);

 Will be more common.

 - Original Message -
 From: Javier Tello [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:25 AM
 Subject: Re: [Flashcoders] dispatching events from a class


 Yes ok Muzak, but  for example, it's the way the Tween class were
 implemented. It is like an onEnterFrame build in event, just to get
 less code lines in the main movie.

 I do not remember who, but someone discuss this issue, relating how to
 implement the EventDispatcher class, and explaining to do it in the
 constructor.


 El 13/11/2005, a las 15:15, Muzak escribió:

  Delegate.create(this, this.eventHandler));
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


RE: [Flashcoders] dispatching events from a class = HELP

2005-11-13 Thread Bruno Mosconi
Why delegate if the method is inside the same Class?

thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: domingo, 13 de novembro de 2005 15:46
To: Flashcoders mailing list
Subject: Re: [Flashcoders] dispatching events from a class = HELP

You need to use a Delegate. As this is a question which comes up about one a
week on this mailing list (not your, fault, I know!) I'm afraid I'm going to
direct you to the Flashcoders Wiki page about the problem rather than answer
you in full here...

http://www.osflash.org/flashcoders/as2

Hope that helps,
Ian

On 11/13/05, Bruno Mosconi [EMAIL PROTECTED] wrote:

 Hi, I'm also having problems with Events. Could someone give me a little
 help on this issue?

The EventListener is firing fine, but its associated method CAN NOT call
 another Class method. Why?
___
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] Q:UMl/Class Diagram plugin for AS2 development in Eclipse

2005-11-13 Thread bitstreams
A question for people using Eclipse.

What UML/Class diagram plugin do you use/recommend for AS2 development? 
Any other favorite plugins?

Thanks in advance
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] dispatching events from a class = HELP

2005-11-13 Thread Ian Thomas
You need to use the Delegate in your addEventListener line - because you're
passing clickTab to a completely different object, which will later call
back to clickTab, but doesn't have the correct context. Passing
this.clickTab isn't enough - passing Delegate.create(this,clickTab) should
be enough. I know it's odd.

This is changed in AS3.

Ian

On 11/13/05, Bruno Mosconi [EMAIL PROTECTED] wrote:

 Why delegate if the method is inside the same Class?

 thanks

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


RE: [Flashcoders] dispatching events from a class = HELP

2005-11-13 Thread Bruno Mosconi
Thanks!

Btw, AS 3.0 looks like AS 2.0 FIXED...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: domingo, 13 de novembro de 2005 16:25
To: Flashcoders mailing list
Subject: Re: [Flashcoders] dispatching events from a class = HELP

You need to use the Delegate in your addEventListener line - because you're
passing clickTab to a completely different object, which will later call
back to clickTab, but doesn't have the correct context. Passing
this.clickTab isn't enough - passing Delegate.create(this,clickTab) should
be enough. I know it's odd.

This is changed in AS3.

Ian

On 11/13/05, Bruno Mosconi [EMAIL PROTECTED] wrote:

 Why delegate if the method is inside the same Class?

 thanks

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


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


Re: [Flashcoders] PODCAST and RSS feeds in flash audio player

2005-11-13 Thread hank williams
Well, I am not eric... but I think I know what he means.

I have no idea what the software is for. The interface is unclear.
There is no context.

Interfaces need to be layered. You need to lead someone through the
options, and you need to provide some explanation as to what your
software is for.

It is confusing.

But I did enjoy listening to 50.

Hank

On 11/12/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Not sure what you mean Eric. Please explain.

 Lou


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
 Sent: Friday, November 11, 2005 4:36 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] PODCAST and RSS feeds in flash audio player

 If that thing had an approachable interface I would probably spend more than
 4 seconds on it.

 e.dolecki

 On 11/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
 
  I posted this a little while ago. I was wondering it anyone had any
  insight
  into this. Here is the link and login again
 
  http://www.blogamp.com/blogamp_admin/index.php
  user - 123
  pass - 123
 
  Thanks!
 
  Lou
 
  -Original Message-
 
  Hi all --- I posted a question a month or so ago about right clicking to
  subscribe to a feed. I tried a few things and I have a working model done
  but would like some advice. Please check out the flash player and admin
  below
 
 
  http://www.blogamp.com/blogamp_admin/index.php
 
 
  Any suggestions to right click menu on the podcast link would be great.
 
  I am also looking for a solution to allow clients to record their audio
  and
  convert it to mp3 for podcasts and all done through a interface like this.
 
 
 
  Thanks in advance!
 
 
 
  Lou
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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

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


[Flashcoders] Datagrid how to?

2005-11-13 Thread Noyes, Jeff
Anyone know how I can trace a particular cell in the datagrid?  On focus
(select) of a row item, I want to return the first cell

-Original Message-
From: Ricky Bacon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 09, 2005 8:55 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Follow up on the POST issue


And it crosses over into the ad banner thread...

The original issue was a banner that was failing to POST information on 
the ad network in IE/Win.  It turns out that IE does not want to POST 
any information to a new window when the Flash piece is in an iframe 
(thanks David).  GET works fine.

The amount of information being transferred necessitates using POST so 
the solution we ended up going with was:

- transfer the bulk of the information using an XMLSocket
- return a unique id to the Flash client
- use a LoadVars.send() GET with the unique id to pop up the new window 
and continue doing what we need to do

I had tried doing some DOM stuff with creating a form in the iframe on 
the fly using the JavaScript pseudo-protocol and getURL.  That worked 
with Mozilla, but IE didn't like that either.

Hope this helps to prevent anyone from banging their heads against the 
wall in the future.

-Ricky
___
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] ScrollPane weirdness

2005-11-13 Thread redknot
Thanks for the suggestion.  To clarify, the setScrollProperties is 
acting on the scrollPane instance?   I tried a variation of this 
after the swf finished loading, and it didn't change the behavior of 
the scrollbars unfortunately. Is that method (setScrollProperties) 
documented somewhere?


Interestingly, If I check the height of the swf 
scrollPaneInstance.content._height it comes up about a hundred pixels 
short.


At 3:25 AM -0800 11/13/05, Steven Sacks wrote:

Assuming this is the swf/clip you loaded into the scrollpane:

After it is finished loading, have the swf call the following:

this._parent.setScrollProperties(this._width, 1, this._height, 1);

Hope this works for you.

-Steven



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of redknot
 Sent: Saturday, November 12, 2005 1:09 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] ScrollPane weirdness

 I am trying to display an external .swf inside a ScrollPane component.

 The swf does not fully display, it is cut off  about a hundred pixels
 before the end of the swf.

 Strangely, if I republish the swf that my designer sent me from the
 original .fla file, then the swf displays in the scrollPane with a
 LOT of extra white space at the bottom, so it the scrollbar becomes
 unusable really.  In the swf it's mainly text content on a white
 background.

 I have searched all over for a solution, but I'm not getting any
 closer!  Any ideas how I can definitively get the scrollPane to
 disply the correct length of the external swf?

 Thanks folks,
 Lorraine


 --

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


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



--

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


Re: [Flashcoders] Class Loading

2005-11-13 Thread JesterXL
Depends on when.  There are 3 main time intervals that matter:
- class export frame
- class runtime initialization
- SWF runtime class meshing
* runtime shared libraries

By default, in Flash MX 2004, classes are exported on frame 1; meaning they 
are initialized on frame 0 (which you can't do anything on), and I think 
static initializers are run on frame 1.

So, if you leave the default on, you can access your classes from frame 1, 
and on.

However, if your classes are exported on frame 2 or beyond, you'll have to 
wait for that particular frame to be fully downloaded.

Additionally, some classes utilize runtime changes, such as EventDispatcher, 
DataSelector, and DataProvider.  So, assuming your class does not depend on 
occuring before those events (which most never do), then you are usually 
fine as well.

Runtime loading of SWF's, however, confuses me, and I haven't seen a 
defintive source that describes in what version, what happens in a loaded 
SWF has the same class, who overrwrites what, etc.

Additionally, although Remote Shared Libraries act like #1, I don't know 
when they are actually insantiated, but I believe if you export them on 
frame 1, you can treat them as #1; I always have as compoents and they work 
fine.

- Original Message - 
From: Bruno Mosconi [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 4:55 PM
Subject: [Flashcoders] Class Loading


How do I make sure that all Classes are fully loaded?

Thanks,
Bruno

___
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] Class Loading

2005-11-13 Thread Jim Kremens
Runtime loading of SWF's, however, confuses me, and I haven't seen a
defintive source that describes in what version, what happens in a loaded
SWF has the same class, who overrwrites what, etc.
 The loading swf uses the first version of any class that it comes across.
This can be a problem if two compiled swfs use slightly different versions
of a class.
 Jim Kremens

 On 11/13/05, JesterXL [EMAIL PROTECTED] wrote:

 Depends on when. There are 3 main time intervals that matter:
 - class export frame
 - class runtime initialization
 - SWF runtime class meshing
 * runtime shared libraries

 By default, in Flash MX 2004, classes are exported on frame 1; meaning
 they
 are initialized on frame 0 (which you can't do anything on), and I think
 static initializers are run on frame 1.

 So, if you leave the default on, you can access your classes from frame 1,
 and on.

 However, if your classes are exported on frame 2 or beyond, you'll have to
 wait for that particular frame to be fully downloaded.

 Additionally, some classes utilize runtime changes, such as
 EventDispatcher,
 DataSelector, and DataProvider. So, assuming your class does not depend on
 occuring before those events (which most never do), then you are usually
 fine as well.

 Runtime loading of SWF's, however, confuses me, and I haven't seen a
 defintive source that describes in what version, what happens in a loaded
 SWF has the same class, who overrwrites what, etc.

 Additionally, although Remote Shared Libraries act like #1, I don't know
 when they are actually insantiated, but I believe if you export them on
 frame 1, you can treat them as #1; I always have as compoents and they
 work
 fine.

 - Original Message -
 From: Bruno Mosconi [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 4:55 PM
 Subject: [Flashcoders] Class Loading


 How do I make sure that all Classes are fully loaded?

 Thanks,
 Bruno

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

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

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


[Flashcoders] Flash Remoting Question

2005-11-13 Thread Al Veldhuis
Hello,

I have a question. I am reasonably experienced in Flash and Actionscripting,
and I have recently tried to learn Flash Remoting. I find it extremely
confusing at times to use. I have kinda given up.

So I started searching for an alternative to Flash Remoting, and I came
accoss a site that sells software called Emissary. The site is
flashlinksolutions.com http://flashlinksolutions.com/. Does anyone out
there know anything about this company and their software? It looks like it
does what I am looking for, but I am not sure. If anyone has any experience
with this product, please let me know as I don't want to drop $50 and find
out it isn't what I am looking for.

Or does anyone know of any less confusing, (And Cheaper) Flash remoting
software?

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


Re: [Flashcoders] Class Loading

2005-11-13 Thread JesterXL
I had heard from an MM engineer that this depends on Player Version; does 
that really matter?  And if so, how does it work with AS3?

- Original Message - 
From: Jim Kremens [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 7:28 PM
Subject: Re: [Flashcoders] Class Loading


Runtime loading of SWF's, however, confuses me, and I haven't seen a
defintive source that describes in what version, what happens in a loaded
SWF has the same class, who overrwrites what, etc.
 The loading swf uses the first version of any class that it comes across.
This can be a problem if two compiled swfs use slightly different versions
of a class.
 Jim Kremens

 On 11/13/05, JesterXL [EMAIL PROTECTED] wrote:

 Depends on when. There are 3 main time intervals that matter:
 - class export frame
 - class runtime initialization
 - SWF runtime class meshing
 * runtime shared libraries

 By default, in Flash MX 2004, classes are exported on frame 1; meaning
 they
 are initialized on frame 0 (which you can't do anything on), and I think
 static initializers are run on frame 1.

 So, if you leave the default on, you can access your classes from frame 1,
 and on.

 However, if your classes are exported on frame 2 or beyond, you'll have to
 wait for that particular frame to be fully downloaded.

 Additionally, some classes utilize runtime changes, such as
 EventDispatcher,
 DataSelector, and DataProvider. So, assuming your class does not depend on
 occuring before those events (which most never do), then you are usually
 fine as well.

 Runtime loading of SWF's, however, confuses me, and I haven't seen a
 defintive source that describes in what version, what happens in a loaded
 SWF has the same class, who overrwrites what, etc.

 Additionally, although Remote Shared Libraries act like #1, I don't know
 when they are actually insantiated, but I believe if you export them on
 frame 1, you can treat them as #1; I always have as compoents and they
 work
 fine.

 - Original Message -
 From: Bruno Mosconi [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 4:55 PM
 Subject: [Flashcoders] Class Loading


 How do I make sure that all Classes are fully loaded?

 Thanks,
 Bruno

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

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

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

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


[Flashcoders] blogger with flash

2005-11-13 Thread Patrick Matte
Hi, i have made a flash 7 blog that uses blogger's xml output. It works 
perfectly when i test locally. But when i access the file from website, the xml 
object never returns success... Maybe its a cross-domain problem with flash ?

The xml comes form http://anniegroovie.blogspot.com/atom.xml

Anyone knows what the problem could be ?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] blogger with flash

2005-11-13 Thread JesterXL
Is your .swf on anniegroovie.blogspot.com?

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:30 PM
Subject: [Flashcoders] blogger with flash


Hi, i have made a flash 7 blog that uses blogger's xml output. It works 
perfectly when i test locally. But when i access the file from website, the 
xml object never returns success... Maybe its a cross-domain problem with 
flash ?

The xml comes form http://anniegroovie.blogspot.com/atom.xml

Anyone knows what the problem could be ?
___
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] blogger with flash

2005-11-13 Thread Patrick Matte
No my swf is on another server! But i thought flash could read files from 
other servers.


- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:31 PM
Subject: Re: [Flashcoders] blogger with flash



Is your .swf on anniegroovie.blogspot.com?

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:30 PM
Subject: [Flashcoders] blogger with flash


Hi, i have made a flash 7 blog that uses blogger's xml output. It works
perfectly when i test locally. But when i access the file from website, 
the

xml object never returns success... Maybe its a cross-domain problem with
flash ?

The xml comes form http://anniegroovie.blogspot.com/atom.xml

Anyone knows what the problem could be ?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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


Re: [Flashcoders] blogger with flash

2005-11-13 Thread JesterXL
Nope, this is part of the security sandbox since Flash 5.  You will need 
either:
- the swf to reside on anniegroove.blogspot.com
- a shim.swf to reside on the above domain that merely says 
System.allowDomain(*);
- a crossdomain.xml file to reside on the above domain that allows your site
- a proxy

The most common solution is a proxy since it only requires very little code, 
and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever, loads 
the XML file from the other domain, and passes it to Flash.  Here's how I 
not only grab an XML file, but uncompress it for Flash:

?php

 $file = gzfile($HTTP_POST_VARS[filename]);

 echo theXML= . implode(, $file);
?

My swf just does a LoadVars.sendandLoad to that PHP file, with a filename 
variable, and it returns the XML as a string, which I then just toss to an 
XML object.

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:35 PM
Subject: Re: [Flashcoders] blogger with flash


No my swf is on another server! But i thought flash could read files from
other servers.

- Original Message - 
From: JesterXL [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:31 PM
Subject: Re: [Flashcoders] blogger with flash


 Is your .swf on anniegroovie.blogspot.com?

 - Original Message - 
 From: Patrick Matte [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:30 PM
 Subject: [Flashcoders] blogger with flash


 Hi, i have made a flash 7 blog that uses blogger's xml output. It works
 perfectly when i test locally. But when i access the file from website,
 the
 xml object never returns success... Maybe its a cross-domain problem with
 flash ?

 The xml comes form http://anniegroovie.blogspot.com/atom.xml

 Anyone knows what the problem could be ?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] blogger with flash

2005-11-13 Thread Patrick Matte

Thanks, that sounds good ! I'll try this right away !

- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:43 PM
Subject: Re: [Flashcoders] blogger with flash



Nope, this is part of the security sandbox since Flash 5.  You will need
either:
- the swf to reside on anniegroove.blogspot.com
- a shim.swf to reside on the above domain that merely says
System.allowDomain(*);
- a crossdomain.xml file to reside on the above domain that allows your 
site

- a proxy

The most common solution is a proxy since it only requires very little 
code,
and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever, 
loads

the XML file from the other domain, and passes it to Flash.  Here's how I
not only grab an XML file, but uncompress it for Flash:

?php

$file = gzfile($HTTP_POST_VARS[filename]);

echo theXML= . implode(, $file);
?

My swf just does a LoadVars.sendandLoad to that PHP file, with a filename
variable, and it returns the XML as a string, which I then just toss to an
XML object.

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:35 PM
Subject: Re: [Flashcoders] blogger with flash


No my swf is on another server! But i thought flash could read files from
other servers.

- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:31 PM
Subject: Re: [Flashcoders] blogger with flash



Is your .swf on anniegroovie.blogspot.com?

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:30 PM
Subject: [Flashcoders] blogger with flash


Hi, i have made a flash 7 blog that uses blogger's xml output. It works
perfectly when i test locally. But when i access the file from website,
the
xml object never returns success... Maybe its a cross-domain problem with
flash ?

The xml comes form http://anniegroovie.blogspot.com/atom.xml

Anyone knows what the problem could be ?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


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


Re: [Flashcoders] blogger with flash

2005-11-13 Thread Patrick Matte

I tried that bit of php code but couldn't resolved anything.
The Loadvars returns the XML=onLoad=%5Btype%20Function%5D 



- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:43 PM
Subject: Re: [Flashcoders] blogger with flash



Nope, this is part of the security sandbox since Flash 5.  You will need
either:
- the swf to reside on anniegroove.blogspot.com
- a shim.swf to reside on the above domain that merely says
System.allowDomain(*);
- a crossdomain.xml file to reside on the above domain that allows your 
site

- a proxy

The most common solution is a proxy since it only requires very little 
code,
and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever, 
loads

the XML file from the other domain, and passes it to Flash.  Here's how I
not only grab an XML file, but uncompress it for Flash:

?php

$file = gzfile($HTTP_POST_VARS[filename]);

echo theXML= . implode(, $file);
?

My swf just does a LoadVars.sendandLoad to that PHP file, with a filename
variable, and it returns the XML as a string, which I then just toss to an
XML object.

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:35 PM
Subject: Re: [Flashcoders] blogger with flash


No my swf is on another server! But i thought flash could read files from
other servers.

- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:31 PM
Subject: Re: [Flashcoders] blogger with flash



Is your .swf on anniegroovie.blogspot.com?

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:30 PM
Subject: [Flashcoders] blogger with flash


Hi, i have made a flash 7 blog that uses blogger's xml output. It works
perfectly when i test locally. But when i access the file from website,
the
xml object never returns success... Maybe its a cross-domain problem with
flash ?

The xml comes form http://anniegroovie.blogspot.com/atom.xml

Anyone knows what the problem could be ?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


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


Re: [Flashcoders] blogger with flash

2005-11-13 Thread JesterXL
If the XML file isn't gzipped, I'm not sure what that would return.

Are you uploading that PHP file to your server and doing something like:

lv = new LoadVars();
lv.owner = this;
lv.filepath = http://anniegroovie.blogspot.com/atom.xml;;
lv.onData= function(str)
{
this.owner.parseTheXML(str);
};
lv.sendAndLoad(yourserver.com/the.php, lv, POST);

funciton parseTheXML(str)
{
var xml = new XML();
xml.parseXML(str);
trace(xml);
}

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 11:08 PM
Subject: Re: [Flashcoders] blogger with flash


I tried that bit of php code but couldn't resolved anything.
The Loadvars returns the XML=onLoad=%5Btype%20Function%5D 



- Original Message - 
From: JesterXL [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:43 PM
Subject: Re: [Flashcoders] blogger with flash


 Nope, this is part of the security sandbox since Flash 5.  You will need
 either:
 - the swf to reside on anniegroove.blogspot.com
 - a shim.swf to reside on the above domain that merely says
 System.allowDomain(*);
 - a crossdomain.xml file to reside on the above domain that allows your
 site
 - a proxy

 The most common solution is a proxy since it only requires very little
 code,
 and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever,
 loads
 the XML file from the other domain, and passes it to Flash.  Here's how I
 not only grab an XML file, but uncompress it for Flash:

 ?php

 $file = gzfile($HTTP_POST_VARS[filename]);

 echo theXML= . implode(, $file);
 ?

 My swf just does a LoadVars.sendandLoad to that PHP file, with a filename
 variable, and it returns the XML as a string, which I then just toss to an
 XML object.

 - Original Message - 
 From: Patrick Matte [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:35 PM
 Subject: Re: [Flashcoders] blogger with flash


 No my swf is on another server! But i thought flash could read files from
 other servers.

 - Original Message - 
 From: JesterXL [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:31 PM
 Subject: Re: [Flashcoders] blogger with flash


 Is your .swf on anniegroovie.blogspot.com?

 - Original Message - 
 From: Patrick Matte [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:30 PM
 Subject: [Flashcoders] blogger with flash


 Hi, i have made a flash 7 blog that uses blogger's xml output. It works
 perfectly when i test locally. But when i access the file from website,
 the
 xml object never returns success... Maybe its a cross-domain problem with
 flash ?

 The xml comes form http://anniegroovie.blogspot.com/atom.xml

 Anyone knows what the problem could be ?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

___
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] blogger with flash

2005-11-13 Thread Patrick Matte

Do i have to change anything to that bit of php code ?

?php

$file = gzfile($HTTP_POST_VARS[filename]);

echo theXML= . implode(, $file);
?

In flash


- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 11:24 PM
Subject: Re: [Flashcoders] blogger with flash



If the XML file isn't gzipped, I'm not sure what that would return.

Are you uploading that PHP file to your server and doing something like:

lv = new LoadVars();
lv.owner = this;
lv.filepath = http://anniegroovie.blogspot.com/atom.xml;;
lv.onData= function(str)
{
   this.owner.parseTheXML(str);
};
lv.sendAndLoad(yourserver.com/the.php, lv, POST);

funciton parseTheXML(str)
{
   var xml = new XML();
   xml.parseXML(str);
   trace(xml);
}

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 11:08 PM
Subject: Re: [Flashcoders] blogger with flash


I tried that bit of php code but couldn't resolved anything.
The Loadvars returns the XML=onLoad=%5Btype%20Function%5D 



- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:43 PM
Subject: Re: [Flashcoders] blogger with flash



Nope, this is part of the security sandbox since Flash 5.  You will need
either:
- the swf to reside on anniegroove.blogspot.com
- a shim.swf to reside on the above domain that merely says
System.allowDomain(*);
- a crossdomain.xml file to reside on the above domain that allows your
site
- a proxy

The most common solution is a proxy since it only requires very little
code,
and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever,
loads
the XML file from the other domain, and passes it to Flash.  Here's how I
not only grab an XML file, but uncompress it for Flash:

?php

$file = gzfile($HTTP_POST_VARS[filename]);

echo theXML= . implode(, $file);
?

My swf just does a LoadVars.sendandLoad to that PHP file, with a filename
variable, and it returns the XML as a string, which I then just toss to 
an

XML object.

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:35 PM
Subject: Re: [Flashcoders] blogger with flash


No my swf is on another server! But i thought flash could read files from
other servers.

- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:31 PM
Subject: Re: [Flashcoders] blogger with flash



Is your .swf on anniegroovie.blogspot.com?

- Original Message - 
From: Patrick Matte [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:30 PM
Subject: [Flashcoders] blogger with flash


Hi, i have made a flash 7 blog that uses blogger's xml output. It works
perfectly when i test locally. But when i access the file from website,
the
xml object never returns success... Maybe its a cross-domain problem 
with

flash ?

The xml comes form http://anniegroovie.blogspot.com/atom.xml

Anyone knows what the problem could be ?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


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

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


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


Re: [Flashcoders] blogger with flash

2005-11-13 Thread eric dolecki
why LoadVars? Just do a XML load of a proxy file which will in turn
return your XML?

http://www.ericd.net/weather_tutorial/security.html
Thats the flavor of proxy that I like to use.



On 11/13/05, JesterXL [EMAIL PROTECTED] wrote:
 If the XML file isn't gzipped, I'm not sure what that would return.

 Are you uploading that PHP file to your server and doing something like:

 lv = new LoadVars();
 lv.owner = this;
 lv.filepath = http://anniegroovie.blogspot.com/atom.xml;;
 lv.onData= function(str)
 {
 this.owner.parseTheXML(str);
 };
 lv.sendAndLoad(yourserver.com/the.php, lv, POST);

 funciton parseTheXML(str)
 {
 var xml = new XML();
 xml.parseXML(str);
 trace(xml);
 }

 - Original Message -
 From: Patrick Matte [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 11:08 PM
 Subject: Re: [Flashcoders] blogger with flash


 I tried that bit of php code but couldn't resolved anything.
 The Loadvars returns the XML=onLoad=%5Btype%20Function%5D 



 - Original Message -
 From: JesterXL [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:43 PM
 Subject: Re: [Flashcoders] blogger with flash


  Nope, this is part of the security sandbox since Flash 5.  You will need
  either:
  - the swf to reside on anniegroove.blogspot.com
  - a shim.swf to reside on the above domain that merely says
  System.allowDomain(*);
  - a crossdomain.xml file to reside on the above domain that allows your
  site
  - a proxy
 
  The most common solution is a proxy since it only requires very little
  code,
  and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever,
  loads
  the XML file from the other domain, and passes it to Flash.  Here's how I
  not only grab an XML file, but uncompress it for Flash:
 
  ?php
 
  $file = gzfile($HTTP_POST_VARS[filename]);
 
  echo theXML= . implode(, $file);
  ?
 
  My swf just does a LoadVars.sendandLoad to that PHP file, with a filename
  variable, and it returns the XML as a string, which I then just toss to an
  XML object.
 
  - Original Message -
  From: Patrick Matte [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Sunday, November 13, 2005 10:35 PM
  Subject: Re: [Flashcoders] blogger with flash
 
 
  No my swf is on another server! But i thought flash could read files from
  other servers.
 
  - Original Message -
  From: JesterXL [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Sunday, November 13, 2005 10:31 PM
  Subject: Re: [Flashcoders] blogger with flash
 
 
  Is your .swf on anniegroovie.blogspot.com?
 
  - Original Message -
  From: Patrick Matte [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Sunday, November 13, 2005 10:30 PM
  Subject: [Flashcoders] blogger with flash
 
 
  Hi, i have made a flash 7 blog that uses blogger's xml output. It works
  perfectly when i test locally. But when i access the file from website,
  the
  xml object never returns success... Maybe its a cross-domain problem with
  flash ?
 
  The xml comes form http://anniegroovie.blogspot.com/atom.xml
 
  Anyone knows what the problem could be ?
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] blogger with flash

2005-11-13 Thread JesterXL
You don't have to; my PHP was setup to load from a filename, a filename 
variable you had to pass to Flash. If he hardcodes the filename in the PHP, 
he doesn't have to.

- Original Message - 
From: eric dolecki [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 11:47 PM
Subject: Re: [Flashcoders] blogger with flash


why LoadVars? Just do a XML load of a proxy file which will in turn
return your XML?

http://www.ericd.net/weather_tutorial/security.html
Thats the flavor of proxy that I like to use.



On 11/13/05, JesterXL [EMAIL PROTECTED] wrote:
 If the XML file isn't gzipped, I'm not sure what that would return.

 Are you uploading that PHP file to your server and doing something like:

 lv = new LoadVars();
 lv.owner = this;
 lv.filepath = http://anniegroovie.blogspot.com/atom.xml;;
 lv.onData= function(str)
 {
 this.owner.parseTheXML(str);
 };
 lv.sendAndLoad(yourserver.com/the.php, lv, POST);

 funciton parseTheXML(str)
 {
 var xml = new XML();
 xml.parseXML(str);
 trace(xml);
 }

 - Original Message -
 From: Patrick Matte [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 11:08 PM
 Subject: Re: [Flashcoders] blogger with flash


 I tried that bit of php code but couldn't resolved anything.
 The Loadvars returns the XML=onLoad=%5Btype%20Function%5D 



 - Original Message -
 From: JesterXL [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:43 PM
 Subject: Re: [Flashcoders] blogger with flash


  Nope, this is part of the security sandbox since Flash 5.  You will need
  either:
  - the swf to reside on anniegroove.blogspot.com
  - a shim.swf to reside on the above domain that merely says
  System.allowDomain(*);
  - a crossdomain.xml file to reside on the above domain that allows your
  site
  - a proxy
 
  The most common solution is a proxy since it only requires very little
  code,
  and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever,
  loads
  the XML file from the other domain, and passes it to Flash.  Here's how 
  I
  not only grab an XML file, but uncompress it for Flash:
 
  ?php
 
  $file = gzfile($HTTP_POST_VARS[filename]);
 
  echo theXML= . implode(, $file);
  ?
 
  My swf just does a LoadVars.sendandLoad to that PHP file, with a 
  filename
  variable, and it returns the XML as a string, which I then just toss to 
  an
  XML object.
 
  - Original Message -
  From: Patrick Matte [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Sunday, November 13, 2005 10:35 PM
  Subject: Re: [Flashcoders] blogger with flash
 
 
  No my swf is on another server! But i thought flash could read files 
  from
  other servers.
 
  - Original Message -
  From: JesterXL [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Sunday, November 13, 2005 10:31 PM
  Subject: Re: [Flashcoders] blogger with flash
 
 
  Is your .swf on anniegroovie.blogspot.com?
 
  - Original Message -
  From: Patrick Matte [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Sunday, November 13, 2005 10:30 PM
  Subject: [Flashcoders] blogger with flash
 
 
  Hi, i have made a flash 7 blog that uses blogger's xml output. It works
  perfectly when i test locally. But when i access the file from website,
  the
  xml object never returns success... Maybe its a cross-domain problem 
  with
  flash ?
 
  The xml comes form http://anniegroovie.blogspot.com/atom.xml
 
  Anyone knows what the problem could be ?
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

___
Flashcoders 

Re: [Flashcoders] blogger with flash

2005-11-13 Thread Patrick Matte

this is awesome thanks !

- Original Message - 
From: eric dolecki [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 11:47 PM
Subject: Re: [Flashcoders] blogger with flash


why LoadVars? Just do a XML load of a proxy file which will in turn
return your XML?

http://www.ericd.net/weather_tutorial/security.html
Thats the flavor of proxy that I like to use.



On 11/13/05, JesterXL [EMAIL PROTECTED] wrote:

If the XML file isn't gzipped, I'm not sure what that would return.

Are you uploading that PHP file to your server and doing something like:

lv = new LoadVars();
lv.owner = this;
lv.filepath = http://anniegroovie.blogspot.com/atom.xml;;
lv.onData= function(str)
{
this.owner.parseTheXML(str);
};
lv.sendAndLoad(yourserver.com/the.php, lv, POST);

funciton parseTheXML(str)
{
var xml = new XML();
xml.parseXML(str);
trace(xml);
}

- Original Message -
From: Patrick Matte [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 11:08 PM
Subject: Re: [Flashcoders] blogger with flash


I tried that bit of php code but couldn't resolved anything.
The Loadvars returns the XML=onLoad=%5Btype%20Function%5D 



- Original Message -
From: JesterXL [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 13, 2005 10:43 PM
Subject: Re: [Flashcoders] blogger with flash


 Nope, this is part of the security sandbox since Flash 5.  You will need
 either:
 - the swf to reside on anniegroove.blogspot.com
 - a shim.swf to reside on the above domain that merely says
 System.allowDomain(*);
 - a crossdomain.xml file to reside on the above domain that allows your
 site
 - a proxy

 The most common solution is a proxy since it only requires very little
 code,
 and can reside on your site.  Basically, PHP/ASP/ColdFusion, whatever,
 loads
 the XML file from the other domain, and passes it to Flash.  Here's how 
 I

 not only grab an XML file, but uncompress it for Flash:

 ?php

 $file = gzfile($HTTP_POST_VARS[filename]);

 echo theXML= . implode(, $file);
 ?

 My swf just does a LoadVars.sendandLoad to that PHP file, with a 
 filename
 variable, and it returns the XML as a string, which I then just toss to 
 an

 XML object.

 - Original Message -
 From: Patrick Matte [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:35 PM
 Subject: Re: [Flashcoders] blogger with flash


 No my swf is on another server! But i thought flash could read files 
 from

 other servers.

 - Original Message -
 From: JesterXL [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:31 PM
 Subject: Re: [Flashcoders] blogger with flash


 Is your .swf on anniegroovie.blogspot.com?

 - Original Message -
 From: Patrick Matte [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, November 13, 2005 10:30 PM
 Subject: [Flashcoders] blogger with flash


 Hi, i have made a flash 7 blog that uses blogger's xml output. It works
 perfectly when i test locally. But when i access the file from website,
 the
 xml object never returns success... Maybe its a cross-domain problem 
 with

 flash ?

 The xml comes form http://anniegroovie.blogspot.com/atom.xml

 Anyone knows what the problem could be ?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

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

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


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


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