Dynamically display the contents of xml based on the method addEventListener (MouseEvent.MOUSE_DOWN, displayContent);
Hello
I have been working for a few days now with this script and got up to a point almost finished, but I can't go to the final stage of script. I have an xml file that is being scanned in my .fla file. There are 3 buttons that are created dynamically based on a tag called < navItem >. "DisplayContent" function should display the appropriate block of xml in various text boxes, but instead, it does show that the last song (the 3rd song) no matter which button I click on. I pasted my code on pastebin here:
If someone could take a look at my code, especially the last function, "displayContent" and suggest what I could do to fix the code, or point out where I did wrong, I would be very grateful.
~ Chipley
IF you use the movieclip buttons:
- myText.condenseWhite = true;
- var paragraphText = xml.mpu.bodyText.page.p;
- myText.htmlText = paragraphText;
- trace (MyText.Text);
- for (var i = 0; i)
- {
- trace ("xml.mpu.bodyText.page.navItem.length =" + i);
- var mcMenuItem:mcMenu = new mcMenu();
- mcMenuItem.x = button_mc.x;
- mcMenuItem.y = button_mc.y + i * 50;
- addChild (mcMenuItem);
- mcMenuItem.btnTxt.htmlText = navItemText [i];
- mcMenuItem.ivar = i;
- mcMenuItem.buttonMode = true;
- mcMenuItem.addEventListener (MouseEvent.MOUSE_DOWN, displayContent);
- }
- }
- }
- function displayContent(event:MouseEvent):void {}
- for (var i = 0; i)
- {
- titleText var = xml.mpu.bodyText.page.h1 [event.currentTarget.ivar];
- myTitle.htmlText = Text;
- myText.htmlText = paragraphText;
- }
- }
Tags: Adobe Animate
Similar Questions
-
How can I build AMPscript to dynamically display the text in the exact target?
I have the following AMPscript to display the images. Now, I need to create an AMPscript to display the copy of the notice in the footer of that image. I also created a content within the exact target area, but I cannot know how to reference it in an email from paste HTML.
%%[
var @DynamicFeatureImage1, @DynamicFeatureLink1, @ClosestStore
Set @ClosestStore = ClosestStore
If @ClosestStore is "Store1" then set @DynamicFeatureImage1 = 'IMAGE URL '.
ElseIf
@ClosestStore is "Store2" then set @DynamicFeatureImage1 = 'IMAGE URL'.
on the other
Set @DynamicFeatureImage1 = 'IMAGE URL '.
endif
If @ClosestStore is "Store1" then set @DynamicFeatureLink1 = 'Link TO IMAGE'
ElseIf
@ClosestStore is "Store2" then set @DynamicFeatureLink1 = 'link TO IMAGE'
on the other
Set @DynamicFeatureLink1 = "link TO IMAGE".
endif
]%%
Dreamweaver does not support AMPScript. It is a language created by Salesforce. You'd better ask a question in the riding of Salesforce stack: most recent "ampscript" issues - Salesforce stack Exchange.
-
I have written an application in adf faces and business components, but would like to be able to add items to it simply by creating a view of data base, i.e. with standard names and a suffix, probably static number of columns (just a read only view). I can handle the front-end and logic, but can't see a way to parametise the names & columns in view of component of the business objects. I can do things like create a load of dummy views with 10 passes to say selection double 0 then their chuck in the model, which is a mess, but would work... I was wondering if there's a cleaner way I can achieve through the model or any other method, so any ideas that could point me in the right direction would be useful.
Thanks in advance...
Tim.Hello
You may want to investigate the dynamics of ViewObjects or dynamicaly adding attributes such as 9 and 29 of http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
See also
http://www.bloggingaboutjava.org/2006/04/binding-dynamic-view-object/
Frank
-
Attachments such as Word or Excel files are shown only as attachments in a bar at the bottom of the message entering without rendering of such content. But Thunderbird always try to read the contents of an xml file in order to show ALL he's happy. If the file is large, it takes a lot of time, so the Thunderbirds crashes usually on, so I have to restart.
I would like to be able to make some adjustments to prevent display of the contents of the xml files attached in incoming messages. Thank you.
View (alt + V) menu > display the inline attachment
-
Javascript-based dynamic action and display the value of (!) from the selection list
Hello
I'm not a jQuery guru (yet).
Can someone show me how to turn on or off an ITEM on a form based on the value display of a selection list (usually I have dynamic lists, so I don't 'know' even internal values)
I created a simple demo in which you can (if you want to) show me how it works.
Workspace: 6POOLRULES
User: demo01
Password: demo
Application: 30851 (Drone)
The idea is to
* Disable/hide the "Id other Description" If the ' Id Type (display value!) is 'Passport' or 'license '.
* activate/display the Description of the 'other' Id if the ' Id Type (display value!) is "other".
I think that it should be dynamic action based on javascript/jQuery. But what would this jQuery selector should look like?
Published by: bveoracle on March 29, 2012 07:28
Published by: bveoracle on March 29, 2012 07:30Hello
OK, I changed the dynamic action to use Jquery and get text from the value. The only thing I changed is in the section WHEN.
Enjoy.
-
dynamically display title based on the value selected in the column picker
Hi all
Would it be possible to display the title of the dynamic report based on the value selected in the column picker. Suppose I have two State of the column and region. When I choose the status in the column picker the title of the report will show 'Summary of the situation' when I'll choose the region then the title will change to "summary of the region. Please help me...Hello
Check your mail before I send the entire process with screenshots.
Concerning
NGO
-
Display the value of the column automatically based on another column in a table
Hello
I use APEX 5.0, I have a requirement to display the field automatically based on the tabular presentation of other numbers.
in the screen shot attached above when I press Add button line a new line is created and enter the value in 'place no.', 'dept and identification of height place' when I press tab or get out of the column "height", "GID" should appear automatically.
To display the GID my query will be like that. "Select GID from x where no = '1011' place and dept = 88 and height = 88'.
How to get the value of from GID of the another value entered in Place no, dept and height in tabular form.
Thanks in advance
Ravi.
Hi Ravi
No need to point of Application or process. I just completed the task with the following steps
(1) create 4 hidden items
P2_SELWID
P2_SELDEPTH
P2_SELHEIGHT
P2_CALCWNAME
(2) gives 3 CSS classes in three columns of tables.
. WID
. DEPTH
. HEIGHT
(3) create the function jQuery for re - get three items from the page on a line if one of them has been changed.
Add the following code to the function and the declaration of global variables
function setRowItemValues(p_rownum){ wid_col_id = 'f02_' + rownum ; wid_col_val = $('#'+wid_col_id).val(); depth_col_id = 'f03_' + rownum ; depth_col_val = $('#'+depth_col_id).val(); height_col_id = 'f04_' + rownum; height_col_val = $('#'+height_col_id).val(); wname_col_id = 'f05_' + rownum; // set P2_SELWID,P2_SELDEPTH,P2_SELHEIGHT $s("P2_SELWID", wid_col_val ); $s("P2_SELDEPTH", depth_col_val ); $s("P2_SELHEIGHT", height_col_val ); $s("P2_SELWNAMEID", wname_col_id ); // Call the Dynamic Action to get WNAME if all values are not null if( wid_col_val != '' && depth_col_val != '' && height_col_val != '' ){ //Call DA to Get WNAME from WINT $.event.trigger("CalcWNAME"); // set the Tabular form $('#'+wname_col_id).val($x("P2_CALCWNAME").value); } }
and run when the Page loads
$(document).on("change", ".WID,.DEPTH,.HEIGHT", function(){ rownum = $(this).attr('id').substr(4); setRowItemValues(rownum); });
(4) create a dynamic Action to get WNAME based on a PL/SQL function. Note the submitted page elements.
CalcWNAME
(5) set of the corresponding element in the line of the function jQuery, after completing the DA.
Please check and I hope your problem is now solved.
Concerning
Mahmoud
-
Beautiful Hello all,Met someone said below show-stopper. Another GREAT MOMENT help required, will help me in a big way.Using Adobe RoboHelp, Version 10 and IE version 10.I n my local machine:1.) I finished my Design editor courtesy of technical writing2) generating chm file: display -> pods -> Single Source Layouts -> right click on Microsoft HTML Help -> Tagged defined as primary layout3) primary production layout: file -> create -> layout main page (Microsoft HTML Help)...4) look at a main Layout: file -> display -> main layoutEverything works ODDLY far with the desired output (like Hide, back, refresh, home, Print, Options, content, Index, search, glossary and data content)
Show stop, in my application server:
5.), I copy the robohelp project any folder my local machine to my path of the application server
6 .) My Application was developed in ASP .NET, Version 4.0.
Linkhelp 7) has been created in this application in which here <>.chm file name has been linked in the code to read of the project RoboHelp Server folder------! SSL! ------ Microsoft_HTML_Help\
8.), I connect to my application says-> click on the help page--> displays the required structure / keys as hide, back, refresh, home, Print, Options, content, Index, search, glossary
(a.) by clicking on on the books or the topics listed under Cmaterial : you are prompted to with error message warning called " Navigation to the webpage was canceled. "What you can try: Retype the address "
* This is a huge SHOW-STOPPER. I spent many hours on this subject, but unable to deciper with a solution at all) *
(Note: am able to open and read the contents of the data required by clicking on the books or the topics listed under Cmaterials project RoboHelp Server folder------!) SSL! (- Microsoft_HTML_Help\ <>.chm)
Why is the required data from the <>.chm content not displayed RoboHelp when combined as a help in my application?
Cheese - Vipin ndoye
If you looked at the error message and searched the forum, you will find the answer, since it is a problem that began in 2005. You must run no CHM files from a server and can not without editing the registry of users. See the next page.
http://www.Grainge.org/pages/authoring/chm_mspatch/896358.htm
Throughout your questions were based on webhelp, why all of a sudden we're going CHMS.
See previews on my site for the correct form of aid to be used in different scenarios.
See www.grainge.org for creating tips and RoboHelp
-
FINDER WINDOWS DO NOT DISPLAY THE CONTENT.
FINDER WINDOWS DO NOT DISPLAY THE CONTENT. YOU WILL NEED TO KEEP "FORCE QUIT" AND RELAUNCH THE FINDER. ON THE RETINA of MACBOOK PRO 15 ", PROCESSOR 2.6 GHz Core 17. Memory 16GB 1600 Mhz DDr3 WITH OS 10.9.5, does it almost everytime I open a new Finder window. Close all other applications. I just upgraded to 10.9.5, but he did prior to the upgrade and this one does not.
Urgent assistance needed please!
Temporarily remove com.apple.finder.plist and test.
Close all windows and close all applications.
Hold down the option key and click on the "Go" in the Finder menu bar menu.
Select 'Library' in the menu drop-down, then the folder "Preferences".
Search for this file.
com Apple.Finder.plist
Right-click on it and select "Move to trash" from the context menu.
Restart the computer.
If this does not help:
Right click on the trash icon in the Dock and choose 'open '.
Right-click on the com.apple.finder.plist and choose 'Put Back'.
-
Before the last updating Thunderbird. I was able to see the content of the message in its entirety in the preview or show the pane at the bottom of the page. Now, I have to select an option to display the classic view tab. How to return to the original display option?
Try restarting with disabled addons. I think remember me someone having an old adds on the cause.
You can do this in the Help Menu.
-
The "issue" essentially lines the problem.
No distance shows content when the user clicks on the button "view remote content. Once it has been clicked on a specific email, if I go back to the same email, the button "display remote content" is not on the e-mail page and no remote content shows again in the body of the email.
I use an updated version (24.4.0) of Thunderbird.The problem is often caused by anti programs anti-virus and other security software blocking Thunderbird to get the remote images. The GET for images using a web port usually and some security software not see Thunderbird as a browser and block access.
-
. CBV file type displays the content rather that give download options
I just changed my Web site hosting provider; old and new providers of Linux services.
My site is scottishcca.co.uk - a site of chess by correspondence - and I use Win7 and 26.0 Firefox.
There is a page (members/downloads) where members can download files of games of chess and e-magazines - the page is password protected using htaccess/htpasswd which works well.
Each e-magazine has 4 download links: pdf, zip and pgn all work fine, but cbv does not - it just displays the contents of the file in the browser page. What needs to happen is that the browser should display a dialog box asking if the file should be opened with ChessBase 11 database software (which is associated with the type of file .cbv on my computer - I checked my default program settings). File .pgn type is also associated with the ChessBase 11 database software and working properly - the dialog box allows me to open or save.
All the links work correctly when I use Google Chrome.
I'm puzzled - advice please!
IainI think I have a solution for this. I went back to my new hosting provider (easyspace) and received this response:
'Hi Iain,
I did some research on this for you and have a suggestion for you to try.
It is possible that Firefox is not to recognize the MIME Type application/cbv, because it is not just a registered IANA MIME Type.
You could try instead of application/octet-stream, which is a generic MIME Type for non-text files.
This idea came to me while reading the page at https://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types and this document can give you more of an idea of why this does not work in Firefox.
Can you try this please and let me know how you go.
Best regards
Gerry Munn
Support services
I implemented the suggestion of Gerry via .htaccess in my root directory and everything works now (after clearing the cache of Firefox). Maybe you could send Gerry an certificate of ability! -
How can I adjust the settings of Firefox to display the content in a format widescreen?
How can I adjust the settings of Firefox to display the content in a format widescreen?
You mean zoom? If so, check the module NoSquint .
-
1) go to the URL http://bionsmalleyassoc.com/BSA_jsp/MU_test
(2) select Bookmarks-> subscribe to this page
3) press the previous button
4) press the next button
Note that him 'subscribe to this page' does not reappear. However, Firefox incorrectly displays the raw for the RSS XML, as if he forgot that the destination forward is an RSS feed.This same sequence in IE9 or Safari 5.1 works fine as expected. In addition, Firefox has the same problem in MAC OSX 10.6
Works for me now, you probably recharge and bypass the cache (Ctrl + F5) to get a new copy of this page RSS.
-
39L4333DG - cannot display Flash content in the web browser
Hello
When I try to access sites Flash web browser displays "Missing Plugin" in the framework where the flash player should display the content.
I'm omitting something?
I installed the latest firmware: 7.1.90.34.01.1.
For a TV to 2013, it's boring is not to have a complete recommended web browser on a SMART TV.
Are there opportunities to have a full web browser in the next version of the firmware?
Thank you.When I had similar problems with Toshiba response was that the browser is intended for limited use. My problem was not being able to access any site that requires a password. Not rocket science you'd think!
Maybe you are looking for
-
Impossible to install El Capitan of App Store more
Dear Sir I have a MacBook Pro, which was launched before 2010. So I can only install El Capitan, which is no longer available on the App Store. How can I get an installer of El Capitan? In advance, best regards Carlos
-
Pavilion g6-2230tx peripheral pci laptop
Hello world I'm new to this forum. I bought Pavilion g6-2230tx a few months back and installed Windows 7 professional 64-bit. But the problem I am facing from day one, is that I cannot use one of my three USB ports. Also my Sd Card Reader behaves err
-
elockplugin that this need for now
that this need for now
-
Windows Movie Maker and the new format of MP4 file on digital camcorders
My new recordings of Samsung digital camcorder to the MP4 file format. Even after I convert a wmv file, 4 of the 5 videos will not 'Save' or 'Release' in WMM. Y at - it a new WMM version that will be important and 'save' the MP4 videos and not only
-
used to power jet on scottrade now can not
I used to be able to get on Scottrade, now I can't get on the site.