Merge Objects in AS3
Hello,
How do I merge objects in AS3 please?
I'm thinking of doing something like:
for(var property:String in obj1)
bigObj[property]=obj1[property];
Is there a better way?
Hi Ravi,
Thanks for explaining. You could use a Command Object then. What ever SQL WEBI uses you can paste into the Command and the results should be the same then. You just have to link the tables in the SQL statement, Sorry I don't know WEBI so not sure how it relates the tables and then translates that to SQL.
What you may want to do is post to the [WEBI forum|SAP BusinessObjects Web Intelligence; and ask that forum how to convert your 2 dimensions into a SQL statement. Once you get that then you can paste it into the Command, you'll find that in the database wizard once you are connected to the DB.
Like I said, unless you can link the 2 tables, because CR is a relational database reporting tool you won't be able to.
Another option is to have the main report based on one dimension and add a subreport based on the second dimension. then you can link the main to sub using common fields and in theory it should give you the results from both.
Another option is to use a Stored Procedure and merge the 2 dimensions Server Side. If you search the Kbase on Oracle Store Procedure you'll find an example of how to, CR requires a Cursor to hold the data.
Corsstab's in CR are quite limited so as another work around you can create a manual crosstab report, don't use the wizard, and simply drop the fields into the main with the option to use multiple columns in the detail section.
Don
Similar Messages
-
I want to create a basic XML object in AS3, but don't know
how to do this.
I first tried creating a string that represented my XML
elements and their values, but then I don't know how to convert
this string into an XML object.
Secondly, I believe there are other ways of creating XML
objects in AS without doing anything with strings.
Can somebody please recommend to me a way to do this?
An XML example to create with AS3 is:I've figured out the solution to my problem. For anyone
interested, see me code below (the xml element names are different,
but the concept is the same). -
How to delete object in AS3? I know that "delete my_obj"
works in AS2, but in AS3 you can't delete an object this way, only
a property. So how to delete an object in AS3?
Thank youyou nulled my_obj but it's not clear it's ready for gc. you must remove all objects/listeners that reference my_obj, if there are any. (and you must be careful about typos.)
-
Where is Edit Merged Object in XI 4.0?
I want to edit a merged object (dimension) in XI 4.0 but all I can do is edit the properties like description. How can I map in additional dimensions to an existing merged dimension without having to unmerge it first?
Hi
Hope this link helps u
http://www.youtube.com/watch?v=GI4UN8MXBnQ&list=PL5724D5287D69497D&index=24&feature=plpp_video
Regards
Sunil -
Undo Merging Objects into a Slide
I imported an image in to my slide and right-clicked on the
image to merge into a slide so that it can look like the
background, but how can I undo this?
The reason is that when people open up my demo, depending on
the size of their monitor, generally they have to use their scroll
bar to the right to center my demo on their screen, so I'm thinking
if I move my image up, more likely they won't have to do this.
Any suggestions would be appreciated. Thanks!!HI mhkdemo and welcome to our community
When you elected to right-click the image and merge it into
the background, you should have received a rather ominous looking
dialog you had to click Yes on, in order to proceed.
The dialog reads as follows:
This option will merge the object onto the current slide and
remove the object. Are you sure you want to merge the object (it
cannot be undone)?
So the short answer is that you cannot "undo" the action. But
what does this REALLY mean? Well, Captivate keeps track of
everything you do. This provides an essentially unlimited number of
undo levels. I've actually put this to the test and I gave up after
successfully undoing about 300 levels or so.
The only real way for you to recover is to probably insert a
blank slide, then insert the image again as an object on the slide.
Hopefully this helps... Rick -
Hello all, I am trying to load a SWF in to an Application, then have that application create X amount of that original SWF. Back in the days of AS2, you call the duplicate function, but no more in AS3.
So, I have been able to do this by creating a new class then create a new object in a loop (works fine) there are 2 ways i've been able to do this:
use getDefinition of the linkage Name
convert DisplayObject to an object then assign the constructor as a class
Both of these create a unique version of the SWF (GREAT!) however, when i use the second method, the mouse and keyboard events don't work, (even though the added and OEF both work on both) and for the life of me i can't figure out why.
If i place a breakpoint at the end of the for loop i see that 'b' has 7 listeners. Anyone have this issue / provide suggestions for solutions?
Thanks!
-Andrew
package
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.getClassByAlias;
import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedClassName;
public class Test3 extends Sprite
public function Test3(){
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener( Event.COMPLETE, handleLoadComplete );
loader.load( new URLRequest( "some/url/here" ) );
public function handleLoadComplete( _event:Event ):void{
var a:MovieClip = (_event.target as LoaderInfo).content as MovieClip;
var c:Class = _event.target.applicationDomain.getDefinition("linkageName");
var e:Class = Object( a ).constructor;//Class(a.getDefinitionByName(getQualifiedClassName(a)))
for(var i:int = 0; i < 1; i++){
var b:MovieClip = new c();
b.addEventListener( MouseEvent.CLICK, handleClick ); //if Class == c, fires, else nothing
b.addEventListener( MouseEvent.MOUSE_MOVE, handleClick ); //if Class == c, fires, else nothing
b.addEventListener( KeyboardEvent.KEY_DOWN, handleClick ); //if Class == c, fires, else nothing
b.x = Math.random() * 300;
b.y = Math.random() * 300;
b.addEventListener( Event.ADDED, handleAdded ); //fires
addChild( b );
b.addEventListener( Event.ENTER_FRAME, handleOEF ); //fires
b.addEventListener( MouseEvent.CLICK, handleClick ); //if Class == c, fires, else nothing
b.addEventListener( MouseEvent.MOUSE_MOVE, handleClick ); //if Class == c, fires, else nothing
private function handleClick( _event:Event ):void{
trace(" in the click" );
(_event.currentTarget as MovieClip).x +=20;
private function handleAdded( _event:Event ):void{
trace(" i am added" );
(_event.currentTarget as MovieClip).x +=20;
private function handleOEF( _event:Event ):void{
trace(" i've entered a frame" );
(_event.currentTarget as MovieClip).x +=20;Interesting observation...
I played with it for awhile and it looks like objects instantiated through constructor and sometimes event classes gotten through applicationDomain.getDefinition loose their InteractiveObject flavor.
If this is intentional - it may make sense for security reasons (I am not sure about it though). Otherwise, let's what can be found on this topic... -
Benefits of merging objects and images
Does merging images or objects with background, reduce file size?
its one of those "how long is a piece of string" questions.
as pete said, colour calibration with your monitor may be a factor, but there are many other items to consider, such as:
* the quality of the light in the room in which the monitor is in;
* whether the images being printed are beyond the max ink weight for the paper (an uncoated stock will have a lower max ink weight than a coated stock)
* what RGB-CMYK conversion is being used. to demonstrate this, try this - take an RGB pic, make it CMYK using the SNAP newsprint profile and save it as 1.tiff. then, go back to the original RGB pic and make it CMYK using the COATED FOGRA 39 profile and save it as 2.tiff. now, place both pics into indesign and go to the seps preview and compare the picture qualities side by side.
there are also issues which may be present at the printer's end, but I won't speculate as to what they may or may not be doing. instead, it is worth having a chat to your providers. Providers interested in your work normally take the time to provide as much information as they can.
it seems to me that if images are constantly coming out darker, that the max ink weights for the stocks being printed on are being exceeded. when submitting ads/prints, are you using the ink limit preview in the seps preview panel and checking it against the max ink weight suggested by the publisher or printer?
my buck o'five.
colly -
im trying to create objects based on number i input on a textbox
here is the image and code :
// Image
// codes
import flash.events.MouseEvent;
var circle:Shape = new Shape();
var i:int;
var j:int;
myBtn.label = "Show";
var a:Number = Number(text1.text);
myBtn.addEventListener (MouseEvent.CLICK,createCircle);
function createCircle (event:MouseEvent):void{
for (i = 1;i<=a;i++){
for (j = 1;j<=a;j++){
circle.graphics.beginFill(0xFF0000, 1);
circle.graphics.lineStyle(5, 0x000000);
circle.graphics.drawCircle(j*50 + j*20, i*50 + i*20, 25);
circle.graphics.endFill();
addChild(circle);
can someone help me ??
thanksi can apply the mc with tween already
but the circle create tweening when other circle create which i want it to stop when it finish and then the other circle tween
i try using array to the mc but i think i mess up in the code
can some1 help me ??
// here is the code
import flash.events.MouseEvent;
import flash.ui.Mouse;
import fl.transitions.Tween;
import fl.transitions.easing.Strong;
import fl.transitions.TweenEvent;
var i:int = 1;
var a:int;
var myMC:MovieClip = new MovieClip();
var myTween:Tween;
var myArray:Array = new Array();
myMC.name = "mc1";
myBtn.label = "Show";
myBtn.addEventListener (MouseEvent.CLICK,showCircle);
function timing (event:MouseEvent):void{
a = int(text1.text);
var myTimer:Timer = new Timer(500,a);
myTimer.addEventListener(TimerEvent.TIMER, createCircle);
myTimer.start();
function createCircle (event:Event):void{
a = int(text1.text);
myMC.graphics.beginFill(0xFF0000, 1);
myMC.graphics.lineStyle(5, 0x000000);
myMC.graphics.drawCircle(200, 150 + i*50 , 25);
myMC.graphics.endFill();
myArray.push(myMC);
i++;
function showCircle (e:MouseEvent):void{
a = int(text1.text);
var myTimer:Timer = new Timer(500,a);
myTimer.addEventListener(TimerEvent.TIMER, createCircle);
myTimer.start();
addChild (myMC);
myTween = new Tween(myMC, "x", Strong.easeOut, 50, 400, 2, true);
and the circle didnot restart when i input a new number to the inputbox
for example when i first input 3 in the textbox, it create up to 3 circle
when i change the number to 4 , the circle add 4 to the previous 3 circle rather than create new 4 circle
how do i solve this ??
thanks -
Unable to Merge Objects at WebI query screen
Hi gurus,
I have an issue in displaying one prompt text at WebI runtime.
Sources are
BEx query with having prompt 0calday
Unx having mm.yyyy format prompt object
The features of the Variables
BEx: Multiple/Single Value
Mandatory
Unx: Allow Multiple Values
Keep last values
Select only from list
String(Data type)
I still have two prompt text.
I would like to know how to display one only
Thanks
EddyMake sure that the prompt text for both are same. You will get one single prompt and both the prompts will take the same data that is input.
but i am a little puzzled on how the list of values work. not certain about bex query and list of values and all those good details.
Thanks,
Ashok Vemulapalli
Search is our Best Friend. -
Data merge objects spilling off the page
I'm doing a data merge with multiple records per page-there are supposed to be six 4x3 inch nametages per page. I created the master page with
merge text field and did the merge. The first 6 come out fine, but subsequent labels are spilling off the page, such that label 7 and 8 are right underneath 5 and 6 and going off the page. Page 2 of the document is ending up with label 24-25, but label 7-8 should be starting off page 2.
Thanks,
-Jefffunction(){return A.apply(null,[this].concat($A(arguments)))}
jdahl2 wrote:
The first 6 come out fine, but subsequent labels are spilling off the page, such that label 7 and 8 are right underneath 5 and 6 and going off the page. Page 2 of the document is ending up with label 24-25, but label 7-8 should be starting off page 2.
Thanks,
-Jeff
Adjust the spacing between rows, and the top margin from the Multiple Record Layout tab. (It is dependent on your frame height.)
A 6 up layout took me about 2 minutes, 17,000 + records, with the placeholder created on the master page. Contradictory to some other post's in this thread, master pages are fine for setting placeholders, are my norm and are the recommended method. (It allows the subsequently created document to serve as another source master.) -
Object Oriented AS3 game programming - where do I start?
I’m a programmer familiar with object oriented
programming, with experience in C++, C# and the MS Visual Studio
development environment.
I’ve been tasked to create a web based game using Flash
CS4 and ActionScript3. I am new to Flash, ActionScript and game
programming. I have never used previous versions of Flash or
ActionScript.
The game will be a single player role playing game. The
player will have the ability to create an avatar.
The player will move the avatar from screen to screen based
on button clicks or drag and drop onto objects in the current
screen.
Players must register, and player information will be stored
in a database backend. Additonal data will be saved to the backend
database during game play.
The saved data will be based on player actions in various
screens, and in some cases data entered in a form on a screen.
For a first pass a stick figure avatar and screens containing
simple buttons and simple objects to drag the avatar to will be
sufficient. I would like to store data in a database tracking
date/time information, e.g. date/time each screen is
entered/exited.
Any links to articles, or better yet, sample code showing
these concepts would be greatly appreciated – ThanksStart is relative term. It took me too long just to find out
how to "hello the world" so I'll save you that work.
In Flash (Note: I'm using CS3 but I doubt this part of the
menu has changed that much)
1) File -> New -> ActionScript File
2) Paste in the following:
package junkdir {
import flash.display.Sprite;
public class junktest extends Sprite {
public function junktest() {
trace("Hello world");
3) Save as some_folder/junkdir/junktest // obviously create
new folder 'junkdir' during this process
4) File -> New -> Flash File (Action Script 3.0)
5) In the properties field labeled 'document class' type in
junkdir.junktest // THIS WAS THE OBSCURE PART
If the properties field did not automatically open then
manually open with: Window -> Properties -> Properties
6) Save this file as 'junk' in some_folder
7) Control -> Test Movie
"Hello World" appears in the Output Window. (This also can be
opened manually)
Read whatever Adobe online docs gets you involved quickly, I
like the display objects just for a quick visual high. Most code
will cut and paste into this 'junk' framework.
I recommend two O'Reilly books: Actions Script 3.0 Quick
Reference Guide by Stiller, Shupe, deHaan & Richardson and
Essential ActionScript 3.0 by Collin Moock.
Hope this helps. Good luck. -
How to merge objects or have italics and plain text on same line?
Okay, here's my problem - I've been making DVDs in CS5 for a couple of years. In my main menu it usually says something like "Play show title here" and the show title is italicized. Unfotunately, now in CS6, I suddenly can't just highlight the show title and change it to italics, because now it wants to italicize the entire line including the word "Play". If I make "Play" a separate title, so that I can have it in standard font, I can't figure out how to merge it with my show title so that they are highlighted together and work as one single button. Frustrating. Any solutions?
I don't recall if we found a way to do it in Encore; it is so much simpler in Photoshop.
The problem in Encore is selecting only the text, not the whole text box. -
Merge PDF Object for Multi-Lingual Repository
Hello All-
I have a repository with 3 languages and I want to merge 3 separate PDFs into a single record so I can assign them to their respective language layers.
The process I'm following (from the Data Manager Reference guide) is:
1. Upload the PDFs to the PDF objects table
2. Select all three PDFs
3. Choose Objects -> Merge Objects from the Main Menu
4. When the Merge dialog window opens, I double-click any language layer to assign the right PDF file.
At that point, Data Manager crashes. However, when I perform the same steps for merging images it seems to work.
This seems like a bug to me, but I thought I'd put it out here if anyone has any advice or can help me correct this.
Thanks
Tim
MDM Version 5.5 SP06 Patch 1 (5.5.61.48)Hi Tim,
Try doing this way
1. In the Records pane, select all of the object records i.e PDF's you want to merge.
2. Right-click on the single selected object record you want to survive the merge and choose Merge Into from the context menu not main menu.
Since the right-click is necessary to identify the surviving record among the group of records to be merged, the Merge Into command is available only through the Records pane context menu and not the main menu.
Please let me know if this worked
Thanks
SR -
Converting Xml object strait to AS3 ....
Hi there,
I would like to find out a strait convertion from this Xml object to AS3 which would have to be
the same (outcome / use / readout) as code below including a Http call !!!
NO, Combobox or a List !!! Strait forward to be used in a function() or in a text="", title="" or label="".
<mx:XML id="urlsOceania" source="com/assets/Xml/ENOceania.xml"/>
<mx:Script>
<![CDATA[ private function name():void {
nameType.source = urlsOceania.urlOceania.(@urlID==1).nameCountry;
} ]]>
</mx:Script>
And used in Mxml as well:
<mx:Panel title="{urlsOceania.urlOceania.(@urlID==1).prefix}">
Thanks in advance aktell2007is your xml in an external file?
if yes, (eg, resources.xml), you would use:
var xml:XML
var urlLoader:URLLoader=new URLLoader();
urlLoader.addEventListener(Event.COMPLETE,completeF);
urlLoader.load(new URLRequest("resources.xml"));
function completeF(e:Event):void{
xml=e.target.data;
public static function getLanguage(tag:String):String{
if(xml[tag]){
return xml[tag];
} else {
return "Error"; -
So I haven't played with the 3d features in Photoshop very much and gave myself (what I thought) was a simple project to play with. I'm trying to make a little cog with a recessed color band. Have been doing an extrusion using vector objects.
I extruded them both separately, the gear to 2" the blue ring to 1.6". Matched up the camera and set them both to the same position
Gear Ring
I then made sure the cameras were in the same default position and tried to merge them 3D -> Merge 3D Layers. I read that I should hold shift to make sure the objects position doesn't change so I did that but it doesn't seem to make any difference because once I merge them the gear wheel scoots out of position and shrinks. I thought maybe I wasn't holding shift long enough but even holding it from before I ever click into the menu until well after it appears the merge is complete it does the same thing.
Gear Ring
The ring stays in position but the gear scoots forward and shrinks. I could just manually change the numbers back but I'm hoping to add more elements and taking a screen shot of each property before merging seems like I must be missing something.
I'm on a PC running Windows 7 using Photoshop CC 2014.2.2I downloaded the psd. You created the shapes layers with a Adobe program I do not use. Then extruded them and merged and see the same thing I see when merging objects. They do not lineup like you expect them to. I wrote. What I do reset the object coordinates I forgot to add was I also use the move to ground button for the objects after the using the reset Coordinates button. Then I use the move tool to line up the objects relative to each other. I duped you document and did that to your merged objects. Here is the duped PSD with the objects reset mover to ground then positioned. Is this what you expected the merge to look like? http://www.mouseprints.net/old/dpr/GearTestDupe.psd
Right click the above link and save it to your machine
Maybe you are looking for
-
How to check when system started? Need ASAP!!
HI, Guys is there a way that I can tell that when the system started and stopped at certain time? If there is, how can i check? Please let me know ASAP. Thanks, I will post points for sure!!
-
SAP R/3 4.6 C to ECC 6.0 Upgrade using CU &UC method- Unicode conversion
Basis Gurus I am working on upgrade from R/3 4.6C to ECC 6.0. ECC 6.0 upgrade completed( still in non Unicode). Now I am in the process of Unicode conversion. I have used following methods for the upgrade. 1. Combined Upgrade & Unicode conversion
-
File sharing with PC and Diskaid: don't see files on iphone
i downloaded FileApp and Diskaid, But, the files don't transfer to my phone,Help!
-
Is there a way to make Safari default to 2x zoom?
Most every page I open requires me to hit command+ 2x (at least) to get the page close to filling my screen, is there a way to do this by default? Thanks. Doug
-
My Battery Draining Very Fast after Updateing 7.1.1