How do I automatically create an external .txt file without asking the user for directory. I am using the following code so as to create and save the ".txt "file, but my code asks for the directory to save the file. I want the file to be saved automatically without asking user for the directory.[code]...
How to create a movielclip, and then put an external file into it (picture or swf). I first need to create the movieclip var holder_mc:MovieClip = new MovieClip; Next I defined where the file is filelocal = "somegalaxy/far/far/away"
This is where I hit the wall, I seen examples where I need to add a listener , others just looked like they added the child. I went the simple (wrong) route and tried just using the addChild. Complied, but nothing addChild.holder_mc (filelocal).
I have created some swf files using non macromedia software. I have loaded them as targets into movieclips in my flash file. I have then animated these movieclips linked with the external swf files. The animation of the movieclips links to what is going on in the swf files. Therefore I need to load the external swf file completely before I can animate it.What is the best way to achieve this? do i create an external preloader? How would I do this? (i'm a beginner and don't need any loading bars or anything, just a very very simple preloader!)
Previously I've done all the monkeywork by hand on the timeline, but now I need to make an automated slideshow for an image portfolio that collects pictures from an external folder (1.jpg, 2.jpg, 3.jpg, etc...) so I can just upload variants of the image without having to change the flash file each time.
I'm also hoping to include fading transitions and an easy way to change the amount of time each image is on screen.
I was given an assignment to create and external video playlist using an xml file. I have never used flash before, know nothing about encoding and all that was given to the class in terms of instuctions was a short tutorial that has no resources for troubleshooting. We were given everything; the external playlist file equipped with the video skin, the video list, actionscript that loads the xml and the xml file. We were told that all we need to do is change the names of the videos in the xml file to match the names of our videos. I did that. We were also told we needed to "name target", but we were not informed on how to do this. I have tried everything, visited every tutorial and I cannot figure out how to get this damn thing to work. I cannot even get flash to load the xml file.
Here is the xml file:
<?xml version = "1.0" encoding = "i-8859-1"?> <playlist><ADogWithoutABoneflvurl="ADogWithoutABone.flv"desc="Hyper Wall First Video" />
[Code].....
I tried placing the full address of the xml file in, along with the file address of the videos, but again it did nothing. Everything is located in the same file, and the videos in a sub file in that file. I tried taking out the sub file and putting all the videos in the same file, but it did nothing.
I am using CS3 / AS3 to create a kiosk app. As part of the kiosk I need to create an external file that I can append with visitor comments (2 text fields and 2 radio buttons). These would then be approved by a museum administrator and copied over to another text file that gets read into the kiosk and displayed. I'm not having any trouble reading in an external file, but I'm finding so many conflicting things about writing an external file with AS3.
I'm trying to build a Flex AIR app using Flex Builder 3, which I'm just getting started with. In Flash CS4, there's a text field in the authoring environment where you can specify a class that will become the "base" class - your class inherits from Sprite and then "becomes" the Stage at runtime. Is there a a way to do the same thing with Flex/AIR? Failing that, how to create and use an external class?
[Code]....
But that gives the error "A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package". I can't win! When I put my class in a package, it says I can't do that because it would be nested. When I don't, it says it needs to be in a package so it can be seen.
I am trying, and have started to create a movie with 3 external swfs, and one nice chunky one to start. I am combining some aftereffects video stuff, so the files are kind of large. What I am doing so far, is setting up a simple preloader (one that I got from here) and then on frame three, embedding the first segment of my movie. Once that first segment plays, and gets to frame 220 or so, I then have a container placed with the loadmovie command, to load the next swf. And then so on, and so on.
It works fine, however, there is a pause when the _root gets to the next frame container to load the movie. The reason being I am sure, is that the movie isn't loading while the initial _root movie segment is playing. Is there a command I can use maybe on frame 3 of the _root, right after the preloader, to trigger the download of the next movies?
I have looked at some different forums, and have done the searches, but nothing specifically answers this for me--or quite possibly, I am just overlooking the obvious.
I would like the preloader to still only load what is on the initial _root timeline, but as i said, have the other swfs loading while that first part is playing.
[URL] this is my website and my banner is swf file.... it takes some times to load in a low speed connection... I want to have a preloader for this, which shows the precent or the bytes loaded, total bytes, and also a load bar....
I wish to create a glossary that is read from an external *.txt file. The glossary function like a dictionary in that there is a word, its definition, and a link to a relevent page where the word appears. e.g. <label="apple" def="that thing people eat" url="apple.txt"> The reason I want it external to flash is so that new words can be added and removed manually and flash will simply update. A user can type in a word to search for in the "sorted alphabetically" list within flash.
I want to create banner and do exchange with others.Banner will be flash because it will load just entry titles with URL's from XML, which is on my site.
Creating a simple video for embedding by importing a video into flash creates a separate swf for the controls. Is there a way to have the controls embedded in the main SWF, so you don't have to worry about paths to the control swf?
I have a movieclip (listBtn) defined in my document class and need to use it in my view class to dynamically create multiple instances of it in a loop. For some reason I'm getting 1180: Call to a possibly undefined method listBtn but can't figure out why since the listBtn is defined as you can see in the view class [code]...
I've rarely used static variables or methods when creating external classes, but I have on occasion, and it's very useful when I need global access to a value. I've seen negative criticism on the use of the "static" keyword, but never understood why. Is there a right and wrong way of using it, or is this not true? I'd like to use it in a context similar to classes such as MouseEvent or TextFieldAutoSize, where there is a list of values globally accessible for identification purposes.
It allows better code readability, and also allows for easy customization in the future. The value of TextFieldAutoSize.NONE is "none", but as long as a programmer used the reference TextFieldAutoSize.NONE and not the string literal "none", Adobe could change the value of TextFieldAutoSize.NONE to be "hahahahaha" and everything would still work just dandy because (TextFieldAutoSize.NONE == TextFieldAutoSize.NONE) is still true even though ("none" == "hahahahaha") is not.
Is there any kind of negative impact on using static variables this way? Or even functions for that matter? I'd just like to clarify this before I go and build a large project around the idea this is perfectly okay.
where i can find Dynamic Text Effect Tutorials. I'm trying to create a textbox that loads external text and, upon loading, displays the text like its being typed. In addition the new letters fade from white to a shade of blue, and lastly as the letters are being typed a sound clip is played per typed letter.
I want to create dynamic slideshows using external jpegs and for the slideshow to continue until all of the images have been shown. The images in the folder are named 0,1,2,3... etc First of all I want a function to fire that loads an external jpeg.It then checks to see if it exists.If it does it waits 5 seconds then loads the next. If it doesnt I want it to stop and show a default image.So far I have
PHP Code:
fileExists=new LoadVars(); fileExists.onLoad=checkIt; function checkIt(success) {
[code]....
This checks to see if the image exists and if it does it gets displayed. If it doesnt it shows the default image. How can I add a counter to the "0.jpg" and the
PHP Code:
fileExists.load
I Know it involves setInterval but I cant seem to get the two things working together!
how to create a Flash website, that loads data from an external source(CMS), that can be indexed by Google? Indexed by Google looking at the SWF and not shadow HTML pages. Or exactly why such a site cannot be indexed by Google. I have found several articles; however, none get into technical details or are by Adobe.
I'm currently trying to find out how to create external files from a SWF/exe/app file created in Flash. Essentially I'm building a program to create templates for levels in a game. The SWF will be run locally (e.g. not online) and will allow the user to add/remove objects to a level of their design. They then need to be able to save the level template (ideally I need to be able to save as a JSON* file, but I'm sure I could get away with just a simple txt file) somewhere on their computer. These templates will them be imported by the game itself (not written in Flash, hence why I need to save the data as a json or txt file), which will then re-create the levels from the data contained in the save file.
I had assumed this would be something that was really simple to do, but I cannot seem to find any tutorials or information on how to create external files. I can find plenty on reading from existing external files, but nothing about actually writing a new file entirely. I have read a few people complaining that non-local Flash SWFs cannot access the user's hard drive for security reasons, but cannot find any information on local SWFs.
If anyone could tell me even roughly what I'm looking for, it would be greatly appreciated. I'm a bit stuck just now haha *I have downloaded the corelib files which allow me to work with JSON files
I found a tutorial that showed how to create an image gallery that loads external bitmaps. It also has some nice fade in/fade out effects using Tweener. I was wondering, what would I need to modify from my code to load MovieClips from the library instead of the external JPEGs.
ActionScript Code: import caurina.transitions.Tweener; var btn:Object;
I have created a button in flash 8 to act as a play button for mp3 files on a website in drupal. I however am having trouble, since am new to ActionScript, to make the button load an external mp3 file without hardcoding it in the flash.
I wanna create some sort of actionscripted typewriter which loads its content from an external file, but i can't seem to get the code to work properly!
This is what i got till now:
2 layers: - one with a textfield called 'textbox' - one with the actions
A textfile which contains: waarde=Wannaloadtextfromanexternaltextfile!
4 frames, in the first frame i load the textfile this way:
The problem is that when i assign the value of "text" in the first frame this way : <-- text = "Wannaloadtextfromanexternaltextfile!"; --> (witout the comment tags ofcourse) the typewriter works fine but when i load the var from the textfile nothing happens, the trace works fine and displays the contents of the var but the typewriter displays nothing.
the weird this is that when i add this after all the code in frame 1 it works fine: text = "azerty"; But when i add this it doesn't: text = "a";
So when i overwrite the var with the azerty value suddenly it contains the correct value in the next frame, when i assign only one character to it the script doesn't work anymore.
I'm about to start a project where there will be a Flash application where the visitor customizes a profile with externally loaded images and texts. Then the visitor needs to be able to download that profile as a dynamically created swf with all that external content baked into the swf.
To create loader for external swf that will have features to enable/disable sound and to enable/disable external link requests.I don`t have source files for that external swfs.
So i have an external text file organized like this:
/* $file: data.txt */ &title0=Sacrum &detail0=Detail text for Sacrum &title1=L5
[Code].....
There are 28 of these 'title' and 'detail' pairs. The 'title' text is to fill a dynamic text box and the 'detail' to fill another dynamic text box depending on which section the user is mousing over.
My issue is getting the text from the file stored into arrays. For my test loop I keep getting undefined as the stored value, and i know it has something to do with converting a string value to object..
var lv:LoadVars = new LoadVars(); lv.onLoad = handleDataLoad; lv.load('data.txt'); function handleDataLoad (success:Boolean) {