Building a Spry chat
I'm using loadurl to build a chat application.
quote:
var cTimer;
cTimer = setTimeout('updatechat();',3000);
x = null;
function sendchat() {
document.getElementById('inputtext').focus();
document.inputs.inputtext.value = "";
updatechat();
function updatechat() {
currentTime = new Date();
time = currentTime.getTime();
clearInterval(cTimer);
request = Spry.Utils.loadURL("GET",
"hubchat.php?function=updatechat&sid=$sid&time=" + time,
false, ChatSuccessCallback, {errorCallback: ChatErrorCallback });
function ChatSuccessCallback(request) {
if (request.xhRequest.responseText!='') {
x=document.getElementById('chatbox');
Spry.Utils.setInnerHTML('chatbox',
x.innerHTML+request.xhRequest.responseText );
document.getElementById('chatbox').scrollTop=document.getElementById('chatbox').scrollHeig ht;
cTimer = setTimeout('updatechat()', 3000);
request=null;
x=null;
function ChatErrorCallback(request) {
cTimer = setTimeout('updatechat()', 3000);
Here is my html:
quote:
<div id="chatbox" class="chatbox">
</div>
<div id="input" class="input">
<form action='hubchat.php' method='GET' name='inputs'
id='inputs' onsubmit="return Spry.Utils.submitForm('inputs',
sendchat);" style="display: inline;">
<input
name="inputtext" id="inputtext" type="text" class="textfield"
size="69" maxlength="300" />
<input type='submit' name='submit' id='submit'
value='Submit' class='thead' >
<input name='function' type='hidden' value='sendchat'
/>
<input name='sid' type='hidden' value='$sid' />
</form></div>
$sid is php generated. All it really means is what 'room' the
user is in.
The loadURL function calls a php script that uses PHP
sessions to only return the lines of text from a database that are
newer than the last time updatechat was requested. This uses less
bandwidth than using an entire dataset, the response is blank if
there are no new messages.
The problem I am seeing is that each time my updatechat
function is ran, the memory usage goes up. As you can see in my
javascript, I am running that function every 3 seconds. The memory
that is being used for each call never gets released until the
browser is closed.
This is fine if you only have the page loaded for 30-60
minutes. If you mess around and leave your browser window open
overnight, you will wake up to see IE consuming almost 200,000K of
ram. Ouch!
Does anybody see anything in my javascript that can be
changed to be easier on memory?
I'm experiencing these issues too. I've tried all the usual
tricks to bypass IE's caching but to no avail.
I'm currently working on a system monitoring application,
which needs to refresh the xml every 5 seconds. Given the above
issues, i'm having to resort to Firefox in order to run properly
and not to over inflate the memory footprint.
Similar Messages
-
Hello everyone
Im building simple stratus chat but I have one problem that really affects functionality of my chat.
I would like to make "cursor" come back to my text area(input) after sending message. Now if you want to send one afer one you always have to click on the text area or get to it using tabs.
http://work.mexicola.pl/chat/
Sorry for my english and I hope that you got my point.
Thanks in addition.first two are correct but Ive them before;p
but when I add this one: textInput.selectionBeginIndex = 0;
I have such error:
1119: Access of possibly undefined property selectionBeginIndex through a reference with static type spark.components:TextArea. chat.mxml livechat/src line 60 Flex Problem -
How do i create a styled spry mysql driven menu using dreamweaver cs4?
How do i create a styled spry mysql driven menu using dreamweaver cs4?
I have cs4. I gave up on using MS sql as a datasource. I finally got a php successfull connection in my PHP web page.
I would like a nice video tutorial for creating a dynamic menu.
I guess i can style it by attaching a css file to the page. Are their any already designed css files out there in some online area?
i am not a good designer. so i would like to simply have a collection of menu_style.css files and choose what looks good.
But first i need to build the spry menu from the mysql database.
Any help is apprechiated.
My first choice was to maintain the data in an MS sql server file. If i could directly attach to an ms sql datasource then that would be the best option.
I dont think i want to have to re-generate an XML datasource each time i add or modify the menu. I would like to maintain the MS Sql or mySql file instead.
If i could generate an XML datasource from the MS Sql database then I may even prefere that, but i have spent a lot of time trying to figure out how to do that and not had any success. So i prefere working in MS sql but would settle for mySql if i had to.
Thanks
JerryTo create a dynamic menu take a look here http://labs.adobe.com/technologies/spry/samples/menubar/MenuFromNestedData.html#
The XML file for the above menu looks like this
<?xml version="1.0" encoding="utf-8"?>
<items>
<item id="0001" type="donut">
<name>Cake</name>
<ppu>0.55</ppu>
<batters>
<batter id="1001">Regular</batter>
<batter id="1002">Chocolate</batter>
<batter id="1003">Blueberry</batter>
<batter id="1003">Devil's Food</batter>
</batters>
<topping id="5001">None</topping>
<topping id="5002">Glazed</topping>
<topping id="5005">Sugar</topping>
<topping id="5007">Powdered Sugar</topping>
<topping id="5006">Chocolate with Sprinkles</topping>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
</item>
<item id="0002" type="donut">
<name>Raised</name>
<ppu>0.55</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5001">None</topping>
<topping id="5002">Glazed</topping>
<topping id="5005">Sugar</topping>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
</item>
<item id="0003" type="donut">
<name>Buttermilk</name>
<ppu>0.55</ppu>
<batters>
<batter id="1001">Regular</batter>
<batter id="1002">Chocolate</batter>
</batters>
</item>
<item id="0004" type="bar">
<name>Bar</name>
<ppu>0.75</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
<fillings>
<filling id="7001">
<name>None</name>
<addcost>0</addcost>
</filling>
<filling id="7002">
<name>Custard</name>
<addcost>0.25</addcost>
</filling>
<filling id="7003">
<name>Whipped Cream</name>
<addcost>0.25</addcost>
</filling>
</fillings>
</item>
<item id="0005" type="twist">
<name>Twist</name>
<ppu>0.65</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5002">Glazed</topping>
<topping id="5005">Sugar</topping>
</item>
<item id="0006" type="filled">
<name>Filled</name>
<ppu>0.75</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5002">Glazed</topping>
<topping id="5007">Powdered Sugar</topping>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
<fillings>
<filling id="7002">
<name>Custard</name>
<addcost>0</addcost>
</filling>
<filling id="7003">
<name>Whipped Cream</name>
<addcost>0</addcost>
</filling>
<filling id="7004">
<name>Strawberry Jelly</name>
<addcost>0</addcost>
</filling>
<filling id="7005">
<name>Rasberry Jelly</name>
<addcost>0</addcost>
</filling>
</fillings>
</item>
</items>
Then remains the manner in which you create the XML file which can be found here http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
One you have your menu up and running, you will be able to apply styles and effects -
How do I create a chat in my server?
I am building an mmorpg game and one of my first tasks is to create a chat, now I have no idea about how it is working.
The only thing that I do know is that there is two ways to do it, one of them will force me to update my chat page all the time and the other way is that one that I am looking for .
So, can you help me?Can you explain me more about LifeCycle Data Services, what do you mean by "
overkill"?
This is a big game that I am planing to build in here, chat is only part of
it as I thought it will be a good place to start from, but generally later I
will need to work with graphic maps and pass information to my users. -
XML Data Set with Spry Slides - Please Help
Hi, I'm trying to combine XML Data Set with sliding tabs.
I've created two keys responsible for sliding the tabs:
<a id="previous" href="#"
onclick="sp1.showPreviousPanel();">Previous</a>
<a id="next" href="#"
onclick="sp1.showNextPanel();">Next</a>
Then XML Data Set is used to populate the tabs, but only a
single tab remains visible, and a "Next/Previous" buttons are used
to move to the next tab. And this is where the problem arises.
The problem is that, every time I refreash the gallery or
load it for the first time, I have to press TWICE the "Next" button
to move to the next image. After that, its all fine, and slides
well. It's only the FIRST time when loaded.
Please help.
Here's the full code:
<div id="images_gal" >
///////////////////////////////////////// The menu - the
culprit///////////////////////////////////////////
<div id="menu_next">
<a id="previous" href="#"
onclick="sp1.showPreviousPanel();">Previous</a>
<a id="next" href="#"
onclick="sp1.showNextPanel();">Next</a>
</div>
//////////////////////////////////////// The Sliding Panels
Gallery ////////////////////////////////////////////////////
<div id="example2" class="SlidingPanels" tabindex="0" >
<div class="SlidingPanelsContentGroup"
spry:region="dsSpecials">
<div spry:repeat="dsSpecials" id="{first}"
class="SlidingPanelsContent{second}"><div class="top_gal"
></div><div class="main_gal"><img
src="images/Galery/{third}" alt="Digital_Signage" width="600"
height="304" />
<p class="screen_gal"><a href="#"
onclick="MM_openBrWindow('film1.html','Coloris','width=340,height=260,
top=250, left=250')">CLICK TO VIEW</a></p>
</div><div
class="bottom_gal"></div></div>
</div>
</div>Anyone has any idea why I need a DOUBLE Click to start moving
the sliding panels?
I've just completed two tutorials by Don Booth.
1/Building a Spry Sliding Panels widget
2/Building a photo album with the Spry framework
But what I try to COMBINE them - display the photos in
sliding panels, I also need to DOUBLE click the "next" buton before
it starts scrolling.
Why is that Double Click needed? Help Please.
Here's my code for the combined version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
a {
position:relative;
left:23px;
top:127px;
z-index:10000;
color: #FF0000;
</style>
<script type="text/javascript"
src="photo_album_samples/includes/xpath.js"></script>
<script type="text/javascript"
src="photo_album_samples/includes/sprydata.js"></script>
<script type="text/javascript"
src="Spry/SprySlidingPanels.js"></script>
<link type="text/css" rel="stylesheet"
href="Spry/SprySlidingPanels.css">
</head>
<body>
<div >
<a href="#" onclick="sp1.showPreviousPanel();">Previous
Panel</a>
<a href="#" onclick="sp1.showNextPanel();" >Next
Panel</a>
</div>
<div id="panelwidget" class="SlidingPanels" >
<div class="SlidingPanelsContentGroup"
spry:region="dsGallery" >
<div spry:repeat="dsGallery" class="SlidingPanelsContent"
id="p1"><img
src="photo_album_samples/thumbnails/{@thumbpath}"/></div>
</div>
</div>
<script type="text/javascript">
var dsGallery = new
Spry.Data.XMLDataSet("photo_album_samples/photos.xml",
"gallery/photos/photo");
</script>
<script type="text/javascript">
var sp1 = new Spry.Widget.SlidingPanels("panelwidget");
</script>
</body>
</html> -
Tutorial for a Spry photo gallery with thumbs and buttons ???
Anyone know of a a tutorial for building a Spry photo gallery with both thumbnails and next, previous, stop and play buttons(functions) ???
Like the ones on Adobe's Photo Gallery demos; http://labs.adobe.com/technologies/spry/demos/pe_gallery.html
Adobe show the source for their Photo Gallery Demos, but that doesn't help me much ... I need a prober tutorial that tells me how to do : )
The only tutorial that I've been able to find, is one for Dreamweaver 8, without buttons - I'm looking for a updated version.
I appreciate any help very much. Thank you.Just Google for the Spry photo gallery and you might find
http://cates-associates.net/tutorials/Tutorial-CS3-Spry.html
or even a few others.
Happy Sprying
Ben -
How to manage spry menus in DW cs3
Hi
I have build one spry menu in DW cs3 and I sort of got the hang of it so I decide to build another one on another site in the same root folder and that's where I run in to all kinds of problems
I have build the menu the way I like it but is not working properly I have saved the SSS in txt in case it comes useful later
I haven't bean able to find this answer question in any tutorial
The question I have is
1 how to keep the two SpyAsset folders separate and do I have to? and if I have to, how to do that.
2 by building a new menu and saving it where does it get saved and sure I care?
Thank you.... Mikesamiotis1949 wrote:
Right now I have all 6 sites in one root folder does this mean I have to separate all?
Yes. Go to Site > Manage Sites > New...
I currently maintain about 10 web sites, each separately defined and in their own site root folder.
make a duplicate SpryAssets folder where do I get it from
DW will create a SpryAssets folder for you when you insert a spry menu into that site.
Nancy O. -
Spry photo album displays in Safari not in IE
I used the article
http://www.adobe.com/devnet/dreamweaver/articles/spry_photo_album.html
as a guide to build a spry photo album for a pool & spa web
site. The photo album displays perfectly in IE when I preview it
locally. However, when viewing the photo album after uploading to
server, the photo album does not display. To make the problem more
confusing, when I use safari to view the photo album it works
perfectly on the server. What have I done wrong to make it work in
Safari and not IE? I need it to work in IE. I have cross checked
the code dozens of times trying to find the problem with no luck. I
need some direction please.
Here are the files in question:
http://www.lagobellopools.com/free-form-pools.php
http://www.lagobellopools.com/free-form.xml
http://www.lagobellopools.com/styles.css
Many thanks in advance for your response!When validating
http://www.lagobellopools.com/free-form-pools.php
I get these error's in dreamweaver and at W3C;
The tag: "div" doesn't have an attribute: "spry:region" in
currently active versions.[XHTML 1.0 transitional]
The tag: "img" doesn't have an attribute: "spry:repeat" in
currently active versions.[XHTML 1.0 transitional]
The tag: "div" doesn't have an attribute: "spry:detailregion"
in currently active versions.[XHTML 1.0 transitional]
Could this be why it works in firefox and Safari and not
Internet Explorer? I am perplexed as to why the spry photo album
will work in all browers except IE. It will only work in IE
locally. What am I missing? If anyone has any ideas at all please
let me know. Does anyone have a working example of the spry photo
album in Internet explorer? -
Spry accordion for CS5 links not working
Hi everyone!
I build a Spry accordion for my website, and while the functionality of it works beautifully, the links do NOT work. I have double and triple checked that my links are correct, and when I am in a preview mode, the text is changing to my a:hover specifications. Does anyone have any useful suggestions? Please be gentle when answering, I know my way around HTML and Dreamweaver, but am trained as a designer, not a coder.
Thank you!Please upload your site and supply a link.
Gramps -
Widget issue one
I returned to a company where a site was built. The builder used spry sliders or accordians, which are brand new to me. In evaluating the site, I notice that the Spry objects jog a little, left to right or vice versa. Is this normal for this widget or does it signify a problem?
http://twsco.com/Catalog.html
Actually, while grabbing the link, I noticed that it doesn't open fully for some and that the scroll bar causes issues. Do things look ok to anyone, otherwise?
Widget issue two
I am trying to build my first successful spry menu and as expected, it works fine in firefox but not in IE. Can you help me figure out why?
Thanks in advance for help.
Robert
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: auto;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 10pt;
position: relative;
text-align: left;
cursor: pointer;
width: auto;
float: left;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 8.2em;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
width: 8.2em;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position: absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
border: 1px solid #CCC;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
padding: 0.5em 0.75em;
text-decoration: none;
color: #FFF;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
color: #FFF;
background-color: #26327C;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
color: #FFF;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF;Thank you again.
I looked at the article and tried the concepts twice and both times, the menu went crazy.
Let me see if I can repeat what I think it was telling me:
1. set all widths to auto
2. remove all floats
3. set white space to nowrap
Their code examples don't show all the code that the default menu contains. That was confusing.
Any thing that can be added for calrity? Thanks for the help.
Rob -
Spry Sliding Panel bugs with Flash SWF, iFrames, CSS background images
Greetings,
I'm working on a site right now that is build with Spry 1.6
Sliding Panels. On the home panel I have integrated a looping SWF,
and scrolling iFrames on the Overview panel. After extensive
research on these forums, I'm still scratching my head at a few
bugs listed below:
• Firefox (MAC v2.0.0.14)
- The SWF on the home panel doesn't hide properly when
sliding to a different panel. I have set 'wmode opaque' parameters
to the flash file, but this seems to have not resolved the issue.
- Additionally, I've noticed that sometimes the SWF will not
finish sliding into the correct position when clicking to the home
panel (the SWF will stop sliding several pixels left of the
original positioning).
- The SWF (which happens to be a loop animation) resets every
time the home panel is visited. In my testing, this does not happen
in any other browser.
- On the Overview panel, scrolling iFrames are used on the
"Staff Profiles". These iFrames don't hide properly when clicking
through other panels, as the scroll bars are still viewable.
- Overall, the sliding animation is a bit choppy compared to
all other browsers. I can live with this, but I wonder if I have
improper code somewhere?
• Opera (MAC v9.27)
- Same issue as above concerning the fact that the SWF
appears outside of the sliding panel view port.
• IE 6
- CSS background images flash during the sliding panel
animation.
* Site page links *
Main URL
Home
Page iFrame
Overview
Page iFrame
* CSS *
Main
site-wide CSS
Sliding
Panels CSS
* Scripts *
Sliding
Panels Sript
Any suggestions, pointers would be much appreciated!
Cheers,
ChrisGreetings,
I'm working on a site right now that is build with Spry 1.6
Sliding Panels. On the home panel I have integrated a looping SWF,
and scrolling iFrames on the Overview panel. After extensive
research on these forums, I'm still scratching my head at a few
bugs listed below:
• Firefox (MAC v2.0.0.14)
- The SWF on the home panel doesn't hide properly when
sliding to a different panel. I have set 'wmode opaque' parameters
to the flash file, but this seems to have not resolved the issue.
- Additionally, I've noticed that sometimes the SWF will not
finish sliding into the correct position when clicking to the home
panel (the SWF will stop sliding several pixels left of the
original positioning).
- The SWF (which happens to be a loop animation) resets every
time the home panel is visited. In my testing, this does not happen
in any other browser.
- On the Overview panel, scrolling iFrames are used on the
"Staff Profiles". These iFrames don't hide properly when clicking
through other panels, as the scroll bars are still viewable.
- Overall, the sliding animation is a bit choppy compared to
all other browsers. I can live with this, but I wonder if I have
improper code somewhere?
• Opera (MAC v9.27)
- Same issue as above concerning the fact that the SWF
appears outside of the sliding panel view port.
• IE 6
- CSS background images flash during the sliding panel
animation.
* Site page links *
Main URL
Home
Page iFrame
Overview
Page iFrame
* CSS *
Main
site-wide CSS
Sliding
Panels CSS
* Scripts *
Sliding
Panels Sript
Any suggestions, pointers would be much appreciated!
Cheers,
Chris -
Spry Accordion Different Panel Heights
I'm building a Spry Accordion Widget as a left nav menu with
25 different panels. Some of my panels contain 10 different links
and others contain only 1 single link. Therefore I would like to
adjust the height of each panel individually according to the
number of links they contain, so I don't end up with huge white
spaces in panels that contain fewer links. My initial idea, in
addition to the .AccordionPanelContent class was to add an "id" to
each panel and control each panels height through CSS. But for some
reason I haven't been successful that way. It looks like all panels
tend to take the height of the first panel, regardless of their
individual set heights. I wonder if I can resolve my problem
uniquely with CSS, or I do I have to go and change something in the
SpryAccordion.js file.
Thanks.Hi Donald, I inserted <script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("Acc1", {
useFixedPanelHeights: false });
</script> into my code. It's almost there, but not
quite. I can see that it is trying to re-ajust the panels' height,
but for panels that have a larger content it tends to show the
whole panel's content and then hides the half of it. Also for
panels with fewer content it doesn't seem to have an effect at all.
I don't know if I have to fix something in the CSS or place the
Acc1 ID in a different location within my accordion HTML code.
Thank you.
Here's the URL I'm working on if you want to take a look.
http://64.49.218.100/product_p/00-120-0ll.htm -
Webcam and Whiteboard not working with Adobe AIR with Adobe Flash Builder
Hi,
I am trying to build a simple chat service using Adobe Flash Builder target for desktop AIR( my final objective is to port it to android). My adobe AIR version is 2.5.0 and below is my source code:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:rtc="http://ns.adobe.com/rtc">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<rtc:AdobeHSAuthenticator id="auth" userName="Yy" protocol="rtmfp"/>
</fx:Declarations>
<rtc:ConnectSessionContainer id="session" authenticator="{auth}" roomURL="https://collaboration.adobelivecycle.com/yytan1987/myfirstroom" width="100%" height="100%">
<mx:HBox width="100%" height="100%">
<mx:VBox width="25%" height="100%">
<rtc:WebCamera width="100%" height="50%"/>
<rtc:SimpleChat width="100%" height="50%"/>
</mx:VBox>
<rtc:SharedWhiteBoard width="75%" height="100%"/>
</mx:HBox>
</rtc:ConnectSessionContainer>
</s:WindowedApplication>
Basically when i debug it with AIR, the chat is working properly but the webcam and whiteboard just don't work....I really don't know what's wrong with it already...Appreciate it if anyone can help,thanks!!
RegardsHi,
My take is , is your autopromote tuned on for the room. I mean whats
your user role when an user enters the room(who is not host), is it 10
or 50. If its 10 i.e. viewer , then he cant use his own cam etc. You
need to take a look at the logs when an user enters and if its 10 and
you want to give him these permissions, turn autopromote on from the
devconsole for the room to make his role 50 i.e. publisher.
I just now downloaded 2.5.1 AIR and created a new project with your
source and I am able to use everything.
Thanks
Hironmay Basu -
Can Spry Make "Modal" or "Lightbox" Popup Windows?
Here is an example of what I am after:
http://www.asp.net/AJAX/Control-Toolkit/Live/ModalPopup/ModalPopup.aspx
The application I am building in Spry needs to have a modal
window for the user to input settings. I can definitely do this
with some other random JavaScript Kits, but need to keep this
solution clean. I would love it if I could do this with Spry alone.
Does any one know how?Hello ElMatt,
We have this feature on our short list of things to be
developed in the next 2-3 releases. I understand you perfectly your
reasons to not mix multiple AJAX platforms but unfortunately I
can't offer you anything in this direction right now. Once we will
finish this modal window we will push it into the main Spry
package.
Regards,
Cristian -
Hi All,
I'm having an interesting issue -- I'm very new to AIR, btw.
I build a spry table (using CS3) that pulls a local XML data source, and it displays fine in HTML
However, when I try to show it as an AIR file, I get this message:spry:region or spry:detailregion attribute has no data set!
Any ideas off the top? I will post the code shortly.Here are the files (which work fine as html, but throw error as AIR)
Maybe you are looking for
-
I appreciate any help all of you can give me. This is kind of a weird one, so I'll try and be brief. I have a G5 that had problems with a malfunctioning start-up disk. I purchased a new hard drive and went to install 10.4 and found that it was an upg
-
Wondering if I sync my ipod music it would delete my pics.
Ok so I have had an ipod for some time now but I had it on another computer. So this summer I got a new comp and my songs are all transfered to it but I got new songs but i'm scared that syncing my ipod with my new music will delete my pics that took
-
Using Property Loader in a sub-sequence with multiple invocations
I'm using the Property Loader to load a different set of limits for each invocation of a sub-sequence. In my example, I have a sequence to do tests all the tests on a given RF band. But I want the ability to specify different test limits for each ban
-
Bank Reconciliation - Picking wrong accounts
Dear All, I have configured manual bank reconciliation for our house banks as follows, GL Codes Description Symbols Acc Mod Curr GL Acc Acc Symbol Desc 102310 Bank ACC 01 - Main LK00 +++
-
Re: multiple methods - Help
It looks you used it, what are you saving the extra 5 duke'd for ? Noah