Re: [Flashcoders] pull in html section to Flash

2012-11-21 Thread Karl DeSaulniers

Hi Natalia,
Well I know of an AS2 way of doing it, but not AS3.
Someone may be able to shed some light on that for you.
You can get data from a database with a server side language like
PHP or ASP and send the data to flash. Again, I am rusty at AS3.
I have successfully done such with AS2 so I know it can be done.

I even think that it was as easy as an echo() from PHP back to my  
flash site with a loadVariable() function in flash.

But dont quote me. Has been a little while. :)

Plenty of google questions on this.

google..

flash AS3 to PHP example
PHP to flash AS3 example

Might yield just what your looking for. Substitute ASP for PHP if that  
is your server language.


HTH,

Best,
Karl

On Nov 21, 2012, at 1:44 AM, natalia Vikhtinskaya wrote:


Thank you Karl
Some more questions:
1.  What Flash function can pull in basic html to flash?
2.  And what Flash function can get access to the database?
 I suppose that can not be done directly from flash. And how to
manage that dynamically with new url each time?


2012/11/21 Karl DeSaulniers k...@designdrumm.com:

Hi Natalia,
Yes you can, but it is the most basic of html. No DIVs for example.
From the link you provided, that html would not work inside flash I  
don't

think.
If possible, get access to the database the comments are stored on
and filter the data to your flash piece.

HTH,
Best,
Karl



On Nov 21, 2012, at 12:55 AM, natalia Vikhtinskaya wrote:


Hi to all
I need advice.
Is that possible to build a Flash/AS3 file that can pull in HTML  
data

from a website?
The site has a comment section (similar to this
http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need
that section to display, in real time, in the Flash file.
We also have the unique url of the site.  It changes on every page  
reload.


What possible and not possible for flash in this situation and what
way I can use?

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



Karl DeSaulniers
Design Drumm
http://designdrumm.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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] pull in html section to Flash

2012-11-21 Thread Henrik Andersson
natalia Vikhtinskaya skriver:
 Thank you Karl
 Some more questions:
 1.What Flash function can pull in basic html to flash?
 2.And what Flash function can get access to the database?
   I suppose that can not be done directly from flash. And how to
 manage that dynamically with new url each time?
 

You have the URLStream, URLLoader and Socket classes if you want to load
data in ActionScript.

You can load html with either of them.

The Socket class can be used to implement a database client, but it is
not recommended, due to depending on the db to secure the connection as
well as having the end user client manage the database login credentials.

The Socket class is the only option for push based protocols. HTTP is by
design a pull based protocol and is as such ill suited for realtime
communication.

I recommend that you think about what data you need to load, not in
which format you have the data right now.

The best setup is to pick a format that does not contain display
details, but only the actual data. HTML tends to contain plenty of
design details.

Most people end up sending the data stored in the database as is to the
client, letting the client decide how to format the data at display time.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] pull in html section to Flash

2012-11-20 Thread natalia Vikhtinskaya
Hi to all
I need advice.
Is that possible to build a Flash/AS3 file that can pull in HTML data
from a website?
The site has a comment section (similar to this
http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need
that section to display, in real time, in the Flash file.
We also have the unique url of the site.  It changes on every page reload.

What possible and not possible for flash in this situation and what
way I can use?

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] pull in html section to Flash

2012-11-20 Thread Karl DeSaulniers

Hi Natalia,
Yes you can, but it is the most basic of html. No DIVs for example.
From the link you provided, that html would not work inside flash I  
don't think.

If possible, get access to the database the comments are stored on
and filter the data to your flash piece.

HTH,
Best,
Karl


On Nov 21, 2012, at 12:55 AM, natalia Vikhtinskaya wrote:


Hi to all
I need advice.
Is that possible to build a Flash/AS3 file that can pull in HTML data
from a website?
The site has a comment section (similar to this
http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need
that section to display, in real time, in the Flash file.
We also have the unique url of the site.  It changes on every page  
reload.


What possible and not possible for flash in this situation and what
way I can use?

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] pull in html section to Flash

2012-11-20 Thread natalia Vikhtinskaya
Thank you Karl
Some more questions:
1.  What Flash function can pull in basic html to flash?
2.  And what Flash function can get access to the database?
  I suppose that can not be done directly from flash. And how to
manage that dynamically with new url each time?


2012/11/21 Karl DeSaulniers k...@designdrumm.com:
 Hi Natalia,
 Yes you can, but it is the most basic of html. No DIVs for example.
 From the link you provided, that html would not work inside flash I don't
 think.
 If possible, get access to the database the comments are stored on
 and filter the data to your flash piece.

 HTH,
 Best,
 Karl



 On Nov 21, 2012, at 12:55 AM, natalia Vikhtinskaya wrote:

 Hi to all
 I need advice.
 Is that possible to build a Flash/AS3 file that can pull in HTML data
 from a website?
 The site has a comment section (similar to this
 http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need
 that section to display, in real time, in the Flash file.
 We also have the unique url of the site.  It changes on every page reload.

 What possible and not possible for flash in this situation and what
 way I can use?

 Thank you in advance.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.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