obtain the coordinates of the objects created dynamically
I created 3 video clips via actionscript and gave them the name of instances of cS_1, cS_2 and cS_3. However, I can't figure out their x coordinates. I know that I should do something with getChildByName, but I am really stuck and can not understand. Could someone please explain me what I have to do like explaining to a child of 8 years. Thank you!Here is the code:
To use the method getChildByName in that you want to ride a MovieClip variable to capture a reference to it, as:
var cs1:MovieClip = this.getChildByName (cs_1);
trace (CS1.x);
Tags: Adobe Animate
Similar Questions
-
How do you attribute the click event of the object created dynamically?
This is probably an easy question to answer:
I'm iteration in an XML list, I created via a HTTP Service to load the XML file. For each object, I want to create a LinkButton which will link to a URL.
However, since I created the LinkButton object in ActionScript instead of MXML, I can't understand how to assign a click event, for example navigateToURL()
How to assign as the LinkButton should do the mouse click?
I know that someone will be able to answer this, then... Thanks in advance!
myLinkButton.addEventListener(MouseEvent.CLICK,myClickFunction);
and your event listener function
private function myClickFunction(e:MouseEvent):void{ //do something }
-
How can you determine the absolute path to a NetStream object created dynamically?
We strive to implement a video captioning with a freeware component, ccforflash. This requires us to provide an absolute path or relative to our NetStream. How can we determine this path in Flash CS5 AS3?
CCforFlashCS5 documentation:
2. objects "name and path.
Type the name and the path. It is the name of the instance of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 queries the object with this name for the synchronization information to synchronize subtitles. The path must also be included; be compared to the CCforFlashAS3 (i.e. this.parent) component or the absolute path of the main floor of the film (root)".
I guess I understand your problem and accepts only a great way to identify a path to something compared to doing AS3 AS2. I'll see if I can raise the interest of someone else in your ad that is a detective better than me.
But if I can get stoopid for one minute and suggest trying something (I would try it)... If you have access to the code where is instantiated the NetStream object, just after he is given life, assign the instance to a variable, you have in the main timeline and use this variable (and the root timeline or a 'this' - reference database for path requirement) for your CCforFlashCS5 needs.
-
Creation of a logic of the function of the buttons created dynamically XML
Hello!
It's me...! Now, I created some buttons using XML dynamically. They are spread around the stage, and I modified it a tooltip script to give each key a ToolTip on Mouse_Over. But is the logic and make it work using AS3 is hard (for me). I want a function that take parameters: Tooltip text and ToolTip object.
In my code, I get this error msg on cast the function on dynamically created buttons:
1118: constraint implied a value with flash.display:Sprite of static type of a type may be unrelated to flash.display:MovieClip.
In my view, there is more than one thing here that need a fix.
Can someone take a look and give me a pointer?
Thank you
function contentTooltip(ttt:String,_ttclip:MovieClip):void {}
ttclip.addEventListener (MouseEvent.MOUSE_OVER, mouseOverHandler);
function mouseOverHandler(e:MouseEvent):void {}
//
ttip. Descr.Text = TTT;
ttip.x = internship. MouseX;
ttip.y = internship. MouseY-15;
ttclip.addEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
ttclip.addEventListener (MouseEvent.MOUSE_MOVE, OnMouseMoveHandler);
ttip. Visible = true;
}
function mouseOutHandler(e:MouseEvent):void {}
ttip. Visible = false;
ttclip.removeEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
ttclip.removeEventListener (MouseEvent.MOUSE_MOVE, OnMouseMoveHandler);
}
function mouseMoveHandler(e:MouseEvent):void {}
ttip.x = internship. MouseX;
ttip.y = internship. MouseY-15;
}
}
contentTooltip ("Button", scale_btn);
contentTooltip ("hide" button, hide_btn);The created two buttons dynamically MovieClips or Sprites? Your contentTooltip function seeks a MovieClip. When you get this error message from the compiler must point to a line to indicate the source (or something related to the source) of the problem.
Additive... it is not advisable to place named functions within other functions. It will be a good habit to break, if someone taught you to do.
-
Change of the style of the button created dynamically another button click
Hi all
I worked on a small project at home, learning Flex and Actionscript I'll (he is great, BTW) and have hit a block.
I'm building a screen with nested containers (HBox, VBox, tiles, etc.) eventually hold a number of dynamically created buttons. It all comes from a file of XML data using loops For. Each button is assigned a unique ID.
My problem is that I have a set of buttons in an Accordion component. Each button accordion relates to a dynamically created button already on the screen. Thus, 'Step 1' on the accordion can refer to "part 5". This info is organized as a string in the .data step button. If a user clicks on the 'Step 1' button, I want to change the style of "part 5", so I need to be able to reference these buttons according to XML in step 1 data.»
I tried to use the normal setStyle, but appears not to work because I can not convert a 'Part 5' representation to the real dynamically created "5" the component button.»
So my question you fine people is: " How to change a button dynamically created on the other only a string that represents the ID of the button?'." "
If all goes well, there is a simple way to do this (without having to navigate a tree of components). Any help would be appreciated to a new learner in Flex. If you need more info on the problem, please let me know.
Thank you...
Thush
Edit: I think that the answer is perhaps in this thread here. That said to use a table associative to contain the ID of the components during the creation time and to use the table to make reference to them later. I will try that and see if it works. Fingers crossed!
Edit 2: I cracked! First of all, I used a dictionary to store the array of objects. This used the Dictionary package (imported) and the creation of the Dictionary object.
Then I added my dictionary objects when they are created.
Finally, I have the buttons using the object dictionary based on a known ID string of the reference.Hi all
I worked on a small project at home, learning Flex and Actionscript I'll (he is great, BTW) and have hit a block.
I'm building a screen with nested containers (HBox, VBox, tiles, etc.) eventually hold a number of dynamically created buttons. It all comes from a file of XML data using loops For. Each button is assigned a unique ID.
My problem is that I have a set of buttons in an Accordion component. Each button accordion relates to a dynamically created button already on the screen. Thus, 'Step 1' on the accordion can refer to "part 5". This info is organized as a string in the .data step button. If a user clicks on the 'Step 1' button, I want to change the style of "part 5", so I need to be able to reference these buttons according to XML in step 1 data.»
I tried to use the normal setStyle, but appears not to work because I can not convert a 'Part 5' representation to the real dynamically created "5" the component button.»
So my question you fine people is: " How to change a button dynamically created on the other only a string that represents the ID of the button?'." "
If all goes well, there is a simple way to do this (without having to navigate a tree of components). Any help would be appreciated to a new learner in Flex. If you need more info on the problem, please let me know.
Thank you...
Thush
Edit: I think that the answer is perhaps in this thread here. That said to use a table associative to contain the ID of the components during the creation time and to use the table to make reference to them later. I will try that and see if it works. Fingers crossed!
Edit 2: I cracked! First of all, I used a dictionary to store the array of objects. This used the Dictionary package (imported) and the creation of the Dictionary object.
Then I added my dictionary objects when they are created.
Finally, I have the buttons using the object dictionary based on a known ID string of the reference.
-
remove objects created dynamically ImageView
I'm having a problem removing the ImageView objects I created during execution. I have an array of objects ImageView.
bb::cascades::ImageView *m_imObj[20];
I have then create and manipulate objects while executing.
m_imObj[m_counter] = ImageView::create();
I tried to remove the objects, but they continue to appear on the screen. What is the right way to eliminate an ImageVIew?
SOLVED
You must remove the object from its parent. In this case, the container, and then delete it.
void IVControl::deleteStripeElement() { log("deleting stripe element " + QString::number(m_stripeCounter)); m_stripesContainer->remove(m_stripes[m_stripeCounter]); delete m_stripes[m_stripeCounter]; if (m_stripeCounter == 0) { disableDeleteButton(); } else { m_stripeCounter--; enableAddButton(); } }
-
Click management problem in the controls created dynamically events
I'm creating the ObjectListField loop i-e (CustomObjectListField class is extended by the ObjectListField to customize its behavior) but the problem is that only by clicking the list no. 5 is managed other lists click handling is not manipulated thr id mylist2...
CustomObjectListField mylist2;
for (int i = 0; i)<>
{
mylist2 = new CustomObjectListField();
}
and click on manage using method...
protected boolean navigationClick (int status, int time)
{if(Field==mylist2)
{/ / implementation of a feature}}
}
pls help
Hello Shaina
Your code is not so clear. I don't know why you're my differrrent creaing objects and passing them to the same reference. The last (the 5th list) one will be that which makes reference. In your method of navigation click you compare the rating with mylist2 that contains the reference to the list 5, it's why you have found the events for 5th list only.
You must create an array of objectListfield, assign values to it and then use part of this comparison table.
CustomObjectListField mylist2 [] = new CustomObjectListField [5];
for (int i = 0; i)<>
{
mylist2 [i] = new CustomObjectListField();
}
and click on manage using method...
protected boolean navigationClick (int status, int time)
{if(Field==mylist2[0])
{/ / implementation of a feature}}
if(Field==mylist2[1])
{/ / implementation of a feature}}
if(Field==mylist2[2])
{/ / implementation of a feature}}
.
.
.
.
.
}
It may be useful
Thanks Pierre
-
I created copies of a card on an A4 print several at a time.
I used effect-> distortion & Transform-> transform, which was apparently the most natural solution.
The problem is that now apparently can't get rid of these copies if I want to copy - paste the 'main' card to another document without them.
Thanks for your help.
(Of course, I opened and closed the paper in between, so I can't just CTRL + Z).
You must select the original and remove the effect of change in the appearance Panel. This will remove the duplicates.
-
How to Position a symbol of the child created dynamically.
Hi all
I created instances of symbols on the stage of
for (alpha = 0; alpha < 5; alpha ++)
{
sym.createChildSymbol ("rect", "Stage");
}
Now, I wanted to set the position of each symbol - the problem is that I don't know the names of the instances of symbols that has been created. so I tried the following
childSymbols = sym.getChildSymbols ();
for (k = 0; k < 5; k ++)
{
childSymbols [k].css({"position":"relative","left":k*50});)
}
He did not set the symbols of the child where I need to be...
However, when I tried to apply css to an element within the symbol has worked.
for (k = 0; k < 5; k ++)
{
childSymbols [k].$("Rectangle2").css ({'position':"relative","left":k*50});})
}
Please can someone help...
y = 0;
x = 30;
$.getJSON ('slides.json', {function (data)})
for (alpha = 0; alpha)< 5;="">
var s = sym.createChildSymbol ("rect", "Stage");
s.getSymbolElement (.css({))
'top': x + 'px ';
'position': 'absolute ',.
'right': y * 315 + 20 + "px"
});
x += 100;
y += 100;
} //for
});
-
Is it possible to export objects created by the user who is in system schema?
Legends of dear,
I need your help which is at - it a way to export the user objects created in the schema of the SYSTEM? Sorry I hope the question is silly, but unfortunately one of our user created all their objects in the SYSTEM schema.
Oracle 11g XE Windows environment
1. we try to identify objects created by the user of the SYSTEM.
2. check the number and names of objects with tables, procedures, functions, triggers, and sequences.
Thank you
Knockaert
karthiksingh_dba wrote:
Legends of dear,
I need your help which is at - it a way to export the user objects created in the schema of the SYSTEM? Sorry I hope the question is silly, but unfortunately one of our user created all their objects in the SYSTEM schema.
Oracle 11g XE Windows environment
1. we try to identify objects created by the user of the SYSTEM.
2. check the number and names of objects with tables, procedures, functions, triggers, and sequences.
Thank you
Knockaert
Search the object created recent & owned by SYSTEM.
Since duhveloper object creation, then would have same DDL to repeat once again, in different schema.
It is a professional organization that maintains the source code in the code repository?
-
Get the UID of an object created from a script
Hi all
In my script, I create an object in a script (say PersonHasRessource) using the. Save() method.
Is there a way I can get the UID of the object created in the same script to move to the next step in the process?
Thank you
Hello
PersonHasRessource does not have a UID of its own. There the UID of the person and the UID of the resource. So in this case you should already have these values if you have created an entry in this table.
Here's an example of another table:
UIDValue = Connection.GetSingleProperty ("AccProductGroup", "UID_AccProductGroup", f.Comparison ("Ident_AccProductGroup", Ident_AccProductGroup, ValType.String, CompareOperator.Equal, FormatterOptions.None))
So here, I get the UID_AccProductGroup of the AccProductGroup has just created using the Ident_AccProductGroup in the where clause.
HTH, Barry.
-
recently, I had problems with itunes working so I uninstalled it and when I went to reinstall has already obtained the object exists error. Has undertaken research on the internet for answers and finally found a. I deleted the security keys who were educated on the apple forums. However, a few weeks later my itunes program has disappeared from my computer. I then tried to reinstall and got the object already exists error once again. When I went back to remove security keys who gave me all Web sites are not on my computer. How can I fix?
Hello
If the information below does not help you, I suggest you ask in the communities of Apple listed below.
Uninstall everything according to the instructions from Apple:
«Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7»
http://support.Apple.com/kb/HT1923
It is also the same list of what to remove what is in the link above from Apple:
http://pcsupport.about.com/od/findbyerrormessage/a/MSVCR80-DLL-not-found-missing-error.htm
Or try this program to remove it:
http://www.revouninstaller.com/revo_uninstaller_free_download.html
Then, download and save the iTunes on the desktop > then right click > select run as administrator to install.
If the advice already given does not, please contact Apple for assistance.
"Not to install iTunes or QuickTime for Windows"
http://support.Apple.com/kb/HT1926
"iTunes support-how to use iTunes.
http://www.Apple.com/support/iTunes/
"Contact iTunes Support.
http://www.Apple.com/support/iTunes/contact/
Or ask in the community Apple iTunes:
https://discussions.Apple.com/community/iTunes
See you soon.
-
How to handle the onTriggered many ActionItem created dynamically
Hi, I created the ActionItem dynamically using (loop)
because data is from webservice
How to handle the onTrigerred?
If my code is like this:
for (int i = 0; i)< alist.count();="">
{
My page page * = iRoot-->
findChild ("SpecificObject");
ActionItem * action = ActionItem::create () .title (aList [i] .name);bool res = QObject::connect (action, SIGNAL (triggered ()), this, SLOT (handleAction (())); what I'm confused because I don't know what action is triggered
Q_ASSERT (res);
Q_UNUSED (res);my page-> addAction (action, ActionBarPlacement:efault);
}
MyClass::handleAction() Sub
{
aFunction(); This parameter of function required of aList, said user.user aList [i]
}
Do I need to create handleAction() as well as added actionItem SLOT
But I don't know how much action added because it is dynamic server
Thank you
There are a few options:
Create a single location and connect all the signals. You can then call sender() into the slot to retrieve the object that sent the signal and go from there. You can also use a QSignalMap that maps each signal to a value and send this value to a single location. You can also use QSignalMap::sender() to get the sender object.
I used the QSignalMap to do something similar for handling created dynamically successfully drop-down lists.
-
How to read the objects and collections dynamically?
Hello
I want to read database/collection objects dynamically. Please advice!
Here is an example
Create the user as an object type (name varchar2 (100), number (3)) of the age
/
create a family of fonts as a user table
/
I want to do something like this
DECLARE
user of the var;
BEGIN
...
...
SELECT "family (1)" INTO var FROM DUAL;
...
...
END;
/
Thank youAs I suggested, you can define your own method of "diff" for the object. You haven't told us exactly what form you would like to work to take. I'll define a (pretty useless) function which will just create a string that tells you how to modify the data of an object to match the data in another. Obviously, you would like a more useful output. Potentially, rather than a member function, you can choose a procedure Member who emits DML is required for the underlying table is necessary.
SQL> ed Wrote file afiedt.buf 1 CREATE OR REPLACE TYPE location_typ AS 2 OBJECT 3 ( 4 building_no NUMBER, 5 city VARCHAR2(40), 6 MEMBER FUNCTION diff( 7 l location_typ) 8 RETURN VARCHAR2 9 ) 10* ; SQL> / Type created. SQL> ed Wrote file afiedt.buf 1 CREATE OR REPLACE TYPE BODY location_typ 2 AS 3 MEMBER FUNCTION diff( 4 l location_typ) 5 RETURN VARCHAR2 6 IS 7 l_diff_str varchar2(4000); 8 BEGIN 9 IF building_no != l.building_no THEN 10 l_diff_str := 'Building_no needs to change from ' || building_no || 11 ' to ' || l.building_no; 12 END IF; 13 IF city != l.city THEN 14 l_diff_str := l_diff_str || 15 'City needs to change from ' || city || 16 ' to ' || l.city; 17 END IF; 18 RETURN l_diff_str; 19 END; 20* END; 21 / Type body created. SQL> DECLARE 2 loc location_typ; 3 secloc location_typ; 4 a NUMBER; 5 BEGIN 6 loc :=NEW location_typ(300, 'San Francisco'); 7 secloc :=NEW location_typ(200, 'Redwood Shores'); 8 dbms_output.put_line( loc.diff( secloc ) ); 9 END; 10 / Building_no needs to change from 300 to 200City needs to change from San Francisco to Redwood Shores PL/SQL procedure successfully completed.
Justin
Published by: Justin Cave on 9 April 2012 14:12
-
Original title: cannot install my printer error message
I am trying to install my printer to dell v505 from the factory disc and get this error message: failed to create the object print dell v505 printer is not compatible with a polcy enabled on your computer that blocks NT 4.0 drivers (1930)
Any help, need a lot.
Hello
1. what version of Windows are you using?2 did you the chnages in the computer before this problem?I would suggest trying the following methods and check.Method 1: Run the fix, install the printer and check
Diagnose and automatically fix problems printing and printer
http://support.Microsoft.com/mats/printing_problems/Method 2:Error message when you try to connect to a printer in Windows Vista: "the printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
http://support.Microsoft.com/kb/931719Method 3: Install the printer in a clean boot state.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7.
http://support.Microsoft.com/kb/929135
Note: Please, go to step 7 of the Kb to maintain the computer to normal startup.You can download the latest driver for your printer from the link below.
http://www.Dell.com/support/drivers/us/en/04You can also check:
Printer driver is not Compatible if a policy is enabled on your computer.
http://support.Microsoft.com/kb/282011Error message when you try to connect to a printer in Windows Vista: "the printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
http://support.Microsoft.com/kb/931719
Maybe you are looking for
-
How can I change my LAN settings?
I can't find the tools, is not there. So, how can I change my LAN settings.Or where can I find tools?
-
Satellite C55 - Has - after update BIOS fan turns faster
Hello I have been informed by Toshiba application this new version of the BIOS is available, I confirmed BIOS and it has been updated. Now I have the problem. Cooling fan runs faster than before and it is very annoying.Find old versions of BIOS somew
-
A virus wiped my computer needs now Windows reactivated while the original key does not work!
One of the worst virus I've never erased from my computer and caused a huge problem. After restoring the computer to the original settings window asked to be activated. After the product key that is on my computer, he said it was not valid and I migh
-
a diagnosis seeming took over my computor with a black how screen can get rid of it thanks
Help me please