[Xerte] Re: hotspots - Flash folks

Dave Burnett d_b_burnett at hotmail.com
Mon Feb 28 13:58:27 GMT 2011



So I just need the scalable area set to alpha=0
That's what I don't know how to do. 
When it comes to graphic stuff, I have trouble drawing stick men.
:-)

My car goes real fast, but has been painted with a roller... 




From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 Feb 2011 13:54:08 +0000
Subject: [Xerte] Re: hotspots - Flash folks



Ah. Yes, forgotten about that. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 28 February 2011 13:53
To: Xerte list
Subject: [Xerte] Re: hotspots - Flash folks Isn't that what simple.fla is using?

import flash.geom.Rectangle;
function setSize(w,h){
    this.button.scale9Grid = new Rectangle(10,10,90,10); //x,y,w,h of sclable region - other regions don't scale
    this.button._width = w;
    this.button._height = h;
}







From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 Feb 2011 13:43:46 +0000
Subject: [Xerte] Re: hotspots - Flash folksI’d draw the button with code. Never used that 9 scale slicing: not sure you can define it with code in AS2.0 – maybe in AS3.0 you can, unsure. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 28 February 2011 12:55
To: Xerte list
Subject: [Xerte] Re: hotspots - Flash folks 
OK, I see what you mean with simple.fla.
I'm just not familiar enough with library symbols etc to figure out how to core out the scalable area and set it's alpha to 0
Like I don't seem to have a select rectangle tool.From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 Feb 2011 12:09:17 +0000
Subject: [Xerte] Re: hotspots - Flash folksHave your code reach up to the xml for params, and then draw the button to suit, the button template should point the way? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 28 February 2011 11:50
To: Xerte list
Subject: [Xerte] Re: hotspots - Flash folks 
If it could be self-contained within the button, that would be handy.
I'm not very good with Flash itself.From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 Feb 2011 11:40:36 +0000
Subject: [Xerte] Re: hotspots - Flash folks9 slice scaling allows you define a movie clip with a central area that scales normally, and a border, that doesn’t. Don’t know how  / if you can do it in code. I would have the button draw itself at the size required. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 27 February 2011 18:49
To: Xerte list
Subject: [Xerte] Re: hotspots - Flash folks 
Ok, if I fill the button with anything and set that alpha to 0, it acts just like a button.
(If I left the center unfilled, only the outer pixel frame was active)

So the real kicker is this:

The outer frame resizes (of course) when I change the button w,h in Xerte.
e.g. the frame that was 1 pixel thick is now 3 pixels or whatever thick.
Is there any trickery that will vector the button while leaving that outer frame the same thickness?

Dave



From: d_b_burnett at hotmail.com
To: xerte at lists.nottingham.ac.uk
Subject: RE: hotspots
Date: Sun, 27 Feb 2011 12:38:08 -0500


hey, a preliminary test indicates the transparent button thing might work.

Any of you Flash graphic wizzes out there that can whip up a transparent button with some sort of shadow around the outer pixels that won't blow up when resized?
Even a pixel or 2 black on bottom/right, white on top/left.
Just needs over and down states (and they can be identical actually.From: d_b_burnett at hotmail.com
To: xerte at lists.nottingham.ac.uk
Subject: hotspots
Date: Sun, 27 Feb 2011 10:58:45 -0500


Is there any sort of precedence I can set up that will allow overlapped HS to both function?
Or do I need another architecture?

Issue:

I have a graphic with multiple hotspots.The hs areas need to both react when they are rolled over, (draw a shadow effect to indicate user over hs) and when they are clicked (show  feedback).The feedback also needs to erase on rollout.
(This is a proto, so I can't use a button, unless it's transparent. Hmm there's a thought).  

If over a spot I lay 2 hotspots (1 click=0, another click=1) then no matter how I order them in the flow, the hs higher in the tree blocks anything below it from functioning.
Also, if I lay a catchall in there, it block everything else.

I suspect I'm using a hammer when I should be using a saw.
Is the transparent button feasible?
Maybe a transparent png hot object? (or do i run into the same precedence issue?)
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. 
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110228/a7716dd2/attachment-0001.html>


More information about the Xerte mailing list