.as Help...!
- Started
- Last post
- 18 Responses
- silencer
...
I'm currently building a wee gallery for a client using XML and really need some guidance! After attaching my clip from the library, and then duplicating it (within the main function) and attaching the images from the XML file, I'm having problems referencing each clip outwith the function it's created in. (with a unique name, ie: thumbnail1, thumbnail2 etc)
The solution I've used at the moment (which controls the order my clips appear in using delayed easing equations) is a work around as I couldn't get my array to work properly (It didn't seem to recognise the names I had assigned within the function, ie: thumbnail1, thumbnail2 etc)
Basically I'd like to be able to control the order my clips appear and dissapear, while also being able to reference each unique clip with a unique ID outwith the main function. I've posted the files online if anyone would be good enough to spend 5 minutes checkin them out, thanks!
View File here: http://www.adamrodgers.net/testi…
View .as here: http://www.adamrodgers.net/testi…
Download .fla here: http://www.adamrodgers.net/testi…...
- silencer0
I'll be loading the jpgs after the movement comes to a halt, it's just in testing stages at the moment.
- silencer0
bump
Can anyone help?
- unfittoprint0
http://pastebin.coconut.se/?id=3…
your file is now more "workable".your intentions are still not very clear i'm afraid...
- silencer0
Thanks Unfit, that file makes more sense, but still throws up a couple of errors which i can't seem to fix? (I'm using .as 01 still if that's the problem?)
An example of what I'm trying to do is Eg, if I rollover clip 6 I'd like to make the remaining clips alpha 50 and so on) Hope this makes sense, I appreciate the help man.
- System-Idle0
using typeof is a good way to target objets
you can then check for movieclips
and say the start of yr mc names: pic_mc(num here)
- silencer0
thanks System-Idle I'll check that out.
- silencer0
I've posted a wee comment on this page, I'd be greatful if you could take a minute to look at it Unfit.
http://pastebin.coconut.se/?id=3…
- System-Idle0
in regards to yr comments, could it be because the delayClips_fct is a movieclip proto func (mc object) and yr calling it from myPhoto (xml object)
- System-Idle0
to call delayClips_fct from the xml.load func you will need to have a movieclip target. ie: mc1.delayClips_fct()
- silencer0
Yup, i think that's the problem, thanks. I'm just trying to fix the script which unfit posted. It's throwing up 2 errors which I can't seem to fix. (It looks fine tho, i just can't pinpoint the problem.)
- unfittoprint0
Systems's right. That function is probably being triggered within an XML scope not a Movieclip.
silencer, post the output errors, otherwise I'll not be able to figure out what the problem is....
- silencer0
Here's the errors from the code you posted earlier. Cheers guys.
http://pastebin.coconut.se/?id=3…
- unfittoprint0
ah ok....
it just lacks a '{' somewhere....
but no such error occurs here, only an alert regarding a property: easeOutQuint [in AS2.0 you cannot extend Movieclips, Math, ....]
I don't think it will have an impact if you compile as AS1.0.
- silencer0
Yeah it's being published in AS1.0 but there's still a problem...
Can't for the life of me figure out where to use the bracket though, it seems they're all in place already unless I'm missing something real obvious...
- unfittoprint0
I copy paste my code into flash and no 'brakect' alert occured.
only the property ones...
- silencer0
I've tried everything and I'm still getting those errors. No idea what the problem is. The script looks perfect. thanks anyway man I appreciate it. Back to the drawing board!
- System-Idle0
try breaking down/removing portions of yr code and testing to see if u can locate the prob
- silencer0
Yup doing that now, hopefully I'll be able to fix this tonight.
Thanks again :0)