Apply Function Between IP Cam And FMS?
Oct 15, 2011I want to know how can I get the videos from IP Cam and store on the Flash Media Server then clients can see the videos from the browser.
what kind of software and technique I have to use ?
I want to know how can I get the videos from IP Cam and store on the Flash Media Server then clients can see the videos from the browser.
what kind of software and technique I have to use ?
is there a way to refer to all movie clips on the stage or apply a function to all movie clips without applying the function to all manually?
View 3 RepliesI'm trying to set up some default callbacks for listeners dynamically, and I'm not having much success at the moment.
Array:
var URLLoader_SharedCallbacks:Array = new Array();
URLLoader_SharedCallbacks.push(new Array (HTTPStatusEvent, HTTPStatusEvent.HTTP_STATUS, "URLLoader_HTTPStatus"));
URLLoader_SharedCallbacks.push(new Array (IOErrorEvent, IOErrorEvent.IO_ERROR, "URLLoader_IOError"));
URLLoader_SharedCallbacks.push(new Array (Event, Event.OPEN, "URLLoader_Open"));[code]....
I just can't seem to figure out how to use them and what they're used for.
View 2 Replieshi I have created an actionscript function which stops an animation on a specific frame which works fine. I have then loaded in a php file with a variable which will contain the number for the frame i want the animation to stop on. This has loaded in fine and i have loaded it in a function. what i cant seem to do is to get the variable into the function which tells the animation to stop playing.[code]
View 2 Repliesthis is a REAL basic one for you: This is my script:
count = 0;
btn_01.onRelease = function() {
if (count<=20 && this._currentframe == 1) {
_root.count += 1;
this.gotoAndStop(2);
[Code]...
Instead of applying it to just one button I want to apply it to many on the stage, how do i add the names of the buttons to the function? I tried separating with commas but no luck
I would like to know if it is possible to apply function as a mask for other object.
View 9 Replieshow to apply a print function to a button, i have search through the script directory and this was all I could come up with?
on (press) {
printAsBitmapNum(_root.order, "bmovie");
}
order is the name of the movie clip. what i need is to be able to print the screen from the position where the button is situated??
This script does not print: i have played around with the settings in normal mode but there is no response from my printer.
I've an empty array and some global variables, and I have two movie clips in my library: one is a trigger, second is the movie clip that is placed on the stage when the trigger is activated (a testdummy, if you want).
var dummies:Array = [];
var i:int = 300;
var j:int = 500;
var k:int = 0;
[Code].....
...I get an obvious error : Scene 1, Layer 'actions', Frame 1, Line 66 1120: Access of undefined property dummy. Because dummies are created within a function. I don't have any trouble addressing items in the 'dummies' array though.
Though dummies are crated by the same pattern, data stored in them is the whole point of creating the application.
how can I apply a function to each of those dummies, which is executed on click and affects only one dummy?
I have a swf one one server that is pulling content from an Amazon S3 server. I have set up, for now, a generic cross-domain policy to allow all domains access:[code]These seem to be playing nicely (for the most part) as my swf is loading json, xml, etc. files from the S3 server just fine now. What it's not doing right is loading swfs from the S3 server, when it tries to do that it throws this exception:[code]I assume this is because remote swfs could contain malicious executable code. Do I actually need to set the allowDomain to something or is there some other 'more correct' way of allowing my swf to load up other remote swfs?
View 1 RepliesI have a couple of objects on the stage and want the user to be able to select one and then use a common set of buttons (with functions attached) to change the selected object's color, rotation, size, etc.
I've got the functions worked out, and can apply them easily as along as I hardcode the object instance names in the functions. However, I can't figure out how to allow the user to select a particular object and then pass the instance name of the selected object to an appropriate function.
i have a function which when the space bar is pressed it goes to a different frame. However the function can still be performed on different frames, how can i make the code only apply to that frame?
ActionScript Code:
function spacebarGoto(event:Event){
if(pressSpacebar){
gotoAndStop("start");
}
}
I have an fla that uses the following AS:
PHP Code:
envisionblur._alpha = 100;
envisionblur.onRollOut = function(){[code]...........
I have four MC's that I want to fade onRollOver and onRollOut. As you can see, writing code for each MC is a rather convoluted way to achieve the effect.how to write the code as a function and apply it to all of the clips?
ive got a text resize function and i want to apply it to two buttons so they both execute the function.the function is..
_root.largeTextButton1.onRelease = function() {
resizeText(hometext,14);
}
and
_root.largeTextButton2.onRelease = function() {
resizeText(hometext,14);
}
is there anyway i can do somthing like...
_root.largeTextButton1 & largeTextButton2 .onRelease = function() {
resizeText(hometext,14);
}
How can I resume sound after after i apply stopAllSounds function?
View 3 RepliesHow would I apply my existing function that involves calculating the x and y position of a specified movie clip, to multiples of movieclips. MY MOVIECLIPS on stage are
Code:
Ball_mc
Ball_mc2
Ball_mc3
MY FUNCTION is
Code:
function hitDetect(event):void {
var ballX:Number = (ball_mc.x-videoX)/sizeDif
var ballY:Number = (ball_mc.y-videoY)/sizeDif
[code]....
Should I use Arrays? Loop?
I need to make each item in my XML unique so that flash can apply a different function to each item in the component. Can you give the items an instance name in XML?
Code:
import com.digicrafts.events.*;
//Timer Set Time
var jumpTimer:Timer = new Timer(1000, 1);
[Code]...
I'm using String.split to parse a command line string into an array of strings. The result is then used to call a function using the Function.apply API.If apply(null, ["17"]) is called with this function:[code]does not work (expected output: false Boolean; actual output: true Boolean).Is there a way to make it recognize "true" and "false" (or anything else) as Boolean values, just like it does with numerical strings? Ideally "true" and "false" should also remain valid string values.
View 1 Repliesi am trying to apply setTextFormat function for my dynamic text filed in as 3, but its not taking. look at my code and suggest me where i am going wrong.
[Code]...
I am trying to draw circles dynamically with actionscript, duplicate/create multiples, have them move randomly around the stage independently of each other, and have them bounce off each other if they come in contact. The hit test for the latter has not been written yet. I can't get the circles to move independently of each other. My code is below.
** CHANGE STAGE COLOR TO SOMETHING OTHER THAN WHITE
Here I try to make 9 movie clips, draw circles inside of them, and apply the moveRandom function to one movie clip.
[Code].....
I'm using String.split to parse a command line string into an array of strings. The result is then used to call a function using the Function.apply API.
If apply(null, ["17"]) is called with this function:
static function test(foo:int):void
{
trace(foo, typeof(foo));
}
it works as expected (output: 17 number).
However, calling apply(null, ["false"]) or apply(null, ["0"]) with this function:
static function test(foo:Boolean):void
{
trace(foo, typeof(foo));
}
does not work (expected output: false Boolean; actual output: true Boolean). Is there a way to make it recognize "true" and "false" (or anything else) as Boolean values, just like it does with numerical strings? "true" and "false" should also remain valid string values.
I'm currently doing a board game, in which you get asked questions and answer them for points. the questions get loaded from a .txt file. what I'm trying to do is that the questions appear in a random order everytime the game starts. I already have the shuffle function working, it shuffles 51 numbers (the number of questions in the game) between 51 variables, so each variable is assigned a different number and they don't repeat. My problem is that I can't figure out how to apply those numbers to the variable that get loaded from the text file. I could make many IF statements but that would be a lot of code, so I tried doing a function, but it didn't work. this is the function:
[Code]....
I've been developing my current project some more and when testing it I received this message:
"TypeError: Error #1006: apply is not a function.
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/com.greensock:TweenLite::updateAll()"
It happens after the same amount of time every time. what's causing it?
The question is, How do you apply a function to a movie clip inside a movie clip inside a movie clip. So there are three mc and I need to apply the function to the inner most one.
Here is what I have. The 'a' is in 'spin_4' wich needs to be in 'portal'.
ActionScript Code:
for(var i = 1; i<=12; i++){
this.spin_4['a_'+i].onEnterFrame = function(){
if(this.hitTest(_level0.man)){
[Code]....
I've got a Vector of ViewToActionMap objects, which have following constructor:
public function ViewToActionMap(_forModule:eModule,
_forAction:eViewAction,
_toFunction:Function,
[code].....
I'm working on a number of pages that load external text files with buttons.That part works fine and I had the text marked up with basic html but would rather use css....I'm trying to figure out how to apply the css to the text:
here is the css
Code:
@charset "UTF-8";
/* CSS Document */
VIDEO, P, STRONG, LENGTH {
[code]...
the text loads but isn't formatted by the CSS
a. is the css code valid?
b. what do I need to do to get it to apply to myTxt?
c. when I load new text does the CSS have to be 'reapplied'?
Can forcesmoothing be applied to a .jpg that is loaded into a movieclip dynamically (via xml file)?
View 5 RepliesI'm working on a little flash project to show a card game being played out. Its just playing out a set of moves - no actual logic for actually playing the game.Anyhow, what i would like to be able to do is create a tween (hope thats the right term) where a card will appear in the center of the table, and then slide over to the players hands and at the same time shrink down so i can fit a few hands on the screen. So basically i need a tween that takes an object (the card), places it on the center of the screen, and then slides over and shrinks down to a specific point. So in whatever action script calls this tween, i guess i would need to feed it two values - which card it starts with, and where the card should end up.
View 7 RepliesI have a Flex ActionScript component. How can I apply CSS to this component? I'm hoping to be able to apply styles from an external CSS file.CSS Selector in file 'global.css':
.myPanel
{
color:#cccccc;
background-color:#333333;
border-color:#ff0000;
border-style:solid;
[Code]...
I want a xml text loaded in a normal textfield. I want to embedd the font to the textfield (so not in the xml file). I also want to add links to the xml text and change the look of the link with css. I just want a text file with links in it in Flash and want it to be possible to change it outside of flash so in a XML or text or html file i dont care. As long as I can make links in the text file without the ugly link stripe under the text (so it should be changeable with CSS).
View 10 Replies