That's really helpful, thank you very much. I've been a bit slow to think about transitioning to AS3, but this is the kind of thing that makes me think it's long overdue...
Thanks for that, but I'm not sure how I would make that work with my existing code. Here's the line I'm currently using to import my JPG:
inner_mc.loadMovie(nodes[i].attributes.image);
((nodes[i].attributes.image) imports the JPG filename from the XML file)
I've tried writing this:
image1 =...
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...
Ah, I see. Thanks - I'll pass this on to the guys writing the HTML (I'm just developing the Flash element) and see if it helps them.
Originally I thought it might be an obscure problem with the Flash file itself.
Many thanks for your help.
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){...
Thanks so much for your help - this is working for the rollover and rollout.
The 'gotoAndStop' for the onRelease button is not working, but I'm going to try and see if I can figure it out based on what I've learnt from you so far.
If I can't fix it, I may be cheeky and ask for your help again...
Thanks for all your efforts here, but this still isn't working.
My main timeline uses attachMovie() to load a movieclip which is then named 'brandElems'. My tabs sit within this movie, hence the reason for using the shortcut to reference them from the main timeline.
It's frustrating that I...
All of the code is defined on the main timeline. The tabs each have a shortcut coded for easy reference:
var tab01:MovieClip = brandElems.tab01_mc;
var tab02:MovieClip = brandElems.tab02_mc;
var tab03:MovieClip = brandElems.tab03_mc;
So even though the tabs are contained within a mc called...
OK - thanks. Using that trace, I get the full path to the tab in question - thus:
_level0.brandElems.tab01_mc
_level0.brandElems.tab02_mc
_level0.brandElems.tab03_mc
Well many thanks for the advice, but this code isn't working for me. I put trace actions in place to see what tab was being interacted with and they tell me that code always refers to tab04 - which doesn't exist.
I've tried to see why this might be, but the loop looks good and I can't see the...
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? :-...
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.