Where do I place main.asc?
Hi~ all.
I placed main.asc in /FMS/webroot/main.asc
This is not working.
so I placed here.
/FMS/webroot/MyApplication/main.asc
This also is not working.
The path is correct?
How can FMS recognize main.asc file?
Thanks in advanced.
To connect to an application, the server must know that the application exists. This process is called registering the application with the server. To register an application with the server, create a folder for the application in the applications folder. For example, create the following folder to register an application called "myApplication":
RootInstall/applications/myApplication
Similar Messages
-
It seem a bug in flash server " main.asc is not working well"
i did download the latest version of flash media server , but it seam the /live/main.asc did not work at all ,
i did create a main.asc in :
C:\Program Files\Adobe\Flash Media Server 3\applications\live\
to be :
C:\Program Files\Adobe\Flash Media Server 3\applications\live\main.asc
now i did add to main.acs this code :
application.onConnect = function(client, name) {
trace("TRACE -- TRACE -- TRACE -- TRACE -- TRACE -- TRACE");
as the help files said :
The output of the trace() statements used by a main.asc file are sent to a log file, typically:
RootInstall/logs/_defaultVHost_/yourApplicationName/yourInstanceName/application .xx.log
Where yourInstanceName is _definst_ by default, and xx is the instance number, 00 for the most recent log file, 01
for the previous instance, and so forth.
You can view a log file with any text editor.
i opened "Flash Media Live Encoder 3" and point the stream to "rtmp://localhost/live/stream" hist start , traming is start well,
i went to the log to see if it true that FMS will write the trace !
C:\Program Files\Adobe\Flash Media Server 3\logs\_defaultVHost_\live\stream\application.00.log
where the "stream" is the the name of the "instance"
i did not found any thing regarding the "trace("TRACE -- TRACE -- TRACE -- TRACE -- TRACE -- TRACE");"
Please adviceIt seem no one in the world have this broblem !Please if you have a plan to help us (if).
Do the following :
· Download the latest version of flash media server , linux or windows never mind
· Install flash media server , as usual with standard settings , in linux use Nobody user
· Now the FMS is run and active .
· Go to the application directory in the “C:\Program Files\Adobe\Flash Media Server 3\applications\live”
· The content of this directory will be as the list below :
main.far
Application.xml
allowedHTMLDomains.txt
allowedSWFDomains.txt
So there is NO main.asc file , create a new text file . rename it to be “main.asc”
o Open the main.asc code , it will be empty for sure .
o Put the following command :
o trace(‘--------------- Test The Log Out Put -------------’);
· Now Open the “fms_adminConsole.htm” and Login as admin
· Select View Applications Tap
· Now , form “New Instance” select the “LIVE” and insert “test”
· Click on the name of the Instance in the right window and click the restart application icone in the toolbar , and see the live log , there is no out put of the trace command:
o Found wildcard (*) entry: disabling authentication for HTML file domains
o Found wildcard (*) entry: disabling authentication for SWF file domains
o Unloaded application instance live/test
· Any way , Now Open the “Adobe Flash Media Live Encoder 3”
· Point the FMS to “rtmp://localhost/live/test”
· Stream: test_str
· Click on start
· Go to “fms_adminConsole.htm”
· Select View Applications Tap
· Go to live loge window ,
· There is nothing regarding the trace command that we set in the main.asc ate the 1st place, but we did restart the app! strange !!!!
· We can see just “Accepted a connection from IP:127.0.0.1”
· Is there any thing wrongs with the steps ! is it a bug or what ?
· If trace command did not run so any command will not load .
· Why is that ? -
Mysteriously Missing Main.asc
Have any of you ever heard of a main.asc file being
"mysteriously" deleted from an application's directory?
I'm working on a client project that was being developed on
an in-house Fedora Core 5 server where I'd installed FMS. I
uploaded the client's video streams and coded main.asc's for two
separate applications. One of them, the larger of the two, had some
very important code in there that took me several all nighter's to
get right.
Long story short, the project got put on hold for a while and
now I'm taking another look at it, and moving it to a server live
on the internet. In doing so, I'm seeing that the main.asc file I
wrote for one of the projects is just plain GONE, like it never
existed. The other application is fine, untouched, but the more
important of the two has another strange twist: a directory called
"http" that I never created. Inside it are some streams (placed in
their own subdirectories) from the application's "streams"
directory that I never moved in there. And of course like I said,
the main.asc file is just plain gone.
Looking at /var/log/messages doesn't give me any information
(looks like the logs just rotated a day or two ago). Does anyone
have any ideas how I can find out:
a) how the hell this was deleted,
b) if there's a backup somewhere on the system (already tried
updatedb/locate main.asc, no help)
c) how to prevent it from happening again
Thanks in advance for any assistance you can provide.I'm wondering if you've got some security holes there. Did
you look at any of the streams? Are they something that would have
been published by an authorized user, or does it appear that
someone has been adding their own streams and leeching your
bandwidth/connections?
The missing main.asc is what makes me suspicious. FMS
wouldn't remove its own files like that, and since other files are
where they should be, it sort of rules out the file missing as a
result of a system restore. Removing the main.asc would make the
application wide open to abuse, so if someone wanted to leech
effectively, removing the main.asc would be helpful to them.
What do your server logs (not the FMS logs, the network level
logs) tell you? Do you see anything odd? If someone broke into the
server and deleted your main.asc, it wouldn't show up in the FMS
logs. -
Where should I place my preloaders?
Hi all,
Would like to seek advice on where should I place the
preloaders.
I have a banner swf, menu swf, main content swf, and intro
swf. where should i load the preloader? on the main MC that will be
calling these swf? or each swf have their own preloader? that would
look rather weird.
Of should I just merged banner, menu, main content and intro
altogether? How do i do that? I am lost as to should I separate
them out or put all eggs in 1 nest. My main content will have
transitions between each sections.
since my menu is separate from the main content, how do I
point them to get the main content to change section whenever user
click on 1 sections?
I am so lost. Please advise. ThanksHey X, sorry I haven't responded of late, working elsewhere.
Let me address some of the questions you've had above.
1) I'm very sorry, I see that I missed that assignment when I
typed this out, within the loadFile function the correct call
should be: mcl.loadClip(src, clip);
2)the code is AS2, and yes it is legal coding. first, we're
setting up parameters for our function here, and then we pass them
this information when we call the method that we've set up, so that
we can 'feed' information to the function that then uses it to
perform it's job. the variable declarations in this case here are
called 'strict typing' (ie. src:String, file:String, ...) and it's
just a way to define variables of a particular 'type', it isn't
necessary to follow the variable names with the type declaration,
but I thought that I would include it here so that it made sense to
you and so that you could see what type of variables need to be
passed to the function. the varaibles MUST be passed to the
function in the order that they are listed.
3) yes you've got this all right :) The onLoadInit handler
fires when the loaded clip becomes instantiated on the timeline
(eg. available), previous to this point you could NOT say something
like 'clip.gotoAndPlay(10);' because the loading clip was not yet
available for the call, and it would fail. So you can use this
handler to tell the loaded clip to 'do something' if you need this
type of functionality, like say for instance that you need the
loaded swf to go to a certain 'page' depending on what button the
user pressed, this handler would be a way for you to pass that
informtion along, and tell the loaded clip to goto the correct
position, handy ;)
As to the last question in 3, I touched on that above, my bad
4) I was just talking about the name of the swf file being
called 'dummy'.
5) No, put everything in frame one, but on a different
layers. Place your preloader on the top layer, and the 'blank' MCs
(to load into) on layers below.
OK, on to your last post.
Yes, the way it's set up here the preload bar would run to
100% for each load and then start again for the next one, it also
has a text instance that tells the use what is being loaded each
time. This could all be changed, and you can certainly use you own
preloader instance, however you will need to reconstruct the method
that is handling the progress. See if you wanted ALL of the
instance your loading to equal 100% of your loader bars progress
(for the first load anyway) you can't calculate the total bytes of
all files previous to initiating the load, so you have a problem
here. One method might be to 'break up' the load and apportion the
progress indicator evenly for each item needed in the intital site
loading. what I mean by that is, if you have 4 items that are
needed to load, then each item would 'move' the progress bar by
25%, so that when 100% of the first item is loaded, the progress
bar is revealed by 25%, then the second load reveals 50%, and so
on. It will just take a little math to change the code to handle
the progressions. Now I would suggest that you NOT animate the
masking rectangle by frames, I would do this with code adjusting
the _x position of the mask by an amount that has been calculated
with the loading code. also this method will have to accomidate,
both multi-loads and singlular loads so you'll need to use another
parameter to define how the preload indicator progress is 'broken'
and into how many parts. This would end up in the math that defines
the system that controls the indicator.
OK this should be enough for you to think about for now
:) -
FMS don't read main.asc. I'm going to crazy. Somebody help me.
Hi. All.
I've search enough. and I've did my best for 3 days.
Unfortunately, I could not solve this problem.
If you help me, you can be my sunshine.
I'm developing Text Chat App using Flex4.6 & FMS 4.5.
I wanna count how many on-line users in. I found some infomation by googling.
As a result of googling, I figured out I need SSAS(Server Side Action Script)
http://www.fmsguru.com/showtutorial.cfm?tutorialID=48
I followed what he did pecfectly. This source code is what I made.
UserCount.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009http://ns.adobe.com/http://ns.adobe.com/mxml/2009mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600" currentState="LogIn">
<s:states>
<s:State name="LogIn"/>
<s:State name="LoggedIn"/>
</s:states>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
private var nc:NetConnection;
protected function button1_clickHandler(event:MouseEvent):void{
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.client = this;
nc.connect("rtmp://192.168.0.5:80/livepkgr/");
public function setUserCount(userCount:Number):void{
userCountText.text = userCount.toString();
private function onNetStatus(e:NetStatusEvent):void{
if(e.info.code.indexOf("Success") != -1){
currentState = "LoggedIn";
]]>
</fx:Script>
<s:Panel includeIn="LogIn" x="10" y="10" width="250" height="200" title="Log in to my app">
<s:Button x="89" y="64" label="Login Now!" click="button1_clickHandler(event)"/>
</s:Panel>
<s:Label includeIn="LoggedIn" x="150" y="136" color="#0E55F6" fontSize="20" text="You are now logged in!"/>
<s:Label includeIn="LoggedIn" x="151" y="94" width="214" color="#8C2222" id="userCountText" text=""/>
</s:Application>
main.asc
application.onConnect = function(client)
application.acceptConnection(client);
userCount = application.clients.length;
client.call("setUserCount", null, userCount);
1. I released this project.
2. I got released files.
3. I copied these files to FMS's webroot and main.asc file also.
4. I connected this server by remoted PC. I could connect. And I clicked the button.
http://xxx.xxx.x.x:8134/UserCount/UserCount.html
NO REACTION
5. So, I checked break-point setUserCount. This method is called by SSAS. I wanna know this method is called or not. But There's no break. That means main.asc is not working.
Pls let me know what is my mistake.
Thanks in advanced
Kevin.Thank you for reply. Nitin.
I followed your explain.
But I can't connect to server.
When remote users connect to server, they connect http://<server-ip>/<app-name>/<app-main.html>/
This path is /fms/webroot/<app-name>/
NOT /fms/application/<app-name>/
I'm very confusing. Please give me a favor.
Thanks.
Kevin. -
Hello,
I have an application I created, it`s a video recording applications and one audio recording application.
like this:
rtmp://localhost/recorder
What main.asc file I need to put in this folder? do I need to do modifications to the file to work with my application?
On the samples folder I know there are one main.asc for eache application. is it OK to use one of that?
ThanksHey Jeff,
You can make changes to the sample main.asc files provided to suit your requirments or you can create your own. And place it in the folder that you created. -
Not very user friendly! Where is the place to report a problem!? I have been billed for an in-app purchase but not had the goods - I received an error message telling my I hadn't been charged at the time and now it is on my bill! What can I do?
You can try contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
Sorry but i have a problem my IPAD has been stolen and i want help to know where is the place of it ? can i send the serial number or anything i want help to know the place of my IPAD and thanks My name is :- Osama Rezk I'm From :- Egypt my icloud ID
<Email Edited by Host>You will only be able to track your iPad if you have find my iPhone active and the iPad is connected to a network.
Take a look at this link, http://support.apple.com/kb/PH2580 -
How to implement server side methods in client side player from main.asc?
Hi,
I am developing video player using RTMP NetConnection and NetStream object but it is giving me below Error. Can you please tell me how can I handle this. I have main.asc file form FMS server side but I don't know how to use it.
Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback setUserID.
Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback syncChat.
Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback playingNotComplete.
Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback nowPlaying.
Can anyone please help me ot solve this issue?
Best regards,
Sunil kumarjavascript are run on the client side.. but i think what you actually mean is getting some validation to your database without submitting the form?. yes it doesn't consumes time and memory of server.. why not use ajax so you can only submit a little request.. rather than submitting the whole page..
-
Secure Flash Remoting from main.asc not returning a result
Hi, Iv got a problem here that could be Flash Remoting or
Flash Media Server related
I have created an application that uses flash media server
and flash remoting.
For authentication in my app I used Kevin Towes suggested
method "Secure Authentication with Flash Communication Server:
Using Tickets and Flash Remoting MX." His article is here
Download
PDF Here
Now to the problem...
My application has no problem connecting to coldfusion using
flash remoting with the defaultGateway url set to
"https://www.mysite.com" (ie over SSL)
However In main.asc, on the Flash Media Server
When Flash Media server attempts to validate the login by
connecting to CFMX using flash remoting it gets no response when
using a secure gateway url. If I set the default gateway url to
just
http://www.mysite.com it works
great.
Why do I not get any response when using https as my gateway
url from Flash Media Server?
thanksSounds like you need to enable mappings for your remoting
gateway. I'm not sure if it's the same as Flex, but here's what you
might need to do, or something similar...
In c:\cfusion8\wwwroot\WEB-INF\flex\remoting-config.xml (or
wherever CF is installed) look for the <use-mappings> node
and set the value to true. You will need to restart CF -
Where do I place the different parts of the HTML 5 published files on a web page?
I recently published an HTML 5 canvas document from Flash. Once the files are published where do they go on a web page? For example, lets say I had 3 animations published from Flash as HTML canvas objects. The files go on different parts of page, let's say in 3 different places in the body. Flash outputs the HTML file, JavaScript file, and whatever images in an 'images' folder. I'm not sure where I would place all these files on my web site. I know the JavaScript goes in the head of the index page. However, where do the other parts go? Further, if I have multiple HTML canvas objects how do I separate the code.
All of the tutorials demonstrate how to publish the file, but give no assistance on how to place the file or files on a web page.
Below is example code from a sample files:
<html>
<head>
<meta charset="UTF-8">
<title>HeadSpinning</title>
<script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script>
<script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script>
<script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script>
<script src="http://code.createjs.com/preloadjs-0.4.1.min.js"></script>
<script src="HeadSpinning.js"></script>
<script>
var canvas, stage, exportRoot;
function init() {
canvas = document.getElementById("canvas");
images = images||{};
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", handleFileLoad);
loader.addEventListener("complete", handleComplete);
loader.loadManifest(lib.properties.manifest);
function handleFileLoad(evt) {
if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
function handleComplete() {
exportRoot = new lib.HeadSpinning();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
</script>
</head>
<body onload="init();" style="background-color:#D4D4D4">
<canvas id="canvas" width="615" height="400" style="background-color:#FFFFFF"></canvas>
</body>
</html>All of the sections marked with the <script> tags should go in the head of the About page. From this line: <body onload="init();" style="background-color:#D4D4D4">, you want to take the onload="init();" part and add it to the <body> tag of the About page. You can also add the background color if you want.
The part marked with the <canvas> tag is the part that need to be added to the body of the About page. I don't know what your About page contains, so I can't tell you where it should be placed. -
Where should I place the web service client implementation?
Hi,
I created a web service client, and some java classes are automatically generated like stub, servicelocator, proxy...
I wrote the client code to access and invoke a web service.Where should I place this code.
Thanks.pls see Left outer join in Infoset
-
How to create an Area and place main windows in scripts
How to create an Area and place main windows in scripts ?
hi prasad,
jst create a page first and define page windows.
here u can specicify whether the window is main or secondary.
to adjust the window goto form painter do the adjustment. -
Invoking external AS from Main.asc?
Hi all,
I'm hoping anyone can point me in some intelligent direction.
I have a main.asc in my FMS3.5 application. I'd like to be able to import things like AS3Crypto, com.adobe.serialization, etc, to be used in main.asc.
However, there seems to be no clear way to do so.
2 possibilities come to mind:
1) I'm not seeing something in the docs that is super obvious.
2) I'm attempting to use server-side AS for something that it is not intended for..
All I'm trying to do is verify url signature in my onConnect, however, I can't even get access to simple things like byteArrays, let alone invoke AS3Crypto. I can load other ASC files via global load() method, but this seems to bleed to death if I attempt to convert complex AS3 classes to ASC.
Is it intended that this sort of functionality be soley offloaded to another application via webservice/whatever? Or am I simply looking at this all wrong?
Any leads or advice would be tremendously appreciated.
Thanks all.
jPardon me if I am trivial here but server-side AS is plain simple AS-1 code to me so loads of things integrated with AS-2 & 3 versions are not avaible.
Using services like AS3-Crypto will need loads of rewriting to make them compliant with AS-1 capabilities.
Sorry if I misunderstood your need, hope I get useful here for you.
Regards,
IFZen -
Where shall i place a file like libeftapi.so.1.1.8 on LINUX OS?
I have here a file , i think a library to be used by a demo program of a supplier providing serial interface api that will run on Linux. e.g. libeftapi.so.1.1.3 . Where shall I place this on Linux system??? what subdirectory? Or shall i place it in my JDK1.4\lib director(ies)? i have tried copying this file to different subdirectories in linux but still arrive at the same RUN-TIME error...
like t his
java.lang.UnsatisfiedLinkError: no eftapijava in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at EftposPlusExpress.Interface.EFTAPINativeAdapter.<clinit>(EFTAPINativeAdapter.java:35)
at EftdDemo.POSDemo.this_componentShown(POSDemo.java:584)
at EftdDemo.POSDemo_this_componentAdapter.componentShown(POSDemo.java:655)
at java.awt.Component.processComponentEvent(Component.java:4964)
at java.awt.Component.processEvent(Component.java:4912)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Window.processEvent(Window.java:1092)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.NullPointerException
at EftdDemo.POSDemo.this_windowClosing(POSDemo.java:624)
at EftdDemo.POSDemo_this_windowAdapter.windowClosing(POSDemo.java:732)
at java.awt.Window.processWindowEvent(Window.java:1121)
at javax.swing.JFrame.processWindowEvent(JFrame.java:266)
at java.awt.Window.processEvent(Window.java:1079)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
What shall i do?
Help , anyone??
ThanksHello,
it is a shared library...
Look in a file like: /etc/ld.so.conf and placeit
in
one of the direcories...
f.e: /usr/local/libthanks i got it. i've placed them at Jbuilder/lib
subdir.
it worked... thnxbut another problem is that when i my jar file in
linux shell (out of jbuilder ide), it produces the
same run time error.. please help againmy jar file wont run in the linux terminal.
but i runs in jbuilderX, what shall i do???
Maybe you are looking for
-
hi can anybody tell me how the concept of EDI works? 1)do configurations like setting logical system, partner profiles etc have to be made? 2)is there standard idocs like MATMAS or CREMAS that are sent via EDI? 3)is there a step-by-step procedure fo
-
How do you "un" max out a graphics card?
Motion is giving me technocolor mess of colors. It may be because of graphics card being maxed out. What is the solution. I can't swap the card out, it's an iMac. Is the card wrecked? ATI Radeon HD 2600 Pro
-
Notifications not working Mountain Lion :(
Hey I downloaded Mountain lion yesterday looking forward to this new Notifications feature and i installed and everything only to see...... NO NEW NOTIFICATIONS Went into System Preferences> notifications and everything is turnt on. PLEASE HELP!
-
CAT2 Header missing Personnel Number and CC since EHP4 upgrade
Before upgrade, We had Personnel Number, Name and CC as part of the header, along with Entry Period and Week. Since EHP4 upgrade the Personnel Number and Employee Default CC are missing in the header. How do I get them to display again? Edited by: Sh
-
MODX_FUNCTION_ACTIVE_CHECK always called before SMOD / CMOD exit?
Hello, am I right to assume that the function module MODX_FUNCTION_ACTIVE_CHECK is always called before a SMOD / CMOD customer exit function module is called? I have already searched SDN and SAP Notes and SAP Help, but I could not find a clear statem