Actionscript 3 :: Can't Access Media Assets In An SWC

Feb 19, 2011

I'm having trouble accessing content in an SWC. The main project compiles without error, but the assets (sound, music) aren't displayed or played.

My workflow:

i. Using Flash CS5
1. Create MAsset.fla
2. Import sounds, art
3. Assign class names, check export in frame 1
4a. Write out the classes in the actions panel in frame 1
4b. OR. Add a document class and write out the classes there
5. Export SWC. Filesize is similar to what it is when I directly import assets in the main project library.
6. Create Project.fla and document class Project.as
7. Import SWC into main project through the Actionscript panel.
8. Add code, which calls the class names from the SWC (e.g. DCL_UI_MOUSE)
9. Compile.

No compiler errors, but nothing doing. And the resulting SWF filesize doesn't reflect anything more than the compiled code from the main project.

Regarding step 4, if I just write the class name in the root timeline or document class, the compiler error will go away and the asset appear to be compiled in the SWC. But I have also tried:

var asset0000:DCL_UI_MOUSE;

And:

var asset0000:DCL_UI_MOUSE = new DCL_UI_MOUSE();

Regardless the assets don't make it into the final SWF.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Access SWC Assets In IDE / Doc Class?

Jul 22, 2009

I've created an fla whose document class imports some static functions. The library also has some linked symbols (should they also be imported in the doc class?). I exported the fla as an swc, and tried using it in a new project. Whats the right way to reference this? And do i need to import the swc into this new fla to use them?

View 0 Replies

Flash :: Self Updating Air Application Assets Without Re-downloading Assets Already Downloaded

Feb 10, 2011

I want an air application to be able to update the assets it uses, but minimizing the download needed, so only downloading files added since it last updated.I'm thinking this would include a server portion which would zip the needed files based on a version number? Has anyone implemented anything similar / got any thoughts on the best approach to building this sort of system?

View 1 Replies

Flash :: AS3 & Swfmill - Access Assets In Swfmill-generated Library Swf?

Nov 6, 2009

I'm creating library swfs in as3 this way, works like a charm (except for the slow mxmlc compiler):

