Hi,
I have a SWF which imports JPGs at runtime, using references imported from an XML file. Consequently, the JPGs themselves are not in the library of the FLA.
Ordinarily, when a JPG is present in the library, you can select it's properties and check the box 'allow smoothing' to make scaling...
I have some AS2 code that has a lot of duplication to control various buttons and MovieClips and was wondering if it's possible to streamline this code using a 'for' loop, like I would when attaching MovieClips dynamically.
Here's the code as it's currently written:
//----------- INIT VARS...
Is there a way of retrieving which frame number of the timeline a movieclip has reached?
What I'm trying to do is create a preloader that has an animation (a moving wave type effect) and then when the preloader has completed, the animation transitions seamlessly to the same animation in the...
I'm creating a Flash unit - in CS3, with AS2 to run on FP8 - to 600px x 150px with a white background and a light grey border. The unit will sit in a webpage that is predominantly white.
The movie has movie clip elements that appear off-stage and then move onto the stage, play and then move...
Well I think it should be simple, but I just can't get it to work.
I have a movie clip that needs to contract in height and then expand back to it's original size repeatedly. The code I have looks like this:
high01_mc.onEnterFrame = highScroll;
function highScroll(){
if(this._height > 100){...
I have a movie with three navigation tabs. These tabs all have the same behaviours. The code I have written works perfectly well, but it just isn't very elegant. There must be a better way than the way I have done it.
Can anyone help me by showing me a more efficient way to code this? :-...
Hi - I'm using Flash 8 and have a problem with the built-in ScrollPane component. I want the ScrollPane to have no border colour and no theme colour and thus have added the following actionscript to the main timeline of the .swf:
//define ScrollPane parameters...
If you have read any of my recent posts you'll have worked out that I'm a bit of actionscript newbie who is experimenting with dynamically attached and positioned movie clips.
My latest stumbling block (and thus question) concerns the following: I have a section of code that takes one MC and...
I have a stage with a variable number of variably-named movieclips (ie: the number and instance names are generated dynamically).
If any one of these movieclips is rolled over, how would I then pass the instance name of the rolled over clip to a function?
I can do it no problem if the instance...
I have written some code to dynamically place a variable number of balls (movieclips) onscreen and dynamically name them. So far, so good.
I also have a function to move an individual ball downwards (thus 'dropping' it out of the bottom of the stage).
I want a user to be able to rollover any...
Is it possible for an SWF to detect the name of the folder that it resides in at runtime? And then pass that folder name as a variable to a function? If this is possible, would someone point me in the right direction as to how to do it?
Thanks.
Hi, can anyone help me with the following problem:
An SWF is embedded in an HTML page. The SWF links to an external URL via a button. The external URL is defined in an XML file, so that it can be easily updated on a regular basis.
However, if the SWF and the XML file are not placed in the...
I have a dynamic text area which loads it's content from an external text file using LoadVars(). When I upload a new text file, some users don't see the new text until they manually clear their browser cache.
This obviously isn't ideal and rather defeats the object of updating the text file on...
Now this may be a really stupid question, but I want to provide users with the facility to download text files from with a Flash interface.
The idea is that the user selects which file they would like from a menu, hits a 'download file' button and the file transfer begins.
Setting up the menu...
I have a problem when trying pass a variable (entered into an input textfield) from Flash to PHP. When the button is hit to activate the LoadVars object, the PHP script returns the error message:
Notice: Undefined index: years in /Users/phil/Sites/phpflash/campaign/calculation.php on line 2...
I built a Flash site for a client which contains HTML links to PDF files of news releases and press information.
The client has subsequently requested that I provide the facility for them to add further PDF files themselves.
I don't want to supply the original .fla, but I can provide them a...
Flash MX: Dragging, Tracking and Input
I have a draggable MC (called square1) with some code attached to an onClipEvent(mouseUp) handler that tracks the x and y positions of the MC when it is dragged to a new position.
These will later be passed to a sharedObject in order to save these...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.