LocalConnection: Receiving message from flash(.swf) file
hi
I have got a flash radio file (.swf) from third party which playes the songs. I need to integrate this inside my application.Application is portal and written in asp.net which launches this flash file as pop-up
Scenario is : When user click on any song in .swf file, at the application we should be able to display its title.
I have found(through reverse enginnering) that radio.flash file uses localConnection and send following parameters whenever the user click on any song.
conn.send("basePlayerConnect,"setPlayerLabel","title","thumb","albumtitle")
where title is string, thumb is image and albumtitle is string
Now i have written a another flex application which has a textinput. i emebeded this in the portal application (as embedded .swf file). Whenever a radio popup is launch at site and user click on any song the title of the song should be displayed inside this flex application
Code is:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="{createLw()}">
<mx:Script>
<![CDATA[
import flash.net.LocalConnection;
private var incoming_lc:LocalConnection = new LocalConnection();
private function createLw()
incoming_lc.connect("basePlayerConnect");
incoming_lc.client = this;
function setPlayerLabel(param1:String,param2:String,param3:String):void
sentMessage_txt.text = "param1";
]]>
</mx:Script>
<mx:TextInput id="sentMessage_txt" x="0" y="0"/>
</mx:Application>
this is very imp for me please let me know how to ahieve this
Try
public function setPlayerLabel(param1:String,param2:String,param3:String):void
sentMessage_txt.text = param1; // no quotes
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui
Similar Messages
-
Accessing movie clip from flash swf file
I have the situation where in flash i created a simple
animated movie clip with few stop() commands on timeline. Movie
clip consists of simple animatio played on roll over and on roll
out which is controlled using actionscript. I loaded movie clip
into flash using [embed] tag but actionscript code is stripped,
there is no stop() action so movie clip loops continously. I guess
that's normal behaviour for embedded flash swf files but i would
like to know is there a way to still achieve that? Can i load swf
some other way with its actionscript and then control movie clip
from flex?You need the FLA's to open in Flash.
You could download the free trial of a flash decompiler
(www.sothink.com). The free trial won't give you actionscript, but
it will give you all of the art in the swf. -
Screensaver from Flash (.swf) file?
Does anyone know how to make a screensaver from a .swf file?
Thanks!Try
public function setPlayerLabel(param1:String,param2:String,param3:String):void
sentMessage_txt.text = param1; // no quotes
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Bringing Flash .swf files into Captivate
Greetings,
I use Captivate 2.0. I have been trying to bring a Flash .swf
file into Captivate with very little success. The flash file is
clickable (so that users can review case study information as they
complete Try It simulations). When I bring the Flash .swf file into
Captivate, it works. However, correction (or failure messages)
display every time the user clicks the Flash .swf file. Is there
anything that I can do within Captivate to stop this issue?
Ideally, I would like the Flash .swf to run on top of the Captivate
file so that users can view the case study details without having
to see the failure messages.
Please let me know if you have any questions about this. I
hope it makes sense to you.Hi Zabcde (or PMW or P?)
Can I just understand (sorry for being thick) your situation.
You're trying to get a flash movie into a captivate session that
the user can work on, see, interact with whilst they're also going
through a Captivate simulation (try it)? Does that mean that slides
are advancing for the simulation whilst you're watching the flash
movie? Or are they watching the Flash movie as a kind of help to
then go and do the Try It session?
If it's the first, then I would suggest calling the Flash swf
and the Captivate swf as seperate instances in flash (using
loadmovienum or something). If it's the second, you should be able
to remove the failure captions from that slide so they don't bug
you.
Apologies if I've got the wrong end of the stick though
Cheers
AJ (jiminiCricket) -
Problems loading Adobe Flash SWF file
Our users are experienceing problems loading Adobe Flash SWF
files.
One example of a problem file is:
http://www.adobe.com/enterprise/accessibility/popup_acr8_accessibility.html
User traffic is flowing through a Cisco ASA firewall - these
problems do not seem to occur from home networks or a Netscreen
firewall. The Cisco ASA does NOT have http deep packet inspection
turned on, and any traffic initiated by clients inside the firewall
should be allowed. The symptom is that Internet Explorer will begin
to download the video, but will hang at some point along the way
(for this particular URL it hangs at about 7%). No error messages
are displayed, but the video never displays on the screen either. I
would appreciate hearing from anyone who may have run into this
before, or if someone can explain what is different about this type
of file from regular Adobe Flash, that might help figure out what
the ASA is objecting to. The ASA does not appear to generate any
log messages about denying this type of traffic either.
Thanks in advance for any help you can provide...Thanks, but I use publish/export settings with GPU hardware acceleration and flash version 11.2 (and 11.8) but nothing happening.
And why gif file is not all transparenty then I insert on lightblue background? It can't export good quality? Also I use Photoshop, After Effects, Adobe Edge Animate. And nothing happening. Egde animate file .oam is not good for old website navigation. It can't be inserted in freeshop site from navigation... I use logo file .oam just for example here - http://e-shoptagras.graphicsrim.eu
In reality I want swf file, but we don't find why logo flickering? here http://tagraseshop.graphicsrim.eu
All file's are transparenty - https://mega.co.nz/#!f8B2CD5R!J8uCJt9Sdq4Suz4HLhTHz8bzJcSWXMBIKcKZgkD3z8c
I need help! Please! -
Hi,
I am trying to receive messages from a Azure service bus subscription using SB-Messaging Adapter in BizTalk Server 2013 but getting the following error.
"The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
It seems the error is related with Service Bus Authentication and Authorization with the Access Control Service. Can anybody help me out if I am missing something here?
Also for consuming the AWSB (namespace, topic name, subscription name, Issuer name, Issuer Key) I have referred the following link
http://soa-thoughts.blogspot.in/2013/02/biztalk-server-2013-new-adapters-series.html
Thanks!
Regards,
Gautam
gautamHi,
When I am trying to receive the same messages from a Azure service bus subscription using .net (C#) client,
BusSubscriberbusSubscriber =
newBusSubscriber("TestTopic2",
"Endpoint=sb://overcasb.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=wqYlT4yHZimeUZacH+1V1hj/ZrKu7zK9ELaaLYDxqjc=",
"AssetMovement",
"AssetMovement");
I am getting the same error here also.
"The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
By setting <defaultProxy useDefaultCredentials="true" /> in appconfig, I got rid of the above error. And now its working fine with .net(C#) client.
<configuration>
<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>
</configuration>
The same setting I tried in BTSNTSvc.exe config file and ofcourse restarted the host instance but still getting the same error. Any help?
gautam -
Flash SWF file within Swing JFrame
I was wondering whether its possible to open a Flash swf file within a JFrame
I am looking for a solution similar to the usage of Flash Activex control in .NET
thanks in advance
VikasI have read the forum link and other such entries in this forum. I have found the following:
1.) JFlash - a java based flash player. https://jflash.dev.java.net/
Could'nt find the app or the official site
2.) a few projects on sourceforge.org :
java flash bridge where you embed the flash inside an Integrated Browser Component
3.) SWT Flash integration.
I do not find any of these solutions satisfactory.except the SWT/Flash integration which I havent tried.
My question is that isnt there an easier and simpler way to :
Embed Flash into Swing app where actionscript and java can communicate.
I am aware of Remoting and web services. But It is a desktop app I am talking about.
Can anyone suggest anything?
thanks in advance..
from a very frustrated programmer.... -
URL, email links in Flash swf files shows up in search engine
Hi, can you please help? I post this problem a while ago.
My problem is: I developed a website in Flash 8 on the Mac.
The Flash swf file is displayed via Dreamweaver doc. When I do a
search and, when the site is found in Google, all the links used in
the Flash swf file appears in the snippets below the main title. I
would like to know where I'm going wrong, and how can I prevent
Google from displaying the URL and email details.
Do I need to use a preloaded, or do I need to put the Flash
swf movie file in a table in Dreamwever.
Many thanks,
Blue_Mac>I don't know how this is happening then. Search engine
spiders don't
>read through compiled files like Flash.
Thanks, this is reassuring. Although it seems to have done
just that.
The following action script is where the details are coming
from. I've used the name 'whatever" as an example. I don't mind the
URLs on view as much as I mind my email address because of security
issues.
on (release) {
//Goto Webpage Behavior
getURL("mailto:[email protected]","_blank");
//End Behavior
I'll check my files again to see if I've miss anything out -
I have done this so many times already.
Regards,
Blue_Mac -
Flex client can SEND but not RECEIVE messages from BlazeDS
Hi there,
I built a sample chat application that should be able to send/receive messages from a JMS topic. However, I am only able to SEND messages, I am not able to receive them. Any advice/suggestions would be GREATLY appreciated as I am seriously stuck.
My setup:
- BlazeDS Turnkey
- FioranoMQ JMS provider on remote machine
What I know:
- My MXML code is good. I am able to use the exact same code and get both subscribing and publishing working when I use 'ActiveMQ' instead of 'FioranoMQ' as my JMS provider
- FioranoMQ JMS provider is working fine, my test Java clients can both subscribe and publish to the same JMS topic that the Flex app uses
- Publishing from my Flex app is working because my Java client is able to receive messages from the same topic whenever Flex messages are sent to FioranoMQ
- My Flex app is supposedly 'subscribed' to and 'connected' to the correct (streaming-amf) channel. I know this because the MXML 'Consumer' object's "subscribed" and "connected" properties are true and no fault events appear whenever I issue "consumer.subscribe()" in my Flex app.
Sample debug console log:
(I tried sending 8 JMS messages from my Java client code to the 'mytopic' topic that my Flex app is using. The end of the log shows that SOMETHING is happening after sending these messages, but notice the actual 'message' is never streamed even in the log!)
[BlazeDS] 01/27/2009 FlexSession created with id '72D3E6EED1364AD328F342F1AF59FF
69' for an Http-based client connection.
[BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
[BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=/1)
(Array #0)
[0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
operation = 5
correlationId = ""
clientId = null
timestamp = 0
body = (Object #1)
headers = (Object #2)
DSMessagingVersion = 1
DSId = "nil"
timeToLive = 0
destination = ""
messageId = "AECE3D84-789C-29B7-3413-197C7A48A7D2"
[BlazeDS] 01/27/2009 Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/1/onResult, responseURI=)
(Externalizable Object #0 'DSK')
(Object #1)
DSMessagingVersion = 1.0
DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
1.233083202182E12
(Byte Array #2, Length 16)
(Byte Array #3, Length 16)
(Byte Array #4, Length 16)
[BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
[BlazeDS] 01/27/2009 Endpoint with id 'flextest-streaming-amf' is streaming mess
age: Flex Message (flex.messaging.messages.AcknowledgeMessage)
clientId = null
correlationId = open
destination = null
messageId = ED38E793-E519-95BB-3E4C-1A7E8D716951
timestamp = 1233083202229
timeToLive = 0
body = ED38E793-E50A-2500-E2F5-7525401FD8CE
[BlazeDS] 01/27/2009 Number of streaming clients for FlexSession with id '72D3E6
EED1364AD328F342F1AF59FF69' is 1.
[BlazeDS] 01/27/2009 Number of streaming clients for endpoint with id 'flextest-
streaming-amf' is 1.
[BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
[BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=/2)
(Array #0)
[0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
operation = 0
correlationId = ""
clientId = null
timestamp = 0
body = (Object #1)
headers = (Object #2)
DSEndpoint = "flextest-streaming-amf"
DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
timeToLive = 0
destination = "flextest-message-destination"
messageId = "5ED8AAA4-BDA8-C8E4-D85B-197C7AC5E83A"
[BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' is starting.
[BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' isHi Alex, thanks for your advice. I tried reading the client-side logs, but it just physically shows what I was saying earlier - that the consumer is connected and subscribed, but no messages are coming through to it.
I've attached the output of the 'flashlog.txt' file. For the particular session shown, the flex application was sent 8 JMS messages, but as you can see nothing got through. I put a 'trace' message in the message handler function (for my consumer object), but it never gets called.
'E2513351-75DA-0837-7263-3807B91D9630' consumer set destination to 'flextest-message-destination'.
'7D784A40-DBBB-71F1-4029-3807B91D45E3' producer set destination to 'flextest-message-destination'.
'consumer' consumer subscribe.
'flextest-streaming-amf' channel endpoint set to http://localhost:8400/FLEXTEST/msgbroker/streaming-amf
'flextest-streaming-amf' channel settings are:
'flextest-streaming-amf' pinging endpoint.
'flextest-streaming-amf' channel is connected.
'flextest-streaming-amf' channel sending message:
(mx.messaging.messages::CommandMessage)
body=(Object)#0
clientId=(null)
correlationId=""
destination="flextest-message-destination"
headers=(Object)#0
messageId="8A592005-3C8A-4C6C-B074-380857710C00"
operation="subscribe"
timeToLive=0
timestamp=0
'consumer' consumer connected.
'consumer' consumer acknowledge for subscribe. Client id '37CC5DED-A019-7110-3C89-A9926835103E' new timestamp 1233595684954
'consumer' consumer acknowledge of '8A592005-3C8A-4C6C-B074-380857710C00'.
Seems to me there can only be two explanations: either my BlazeDS configuration is incorrect (which is unlikely given that everything works if I use a ActiveMQ as my JMS provider with only trivial changes to my configuration), or there is some bug within BlazeDS that is preventing it from working properly with FioranoMQ. What do you think? -
Usage of WndProc for receiving message from skype c#
i am trying hard to capture & save skype conversation to file. i go through this tutorial
http://galratner.com/blogs/net/archive/2011/08/27/how-to-record-skype-voice-conversations.aspx also download wpf based
the source code which i run and got the success.
i follow the everything but my application is not working. the main problem is regarding receiving message from skype through
WndProc() function. my WndProc() function is calling only once but the application which i download there i saw their
WndProc() function is calling repeatedly for getting message from skype. i am trying for long time to capture the skype conversation but still no luck.
i already post few questions for capturing the skype conversation in this forum but not getting no expected clue. here i attach the link of my win application and that is
https://onedrive.live.com/#cid=C4A6F16F34D7540A&id=C4A6F16F34D7540A!126 just download the skypecalltest and run it and definitely notice that
WndProc() function is calling repeatedly for getting message from skype.
here is my WndProc() body
protected override void WndProc(ref Message m)
Boolean handled = false;
if (m.Msg == NativeCalls.APIAttach && (uint)m.LParam == NativeCalls.SKYPECONTROLAPI_ATTACH_SUCCESS)
// Get the current handle to the Skype window
NativeCalls.HWND_BROADCAST = m.WParam;
handled = true;
m.Result = new IntPtr(1);
// Skype sends our program messages using WM_COPYDATA. the data is in lParam
if (m.Msg == NativeCalls.WM_COPYDATA && m.WParam == NativeCalls.HWND_BROADCAST)
COPYDATASTRUCT data = (COPYDATASTRUCT) Marshal.PtrToStructure(m.LParam, typeof(COPYDATASTRUCT));
StatusTextBox.Items.Add(data.lpData + Environment.NewLine);
// Check for connection
//if (data.lpData.IndexOf("CONNSTATUS ONLINE") > -1)
// ConnectButton.IsEnabled = false;
// Check for calls
IsCallInProgress(data.lpData);
handled = true;
m.Result = new IntPtr(1);
m.Result = IntPtr.Zero;
if (handled) DefWndProc(ref m); else base.WndProc(ref m);
please please help me to capture the problem and guide me where i need to rectify as a result
WndProc() should work as expected. thanksHi Mou_Kolkata,
Since you are trying to get Skype conversation which used Skype API, it is out for support from C# forum and you have to post on below forum:
http://community.skype.com/t5/English/ct-p/English?profile.language=en
Regards,
Barry Wang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have an iPhone 5s and a MacBook Pro. Ever since I updated my computer software to Yosemite, it linked my Apple ID with my phone number and I am not receiving messages from iMessage users on my phone, but rather to my computer. I don't like to use iMessage so I keep it off and would like to receive all messages as SMS texts. I have already tried changing my Apple ID password, logging off of my Apple ID in iMessage on my phone and turning it off, and changing settings on messages on my computer. Nothing is working. Either the messages continue to go to my computer or the messages trying to be sent say they cannot be sent.
After spending 30 + minutes waiting for technical support, the woman helping me (who did not give me her name) told me I should just turn on iMessage. After explaining that I don't like having iMessage on and asking why it worked for at least a year up until this point she said "things change and sometimes we don't know why things do what they do". She asked me about various other things on my phone such as bluetooth and told me to turn on and off airplane mode and the call disconnected. I have not been contacted since, even though she has my phone number.
I am hoping for some help and also hoping people don't get the type of service I received tonight.I think you can solve your problems by removing your AppleID email address from BOTH the Messages setting on your iPhone and the iMessages settings on your Mac.
On iPhone:
Settings > Messages > iMessage > Dissabled
Settings > Messages > Send & Receive > touch the "(i)" < touch "Remove This Email"
On Mac:
Open "Messages" application
Click "Messages menu > Preferences
Click "Accounts"
Select your AppleID account
Under the "You can be reached for messages at" settings, uncheck your AppleID email address and your phone number
Then uncheck the "Enable this account" setting
And lastly, ask all of your friends with iPhones to delete all iMessage conversations (blue bubbles) in their entirety.
To test, send a friend a new text using their phone number (not their email address) and watch the color of the bubble. If it's green then you are using SMS. -
Still can't receive messages from Iphone Users
Greetings,
I know there are many topics asking similar questions if it's googled, and I think I have read through almost all of them to no prevail. I know veterans of these boards probably get tired of seeing the same topics, but im desperate and will try to keep it quick. I really appreciate any help.
I recently upgraded from a 4S to a Galaxy S5 and have not been able to receive messages from Iphone users since. I still have my old Iphone. Here are the steps I've tried:
1) Ensure "IMessage" is disabled in my old phone
2) Unregistered my phone number with my Apple ID. I currently have no phone numbers registered with them
3) Changed my Apple ID Password
4) Unregistered my Iphone with my ITunes Account.
5) I also have a Macbook Air and a 2010 model IMac. I have also ensured I am signed out on those devices and my phone number isn't linked in anyway I could find.
6) I called Apple 3 Days ago and the representitive was very nice and professional but ultimately was incorrect. He advised me that the new IoS7 is more advanced and should check about every 12 hours to see if the user on the other end has an active IMessage account. He said to wait 24 hours just to be safe. He also advised people running older IOS systems could take up to 3-4 days to contact me correctly. Furthermore he said if after that time frame their phones still sent me IMessages instead of SMS then THEY were having problems and should call Apple. I just really doubt that is the case.
I have tested it out with 5 Iphones now with help from some friends, all running IOS7 and still no luck 3 days after the phone call to Apple.
7) I tried logging back into IMessage today on my Macbook and it worked, I was still able to send and receive texts from Iphone users. This seems like it should not be possible since it is not linked to my phone number anymore. It is logged into the same Email that I used to have linked to my phone number.
Now as others have said, If I have them hold down the bubble and send as text message 3 times their phone will remember and keep sending my texts, however that is unreasonable to ask everyone to do. There should just be a way to completely delete your Apple ID. Is there anything I'm possibly overlooking? I really appreciate any help.I am right there with you. This describes my problem to a T. Only other issue I am having is group texts. Iphone users who include me in a group text still send as imessages as well, so even if I text them first and they reply, it send as an imessage. Get it together apple.
-
How do I get received messages from others to show up on my different Apple devices, such as my iPhone or iPad or iPod Touch, etc. I can see their reply on the device I was using at that moment but not on the other devices even iMessaging is turned on. Is there a way to refresh to incoming messages when one picks up one of their other Apple devices?
Hi there lkbluntzer,
You may find the information in the article below helpful.
Send and receive messages
http://help.apple.com/iphone/7/#/iph01ac18d71
See what time a message was sent or received. Drag any bubble to the left.
-Griff W. -
i have my daughters iphone 3, i want to use it as an i-pod, but it keeps receiving messages from some her friends is there a way to stop this from happening, please help, my phone is maxed out and would really like the storage for music, thanks
It sounds like it still has her information on it, so it might be efficient to navigate to Settings, then General, then Reset, then Erase All Content and Settings. You can then set up the phone again, using your information. This way the phone will be yours, officially, and her data and information will be removed.
-
I have the newest version of the iPad (3rd generation) with wifi. The messaging won't send out but I'm receiving messages from others when I'm using it. They also come through on my iphone at the same time. But I can't send them out on the iPad. I tried someone's suggestion of changing the DNS to 8.8.8.8 and that did not work to fix it. What is wrong with this thing? Thank you in advance for your help.
Are you trying to send a message to a cell number or an email address? iPad does MMS, not SMS, meaning it can't send a message to a number. It can send a message to an email address........
Maybe you are looking for
-
Wake from sleep when docked to Mini Dock using USB mouse or keyboard attached to dock
I'd like to know how to wake a T520 connected to Mini Dock (type 4338). I have a basic USB mouse (wired) connected directly to the dock. I've verified all of the items in Device Manager (mice and USB ports) are enabled for "waking the computer". In
-
Vocal tuning in GarageBand on Ipad
Hey guys, new to this so bear with me. I'm trying to find out if there is a way to tune vocals in GarageBand for Ipad. Any help would be awesome. Thanks.
-
Opmnctl status in linux server
Hi all, All the services in OBIEE 11.1.1.5 are not starting up in my Linux Server. So when I'm trying to see my OPMNCTL status in terminal I'm getting the below message. can not resolve localhost.localdomain for interface any Could anybody suggest on
-
Just downloaded book but did not get all the way down now cant play it any answers
just downloaded book but did not get all the way down now cant play it any answers
-
Calculation before aggregation
Hello BW Guru's What does this calculation before aggregation mean ? In which situation we use the above setting ? when we can use this option in Modelling and when we can use this option in reporting ? I am zero with this.. please explain me with a