Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Have Flex application read WordPress username

Posted on 2010-08-26
4
Medium Priority
?
444 Views
Last Modified: 2012-05-10
Hi all,

I have to start saying that I'm absolutely new to Flex and AS but I'm a quick learner and very enthusiast.

I want to make my own FLV movies player for my CMS (WordPress powered) and one of the functions I want is a text chat. There will be live streams and I want viewers to send comments and questions to the presenter of the show, but only to registered members.

Just as information, I'm using a Wowza Media Server to handle both videos and text chat.

I've already have an example of a simple chat application made in Flex that connects to my server and works pretty well so I have the "base" for the application. I do need to modify it so people don't have to enter the server's address they want to connect to (just mine) and take the nickname out putting the WordPress username automatically in there (and graying out the chat if the visitor is not a registered member).

Anyone knows how to do this?
0
Comment
Question by:Cesar Aracena
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 29

Accepted Solution

by:
Pravin Asar earned 2000 total points
ID: 33541905
0
 
LVL 29

Assisted Solution

by:Pravin Asar
Pravin Asar earned 2000 total points
ID: 33541947
Another way is to use Flex/Flash External Interface

http://learn.adobe.com/wiki/display/Flex/External+Interface

I guess in your case, you need to save the Username in some javascript/hidden fields etc.
0
 
LVL 6

Author Closing Comment

by:Cesar Aracena
ID: 33542326
Thanks pravinasar.

Both links will be usefull. I think both approaches will be difficult to implement as I don't have a lot of control (if any) over WordPress' PHP or JavaScript but I'll see the light... eventually.

I guess it would be much easier to implement on a standard WordPress powered website but I have my WP and vBulletin connected using some "handle-with-care" plugins for users namagement and I can break everything while playing with source code (PHP or JS). I'll give it a shot... thank god for daily backups ;)
0
 
LVL 29

Expert Comment

by:Pravin Asar
ID: 33549994
For some special cases, you can use Flex Remoting, Web Sevices

I have used Flex Remoting to get user credentials, session variables, etc.

0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article discusses how to implement server side field validation and display customized error messages to the client.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question