Scroll through the XML on click/drag
(Again), I'm working on my xml directory. I need to scroll through the data in the table on the click of the mouse. (The click of the mouse will be a blow on a mobile device.)
Stop();
var nameArray:Array = new Array();
var countryArray:Array = new Array();
var portraitArray:Array = new Array();
var flagArray:Array = new Array();
var jobtitleArray:Array = new Array();
var imageNum:Number = 0;
var totalImages:Number;
Loading XML
var XMLURLLoader:URLLoader = new URLLoader();
XMLURLLoader.load (new URLRequest ("recbook.xml"));
XMLURLLoader.addEventListener (Event.COMPLETE, processXML);
function processXML(event:Event):void {}
var theXMLData:XML = new XML (XMLURLLoader.data);
totalImages = theXMLData.name.length ();
for (var i: Number = 0; i < totalImages; i ++) {}
//push xml data in tables
nameArray.push (theXMLData.name [i]);
countryArray.push (theXMLData.country [i]);
portraitArray.push (theXMLData.portrait [i]);
flagArray.push (theXMLData.flag [i]);
jobtitleArray.push (theXMLData.jobtitle [i]);
}
//data is treated
loadData();
}
function loadData (): void {}
var thisPortrait:String = portraitArray [imageNum];
var thisCountry:String = countryArray [imageNum];
var thisName:String = NomTableau [imageNum];
var thisJobtitle:String = jobtitleArray [imageNum];
var thisFlag:String = flagArray [imageNum];
var dataLoader:Loader = new Loader();
dataLoader.load (new URLRequest (portraitArray [imageNum]));
dataLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataLoaded);
function dataLoaded(event:Event):void {}
stage.addEventListener (MouseEvent.CLICK, loadMainImage1);
function loadMainImage1(event:MouseEvent):void {}
portraitUILoader.source = thisPortrait;
flagUILoader.source = thisFlag;
selectedName.text = thisName;
selectedCountry.text = thisCountry.
selectedJobtitle.text = thisJobtitle;
}
}
Add 1 to imageNum
If (imageNum < totalImages) {}
trace ("imageNum" + imageNum);
trace ("name of the image (tomyline)" + tomyline ");
imageNum ++;
If (imageNum! = totalImages) {}
loadData();
}
}
solution:
import flash.events.MouseEvent;
Stop();
var nameArray:Array = new Array();
var countryArray:Array = new Array();
var portraitArray:Array = new Array();
var flagArray:Array = new Array();
var jobtitleArray:Array = new Array();
var contactArray:Array = new Array();var imageNum:Number = 0;
var totalImages:Number;Loading XML
var XMLURLLoader:URLLoader = new URLLoader();
XMLURLLoader.load (new URLRequest ("recbook.xml"));XMLURLLoader.addEventListener (Event.COMPLETE, processXML);
function processXML(event:Event):void
{var theXMLData:XML = new XML (XMLURLLoader.data);
totalImages = theXMLData.name.length ();
for (var i: Number = 0; i< totalimages;="">
{
Data in the tables xml push
nameArray.push (theXMLData.name [i]);
countryArray.push (theXMLData.country [i]);
portraitArray.push (theXMLData.portrait [i]);
flagArray.push (theXMLData.flag [i]);
jobtitleArray.push (theXMLData.jobtitle [i]);
contactArray.push (theXMLData.contactInfo [i]);
}
the data are processed;loadData();
}homeScreen_btn.visible = false;
var thisPortrait:String;
var thisCountry:String;
var thisName:String;
var thisJobtitle:String;
var thisFlag:String;
var thisContact:String;function loadData (): void
{
tomyline = portraitArray [imageNum];
thisCountry = countryArray [imageNum];
thisName = NomTableau [imageNum];
thisJobtitle = jobtitleArray [imageNum];
thisFlag = flagArray [imageNum];
thisContact = contactArray [imageNum];var dataLoader:Loader = new Loader();
dataLoader.load (new URLRequest (portraitArray [imageNum]));
dataLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataLoaded);
function dataLoaded(event:Event):void
{
portraitUILoader.source = tomyline;
flagUILoader.source = thisFlag;
selectedName.text = thisName;
selectedCountry.text = thisCountry;
selectedJobtitle.text = thisJobtitle;
selectedContact.text = thisContact;
Add 1 imageNum and browse the data
If (imageNum<>
{
imageNum ++;
trace (totalImages);
If (imageNum! = totalImages)
{
goNext_btn.addEventListener (MouseEvent.CLICK, nextfn);
} else goNext_btn.removeEventListener (MouseEvent.CLICK, nextfn);
} //closes loop increment
} //close loadMainImage
} //close loadData
function nextfn(e:MouseEvent):void {}
loadData();
}
Tags: Adobe Animate
Similar Questions
-
* Original title: to access Favorites
If I click on Favorites and then scroll through the list of favorites, it does not show the entries in each file but suddenly close showing the list of favorites. . I use Chrome and it happened all of a sudden. It was functional this morning. All the advice to fix this will be greatly appreciated
Have you tried the Chrome forum? https://productforums.google.com/forum/#! forum/chrome
-
Passport system: Add support for scrolling through the physical keyboard
Hi guys,.
as you know peripheral Pasport is the new support feature: scrolling in the list view/Scroll through the physical keyboard. It seems that this function should work automatically, but it is not working at all in my application. It works only partially to control the display of Web pages and only on the pages of the subsites of my web content.
Looks as the root cause of this issue is the list view must focus to handle keyboard events. OK, so the workaround can be call requestFocus() on the list view. It's a job but only until I do not touch the other control or scroll this list via the screen point of view! Or for example my app can show popup by clicking on list view and when this popup will be rejected the focus won't return to the display of the list...So my question is what good way to add support for this feature? Do I really need to play with requestFocus()? Or maybe there's a simple way to always keep the focus on the display of the list?
I really need help.I've added a few features such as
requestFocusForScrolling()
then get the signal of this active tab has changed, you can call this function to get the new focus
or on NavigationPane if returning to onPopTransitionEnded () calling the requestFocus on page function now on top
In my Pages, I always have a few features added like connect(), disconnect() cleanUp() init() and now also at the request of focus. In a few pages, these functions are empty, but I can use them in the generic functions where I only got one Page
----
not easy to touch OS oriented to add a key activated area outside the screen
It always depends on the field with the development: think of an Image when you change the size of gestures touch on keyboard or take a look at sales-charts where you "scroll" in the months of keyboard
Same pages may also have ScrollView and/or one or several ListView - it's do you stunts where is the update for keyboard gestures.
-
Can I do a button change anchor link when you scroll through the site?
I'm doing a scrolling site... and I have navigation buttons on the right, a full menu, but also a '1 topic upward' button and the button "1 heading downwards.
Is it possible that I can have these buttons change anchor link when you scroll through the site.
Example:
I'm at home, then I press "1 heading down" and scrolls to the next topic on the site, but then I can't change the button to create a link to the lower anchor, then the button becomes useless after 1 press.
Is it in any way possible in Muse to change the link?
Hello
You can try to create different buttons on the positions of the page where the scroll will be active with separate button actions. For example, you click on "I am heading down", page scrolls and there is another button set with "Next topic down", click on, it would scroll the page plus and the same on the length of the page.
Button with anchor link scroll to the bottom of the page can not be used for different anchor links, creation of different buttons with anchors is the solution.
Thank you
Sanjit
-
control keyboard to scroll through the window of the observer?
I use the current version of mail.app (9.3) in OS X 10.11.5 (El Capitan).
I would like to be able to do basic operations of reading email with the keyboard controls. There are keyboard shortcuts to create new messages, reply to or delete messages, move up/down in the list of messages in the message list pane, etc. That's great. But for most common task of simply read messages, support for the default is keyboard commands.
In previous versions of Mail.app, I could use the arrow keys to move through the message list window and I couldn't use the previous page and next page controls (up arrow fn and fn-Basel on macbook pro keyboard) to scroll the message up and down view pane. It was also possible to scroll up/down in message window using the space space and shift. The page-up/page-down and SPACEBAR space/shift conform to the General conventions of Mac, including Safari.
In El Capitan, it seems that this feature has been removed. Instead, previous page and next page just cause scroll through the message list window. Space does nothing. A work around of all kinds is to hit the tab to move the keyboard focus in the list of messages display message, followed by commands to scroll, and then either hit tab twice or press shift + tab (but no space or shift-space) to focus back to the list of messages again. It is not practical for an operation that I easily hundreds of times every day.
Anyone has any ideas it is possible to restore the former function? Hacks like hidden messaging preferences settings? ... or a way to use the Resource Editor utility (what is the sort of thing even exist anymore?) to modify the application?
Was it a former function that I have just forgotten or abandoned by Apple? Or was it a bug or an oversight that it was omitted in the new version? Doesn't have Apple deemed incompatible with the new directives of the interface? This feature replaced some other keyboard shortcut that I don't know everything? Y at - it a 3rd party plugin or something that I can use? Any ideas would be appreciated.
Space bar always works for me.
Opt + arrow up / Dn also works.
I don't know which would not interfere with these things. Perhaps a third-party app, but I don't know what.
Have you connected outbound/inbound or restarted?
-
After you have installed the latest version of the software update apple has changed the way you scroll through the pages. I would like to consider to have a box at the top and bottom of the screen that you use for scrolling. Any help would be greatly appreciated.
On Mac, scroll bars may be hidden and are showing them when you scroll down the page, so you can see the current scroll position.
The idea is that a Tablet is used that does not need to be visible and therefore more screen real estate for the navigation area, scroll bars.
You can make scroll bars always appear:
System Preferences > General > Show Scroll Bar > Choose "Always"
-
Original title: scroll of the mouse wheel only adjusts the volume. How to scroll through the pages again?
Using the wireless mouse (Silvercrest MTS2218-m with win 7 x 64) and scroll wheel is no longer made scroll page up and down in any program. Only, it adjusts the volume. How to scroll through the pages again?
Already checked the settings in Control Panel > mouse nothing obvious here to change this annoying feature. And have already uninstalled the driver for the mouse in Device Manager but no change. have also stopped and started several times laptop.
Close to the scroll wheel is a dpi button, which can also be used to pass
between normal mode and media holding for 3 seconds. In media mode
the volume control wheel and does not scroll.
Read the manual... ;-) -
How to create the scroll to the menu icon click event bar
How to create the scroll to the menu icon click event bar
(as the "field of scrolling image")
In my opinion, it is better for you to try something to help implementation of your solution to ask for the code.
For example, create a few BitmapFields with icons that act as buttons. There is source for this sort of thing on the forum if you look at, I think, looking FRO Image button, icon or Bitmap button.
Once you have these buttons work, add these in a HorizontalFieldManager.
Good luck.
-
InDesign CS5 for windows only allow me to scroll through the functions with the mouse wheel
Nice day
InDesign CS5 for Windows only allow me to scroll through the functions with the mouse wheel and for example not allow me to access drop down menus, any help will be much appreciated
https://helpx.Adobe.com/InDesign/KB/InDesign-tools-panels-Don ' t - respond.html
-
The description is in the title: first Pro CC blocks when you scroll through the sequence in the timeline - Audio Waveform will Virgin first.
Just started today, will not stop now blocks after a minute or two, and he always does when I scroll through the timeline of a sequence. First of all, the audio waveform becomes empty.
What is going on?
Date/time: 2014-10-22 12:16:16.078-0400 OS version: Mac OS X 10.9.5 (13F34) Report Version: 11
Anonymous UUID: E1BCDCD7-6284-3012-9151-FF85491060DA
Crashed thread: 0 dispatch queue: com.apple.main - wire
Exception type: EXC_BAD_ACCESS (SIGBUS)
Exception codes: KERN_PROTECTION_FAILURE at 0x000000011d74b000
VM regions near 0x11d74b000:
VM_ALLOCATE 000000011d 748000-000000011d74b000 [12K] rw-/ rwx SM = PRV -> BATTERY CARE [000000011d74b000-000000011d74c000 4 K]-/ rwx SM ZERO battery guard for threading 4 =. Battery 000000011d74c000-000000011d7ce000 [520K] rw-/ rwx SM = COW 4 wire Thread 0 crashed: Dispatch queue: com.apple.main - wire
Hi 5 deadly venoms
This problem is resolved in the 9.0.1 update. Please update the application of a patch.
Thank you
Kevin
-
How to scroll through the entire screen of text
I'm new to Captivate. In other words, I use it for the first time. I am trying to create the first slide in my project. I want a text to scroll on the right screen and completely out of the screen on the left. I was able to make the text fade in and out and have music in the background (at first), but I can't understand how the full scroll from right to left, or if it is possible.
Can someone help me with this and please give step by step instructions? I would be very happy!Hello and welcome to the forums. You don't say what version of Captivate you use, but if you have version 5 or 5.5, the answer is Yes, you can have a blade of legend of text on the screen. You can use a to do. To open the effect controls panel, use the window menu, and then select effects. Select the caption text that you want to have the scroll. I'll demonstrate using version 5. You should see:
Click on the fx to open the menu effects. Select the trajectory, then RightToLeft.
Drag the right end of the effect of RightToLeft to length of parchment. Here I show that I have extended it to the length of the slide, 3 seconds:
Then look at the text of the caption on the slide. If it is enabled, you should see a 1 in his lower right:
The 1-click and you will get starting and ending points of the motioin effect. Drag the start point at the right edge of the blade and the end point at the left edge of the slide.
When the slide plays, the text caption will start on the right edge of the screen and pass through and leave the left edge of the screen in 3 seconds.
I hope this helps.
Mister C.
-
Hello
It is my first time ever poster and if I posted in the wrong place or wrong I apologize.
Just recently, my InDesign (CS6) met a problem scroll through fonts in the drop down menu on the Panel. I always just selected (highlighted) text in the document and then to scroll upwards / downwards in the box the name of the font so that it should scroll each cast. Of course, this would result in being able to get a glimpse of what my selected text would look like in each font that I scrolled. Well now, all of a sudden I can only scroll my document only fonts (which are at the top of my list of fonts). He basically just guard cycling through the list like 5 fonts over and over. He won't go past the last document only melting in the list. If I click on a font not in my paper now and start to scroll from there he still jumps in my fonts only document. Any idea on what could be the cause? Any help would be greatly appreciated.
Thank you
Heather
Try to restore your InDesign preferences:
Garbage, replace, reset or restore the application's preferences
-
Why can't I scroll through the documents in the file of my book?
I'm new to Framemaker. I'm working on book building. I know that once the documents that form part of a file .book I should be able to browse a document in the book of another document. I was not able to do in my .book files. I sent the file .book to my instructor and he can, but I can't. ??? Why is anyone know? I use Framemaker 10 in Windows 7. Thanks in advance!
kkm2164 wrote:
I have tried when the FM files are open. I also tried double-clicking on a file in the book window and in the file that opens, I start scrolling at the end. I understand that initially, Frame asks you to open the next file. But it does not for me. I can only only scroll one file.
I don't have available to test FrameMaker, but IIRC, you will need to scrill down with the arrow keys, don't hang out not through text or with the scroll bar. I'm not sure that keyboard shortcuts such as Parker and letting n p (next page) in sequence Esc works.
HTH
Kind regards
Peter
_______________________
Peter gold
Know-how ProServices
-
Scroll through the functions of this mousepad
Hello
I have a question. My old laptop had the scroll on the mouse pad function. Now, I bought HP TPN-F113 and I try to sroll top and at the bottom of this mouse pad but I can't. Is there a chance this function must be blocked at the moment or he just does not have it?
Thank you very much.
Mariya
Thank you for the additional information.
I think that you can scroll with two fingers lightly on the touchpad. In the specifications, so-called two fingers to scroll.
Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.
-
How to set the text to reveal and to scroll through the center of the screen?
I need text "appear from nowhere" in the center of the screen, revealing a letter at a time as it scrolls by one-way or the other. NO scrolling on the screen. I know how key framework to make the scroll, but do not know how to set up a mask (I guess) to hide the text until it moves beyond the Center. Please do not answer simply to use a mask, I get it! I need to know how to implement that? I can't find anywhere a tutorial that explains this.
There are many ways to do it, one way:
Set up and keyframe your type, and when you get to behave the way you want to, select the type of clip on the timeline and go to the menu Clip > nest.
Click OK.
Now, click the nested in the Assembly and in the effect controls panel, spin open opacity control and define a mask (it will probably interverti switched on) to hide the part of movable type you don't want.
If you go back to the original item to make adjustments, double-click on the nested element.
MtD
Maybe you are looking for
-
P30 stops when you run the virus scan and other applications
Hello I have a Satellite P30-110. Recently, he began to stop without warning and power off. When I start upward once again it loads normally without a scandisk. First of all, everything started when I was using FAST via a crossover cable. It would st
-
Hello I bought the new Imac 2015 retina (4 GB RAM) last month. I was surfing the internet when suddenly a problem as it appeared: https://www.Flickr.com/GP/_ego_/8R0TPx I don't know why, but now my iMac is much more slow and unstable. A way to fix it
-
The first Installation fails after first Boot of the Satellite L750
Hello. I turned on my brand-new Satellite L750 - 04K 010 for the first time tonight (bought new) and start going through the initial setup process for Windows 7 Home Premium. The installation must "Installing devices" and then hung up without activit
-
Hi, I have a labview GUI that receives data serially through VISA and basically chops to the strings and realize games until I have values that I'm looking for. I have then convert Ascii string in decimal and feed the new values to a waveform. Howeve
-
does not open the .iso files.
I am running Vista Business on my laptop. So, why can not open extension .iso files?