ActionScript 2.0 :: Record The Unique Info Using A Swf?
Apr 16, 2008i want to record a unique info of the client machine using a swf file.
View 2 Repliesi want to record a unique info of the client machine using a swf file.
View 2 RepliesI have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...
Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........
also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.
I develop failover fms application with server-side action script. But i have a problem that FMS can't continue to record stream with record mode "append".
Environment: FMS 4.5.1 r484 on CentOS 5.5/6.0
Goals:
I have 2 same data streams in failover application and republish primary to livepkgr application.
I have to store of last 10 hours intact recorded video (DVR).
Failover app logic:
1. I create NetConnection and NetStream to livepackager;
2. When primary stream is connected it attach the primary stream to livePackager NetStream
3. If primary stream is disconnected it reattach the backup stream to livePackager NetStream
Problem: I have testing environment. It stop primary stream every 5 min, and started primary stream 5 min after stopping.
It work's, fine, but after a few hours testing LIVEPACKAGER falls. It can't record a stream, NetStream.Record.Start -> NetStream.Record.NoAccess -> NetStream.Record.Stop
Search a solution: I try to relaunch recording process and have no success. try to shutdown/start livepackager, it's same, try to restart server, same no success.
I cant stream.clear() or record with mode "record" cause it clears my dvr cache, I cant clean stream directory in livepackager application.
[Code]....
How to get unique random numbers every time in AS3
I have searched but not able to get satisfactory results
Is there a way to get a unique machine-specific system ID in a Flex application running in a browser, so that is can be used for example to determine if the machine is properly licensed to run the application?
View 5 RepliesCS3, actionscript 3.0 -- I'm creating a menu page (that looks similiar to a standard DVD menu.) It loops, has graphically rich layers done in photoshop, buttons on top layer.I'm importing the PSD file/layers. The larger background layers have transparency with blend mode and rotate to create a galaxy turning type effect. As I expected -- testing the SWF in browser, it is clear that stagequality.LOW is best to get realistic smoothness due to graphic demand of a big, cloudy turning galaxy.
I would like for the buttons and graphics above the galaxy to have .BEST quality setting to smooth them out.When I set the stagequality unique to each mc, I notice in the SWF that the background though set to LOW, has assumed the setting of button.mc stagequality. Now, I thought about creating a base SWF for the StageQuality.low galaxy layers and then using a loader to place buttons (in seperate SWF) on top of that at high stagequality.It would seem reasonable to want to assign different stage.quality settings to different movieclips to reduce CPU load to minimum while having flexibility to decide which mc gets what quality setting.
I am trying to store data in an object about different objects, but right now i am using their names. This was working at first but if I have 2 movieclips of the same class (from the library), then their children will both have the same names and this messes with my data storage.
View 5 RepliesI am trying to make a multiplayer card game which has 6 players. Each player can hold 2 cards.
The movie clip names are :
p1c1 // Player 1 card 1
p1c2 // Player 1 card 2
[code].....
i have an externally loaded .swf file i'm loading into a container mc with a unique identifier. that .swf file itself is dynamically loading a .txt file into a text boxow do you script the .txt file to have a random identifier? a code on the actual .txt file or actionscript on the buttons that call the .txt file?i have a few buttons that when pressed load a new .txt file into the text box called newsBox. the buttons have this code:
on (release) {
loadText = new loadVars();
loadText.load("newsitem1.txt");
[code].....
[code]i know about arrays and the code above isn't what i got its just a way to try and explain it a bit better.I would like to know for a TD game i am trying to make
View 2 Replieshow to determine the unique id's for different fonts using actionscript 3 or any other language i.e. c#??
View 5 RepliesI'm wondering if it's possible to create variables in a for loop that uses an incrementing number in the variable name.
This is the code I've tried (as a long shot) but isn't working:
var i:Number;for(i = 1; i < 10; i++){ var ["number" + String(i)]:Number = i;}
trace(number5);
What I'm trying to create here is a series of variables called "number1", "number2", "number3", etc. Is there another way of doing it? I'd need them to be public (I think that's the term?), so they can be used elsewhere in the script.
I have an xml file and I'd like to create an array of all the unique values from one of its nodes.The xml file is called pntxml and the node is pntxml.row.Category where category is from where I'd like to create an array of all unique values.I was working through this and was first going to create an array of all values in Category by iterating through the xml and pushing those values into a seperate arrayWhen I try to push each entry into an array I get an error orTypeError: Error #1009: Cannot access a property or method of a null object reference. at NAPA_fla::MainTimeline/sortXml()
var catArray:Array;
function sortXml(event:Event):void{
for (var i:int = 0; i< pntxml.row.length(); i++){
[code].....
how to keep my text unique to each frame...it seems as though all inputted text wants to follow through all my frames. Here's hoping it's something simple that I'm just not seeing
View 3 RepliesI have an ArrayCollection as mentioned below.
private var initDG:ArrayCollection = new ArrayCollection([
{fact: "Order #2314", appName: "AA"},
{fact: "Order #2315", appName: "BB"}[code].....
I want to populate a ComboBox with UNIQUE VALUES of "appName" field from the ArrayCollection initDG.
<mx:ComboBox id="appCombo" dataProvider="{initDG}" labelField="appName"/>
One method I could think is to loop through the Array objects and for each object check and push unique appName entries into another Array. Is there any better solution available?
How to create a dynamic ArrayCollecton instance that use unque naming: ac1, ac2..ac999 whether user click a button. Without having to use hardcode variable name.
View 2 RepliesWhen we reference a SWF file from our ASP.NET page we append the version number to the SWF url, like App.swf?1.1.0.0. In a recent update, Firefox has continued to use a cached swf even when the version number changed, App.swf?1.2.0.0. We haven't noticed this behavior in other browsers.
Has anyone else seen this behavior? We don't want to disable caching completely. At this point we're probably going to change the name of the swf for each version, like App.1.2.0.0.swf, which seems a bit excessive.
I have made a short script to generate some random numbers that must be unique. But it doesn't work as I thought it would have done! What is wrong in my code? Preciate some help to change my code so that generate unique random numbers.
[Code]...
I'm trying to find a simple way to solve this problem: I have an array of integers and need to find the highest value that is unique.Specifically, my array holds player scores. Ex: (4,7,6,5,2,7)I need a function that will give me the highest score that it is not tied with another score. So for the example above, it would return 6 (not 7 since there are two 7's)
View 9 RepliesIs there anyway to have unique instance name for different objects at different frames..?
View 3 RepliesI'm trying to create an array of random unique numbers from 0 to 39 so that I can list these numbers in a countdown and without repetition, ie: 25, 29, 11, 03, 17 etc. These are 40 different numbers, equal or greater than 0 and equal or less than 39.
View 2 Repliesi have an externally loaded .swf file i'm loading into a container mc with a unique identifier. that .swf file itself is dynamically loading a .txt file into a text box.how do you script the .txt file to have a random identifier? a code on the actual .txt file or actionscript on the buttons that call the .txt file.i have a few buttons that when pressed load a new .txt file into the text box called newsBox. the buttons have this code:[code]what i want to make sure is that when called upon, the new .txt file is loaded and not the one on the user's cache.
View 2 RepliesI have a custom slideshow that I've made that has a set of four images changing every 5 seconds. The images are randomly selected by a random number between 0 and the length of my XML.
how can I get four unique random numbers - i.e., getting 1, 4, 6, and 8 rather than 1, 4, 6, and 6?
So once a random number is selected, it can't be selected again.
Is there any way to get some UNIQUE, unchanging value from the user's computer, such as MAC address etc, via ActionScript? IP Addresses change too often, and even though MAC addresses are fakeable, at least it is a bit of protection.I can find many uses for this, including making it more difficult for people to copy over SharedObject data from computer to computer.
View 3 RepliesHow to get unique random numbers every time in AS3.
View 3 RepliesI have a for loop that runs depending on the length of an XML file. What I want to do is create a unique text field for each run through of the loop, and give it it's own position on the stage, and finally assign it the text from an external text file that is specified in the XML file. Everything I know how to do except creating the textfields.
Quote:
for(var i:int = 0; i < blogXMLList.length(); i++)
{
var txtHolder:TextField = new TextField();
txtHolder.x = textX;
[Code].....
This code creates only one Text Field, but then replaces it's text with new text with each run through.
is: I have array={0,1,2,3,4,5,6,7,8,9} and i want from this array unique random pairs.for example: 3,6 nad automaticly 6,3 no repeats.It must give me 10 pairs.for example:
3,6
6,3
1,2
[code]....
I've just created a draft animation demonstration of a unique analogue clock [URL]. What I would like to achieve is to also have a digital clock just below it. So when you roll over the analogue clock, the animation starts for both clocks. When you roll off the animation stops leaving the time displayed exactly the same on both clocks. So basically both the clocks run simultaneously (speeded up). How I might achieve this?
View 4 RepliesI'm tinkering around with things in AS3, and now that programming the reaction of buttons involves a bit more code, I'm trying to figure out how to kill a few redundancies.With the file I'm working with, at different points, using different objects, the user will click some specific thing to advance the main timeline one frame.Now, the way I've been doing it is, for each object, I have an addEventListener, which calls a function that only contains: MovieClip(root).nextFrame();So I've got, on every frame, unique functions that each require three additional lines of code -- I realize it's not much, and it's not a lazy thing, just an organizational, minimization thing.Since it's just that one thing, I don't see the point in making an entire AS file, so I didn't know if there was a way to make a function that could be called from any frame, from any object, rather than just have them local.
View 6 RepliesI have an onEnterFrame function controlling all the movie clips in an array. The motion of each of these movie clips is controlled by a few variables speed, acceleration, etc that are modified on each enterFrame. I can't figure out how to create unique variables for each element in the array. At the moment my variables are the same for all the elements, and so the motions for each movie clip are the same.
I have used this code to add my movie clips into the array:
for(i = 0; i < starNumber; i++){ duplicateMovieClip(star, "star" + i, i); starArray.push(this["star" + String(i)]); }
Do I need to do a similar thing to create unique variables for each? Or is there something I need to do in my for(myClip in myArray) loop that is contained in my onEnterFrame function?