package {
import flash.display.Sprite;
public class Library extends Sprite {[code]....

I would like to create the same kind of libary using swfmill. I've tried the following swmfill simple xml:

<movie version="10">

Examining the libraries in FlashDeveloper's explorer reveals that the as3 library exports BOTH classes and symbols, but the swfmill library exports ONLY symbols.My host application is accessing the as3 library assets this way:

private var loader:Loader = new Loader();
private function onCreationComplete():void {
this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);[code]....

But with no exported swfmill classes, there's obviously nothing to instatiate...Is swfmill expected to export classes this way? If not,is there a way of accessing the symbols without instantiating them as classes?

View 1 Replies

Media Server :: Recording Video/audio Files Using Flash Media Server Through Rmtp, And Allow Users To Access The Recorded Files Through Http?

May 25, 2009

As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?What I am trying to do, is to record a user's microphone's input and save it to the server.fterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?

View 1 Replies

Media Server :: Can't To Access To Function Nc.onFCSubscribe?

Aug 24, 2009

i'm trying to use this code but i can't to access to function nc.onFCSubscribe. how can i do it? someone know about that?¿ the original site of the code is http://www.flashcomguru.com/index.cfm/2009/8/14/flvplayback-obtain-nc- reference
 
// listen to player events and kill manual connection once we're streaming    player.addEventListener("playing", playListener);    player.addEventListener("stateChange", stateListener);    player.addEventListener("ready", readyListener);       /* this is the hack: check once every frame if the NC has been defined inside the FLVPlayback component */       this.onEnterFrame = function() 

[Code]...

View 2 Replies

Media Server :: Will Not Have Access To Machine Locally?

Jul 14, 2010

1.How do I connect to the Admin Console through a static ip remotely as I will not have access to the machine locally?

2.I want to stream live audio and do audio on demand, how do I do this?3.How to I embed a music player in a webpage that can stream live audio or the audio on demand?

View 1 Replies

Media Server :: Access Flv Vidoes Inside FMS By Url?

Nov 9, 2010

[URL] that one day it can be played directly by html5's video tag:<video src="rtp://myserver.com/path/to/stream"> Your browser does not support the VIDEO tag and/or RTP streams.</video>Does FMS support this kind of url?

View 1 Replies

Media Server :: Cannot Access Admin Console On EC2?

Aug 8, 2011

We just installed our FMIS on Amazon services (EC2) and cannot log into the admin console. The server is running fine and we can resolve the web interface. Is there any configuration of ports or additional user accounts other than the install credentials (root/XXXXXXX).?

View 2 Replies

Media Server :: Remote Access For Streaming From FMS?

Oct 24, 2011

Ive been able to setup FMS 4.5 and stream RTMP videos locally from a webcam stream but if i try to access it remotely i cant get a connection. Ive forwarded port 1935 through to my local IP from my router but still no connection, what do i need to configure on the servers end to tell it that its behind an NAT etc. Do i just add the public ip to the hostname line in the fms.ini, or is there more i need to do too? Do i log into the admin panel and change the server name from localhost to my public IP

View 3 Replies

Media Server :: Access Array In RSO Client Side?

Oct 28, 2009

I've shoved an array in a RSO serverside and now i need to update values in the RSO client side ...I tried the following but it doesn't work...I'm using actionscript 3.0
 
so11.setProperty("conTrol[1]","test");     so11.setDirty("conTrol");

View 2 Replies

Media Server :: FMIS Images And Allowscript Access?

Dec 21, 2009

I have a very specific problem. I need to load certain images that my php script creates, and acts as proxy to some apis, into a Flash client (application) however I cannot use direct calls to HTTP server because I'm not allowed to use allowscriptaccess=true. So I've been using FMS for some aspects of my application such as live video and audio and SharedObjects.

I know I can write scripts to load and parse XML files on the server side so that shouldn't be a problem to get, however I'm stuck on loading in images going through FMIS.

When I test my video recording and chatting application using SharedObjects, everything works fine even if allowscriptaccess=false, but none of my images will load (naturally since the script access is limited). I know that some sites disallow scriptaccess parameter in Flash embed code so I would want everything to go through FMIS.

I have read some suggestions that I could try to load files directly from server-side on FMIS as binary and try to pass that to the client and let Flash generate the image with ByteArray but I wouldn't try to lose time if it's not possible or will stumble upon problems.

Does anyone have any ideas whether or not FMIS can serve images direclty through RTMP (which would save me some headache) beacuse I could load XML info from server-side and when I get the link to image use RTMP to load the image, but I'm unsure if this is possible at all.

View 2 Replies

Media Server :: Allowing Camera Access Programatically?

Feb 4, 2010

I want to publish camera over FMS. But I don't want to use adobe security panel to be displayed(not even once) with setting as "access" by default.I wan't to set it allowed programatically.

View 3 Replies

Media Server :: Run Fmsedge Process Without Root Access?

Feb 19, 2010

1937396On Linux, the fmsedge process needed to run without root access.

View 1 Replies

Media Server :: Can't Access Sub Folders In NAS Virtual Directory

Mar 30, 2010

I can stream files in the root of a NAS drive (/nas_dir), but not in any of the sub folders (/nas_dir/sub/). FMS has read/write permission to all the files on the NAS but all i get is "stream not found" when I access anything in the sub folders (streams play fine from the root of the NAS) FMS is running on rh5.4

View 1 Replies

Media Server :: Can't Access Properties Of Date Object?

Jan 5, 2011

My FMS client is calling a function (simplified) which gets the offset time in milliseconds of an flv file.According to the docs for creationTime, it should return a Date object containing the time the file was created.I cannot access any properties of the date object in the server script.

Client.prototype.listFiles = function( folderName ) { 
var testFile = new File('/streams/folder/fileName.flv');
trace("creationTime: " + testFile.creationTime);

[code].....

View 2 Replies

Media Server :: 4 Interactive Restrict Access To Vod By Ip Range?

Sep 8, 2011

I have vod files that need to be restricted to only the IP range of the ISP service. The live streaming can be available to all, how do I restrict vod access in the FMS Interactive Server, is it in the following?Virtual host on Interactive Sever:
 
[URL]
 
Would I edit these files for that restriction, how do I put the IP range in format wise?
 
/opt/adobe/fms/applications/vod
allowedSWFdomains.txt
allowedHTMLdomains.txt
 
Would I add the IP range in this files for each virtual host, I have 3 of them?

/opt/adobe/fms/webroot/vod
 
I do not want to impact the ability to view live streams, it will need to remain open.

View 1 Replies

Media Server :: User Information Logging / Extend Access.log

Oct 9, 2009

is it possible to extend the access.log file? I want to pass user information via the connect method to the application and want to include this data in the access.log file.

View 5 Replies

Media Server :: Appending User Information String Into Access.log?

Jul 27, 2010

I want to add some custom string into the FMS log file. If I am playing a video and I want to append some string every time when that video is played, which is in some way useful to me in analyzing FMS log, then is there anything provided or some function in which we can just pass the string as an input argument that appends it at appropriate place in the log file.

View 3 Replies

Media Server :: Install Fms 4 In Windows 7 And Access From A Webserver In Different Domain

Sep 1, 2011

I have installed fms 4 in windows 7 in my computer, but i cant get it work with a flex application that i have in a server. I added the port in my router's settings

[code]...

View 8 Replies

Media Server :: FMS 4.5.1 - Individual Flash Access Protection Settings

Mar 16, 2012

Any way to set up individual Flash Access protection settings for each of some <Location /{url-path}> tags in httpd.conf in the Apache. I have found in the documentation that EncryptionScope can be set to content or server. If I set it to server and use FlashAccessV2 as ProtectionScheme, how or where do I specify the Flash Access certifications and so on?

View 4 Replies

Media Server :: TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object?

Oct 7, 2010

I have this set of codes for a simple chat program using SharedObjects. When I run the program, I type my name into the 'chatName' box and my message in the 'textInput'box. However when click on the 'Send' button or press the Enter key, I am getting the following error:
 
" TypeError: Error #1009: Cannot access a property or method of a null object reference. at TextChat/sendMsg() "
 
As mentioned in the error message I looked at the 'sendMsg()' function. I realised the problem was comming from the line :
 
text_so.setProperty ("msg",chatName.text +": "+ textInput.text);
 
I am wondering how 'text_so' can be a null object reference. It was already instantantiated and setup earlier in the code. I hope someone can shed light on this. The relevant lines of code are below.

[Code].....

View 3 Replies

Media Server :: TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Mar 19, 2010

i use the code below to publish my cam, and i can play it in the same application. Then i copy and renamer it videoPlayer2.as then i use displayPlaybackVideo(); method but it says "TypeError: Error #1009: Cannot access a property or method of a null object reference.". How can i get the published live video from another app. 
 
videoPlayer.as // publish and play
package {      import flash.display.MovieClip; import flash.net.NetConnection;      import flash.net.NetStream;   import flash.media.Camera;  import flash.media.Microphone;     import flash.media.Video;      import flash.events.NetStatusEvent;   import

[code]...

View 4 Replies

Media Server :: Application Is Not A Valid Signed Application Loading Access Denied

Oct 29, 2009

We have an application that works no problems on our server with FMS in test mode. As soon as we enter our FMS license key we get this error: "application is not a valid signed application loading access denied".We removed the license key and it works again, but with user limits obviously, so this is not an acceptable fix.

View 5 Replies

Media Server :: Server Settings In Httpd.conf For Flash Access With HDS?

Mar 14, 2012

If I set EncryptionScope to "server" in httpd.conf (<fms>/Apache2.2/conf/httpd.conf) how or where do I specify the certificates for flash access if I want to use "ProtectionScheme FlashAccessV2".

<Location /custom-hds-vod>
HttpStreamingJITPEnabled true
HttpStreamingContentPath "../webroot/custom/vod"

[code].....

View 1 Replies

Media Server :: FMIS 3.5 Unable To Access Any Of Video Content / Getting Server Not Found Error

Jun 11, 2010

Some users are unable to access any of our video content, getting a Server Not Found error.We have our FMS configured to use ports 1935, 433, 80.  Our firewall is allowing RTMP traffic to each of these ports. Is there something more I can do from my end to make sure users can access our FMS?

View 1 Replies

Media Server :: Write Access Denied For Stream Error When Recording Audio Stream

Jul 26, 2010

I've had FMS running on my local machine for a while and have had a little experience writing FMS apps, but I've just tried recording audio for the first time using the standard vod application and I keep getting a "Write access denied for stream" error. My AS3 code is copied and pasted for various examples and am confident that it works.
 
I'm running Windows XP service pack 3 & FMIS 3.5.
 
I've had a look at the vod/media directory and under windows->properties the read-only attribute is ticked. Every time I un-tick this it reverts back to being ticked. I've googled this and MS say that most programs ignore the read-only attribute and that it only really applied to files. I've also tried the MS fix for setting the read-only attribute via cmd and still no joy (doesn't fix read-only attribute or FMS recording the audio after setting via cmd).
 
I've also tried our dev server install of FMS (running under linux) and am getting the same results.
 
Here's my AS3 code...
 
private function initApp(event:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE,initApp);

[Code].....

View 1 Replies

Media Server :: Find The Find PStreamName In Access Plug-in?

May 18, 2010

I must rejected all users outside Denmark from our live streaming (c-ip) and this is done in an access plug-insBut now I need to open up one of the streams, but I can't get the streaming name in the access-plug-ins only in the Auth-plug-ins.I cant use x-page-url or s-uri I need pStreamName. in access-plug-in like thissetStringField(m_pAev, IFmsAuthEvent::F_STREAM_NAME, pStreamName);but I cant get it inside  the access-plug-in

View 1 Replies

Media Server :: Access Log- Stream Play & Stream Stop?

May 24, 2010

I have recently installed FMIS 3.5.3. In checking the access logs I find data in both logs that display the same stream stop and stream play time .I'm not sure why the time is the same (00:19:27 example below). Videos play fine when testing from work (T3 connection). However, occasionally a very slight hesitation when playing video from home (I have cable connection). [code]...

View 4 Replies

Media Server :: Access Server Variables In C++ Plug-in

Mar 3, 2010

Is there any way to access a Flash Media Server server-side script through a C++ plugin? I know you can call server-side functions, but I want to use the plugin to do image processing, so I need to get bitmap data from the client to the plugin. I've been poring over the documentation and the forums and there doesn't seem to be any way for the plugin to communcate with the server other than to read Event properties. If this is the only way for the plugin to recieve data from the server, is there any way to override an event property to send custom data?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved