Hittest with multiple objects...
Ok I need some help!
I'm trying to make a room with a little guy and he moves around the issue is that HE CAN WALK THE WALL it's like Spiderman...
I want to only have to use one object with the same root name, but I want it to be a hittest so it's like a wall here's my code...
"if (_root.char.hittest(_root.wall)) {
startX = startX+1;
startY = endYstartY+1;
I dont want to have to hard code like 20 walls for eace "wall" if you know what I mean...
Oh and almost forgot char is a MC on the root also.
-Java
if you have walls named _root.wall1,_root.wall2, etc
for(var i=0;i<wallNum;i++){
if (_root.char.hittest(_root["wall"+i])) {
startX = startX+1;
startY = endYstartY+1;
break;
Similar Messages
-
Hi,
Is it possible can we have a List with multiple Object (CustomerVO, OrderVO and AddressVO) in a single List? If so how we will define the generics for that List?
Please clarify.
Thanks.797836 wrote:
Guys, am I correct? Please clarify.If it works, it is correct. So try it.
I was more thinking along the line of this though according to what you described in your initial post:
Class ParentVO{
private CustomerVO customer;
private OrderVO order;
private AddressVO address;
// with getters and setters
}That way you don't need any list at all, if you only want to have access to these three objects. Just slap them in a ParentVO and use that.
Looking at it again I wonder if the ParentVO is needed even, there is a strong relationship between these three objects. An order has a customer and a customer has an address / an order has a billing/shipping address... -
Spiral/Vortex with Multiple Objects
Hi, all
I'm trying to replicate this image from Shutterstock with multiple objects to create this spiral vortex.
http://image.shutterstock.com/display_pic_with_logo/849265/101051014/stock-vector-card-sui t-hearts-diamonds-spades-and-clubs-playing-cards-op-art-vector-illustration-101051014.jpg
I looked up tutorials like this: http://vectorguru.com/tutorials/how-to-distribute-objects-along-spiral.html
Where I can put say the hearts on one spiral.
But, the image seems to be multiple spirals in a uniform and equidistant manner. I would like to know how to go about making a "vortex" with multiple objects very similar if not the same to this fashion.
Please advise.
Thanks!Hi lotrismylife,
I was able to get a similar effect using the following steps:
Create a pattern brush of the 4 symbols next to each other (that way you can distribute them easily around the circle).
Start with the outermost circle, and apply the new pattern brush to it's stroke.
Expand the circle
Object > Transform > Transform Each (CTRL + ALT + SHIFT + D)
Set the horizontal & vertical scale to be smaller than 100% (you must experiment with this, depending on how big the gaps between circles must be)
Set the rotation angle (depending on how much each circle must rotate)
Click on Copy
Now continually press CTRL D - this will continue to create a copy of the outermost circle that is x % smaller, and x degrees rotated.
End result: -
PC-UI: F4 with multiple object selection
Hi!
I implemented a F4-application with multiple object selection.
Now I want to give back some data to the application that called the f4 or I'd like to call a method of this class. How can I find the correct instance of this class?
Thanks in advance!
JörnHi!
I used a DDIC table to exchange data. I forwarded the object_key and the F4-help application inserted the multiple objects with that key in that table.
The application which called the F4-help looked to the table (after pressing a button), grabbed the data and deleted the data in the DDIC table afterwards.
I hope that helps.
Jörn -
Greetings,
I've been experiencing a strange issue when I have multiple objects in a single document.
From time to time, Pages deletes an image and then replaces it with a duplicate of another image in the document. The first image disappears, and I end up with two instances of the second image.
The event seems to occur when I close and save. The problem is intermittent. However, I have been able to reproduce it while scrutinizing my design process to make sure that I'm not responsible for the error. I am very sure that this is a software issue.
I usually work in Word Processing mode, with tiff images inserted as floating objects in a two column format.
Has anyone else had this problem? Any ideas about how to fix it?
Thanks!Christopher
The immediate problem I can see is that several of your images have exactly the same name:
image1.png
How have you distinguished these on import and kept them apart in Finder?
I think this is a case of User Error, where you have mixed up identically named files.
To correct this, gather up all your images and rename them to, preferably, what they are.
There is however a problem in OSX. It tenaciously hangs onto the original file's name to track it even after you move it.
So open each file in turn in Preview, make a very slight edit like a small crop and rename it.
I suggest using 2 naming conventions:
Example: 01.03 xxxxx.png
Where that is page 01 image 03 and xxxxxx = the psalm name.
This way you can easily differentiate the images and place them in order in the file.
Peter -
Custom scrolller - issue with multiple objects....
Hi,
I'm developing a very simple custom scroller as a proof of concept. The idea is to have a background image(content_mc), lay multiple objects(myContent[i]) on top of the image, and scroll them all as a cohesive unit. However, I can not scroll myContent[i] appropriately; each object has a unique position and when I try to scroll them, they all assume one position(in which everything overlaps), move to that position and then scroll(see the ### comment below). Does anyone know how to accomplish this?(or does any of this not make the slightest bit of sense?)
Thx for any help,
Chipleh
var rect:Rectangle;var scrollerMinY:Number = scrollbar_mc.scroller_mc.y;
var contentMaxY:Number = content_mc.y;
var padding:Number = 40;
scrollbar_mc.scroller_mc.buttonMode = true;
scrollbar_mc.scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragIt);
function dragIt(e:MouseEvent):void {
rect = new Rectangle(4, 3, 0, 180);
scrollbar_mc.scroller_mc.startDrag(false, rect);
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt);
scrollbar_mc.scroller_mc.addEventListener(Event.ENTER_FRAME, scrollIt);
function dropIt(e:MouseEvent):void {
scrollbar_mc.scroller_mc.stopDrag();
scrollbar_mc.scroller_mc.removeEventListener(Event.ENTER_FRAME, scrollIt);
function scrollIt(e:Event):void
var scrollerRange:Number = rect.height;
var contentRange:Number = content_mc.height - mask_mc.height + padding;
var percentage:Number = (scrollbar_mc.scroller_mc.y - scrollerMinY) / scrollerRange;
var targetY:Number = contentMaxY - percentage * contentRange;
content_mc.y = targetY;
//###Herein lies the problem; I can not get multiple clips to align consistently like content_mc
for(var i:int = 0;i<myContentArray.length;i++)
var myContent:Object = MovieClip(root).getChildByName(myContentArray[i]);
myContent.y = targetY - myContent.y;Hiyas moccamaximum,
Thx for the reply. Below are the screenshots, where the "align consistently" issue is apparent. When I instantiate the objects, the objects align per the "Before scrolling" screenshot. As soon as I start to scroll, the objects all align to one position(targetY)i.e.: "After scrolling" screenshot. I understand why that is happening, what i don't understand is how to maintain the layout of the objects while scrolling, per:
for(var i:int = 0;i<myContentArray.length;i++)
var myContent:Object = MovieClip(root).getChildByName(myContentArray[i]);
myContent.y = targetY;
Before scrolling:
During scrolling: -
Access list with multiple object groups
Hello Everyone,
I am using a cisco ASA 5525 with 8.6 code. I am trying to setup access list for oubound access meaning hosts accessing the internet. I have created an access list called outbound_access and did "access-groupc outbound_access in interface inside "
I am trying to use object-groups where ever i can. Here is an example.
object-group service obj_Meraki_outbound
service-object tcp destination eq 443
service-object tcp destination eq 80
service-object tcp destination eq 7734
service-object tcp destination eq 7752
service-object udp destination eq 7351
object-group network obj_Meraki_lan
network-object 10.2.11.0 255.255.255.240
network-object 10.5.11.0 255.255.225.240
object-group network obj_Meraki_pub
des This group lists all hosts associated with Meraki.
network-object host 64.156.192.154
network-object host 64.62.142.12
network-object host 64.62.142.2
network-object host 74.50.51.16
network-object host 74.50.56.218
object-group service obj_Meraki_outbound
service-object tcp destination eq 443
service-object tcp destination eq 80
service-object tcp destination eq 7734
service-object tcp destination eq 7752
service-object udp destination eq 7351
object-group network obj_Meraki_lan
network-object 10.x.x.x 255.255.255.240
network-object 10.x.x.x 255.255.225.240
object-group network obj_Meraki_pub
des This group lists all hosts associated with Meraki.
network-object host 64.156.192.154
network-object host 64.62.142.12
network-object host 64.62.142.2
network-object host 74.50.51.16
network-object host 74.50.56.218
I have tried tying all these groups together in multiple ways but cannot figure out how to do this. This what i think it should be "access-list outbound_access extended permit object-group obj_Meraki_outbound object-group obj_Meraki_lan object-group obj_Meraki_pub"
What i want is the use the service objects and the source network would be obj_Meraki_lan and destination would be obj_Meraki_pub. It seems the rules completely change when you use object groups. Can someone explain this maybe with a few examples. I am already using object groups in many acls but not for every element.
ThanksHi,
Seems to work on my test ASA
Attached it to my current LAN interface.
ASA(config)# packet-tracer input LAN tcp 10.2.11.1 12345 64.156.192.154 80
Phase: 1
Type: ROUTE-LOOKUP
Subtype: input
Result: ALLOW
Config:
Additional Information:
in 0.0.0.0 0.0.0.0 WAN
Phase: 2
Type: ACCESS-LIST
Subtype: log
Result: ALLOW
Config:
access-group outbound_access in interface LAN
access-list outbound_access extended permit object-group obj_Meraki_outbound object-group obj_Meraki_lan object-group obj_Meraki_pub
object-group service obj_Meraki_outbound
service-object tcp destination eq https
service-object tcp destination eq www
service-object tcp destination eq 7734
service-object tcp destination eq 7752
service-object udp destination eq 7351
object-group network obj_Meraki_lan
network-object 10.2.11.0 255.255.255.240
network-object 10.5.11.0 255.255.255.240
object-group network obj_Meraki_pub
description: This group lists all hosts associated with Meraki.
network-object host 64.156.192.154
network-object host 64.62.142.12
network-object host 64.62.142.2
network-object host 74.50.51.16
network-object host 74.50.56.218
Additional Information:
access-list outbound_access line 1 extended permit tcp 10.2.11.0 255.255.255.240 host 64.156.192.154 eq www (hitcnt=1) 0x4d812691
Also have used such configuration in some special cases where the customer has insisted on allow specific TCP/UDP ports between multiple networks. And nothing is stopping from adding ICMP into the "object-group service" also.
- Jouni -
Flash Masks with multiple objects
hey i was wondering if anyone knows whats with flash and
masking an item to multiple graphics within a graphic
IE i have a bunch of squares. they are each individual
graphic objects. there are about 40 of these squares in another
graphic called squareContainer
im trying to mask a bitmap across squareContainer but when i
do it it will only mask against one of the 40 or so squares - how
do i get it to mask against all?
-CarlI would also like to do this, any ideas?
-
List with multiple objects using Comparator
Hi,
I have a comparator to sort the fields of 2 objects. I have a resultlist which contains the CustomerAddressVO which contains the properties of both
Customer and Address entities List resultList<CustomerAddressVO>.
This CustomerAddressVO.java in turn have
private long id
private Customer customer;
private Address address;
Where Customer.java
will have properties of customer
Where Address.java
will have properties of address
Now i need to use the comparator for customer.getName() asc and address.id() desc, as i have mentioned the resultList doesn't directly contain this object as it contains CustomerAddressVO which in turn have those two object Customer and Address. Hence unless you iterate the list and retrieve the respective objects (customer, address) you cannot do the sorting through comparator. In such case how we can go about it. If you iterate the list also how we can pass the respective object to the compare() ? And more importantly we need to sort the columns of 2 different entites? Please clarify how we can go about it?
Thanks.You can still do the sorting through a Comparator
The compare method should take
public int compare(CustomerAddressVO o1, CustomerAddressVO o2) { //..so you can then do
01.getCustomer().getName();
//and
o1.getAddress().getId() together with relevant null checks -
AS3 Masking with multiple objects bug
Hi again.
I have simplified my script to tell more about the problem.
I'm creating Sprite which holds other Sprites with graphics. The whole Sprite is used to mask MovieClip.
When I don't apply it as a mask, it shows, that objects are rendered correctly. But when I add it as a mask, flash fails to draw a mask where those Sprite objects overlap each other. You can see an example here:
With no masking applied: http://imageshack.us/photo/my-images/29/screenshot20110914at432.png/
With masking applied: http://imageshack.us/photo/my-images/233/screenshot20110914at433.png/
As i've seen, this bug doesn't occur everytime mask overlaps.
What could be the problem?bump...
-
Trouble with multiple object animation
I'm new to Flash Basic 8, and am getting very frustrated
trying to make an animated gif to use as a background on my
website.
1. Do you really need to create a separate layer and motion
guide for each object? I wanted to have some 20 or so stars falling
along separate paths, maybe 2 or 3 per path, but it seems you can't
have more than one object per path, and only one path per layer.
2. It's okay if I have to create 20 regular layers and 20
motion guide layers, however, after 3 layers I noticed the gif
slows down on the website. I published the fla to an animated, loop
continuously gif. I then set the background of my asp.net website
to the gif. It starts out with the stars falling normally, but they
start slowing down half way down. By the time the last ones reach
the bottom they're barely moving at all. When the first ones begin
again at the top, they speed back up to normal and begin slowing
down again.
Any help greatly appreciated - or I'm not buying this
thing!LianaEnt;
There are a number of ways an animation such as you describe
could be
approached--some primarily scripted, some using tweening or
frame by frame
animation. It's difficult to be more specific without more
information. You
might take a look at some of the flash help sites such as
flashkit.com to
see if you can find something similar you can study. The more
things that
are moving onscreen simultaneously and the larger the pixel
size of the
animation --the more likely it is that the animation can slow
down both in
gif and swf format. Adding a small silent streaming sound to
your animation
can cause the flash player to drop animation frames to allow
the movie to
appear to run faster, but this will only help if the final
output is swf
(not gif) of course... -Tom Unger -
HitTest with as objects no instance names
Im making a game and i need a code to make hitTetObject between two as objects no instances because it addChild because the two Objects are not on the stage and if hitTest object it remove 1 of the objects
If objects are not on the stage 1 of them cannot be removed but if addChild they are so use getChildAt if as objects no instances
-
Content based routing and XML with multiple objects
I have some structure:
<contracts>
<contract>
<department>1</department>
</contract>
<contract>
<department>1</department>
</contract>
<contract>
<department>2</department>
</contract>
</contracts>
I need to route contract to 2 system based on <department> value:
contracts/department = 1 --> System1
contracts/department = 2 --> System2
Will XI split my XML (based on Content Routing rules in ID) into 2 structures (with departmet=1 and department=2 accordingly) ?
Or I have to perform 1ToN mapping? I don't like it bacause it will be diffucult to monitor hundred of messages.Alternatively if you donot like 1:n mapping and BPM.
Create two message mappings in the IR
1.Source :<contracts>
<contract>
<department>1</department>
</contract>
<contract>
<department>1</department>
</contract>
<contract>
<department>2</department>
</contract>
</contracts>
Target:
<contracts>
<contract>
<department>1</department>
</contract>
<contract>
<department>1</department>
</contract>
Basically mapping generates a target structure which has only department 1.
2.Same like step1 but the mapping should generate the XML with department = 2.
Once requires steps are done in the ID , do the content based routing in the reciever determination and give the appropraite message mapping in the interface determination.
That should your problem and also you will like doing it as it does not involve any split level mapping..:) -
Use Track Points with multiple objects
I am trying to use the behaviour 'Track Points' to move the circles on the right with the glove, yes it might not look like it but that is a glove. The text and lines on the left are all static.
I have figured out how to move the right end of the "horisontal" line so that it does what I want (using 'Analyze Motion'). But how do I get the two circles and the end of the line to move as one? There is no pathfinder and 'Track Points' wont apply to a group.
I should probably point out that I am a complete noob with only a couple of hours on 'Motion 5'.
Thanks in advance!To the circle(s) add a Behaviors > Motion Tracking > Match Move. Drag the Analyze Motion behavior into the source well. For the Anchor and Rotation-Scale parameters, set the Track # of the point you want to follow. You might need to set the Transform to Attach to Source. You will probably also have to drag the position of the circle over the first track point to align it.
-
Hi,
Im trying to make a small game. Could someone take a look at the CS4 and CS3 fla files attached and tell me how to make the game reset when the red circle touches the block boxes.
Thanksask for clarification if you don't understand. there's no reason to be rude.
from your main timeline use:
loadMovieNum(this,0);
Maybe you are looking for
-
I intend to transfer my Super VHS tapes from an old camera to DVD and have aquired a Dazzle Platinum. But everything is for Windows! Does anyone know if it can be used on a Mac and if so how do I go about doing it? I have checked Pinnacle's site but
-
Slideshow music editing...
I was wondering if there is any way to edit the music tracks that will be played in a slideshow. For example, say Song1 is 5 minutes long, is there a way to make it 3 minutes long and fade into the next song on the playlist? If iPhoto does not have a
-
PO based invocie active check box for line items
Hi, For PO based invoicing, we need the Blank Checkbox, which appears at Line Item Area of invoice. We need it to be blank when user begins invoicing entry process. Meaning, no lines are subject to invoice, all are inactive and Users will place
-
Gurus : how to Access 2 diff Tables in 2 diff DB for reportg without DBLINK
Oracle Gurus Help is needed for the following I have 2 seperate database and cant use the DBlink. I need to get subset of rows from different tables present in diffferent databases and place it into the memory to further refine the results. How is it
-
Client Proxy generation on a SAP NW 7.0 system using PI 7.1
Hello Can anyone please guide me with Client Proxy generation on a SAP NW 7.0 system using PI 7.1 services with multiple operations. How does client proxy generation in SAP NW 7.00 support services with multiple operations ? Thanks. Kiran