ActionScript 2.0 :: Scripting To Only Allow User To Proceed After Viewing Several Flv Files
Jun 21, 2011
I have an interface with several swfs _level1 that play flv files, they replace each other on _level1 when activated. I want the user to have to watch all of these movies before proceeding further. In other words, they cannot continue to the next scene until they have played all movies in that scene.
I have my swf files which are getting called in browser when user opens its corresponding page. To ensure my swf is not used by user for his other purposes, i had to strict it to view from HTML page which has a variable. Same variable is passed from swf to this HTML.
if both variables does match then only swf starts preloading. this works fine for first time. But when user open the same page second time, he is only able to view preloader which does not progress further.
When i delete my temp file then user is again able to view the swf only once.
1. what is reason the swf from temp file cannot access variable of its HTML
2. am I doing it wrongly?
3. do i need to clear cache everytime or their is another method to do it?
I am trying to prevent users from viewing my site and then simply going into their "temporary internet files" and stealing my swfs and XML files. I have been using a great .PHP code to stop this but now I am working on a server server that only uses .aspx files. Does anybody know of a way that I can stop files from being stored in the "temporary internet files" folder. I have encrypted the files but this is not good enough.
I have a uiloader component that loads in images, there's a back button and a next button. Im trying to hide the back button when the user is viewing image number 1. The problem is when the site loads the back button is visible even though the source is image 1. If you cycle through the images to image 1 then it disappears? why?
heres my code for my imageloader:
next_but.addEventListener(MouseEvent.CLICK, nextimage); var ImageNumber:Number = 1; function checkNumber():void {
My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.
I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything
I'm having trouble with some TIMER EVENTS here and I really don't know how to proceed.I've got a lot of instances of TimerEvents in my code, all triggered by TIMER (myTimer.start() method). They work nice however, somehow, some of them simply freezes and it doesn't continue to execute the timer event function.I'm using about 80 papervison3D cube instances and all within by jiglib rigidbody.
Having an online swf doing some slideshow with loaded pictures from an xml filme, how can I, after building the slideshow with some transitions, export the result movie into a flv/mov/* file?know how you can get pictures from a xml file into flash and then proceed to build the slideshow (showing, of course, the swf in the page).What I need is a somewhat hidden swf that would process this pictures and then export the movie into a folder.Example:
-> user uploads pictures
-> user click preview movie
-> pictures are loaded into the flash file
-> movie is built
-> final file is saved into some folder
-> user is warned about the movie being done and read to download
I'm using a Flex datagrid where only 1 rowItem is editable. All the other row items are non editable. When I edit the value of the row, and press ENTER or TAB the focus is send to the next editable item in the datagrid. In this case the editable field on the next datagrid row.
I don't want this standard behaviour... I don't want the focus to be processed to the next editable item. Since the data is saved instant, it's quite strange that the focus is given to the next field. The focus has to be remained on the item that was edited.
A user, who is not familiar with html, wants to do very simple text formatting (font color, size, decoration) in external txt files that are to be loaded into Flash CS4 dynamic text fields. I know, some html tags can be used in txt files but the text becomes quite unclear. How is this issue usually coped with? Must the user learn a bit of html and use it or is there any other option?
I want to use this Flash MP3 player URL...on my website to play my music compositions. It is a fantastic player, but it is caching the mp3 files to location "C:Documents and SettingsuserLocal SettingsTemporary Internet Files" on the user's machine.Is it possible NOT to cache the mp3 files to the user's local machine.Pls let me know if there is any other flash xml mp3 player which has the same functionalities.
1) I am working on a custom FLV player for a website. The users will upload various FLV files onto folders on the server and I would like the users to have the ability to browse those folders and select a video to play.
2) Also, as I will be having the users upload their videos via fileReference in Flash, as soon as their upload of a particular video is complete, I would like the video they just uploaded to begin playing or be loaded and ready to be played. Is there a good way to pass the video name directly into the FLV player on the completion of the download so it can begin playing or at least be ready to play?
get a scene to loop twice (or perhaps three times) and then proceed to the next scene. I imagine I need a counter and an if statement but I don't know enough ActionScript to do it.
I'm hoping to produce a CD of Captivate lessons to be accessed via a Flash menu. (Using Flash CS4, but with ActionScript 2). I can get the files to work from the disc, but as they are large files, they take less time to open if downloaded onto the user's machine first.
Is it possible to use some ActionScript to take the folder of files and copy them onto the desktop so that I can then point the menu items to the newly copied folder? I've seen that there is a download option in ActionScript but this seems to bring up a dialogue box and allows the user to place the files wherever they want. Ideally I'd like the process to be automatic.
I've developed a system that uses SWFUpload to easily allow the user to upload multiple files with a progress bar showing them the upload progress. It all works fine in my development environment, but is failing for some users in the wild with the Flash movie not loading. I can see the Flash movie is there, if I right click it a window appears saying Movie not loaded... (Then on the next line) About Adobe Flash Player 10...So far I've not been able to determine what was causing the failure.Are there any other alternatives to SWFUpload that will allow for:
i am making a quick and dirty flash help source for my companies site. Later on i will tweak I will pretty it up. I am going with two movie clips that i believe will be sufficient for now as seen the layout below....[code]....
MC_1 :Is the selection menu.I want to import from a text file the different help sections or catagories....eg.. Setup, Administration, Customizing, etc......Then i want to import from text files that are labelled and corrisponding to each section that will list the actual different help selections...eg..(Setup) would have sub menu options of System Requirements,Server Install, Client Install.I would have these sub menus in listed in different text files for each section heading.
MC_2 :Then when somene clicks on the submenu options like 'Server Install' in the given example Movie Clip 2 would import from yet another text file the actual help information in an HTML format
Questions:For MC_1 I am not sure how I should go about creating it!I assume I will be creating a MC inside of it, one for each variable it pulls in from the Header.txt file.....how do i do that when the number of variables can change?And then it will pull in and create the sub menus one for each variable that it finds in its own text file, again the number can change?From there i should have no problems having the sub menu, when clicked on, would pull the text info in html format into MC_2.
I want users to be able to upload audio files to my server (say, over HTTP.. mechanism doesn't matter much), and then I'd like to assemble those files into a playlist and stream them out over a live RTMP stream to a Flash widget.The catch is: I'd like to begin streaming the audio files before they completely finish uploading. For example, if a user uploads an hour-long mp3, I'd like it to be able to begin playing on the RTMP stream once, say, the first minute has been uploaded.I'd like to support mp3 and AAC, and would hope to avoid re-encoding the files. Is is there a way to make this work with Wowza, Flash Media Server, or some other clever solution?
So I'm building a web application, and in part of the application the user should choose an XviD (.avi) video file from his machine, to be played in the browser (without uploading it). I decided to use Flash for this.
Now I have two questions about this:
Which Flash video player is free to use and capable of doing this? How should I let the user choose a video file, and how can I link the Flash video player to the file?
Do you still have to use Flash wrappers like Zinc to be able to save files from a CD using a Flash projector. In the same way you would use Filereference.save?
I've got a DVD style project where I need to be able link to files such as PDFs, JPGs and WMVs giving the user the ability to save these to their local drive.
I've been fooling with this problem since AS2.0 (and shared Objects) and I'm not much closer to solving it, partly because every article I read on it is focused on php and server-side stuff that doesn't apply. How to load a String Array from a txt file in local user space (the folder from which the .swf is run). What I need to know: The easiest way for the user to save/load a file. The file has to contain Objects and Arrays reflecting his current status in the game. The goal is to avoid non-Flash apps and languages, and external Classes if possible (I do everything right in the main fla). I don't mind that the user has to initiate and approve the upload/download.
I was thinking that it may be possible to create a primitive, yet usable actionscript based text to speech system for Flash movies (One that is platform independent).
Is it possible to right a series of actionscript commands that would play a collection of certain sound files based on what word or words the user has entered?
For example:
If the user types "Red Pen"
Can actionscript tear apart those two words and play sound files "Arr", "ee", "Dee", "Pee", "ee" and "EN"?
If it is possible, and if someone could help me out on it, then I'll start figuring out what phonetic sounds I'll need to record and program, and see if I can't build a simple text to speech program for flash movies.I have no immediate commercial application for it, and I don't plan on one.So if I can pull it off it'll be free to everyone, source code and all. Of course, it may be in my voice, but it shouldn't be hard to take what I plan to do and use it as a template for anyone else's voice recordings.
i'd like to know if its possible to save information obtained from users to files if the user is accessing the flash file from a cd. I would also like to know how it works if possible. And can the flash file be in .exe instead of .swf?
If an end user wants to view a certain file on the server but does not know the file name how can they search/locate it?As an administrator I have access to the VOD folder, but end users do not have admin rights.How does a user find the file they are looking for?
[URL] However, if I were to go to a new url in that same tab and try to go back to the original site, all I will see is the loading screen which is stuck at 0%.
The above mentioned site works perfectly in Firefox, Chrome and Safari.FYI, I'm loading the content with swfobject. I tried both static and dynamic methods. It is currently set to load dynamically.
i have a div which has a flash object embedded in it when the user hits the page the swf plays great.the thing is, is that once the swf is done playing.i want the div to be filled with other html info(ie div.innerHTML = "stuff").