
Welcome Guest
|
|
|
#1
|
|||
|
|||
|
Hi,
I had previously posted a thread with a question about playing an animation on the 'over' state of a button once only, then recognising the end frame of that animation - which necessitated some (to me) complex 'boolean' coding - which I haven't been able to implement... (as I don't comprehend how to assign a variable to a number of frames that contain an animation) However, now I have simplified the issue by placing the button movieclip on the last frame of an imported movieclip - so it will only appear after the animation has finished... Regrettably, now I find that this button is not responding to some simple code... and as I have checked the script for errors, I'm once again at a loss as to what I'm doing incorrectly... Here's the script: Actionscript:
stop();
LogoButtMov_mc.LogoButton_btn.onRelease = function() {
loadMovieNum("RipeLogoPage.swf", 0);
}The LogoButtMov_mc is placed on the main stage, and within it, is the instance of the button I want to target (LogoButton_btn) - so it all looks OK as I've double-checked all the instance names... As the format of the project is now much simplified, I was hoping that this simple format - as in B follows A - where the button instance is not allowed to appear before the animation is complete - would allow me to target that button instance more directly, without having to use complex if/else or boolean coding... but am I incorrect? I've uploaded the file with the upper left button (the 'logo' button) as the coded example, with the swf's to load into the stage (level 0) - so I hope this sheds some light on the problem... Thx in advance...
Last edited by saumya : 09-12-2006 at 04:11 AM |
|
#2
|
||||
|
||||
|
The problem is your script tries to find out the button at the instance it plays.But could not get the button, which is inside the movieclip and in the last frame.So the script is not working.
answer: either make your button available to the script in the beginning or put your code, where it gets the button .
__________________
www.saumyaray.com |
|
#3
|
|||
|
|||
|
Hi Saumya,
if I knew how to correctly address the button, or where to place the code, I wouldn't be asking the question... in other words, why doesn't it 'see' the button? :P To the best of my (current) knowledge, the path to the button seems to be correct... so why isn't it working? As much as I appreciate your reply, it really doesn't help me... thx, Rohan |
|
#4
|
||||
|
||||
|
Quote:
![]() The path is correct, but there is nothing in the path untill it reaches the last frame.Thats why it can not see it.Thats the way flash handles it. Let me give oyu an example: Some body told you, where to find saumya and asks to deliver something to him. Now you know the complete address of mine.So you come to my home and happily sit in my living room (all ways welcome) But can you see me? Unless I come out from my study room to living room, you can not see me, even if you are inside my home. (lets play hide and seek ). At that moment if you deliver the thing, nobody is there to receive it and that may create unnecessary doubts about the thing on my part later, if I saw something is there in my living room.Unless I come out to see you on my living room, you can not perfectly deliver things to me !!Same is true for your case. Now, try too see whether you are in the last frame of the clip.If yes then you know, you can see the button.So deliver the script to the button at that instance
__________________
www.saumyaray.com |
|
#5
|
|||
|
|||
|
Is there any way to target it from the main timeline?
Hi Saumya,
OK, so what I think I'm getting from you is that I can't target an embedded button instance (in a movieclip on the main timeline) from a frame on the main timeline? Isn't that defeating the 'best practice' of placing all actions on a single frame that's easily accessible? And, I still don't really understand why, even tho' the path is OK, the script can't 'see' that button instance... after all I just need the script to recognise the button, not 'deliver' anything to it - as you put it... merely to respond to an onRelease action when required... Can you clarify the distinction, or provide correct code that will accurately do what I want it to do if placed on the main timeline? Thx, Rohan |
|
#6
|
||||
|
||||
|
Quote:
Quote:
Quote:
__________________
www.saumyaray.com |
|
#7
|
||||
|
||||
|
Response to the last "useful" post in this thread
Quote:
Quote:
Quote:
1) initialize MCs on the stage 2) run frame scripts 3) initialize "child" MCs of those on the stage 4) run the frame scripts of the MC on the stage and so on... Basically, it's works from the outside in, starting on the main timeline and "diggin" it's way through all the nested elements, one layer at a time. So if you're trying to use a frame script to define a variable in a nested MC instance that was just created on that frame, the child MCs are not initialized and properties, variables, and functions cannot be set. If your MC starts on frame 1 and the frame script is placed on frame 2, it WOULD work because all of the layers are initialized by the time the script runs. Quote:
Sorry you didn't find help sooner. |
|
#8
|
|||
|
|||
|
Please don't tell me what I'm trying to understand or otherwise... I find that rude and unnecessary. I'm trying my level best to comprehend what would appear to be a simple 'target path' issue... but which is obviously somewhat more involved. If Flash were more intuitive, why would there be HUNDREDS of posts to these forums to work out seemingly basic procedures?
I DO have books which explain actionscript and target paths and scope, (they have cost me hundreds) and yes I DO read them, but when I am confused by something I expect to get a CLEAR answer by those more experienced than me... not 'half' answers or 'hints' - insinuating that I'm not putting in the effort... I've been trying attempting to get my site up and to make it look professional for MONTHS... is that an indication of a defeatist attitude? YOU may have an aptitude for programming/abstract mathematical concepts, but I do not... however I probably wouldn't come to you to do the copywriting for my client... whereas I DO have an aptitude for that... get it? And yes, I did work out to how to place the action on a frame within the movieclip - I was simply requesting clarification on a general concept... as if someone doesn't know why something is the way it is, no progress can be made... In fact, please do not assist me any longer... your arrogance is pissing me off bigtime... if you're going to help people with their actionscript problems, try to do it with some grace... Apologies to those who might be ofended... Rohan |
|
#9
|
||||
|
||||
|
Quote:
Quote:
People here are to study and be updated all the time by helping each other.Do not expect somebody to do your work. You are neither listening to me nor following any instructions to get updated.Rather complaining. Quote:
So either be in it or leave it. Buttom line is if you want help, we are here to help or else do not just ask people about your way of wokring and its outcomes. Everyone here is busy in his/her works, its not you only who is worried about his own work. I will be closing this thread as this is leading to nowhere now.If somebody has got similar problems then we can open it again or post in a separate post.
__________________
www.saumyaray.com Last edited by saumya : 09-12-2006 at 12:00 PM |
|
#10
|
|||
|
|||
|
I asked simple, direct questions, you gave me 'hints' and expected me to work things out from there... listen 'mate', if I could work things out for myself, I wouldn't need to be on here requesting assistance... or wasting your time - and yes, I understand every1's time is valuable - thatz Y I always ask direct, unambiguous questions... you on the other hand expect me (after hours of effort on my own) to somehow play a game of seek and thou shall surely find... and THAT is a bigger waste of time...
I am ALWAYS appreciative and grateful of help - but you seem to be accusing me of wanting others to do my work for me... which is simply untrue... if I am stuck, well I'm stuck... and not ashamed to say so... I have placed the actionscript on a frame of the movieclips timeline, instead of the main timeline, because this is what you seem to be suggesting - but I'm STILL not sure if I could place the code on the main timeline... so you haven't really assisted me at all... I think your attitude is self-centred and arrogant... so thanks for nothing... ![]() R |
|
#11
|
||||
|
||||
|
Quote:
Quote:
2. You got it wrong in the first place itself by assuming that I am saying to put the code in side the movieclip.I said Quote:
Be open to learn.You think you know everything !! Quote:
Anyway, if we go on this way, it will lead nowhere. this is second time I am saying that the thread is going side tracked,if want to learn it, learn it and ask things which are necessary in the thread or I will be closing it the next time I see something not necessary. Either Flash or nothing.
__________________
www.saumyaray.com |
|
#12
|
|||
|
|||
|
"answer: either make your button available to the script in the beginning or put your code, where it gets the button"
Mate, I need to take Actionscript lessons - you need to take English lessons... because that statement means NOTHING to me - itz as ambiguous as anything else you've said... it just begs the question "How?" If I knew how, I surely would have done it by now, right? And, I don't need to be taught how to think, or be given lessons in psychology... that is just outrageous! If ANY other Moderator can assist me, I'd be grateful... but listen Saumya, you need to simply answer a question properly and directly... instead of giving me lessons on they way things are according to you... If Flash was more user-friendly, and the geeks who wrote the code in the first place had the user properly in mind - then 'ordinary' people like myself wouldn't need to be wasting your time... So, please allow another Moderator to help me, and thanks for your 'assistance' up to now... :P |
|
#13
|
||||
|
||||
|
Quote:
Quote:
Quote:
Donot give lessons to people, behave the way, you expect from others. No problem, you do not want to be helped. Thread closed.
__________________
www.saumyaray.com |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Button inside Movieclip with actions | gueycito | Flash CS3 / Flash 9 |
5 | 10-30-2009 03:19 PM |
| HELP! How do i creat a button inside movie clip and to open a movieclip | thugzanime | Flash CS3 / Flash 9 |
1 | 10-25-2009 02:11 AM |
| Probably simple, but not for me... button inside movieclip issue | npt | Newbies |
9 | 09-23-2008 04:55 PM |
| Simple Button inside movieclip problem... | jlbribeiro | Actionscript 2.0 |
7 | 08-29-2007 06:36 PM |
| Button inside a movieclip ~HELP~ | physix | Flash MX 2004 |
1 | 04-16-2005 09:29 AM |






