I am working on a site and am using a lot of different scrollpane components that use outside .swf movies as its content. What I would like to do is create a progress bar for each section that uses this scenario so my users know it is doing something.
apologies if this seems like a redundant question... i've been reading through all the turorials and forum threads i can find, and am just confused at to what exactly i need to do next.... my first time trying to use preloaders but am finding i need them in order to make my project run smoothly.... my situation: want to preload 5 swf files into my main movie, and have them at the ready to play when i want them to (either by an onEnterFrame or onPress).
i started working with some preload array script from Scotty i found on one of the threads, but elsewhere i've seen info about putting extra frames into the uploading swfs and am unsure what i need to do with this or how it would fit in with the below code. right now, when i try to play one of the uploaded swf files nothing is happening, and i'm guess my code is wrong there too, but don't know what to put....
I have several movies that will be loaded into a main movie. I am loading the movies when the user chooses to open each movie. The problem is that then the user has to wait until each movie loads. Is there any way to change this?
I got two questions in my mind. The first one is which is a better format for importing a movie? Should I use QUICKTIME or other formats?
Now the second one is a little bit confusing. Let's say I have successfully imported any movie to my FLA file, I was wondering if their is a way to PRELOAD half of the entire movie before actually playing it, that way, audience won't wait for a very long time if needed.
I am using a self modified version of Lee's carousel 3 tutorial on my website. A couple of my icons on the carousel are .swf movies that I have optimized. Is there any way to preload all of my swf movies that are being called up from the xml? I've seen the swf preloading tutorial but I'm not sure how to apply that towards the carousel or even if it's possible to do so since the preload is happening as the user first enters the site and not when a button is pushed, etc...
I have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :
musicSound = new Sound(); musicSound.attachSound("music"); musicSound.start(); to play the sound in intro.swf.
However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far
I have been having trouble creating a movie clip with a reverse rollover effect within a movie which has a reverse rollover effect. that sounds confusing
In essence I wish to create a panel that rolls out on rollover and rolls back in reverse when the you rollout. I have done this using this script
[Code]...
However I wish to make movies within this movie that have the same effect on them. But when I create another movie or button within this movie it is not registering on rollover. I guess because the script on the main movie overrides it?
[code]I want to add some additional XML Names. As "Contact" above is listed. I chose the || (LOGICAL or). [code]My goal is to keep "Contact" as one of the exceptions, where the 3 buttons are removed. But I want to add others... Like "Press" "Showreel" "Background" and "Internship".
I am creating a calendar and only one part isnt work. That part is the movie (mc_nav). I have the mc_nav movie on each month's stage. The buttons are named correctly since I used normal modes reference thingy to double check the references. I am trying to have it move to the next frame in the movie, or back, or to the 3rd frame etc. The first section (NAVIGATION BUTTON LINKS) works fine. It is just when I try to navigate on the Scene 1 stage, from a movie within a movie, that the trouble arises. Each of the month movies (mc_sep, mc_oct, etc) have mc_nav placed on them. Then the month movies are placed in Scene 1 on each of their respective frames (mc_sep = 4, mc_oct = 5, etc). When testing the movie and I am sent to any month page, the navigation (mc_nav) wont work. The syntax according to the flash debugger is correct. The action script goes all the way through to the last frame (13) and the stop(); command is set to stop the movie at frame 3 (the splash page).
Here's the thing.I am making my first game, a click and drag (dress up if you want to ) game...It is finished and working..But since it serves as an educational aid in history group, it would be great if I could somehow add some kind of pop-up window with text describing every item in game..For example "14th century bascinet developed from the steel cap bla bla bla...".And if that is not possible is there some other way all this info about these items (there is about 24 items in game) could be fitted in this kind of application
I'm using code from the tutorial: "Preloading in ActionScript 3" found on this site...I used the exact code, and changed only the swf it's loading in.My swf is pretty simple....just some buttons that contain loaders themselves.Somehow, when i simulate download....it seems to skip the preloader, and immediately load the swf...slowly and choppy. I don't get any errors or anything.[code]...
im sure other ppl have been faced with this dilemma. say that you are attaching an event listener to an object which obviously if revoked, will call a function. now how do you send additional params with listeners?so you get something like:
Code: public function eventHandler(e:Event, additionalParam:*){}
i have a solution for this and that is to attach it to the caller so it could be accessed with e.target.variable but i dont know if this is the way to go.
I watched a tutorial for a link that loads an image into a container with the code
var img1Request:URLRequest = new URLRequest("images/c1.jpg"); var img1Loader:Loader = new Loader(); load1_mc.addEventListener(MouseEvent.CLICK, clickF); function clickF(event:MouseEvent):void { img1Loader.load(img1Request); img1Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadNowF); function loadnowF(event:Event):void {
[Code]...
is there a way to load additional images into the same container to make a picture gallery?I tried adding additional lines duplicating the "var img1Request:URLRequest = new URLRequest("images/c1.jpg");" by changing everything from 1 to 2 and so on but still errors, and i'm clueless Also another question, several tutorials tell to add actions to movie clips but i keep getting the "current selection cannot have actions applied to it"
I've always wrote all my code into the .fla and now I'm trying to use classes more. I have my file loading the document class. Then the document class imports two additional classes. In my constructor of the document class I am creating a new instance of both additional classes. Here is my doc class:
[Code]...
Now inside of the other two classes I should be able to just use main_class.myFunc(); Correct? Why isn't is working? How can I interact classes? If I create a new instance to the class I want to access then I get a stack over flow error. Inside remoting class in the constructor my code; main_class = new CheckoutMain(); main_class.myFunc();
adding additional name-value pairs to my existing object in Flex;
I have an object1 of Object Type and I declare a new object2 = object1 plus some extra name-value pairs, is there a way to attach new name-value pairs to an existing object?
I have a problem with multiple listeners. Basically I have a box which displays some text and when I hit the space key additional text from the box appears. But the problem is the space key also starts the game.
I want the space key to first display the additional text then hitting the space key starts the game.
So, any ideas how I can use the space key twice without disrupting the first key press?
I've been attempting to load an external .swf within a parent .swf. The problem is that the external .swf requires additional variables to pull it's content from a database. This code of course works just fine if the .swf doesn't contain any additional variables or if it's requesting an image.
Is it possible to do this using the GET method, or is there an alternate method while using Loader()?
parent.php as3:
ActionScript Code: var loadit = new Loader(); addChild(loadit); loadit.load(new URLRequest("gallery.swf?xmlUrl=http://localhost/gallery/api/rest/get_gallery/1/json"));
The external .swf is obviously gallery.swf while the variable that is necessary for it to function is [URL]
I need to upload a file from my Flex interface to a folder located on the server.
I use the following [code]...
Problem: I need to pass an additional argument to my upload.php script (actually a String - the name of the folder I want it to be uploaded). Is there a way to do this?
I have a question about eventDispatching. Now, I know how to dispatch them, and I've also grasped a minimum of custom events, enough to create one from template at least. So, say I would like to dispatch an event with some additional data, I could create a custom event class and let the event take the data objects as a parameter. But I find it a bit cumbersome to do this every time I want to dispatch data, since it results in new custom event classes. The other method I know of to get the data is to simply use the currentTarget property of the event. So if I have a getId() method for instance, I could call e.currentTarget.getId(). Now, while this works, I wonder, is it considered bad practice, and if it is, whats the right way to do it?
Trying to code one button to preform different functions upon each additional click.
First click: you get a tree full size Second click of this same button: you get an additional tree 50 size in a new location Third click of this same button: you get another tree 25% of the size of the first tree and in a new location.
The way it works now is the 2 smaller trees come up when the movie runs and the third appears on the button click.
trying to add additional load movie scripts to the following code:[code]Basically, I want each person's mp3 to load into another MC along with the randomly selected home .swf.script: root. audioplayerclip.loadmovie("mp3_okai.swf")and then the two others as well.How would I insert this to make the code work?I tried pasting in this code after each "case", but only the home .swf's would load- not the mp3.I guess my syntax is incorrect.
i have a scrollbar in which i want to add additional text field. i can add bitmaps, but when i put new textfield, it doesn't display, even if i convert it to movie or graphic.
I have four NetStream objects that receive cuepoints from different videos. I'd like to define one function for them all instead of using four inline functions and I'm stuck with syntaxHere's the code:
Using flash professional CS5.5 - creating an Air for Android app. It appears you can't deploy any additional files, other than the swf file, In Air debug launcher (mobile) the additional files deploy.But as soon as you deploy it for real on an android machine it fails to install the extra files. (it's a small sqllite file).I have looked in the final APK file using zip and they are there in the assets folder.
I'm trying to extend ButtonBarButton to include an additional label that shows the number of updates for the respective box in a viewstack (which is the tabbar's dataProvider).
I can get the additional label (named indicatorLabel) to read an initial value from data, but I can't get it to update automatically like the actual "label" attribute. My understanding was that you could bind to the data object, but that doesn't appear to be the case.
hboxvar.addEventListener("mouseDown",dosomething(3 43)); hboxvar.addEventListener("mouseDown",dosomething(1 23)); hboxvar.addEventListener("mouseDown",dosomething(1 2342)); public function dosomething( somenumber:Number ):void { //do something here }
I try to do above function but I need to pass variable from hboxvar but not from inside function suggested by macromedia.
any one frustated with this way of passing multiple parameter which depends on what to pass in flex 2 using addEventListener ?
[URL]
Passing additional parameters to function listeners You can pass additional parameters to function listeners depending on how you add the listeners. If you add a listener with the addEventListener() method, you cannot pass any additional parameters to the listener function, and that listener function can only declare a single argument, the Event object (or one of its subclasses).
I have already created a custom mouse event which seems to work fine. It is simply a mouse event which passes an additional sound object. The problem is I am passing this event to another class which checks for collision of a movie clip with another and if true it adds the sound to an array. What I think is happening is a type conversion problem between my customEvent and the MouseEvent. [code]...
I have a series of identical buttons. I want each one to delete a certain item from an array.But the function that deletes the item from an Array is obviously also the MouseEvent function that the listener looks at, which to my knowledge can only take one parameter.