I can use flash ok to build stuff, but I usually just build a flash presentation with movieclips and buttons all contained in the one file. I have never had to put my creations onto cd-rom before. So now I am looking at a CD-rom and seeing how someone else has done it and I see that all the .swf files are separated, as will as sound and video. I thought the only reason to do this would be to be able to access and change for example and mp3. without having to open the flash file, but I am thinking there are other reasons?
Throwing this out there. I would like to know how to haveflash grab an XML URL from the embed tag (i.e. embed src=""flashvars="profile=http://xmlfile.xml". Reason:I make thesemyspace templates for people to use, but they can only be edited bypeople who own flash. If the user could edit an XML file with allof their content, then they would be able to use the layoutsregardless of whether or not they have flash. Does anyone here know how to do this? I believe it issomething like this on an actions layer:
I'm using the following code to embed the swf and load a file via flashvars. It works fine in firefox...but does not work in IE. I'm convinced that the issue is in my html syntax. Can anyone spot the problem?
I'm trying to implement way so that stylesheets can be loaded on demand: Either the default stylesheet is used, which is compiled into the application file, or a remote stylesheet (.swf) is loaded if the default styles should not be used. (each stylesheet has embedded images)
So what I would like to do is: 1) Embed the stylesheet but not load it right away. Instead, store a reference to it inside a variable. (or simply a path string?) 2) Load the requested stylesheet, for example using StyleManager
My way of tackling the problem was like this: 1) Embed the default stylesheet as Code: [Embed(source="assets/themes/default.theme.swf")] _defaultThemeClass:Class; and turn it into a StyleSheet object
2) Have a separate class decide which stylesheet to use and call StyleManager.loadStyleDeclaration(myStyle), where myStyle can either be the remote or local stylesheet. As it seems, the StyleManager cannot load a local stylesheet. So I'm looking for a way to "activate" the style I have embedded.
I need to create a flash intro. One of those that sits on top of the page for a couple of seconds, showing publicity but with some transparency for the users to see what's under it (the page itself). Can anyone tell me how to do that? I just can't seem to find a way to load a flash swf without being embed on the page.
I was wondering is it possible to load or embed dynamically new fonts?
In my current project the option would be needed. Situation is, I don't know what is the font and what would be the address of the font. So is there a way to bring new type faces in dynamically?
Here's my opinion which obviously isn't quite correct:
ActionScript Code: var fontPath:String = "C:/WINDOWS/Fonts/BirchStd.otf"; var fontFace:String = "arial"; function setFontFace():void{
[Code].....
I get errors: 'fontPath' does not have a recognized extension, and a mimeType was not provided and Unable to transcode fontAddress.
Putting there for mimetype: mimeType="application/x-font-truetype" I get rid of the first one, but second error still exist
I'm using swfobject to load a flash object on my site and it's loading very slowly on pages with a lot of data...as if swfobject waits until the page loads before loading the swf. Here's an example page with swfobject: [URL] If I change out the swfobject code with an iframe (with the swf as the src) or just use object embed, the flash object loads much, much faster...before the rest of the page loads.
I know there are a ton of page load time improvements I could make to that page (I'm working on that as well), but I'm wondering if there are some specific changes I could make to the way I'm using swfobject to get the same loading speed as an iframe or object embed?
How do you dynamically load JPG's into movieclips in AS3. I was familiar with this process in AS2 but have been looking for a the simplest way to do this in AS3.
I found this code while doing research but I appear to be missing something as it doesn't work when I publish the file.[code]...
I had an idea I would like to incorporate into my site, and sure that Flash can accomodate, but what better place to check!? Say I have a mc_1, mc_2, mc_3, mc_4, and mc_5 all are basically the same information, just varied lead in animations. Is there a code that I can call to randomly choose among those when the site is loaded? Pretty vague I know, but right now I am adding them via "addChild," so would there be something I could use to accomplish this?
I'm creating a gallery and having a problem loading thumbnails into different MovieClips. I have all the MCs stored into an Array. I could load them if I wanted to type out:
var thumbLoader1:Loader = new Loader(); movieClipName1.addChild(thumbLoader1);
but I would think there's a more dynamic way. Right now Im stuck at:
[Code].....
I tried switcing the var "image" with a name from the "imageThumbNames" array but that would've been too easy.
I have a flash file with about 32 empy MovieClips on the stage.Basically what I need to do is take an array of images and load them into these empty MovieClips. Hope this makes sense so far.This array will be dynamic and will come from a PHP file.The problem is I'm not sure how to do this? I don't know to take an array in flash and allocate the images to individual MovieClips.
I would really like a class that i can use to load all my movieclips from.I have 100's of external swfs - and i want to load them to stage from one class - as they are requested.I did manage to do it one way, to get access to the stage i did this:
Actionscript Code: private var _stage:Stage;
and in the constructor code, just did:[code]...........
how to actually load the swfs, what i'm really looking for is a way to use addChild to the stage from within my class.
I'm importing images from a folder into movie clips located in my flash, the clip on my first frame loads the graphic, but i can't quite get the others to work[code]...
i am having problem to load multile swf one by one . the details of swf file name will be in a xml file . it should load one by one . and one more thing how we can know the details of that loaded swf like wheteher that contains Background movieclip aur Games Character's Movieclip
I've got a function to load multiple MovieClips on different rollovers.[code]But this way I can't dynamically change the movieclip instance when I call the function multiple times.
Is there a way I could use an externally loaded image in multiple movieclips? I load the image using the Loader class but how can I copy it over to some other clips?
Is there a way I could use an externally loaded image in multiple movieclips? I load the image using the Loader class but how can I copy it over to some other clips?
I'm new in AS3 and i'm having some problems. I'm trying to put thumbnails that are load by xml inside a ScrollPanel.
What happened is that the ScrollPanel didn't have a scrollBar and didnt scroll. I thought that if i put each thumbnail inside a MovieClip and set the height maybe would do the trick. But things got worse because i couldn't be able to put the thumb's inside de MC's. Just put them in front
i want to create and manage 2 movieclips inside a single class. i just wrote a simple setup for this and i ran into a problem:i create 2 movieclips and want them to be displayed on stage.but only the second movieclip is actually displayed and the first one is just not visible. when i switch the order in which the movieclips are created i see the one being created last. so i totally dont know what to do here. since i am very new to flash i might be missing out on something obvious.here is my class:
I was wanting to load different movieclips from within my library onto the stage of my main movie when the user mouses over a button. Each movie clip that I was wanting to load is the same size and also are to load into the exact same location as one another.I think I can do this by setting up an empty movie clip on the stage and scripting it so they all load into it? Is this right?
I have several movieclips placed on the timeline that I want to be invisible and not run until the user clicks a button. The movieclips are linked to a class I set up:
Code: class Hidestop extends MovieClip { function onLoad() {
[Code]....
The problem is that some, but not all, movieclips show briefly when they load before becoming invisible. I can get around this by starting each movieclip with a blank frame, but there must be a better way.
I have an XML document that lists url of images to be displayed. What I want to do is load the length of images in the XML doc into an Array. Then take that array and make movieclips for each one.
I was wanting to load different movieclips from within my library onto the stage of my main movie when the user mouses over a button. Each movie clip that I was wanting to load is the same size and also are to load into the exact same location as one another. I think I can do this by setting up an empty movie clip on the stage and scripting it so they all load into it? Is this right?