How can I get my values digital XML appears when loading in flash?
Hello
I created an AS2 3D carousel, it loads the text values in the section "content" of the code below - including numbers and special characters in the .swf but...
What I can't understand, is how get so that the 'Tooltip' loads the text into the movieclip, but may also have digital and special characters in it.
For example, I need the title of one of the icons on this carousel to be "3D Images", but that the Images "D" appears in the XML text for the ToolTip. The content when the user clicks on the icon can include numbers, just not the titles for some reason any.
http://iongeo.com/collaboration_test_dev/video_arctic_imaging.html
I think it has something to do with the way that my text is loaded from the XML specifically for the ToolTip and tipText for the clip. Numeric values can be loaded into a clip in AS2? Help, please!
Import mx.utils.Delegate;
Import mx.transitions.Tween;
Import mx.transitions.easing. *;
var numOfItems:Number;
var radiusX:Number = 300;
rayonY var: number = 75;
var centerX:Number = Stage.width / 2;
var centerY: Number = Stage.height / 2;
var speed: Number = 0.05;
perspective of the var: number = 130;
var host: MovieClip = this;
theText._alpha = 0;
theHeader._alpha = 0;
var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
ToolTip._alpha = 0;
var xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for (var i = 0; i < numOfItems; i ++)
{
var t is home.attachMovie("item","item"+i,i+1);.
t.angle = i * ((Math.PI*2) /numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes [i].attributes.tooltip;
t.Content = nodes [i].attributes.content;
t.Header = nodes [i].attributes.header;
t.icon.inner.loadMovie (nodes [i].attributes.image);
t.r.inner.loadMovie (nodes [i].attributes.image);
t.icon.onRollOver = more;
t.icon.onRollOut =;
t.icon.onRelease = freed;
}
}
function over()
{
BONUS section
home.tooltip.tipText.text = this._parent.toolText;
Home.ToolTip._x is this ._parent ._x;.
Home.ToolTip._y = this ._parent ._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create (this, moveTip);
Home.ToolTip._alpha = 100;
}
function out()
{
delete home.tooltip.onEnterFrame;
Home.ToolTip._alpha = 0;
}
function released()
{
BONUS section
Home.ToolTip._alpha = 100;
for (var i = 0; i < numOfItems; i ++)
{
var t:MovieClip = host ["item" + i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
If (t! = this ._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
}
on the other
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,150,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,250,1,true);
var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
var tw5:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,0,100,1,true);
theText.text = t.content;
theHeader.header = t.header;
var s:Object =;
tw.onMotionStopped = function()
{
= new s.onRelease;
}
}
}
}
function unReleased()
{
BONUS section
var penny: Sound = new Sound();
sou.attachSound ("sdown");
Penny. Start();
delete this.onRelease;
var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
var tw:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,100,0,0.5,true);
for (var i = 0; i < numOfItems; i ++)
{
var t:MovieClip = host ["item" + i];
If (t! = this ._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
}
on the other
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
{
for (var i = 0; i < numOfItems; i ++)
{
var t:MovieClip = host ["item" + i];
t.icon.onRollOver = Delegate.create (t.icon, over);
t.icon.onRollOut = Delegate.create (t.icon, out);
t.icon.onRelease = Delegate.create (t.icon, released);
t.onEnterFrame = mover;
}
}
}
}
}
function moveTip()
{
Home.ToolTip._x is this ._parent ._x;.
Home.ToolTip._y = this ._parent ._y - this._parent._height/2;
}
XML. Load ("icons.xml");
function mover()
{
This ._x = Math.cos (this.angle) * radiusX + centerX;
This ._y = Math.sin (this.angle) * rayonY + centerY;
var s = (this ._y - perspective) / (centerY + rayonY-perspective);
This ._xscale is this ._yscale = s * 100;.
This.angle += this._parent.speed;
this.swapDepths (Math.round (this._xscale) + 100);
}
this.onMouseMove = function()
{
Speed = (this ._xmouse-centerX) / 8000;
}
your textfield must incorporate numbers, in addition to uppercase and lowercase letters.
Tags: Adobe Animate
Similar Questions
-
How can I get the value of the element with the namespace?
I tried to get an element of value in xml a namespace, but I can't.
I removed the namespace, I get a value of the element.
How can I get a value of the element with the namespace?
-1. Error ----------- xml ------------------------------
<? XML version = "1.0" encoding = "UTF-8"? >
* < TaxInvoice xmlns = "" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi: schemaLocation =" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 http://www.kec.or.kr/standard/Tax/TaxInvoiceSchemaModule_1.0.xsd "> *"
< ExchangedDocument >
< IssueDateTime > 20110810133213 < / IssueDateTime >
< ReferencedDocument >
< ID > 318701 - 0002 / < ID >
< / ReferencedDocument >
< / ExchangedDocument >
< TaxInvoiceDocument >
< IssueID > 201106294100 < / IssueID >
< > 0101 TypeCode < / TypeCode >
< IssueDateTime > 20110810 < / IssueDateTime >
< PurposeCode > 02 < / PurposeCode >
< / TaxInvoiceDocument >
< TaxInvoiceTradeLineItem >
< SequenceNumeric > 1 < / SequenceNumeric >
< > 200000000 InvoiceAmount < / InvoiceAmount >
< TotalTax >
< CalculatedAmount > 20000000 < / CalculatedAmount >
< / TotalTax >
< / TaxInvoiceTradeLineItem >
< / TaxInvoice >
-2. success - xml - remove namespace.
<? XML version = "1.0" encoding = "UTF-8"? >
< TaxInvoice >
< ExchangedDocument >
< IssueDateTime > 20110810133213 < / IssueDateTime >
< ReferencedDocument >
< ID > 318701 - 0002 / < ID >
< / ReferencedDocument >
< / ExchangedDocument >
< TaxInvoiceDocument >
< IssueID > 201106294100 < / IssueID >
< > 0101 TypeCode < / TypeCode >
< IssueDateTime > 20110810 < / IssueDateTime >
< PurposeCode > 02 < / PurposeCode >
< / TaxInvoiceDocument >
< TaxInvoiceTradeLineItem >
< SequenceNumeric > 1 < / SequenceNumeric >
< > 200000000 InvoiceAmount < / InvoiceAmount >
< TotalTax >
< CalculatedAmount > 20000000 < / CalculatedAmount >
< / TotalTax >
< / TaxInvoiceTradeLineItem >
< / TaxInvoice >
-program-
procedure insert_table
(
l_clob clob,
OK, Boolean.
Error out varchar2
)
is
l_parser dbms_xmlparser. Analyzer;
xmlDoc xmldom.domdocument;
l_doc dbms_xmldom. DOMDocument;
l_nl dbms_xmldom. DOMNodeList;
l_n dbms_xmldom. DOMNode;
l_root DBMS_XMLDOM.domelement;
l_node DBMS_XMLDOM.domnode;
l_node2 DBMS_XMLDOM.domnode;
l_text DBMS_XMLDOM. DOMTEXT;
buf VARCHAR2 (30000);
XMLParseError exception;
TYPE tab_type is Table of xml_upload % ROWTYPE;
t_tab tab_type: = tab_type();
pragma exception_init (xmlparseerror,-20100);
l_node_name varchar2 (300);
Start
l_parser: = dbms_xmlparser.newParser;
l_doc: = DBMS_XMLDOM.newdomdocument;
dbms_xmlparser.parseClob (l_parser, l_clob);
l_doc: = dbms_xmlparser.getDocument (l_parser);
l_n: = dbms_xmldom.makeNode (l_doc);
l_nl: = dbms_xslprocessor.selectNodes (l_n, ' / TaxInvoice/TaxInvoiceDocument ');
FOR cur_tax in 0.dbms_xmldom.getLength (l_nl) - 1 LOOP
l_n: = dbms_xmldom.item (l_nl, cur_tax);
t_tab.extend;
t_tab (t_tab.last) .ed_id: = '5000000';
dbms_xslprocessor.valueOf (l_n, ' IssueID / text () ', t_tab (t_tab.last) .tid_issue_id);
dbms_xslprocessor.valueOf (l_n, ' TypeCode / text () ', t_tab (t_tab.last) .tid_type_code);
END LOOP;
FORALL i IN t_tab.first... t_tab. Last
INSERT INTO xml_upload VALUES t_tab (i);
COMMIT;
dbms_xmldom.freeDocument (l_doc);
correct: = true;
exception
When xmlparseerror then
-xmlparser.freeparser (l_parser);
correct: = false;
error: = sqlerrm;
end insert_table;l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');
try to change as follows
l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');
Published by: Alexandr on August 17, 2011 12:36 AM
-
I'm trying to create a custom connector icf with progressive reconciliation. My recon schedule a task, I have the settings "attribute of Date additional Recon ' and 'last token" that should be used for gradual reconciliation.
How can I get the values of the parameters ' attribute of Date additional Recon ' and 'last token "?
ICF should handle this for you.
The value of "attribute of Date additional Recon ' must be filled in the OperationOption (e.g. executeQuery() and PROCESSES of FilterTranslator has this as a method parameter).
For the "last counter", you need to implement ' createGreaterThanExpression (GreaterThanFilter, filter, is not Boolean) ' in your filter translator class. You can get the attribute of the filter object. Look for a description here: http://docs.oracle.com/cd/E37472_01/apirefs.1112/e28159/oracle/iam/connectors/icfcommon/recon/SearchReconTask.html
-
How can I get a value from a function from pl/sql by OADBTransaction
Hi all
Hope you will be fine.
as we know, we can get a sequence by this code value:
Super.Create (AttributeList);
Transaction OADBTransaction = getOADBTransaction();
Vendor ID is obtained from the table sequence
Number supplierId = transaction.getSequenceValue ("FWK_TBX_SUPPLIERS_S");
My question is how can I get a value in a variable to a pl/sql function:
the function is defined as follows:
******
create or replace function getNextTrans return varchar2
is
Team varchar2 (20);
Start
SELECT "CASH". TO_CHAR (SYSDATE, 'DDMMYYYY') | GP_CASH_TRX_SEQ. NEXTVAL FROM DUAL;
return team;
end;
/Hey Dina,
Reference http://www.oraclearea51.com/oracle-technical-articles/oa-framework/229-calling-database-procedures-and-function-from-oaf.html
Kind regards
GYAN -
How can I get the value of the element checked a box to tick LOV?
Hi all
I need to insert rows into a table when a checkbox element is checked.
The checkbox element is a LOV in a form.
-----------------------
Select the DESCRIPCIÓN display_value, ID_DOCUMENTO return_value
of DOCUMENT
order by 1
------------------------------
Source
------------------------------
DECLARE
CURSOR C_REG_DOC IS SELECT ID_DOCUMENTO FROM REGISTRO_DOCUMENTO WHERE ID_REGISTRO =: P6_ID_REGISTRO;
v_id_documento documento.id_documento%TYPE;
v_results VARCHAR2 (50);
Boolean v_first_loop: = true;
BEGIN
for this loop C_REG_DOC
If v_first_loop then
v_results: = it.ID_DOCUMENTO;
v_first_loop: = false;
on the other
v_results: = v_results |': ' | it.ID_DOCUMENTO;
end if;
end loop;
Return v_results;
END;
--------------------------
I need to create a process to insert rows in a relational table, but I do not know how...
------------------
FOR *? *
LOOP
INSERT INTO registro_documento (id_reg_documento, id_registro, id_documento)
VALUES(null,:P4_ID_REGISTRO,???);
END LOOP;
---------------
How can I get the value of the active element (id_documento) to insert it?
Thank you!
AlexHello:
You can use the apex_util.string_to_table function to retrieve the values of the LOV as shown in the example
declare arr wwv_flow_global.vc_arr2; begin arr:= apex_util.string_to_table(:P_CHECKBOX_LOV_ITEM) for x in arr.first..arr.last loop // insert statement iNSERT INTO registro_documento( arr(i) ,.........id_reg_documento,id_registro,id_documento) end loop; end;
CITY
-
How can I get zeros displayed in a RadixNumericTextBox when using a hexadecimal RadixBase in Visual Studio 2010, c# and Measurement Studio 2012?
In addition the
RadixBase
property, there is no available onRadixNumericTextBox
member to customize the display of the formatted value. However, you can override theFormatValue
method to provide a custom formatting logic:public class CustomRadixNumericTextBox : RadixNumericTextBoxInt32 {
protected override string FormatValue( int value ) {
string formatted = base.FormatValue( value );
return formatted.PadLeft( 8, '0' );
}
}
-
How can I get (record) web pages to work when im offline
How can I get (record) web pages to work when im offline. I can't find any setting for this.can help you
Try the Read It Later addon.
https://addons.Mozilla.org/en-us/Firefox/addon/7661/ -
How can I get iPhone play sound of favorite when text DND?
Hello
How can I get iPhone play sound of favorite when text DND?
It plays the ringtone for a call when DND of a favorite but not identified a favorite texts me
Thanks in advance
You do not have. Notifications for all the messages are deleted when DND is turned on.
-
How can I get my pictures from my Bloggie TS10 on a flash drive or a memory stick?
How can I get my pictures from my Bloggie TS10 on a flash drive or a memory stick
-
How can I get the airplay icon to appear? Changing the settings of firewall does not work
How can I get the airplay icon to appear? Changing the settings of firewall does not work
Hello Drjoe378,
I understand that you do not see the AirPlay icon in iTunes on your Mac. If you have verified that your firewall is disabled or that the problem occurs regardless of the status of your firewall, there is a little more that can help return your ability to connect to AirPlay devices.
- Make sure you have the latest version of iTunes and Apple TV software.
- Connect your computer and other devices on the same network Wi - Fi. If you are using Ethernet, connect the two devices on the same router or hub. If you use the Wi - Fi and Ethernet, plug your device AirPlay the same router that your computer uses for Wi - Fi.
- Restart your computer, device AirPlay and network router.
- Because some Airplay devices include a power switch for AirPlay option, look for the option in the settings and make sure that the feature is enabled. Refer to the user guide of the device for more information.
All my best.
-
How can I get my PC to open completely when I open a session?
How can I get my browser to open completely when I open a session?
How can I get my browser to open completely when I open a session?
================================================
Open your desktop full screen?If_Yes_here something to try to...
If it's just the browser window... Open just ' one; the browser window
(nothing else) and right click on your "Windows task bar" and choose
Horizontal mosaic. This should maximize the window. -
How can I get rid of the background yellow when I display an image using the photo viewer?
Original title: Windows Photo Viewer
How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.
Thank you
Ed Fuller
How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.
Thank you
Ed Fuller
Hi Ed
See the following for the patch thread.
Windows 7 photo viewer shows images with an orange and yellow tint:
Concerning
-
How can I get the Desktop 4.6 to stop loading rach time I turn on my PC?
Hello...
If you're running XP, right click on the Start button go Open - start/programs and delete icon Desktop Manager from the startup folder. When you install the Desktop Manager, framework of installation at the end asking you if you want it to start and you have to uncheck this option so that it does not start. By removing this startup folder, you won't have this problem.
H.
-
How can I get my files off adobe cloud when I cancel?
How can I get my files off adobe cloud when I cancel?
Hello
If you cancel CC, you have another 90 days from the date that cancel you the subscription to download the files you saved on cloud under your Adobe ID (email) that you can download and save on the local drive of your computer.
Thank you.
-
How can I get rid of the excess columns when you convert a pdf file to excel?
How can you get rid of the excess columns when you convert a pdf file to excel? How can you get rid of the excess columns when you convert a pdf file to excel?
Hi carlk91869849,
Once a file is converted to excel format, you can select the columns and press the delete button to delete their data.
If I misinterpreted your question, I would ask to provide more details.
Kind regards
Rahul
Maybe you are looking for
-
KB974554 & KB972580 window updates do not repeatedly install.
I installed Office 2007 on my computer, I have XP, and it's the first hitch of the failure to install the updates on this machine.In each of them individually, tried without success. It refers to an older version of Office. Maybe he doesn't know th
-
I quit all other applications and anti-virus programs.
-
Need expert help! CD player does not read the contents of the disc. Help!
I searched and tried everything what we can imagine and impossible to find a solution. I can also restore because I don't really know this error at startup. Here are the symptoms and fixes I've tried. If there is someone out there who could help me i
-
Trying to install Canon lide 35 scanner under Windows 7
Hey all,. How can I get incompatible with win 7 64 bit scanner to scan on win 7 64 bit? As indicated above, really; I have a canon lide 35 scanner and canon said that it will not work on win 7 64 bit. I tried compatibility mode, but it does not wor
-
BlackBerry smartphones I'm looking FOR a SERVICE FOR STORM BOOKS
HI I have a unlock blackberry storm 9530, I try opportunity for Claro society where I can find the servicebooks for this company in the Caribbean, because I need the config of the internet browser so let me know where I can find books of service for