ActionScript 1/2 :: Go To Specific Frame If XML Search Has Tag
Dec 14, 2009
I need to do 2 things: I have a rotator piece I'm working on where I need to be able to go to a specific named frame (promotions) if the XML I search for [URL] has the tag <promo>. I also need to be able to have a button on that frame link to a URL that is pulled from a tag in the same XML, called <promoURL>.
View 3 Replies
Similar Posts:
Oct 8, 2011
I want to be able to do site specific searches for a online group on Black Planet but they have so many restrictions on coding my only option is to use Flash. I tried some of the search box stuff on this site but they all seem to just do a web search, not site specific searches. I would like to have something that would search the group threads only. The URL to group is here if it helps: [URL]
View 1 Replies
Sep 11, 2011
I'm having some problems getting a flash application (in AS3) to search for a specific element value inside a xml. I have the following xml file.
<clientlist><pessoa><id>0140</id>
<nome>Maria Manuela</nome>
<email>mariamanuela@gmail.com</email>
<contacto>969876543</contacto>
[Code] .....
I have a "search" field where, supposedly, I would type a name and would get an array of "pessoa"s, but I am having some problems making the loop happen. So, imagine I would search for "Maria", I wanted to get a:
trace(PessoaArray[0]) =
<id>0140</id>
<nome>Maria Manuela</nome>
<email>mariamanuela@gmail.com</email>
<contacto>967060255</contacto>
[Code] .....
View 1 Replies
May 5, 2010
I have a table in the database:
name Opinion
Tim Tim has an opinion
John other random text
Dan Dan's random text
Al Al says something else
I call this data and get it back in
getRecords.lastResult
To access John's opinion, I could use:
getRecords.lastResult[1].opinion
But that's only because I know that John is the second record (record 1), but this may change. So the right way is to search through the results to first find the record index for John, then access his opinion.
I need some sort of a loop? Is there an easier way to search for John directly without a loop?
View 1 Replies
Jul 20, 2010
I don't know how to resolve this very simple action.I've made a program and at this point I've a list on the stage.I want to see if the selected list item has particular value.
Like:
myList.selectedItem.label
(this is current selected item of the list)
here, I want as3 to check if that label has " , " (comma) or not.
Like:
if (myList.selectedItem.label contains == ","){
trace("comma found");
View 4 Replies
Aug 20, 2010
[URL]I client want some thing like this. User will search a word and application searches that word in a opened page and highlight it. This is a Flash application and uses php at back-end to generate XML.
View 2 Replies
Jul 30, 2011
Well, I am working on motion detection in AS3.
I already understand how it works, now in this swf what happen is there are filters added to the video(output) to make the motions color white. I will put the files here.
The swf is inside the bin folder. (this is made by soulwire) Here is his site/blog
[URL]
I am trying to mod it to improve it. Well you can study code if you want to
But what I want to do with getColorBoundsRect is:
- Having only one source to detect the color "WHITE". But having multiple "getColorBoundsRect" detecting white on that ONE source but on DIFFERENT regions.
Lets say this M1(colorboundsrect) will only detect the first part of the source) and M2 will be detecting on another region of SAME source.
1 source, but multiple getColorBoundsRect on different regions of that 1 source
View 0 Replies
Mar 31, 2006
i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?
View 2 Replies
Sep 15, 2010
how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.
View 0 Replies
Apr 12, 2011
my objective is:
1.Read in a text file. e.g containing text like this, teacher/student/1/sn/2/3/4/5/9/f/tn/02/
2.pass it to a string.
3.then beable to extract different parts of the string and place them in different arrays.
The bit I dont know how to do is the extracting specific parts of the string? Is it possible to search for / and to treat what comes after it as a specific peice of information until the next / is read? Or perhaps there is a more efficient approach?
View 3 Replies
May 24, 2010
I have the following XML file structure:
Code:
<VideoData>
<CuePoints>[code]....
And I am trying to create a function which will search the cuepoints for a specific time, I'd also like the function to be re-useable, so I could just feed it a xml tree path and a search term then it would return a reference to the matching node.So far I have only managed to return what is in the node:
Code:
public class Search
{
public static var returnData:Array = new Array();[code].....
View 2 Replies
Dec 3, 2009
I have been doing really well figuring everything out up until now.[code]How it stands, what is this link pointing to? Can I make it target a specific frame in a specific movie clip?And if someone would be so kind and explain what this is saying in 3rd grader terms.
View 3 Replies
Sep 21, 2009
Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:
Code:
//About Us Button
function test2(evt:Event):void{
[code].....
View 1 Replies
Sep 1, 2010
I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) { _root.gotoAndPlay("cont"); _root.smallbutton.gotoAndPlay(5);
View 7 Replies
Aug 6, 2009
if its possible, via AS3, to create a frame label in a movieclip on a specific frame.
Obviously I can do it by manually by setting up labels on the timeline within the target movieclip, but I would rather use an array so I can loop through it, creating a label name on a the specific frame each time?
so for example I would end up with:
myLabelOne on frame 10
myLabelTwo on frame 25
myLabelThree on frame 115
etc
View 3 Replies
Nov 1, 2004
I am loading a swf into an empty MC with this code:
on(release) {
loadMovie("movie.swf", _root.container);
}
what I want to do is also go to a specific frame or frame label in that loaded movie. I thought I could do it by adding something like this:
_root.containter.gotoAndPlay("frame");
View 9 Replies
Jun 3, 2011
Is there a way to get the frame label on a specific frame, without it being the current frame?
I've tried accessing it through:
this.scenes[0].labels but it doesn't allow me to check a specific point on the timeline.
View 2 Replies
Sep 28, 2003
Is it possible to create a search function and show the results by goin to that particular frame within a flash file ?
The data is not dynamic....and it is not server/web based....
View 11 Replies
Dec 3, 2004
I've just tried senocular's xml tutorials. [URL] The search query seems case sensitive. How to make it accept upper and lower case characters. Actually i'm trying to make a search by myself by using the same code.
View 6 Replies
Sep 6, 2010
I am trying to create a search field in AS3 to search keywords in a dynamic text field of the same flash movie, where the text is loaded from an XML file.
View 1 Replies
Sep 26, 2009
I have a button that uses the Load Graphic Behavior for bringing a SWF, but i want the SWF to come in a specific frame instead than starting at frame 1. For examplel; i click the button, the behavior of Load Graphic brings my SWF to stage but i want to start at frame 50, not at frame 1. How can i do that?After i use the Load Graphic Behavior i try using a gotostop frame, but doesn't work.
View 13 Replies
Jun 22, 2009
I have made a menu in flash . I have a frameset on my page . I want the button to open the link in a specific frame (my frames are bannerframe , leftmenu , rightmenu , bodyframe) . The menu is in the "leftmenu" frame. But whenever i use this :
ActionScript Code:
getURL ("xyz.html", "bodyframe")
the page opens in a new window .. ( i have tried in all browsers chrome firefox IE etc. ) ....
View 0 Replies
Jun 22, 2009
I have made a menu in flash . I have a frameset on my page . I want the button to open the link in a specific frame (my frames are bannerframe , leftmenu , rightmenu , bodyframe) . The menu is in the "leftmenu" frame. But whenever i use this :
Code:
getURL ("xyz.html", "bodyframe")
the page opens in a new window .. ( i have tried in all browsers chrome firefox IE etc. ) ....
View 5 Replies
Apr 22, 2009
I want to jump to a specific frame in the swf I load using the Loader class. As it is now it goes directly to frame1 in the file, which I dont really want it to do. I'm using Flash CS4
View 2 Replies
Jun 3, 2009
im trying to code a btn to got to a specific frame in another mc
my code is
stop();
gfhtml.addEventListener(MouseEvent.CLICK,gfclick);
[code].....
View 4 Replies
Nov 8, 2009
I have a dynamic text box. I need to set up a hyperlink in my text file that will take the user to a specific frame on a page. I know how to set the hyperlink up to go to a specific page :
Code:
<a href="http://www.lasamigasseatpleasant.org/index.html">
Visit Our Site</a>
[code].....
View 1 Replies
Nov 9, 2009
I made a flash website and had one page load an external swf.
In this external .swf are thumbnails that link to another page (frame) all within the external swf. when you go to these pages there is a 'back' link which links back to the main external swf frame.
My problem is this: let's say i click a thumbnail in the external swf and it goes to the respective thumbnail page, and then i dont click the 'back' button but instead click another link of the main flash website - then i go back to the page that loads the external swf and instead of going to the main frame of the external swf it stays at the page i was previously on.
How do I get the link on the main flash website which loads the external .swf to always load on the first frame of the external swf?[code]...
View 2 Replies
Jul 26, 2010
I am very new to Flash and I am making a little 30 second clip just to fool around with Flash.Now at the end of my film I just want everything to stop (if possible, once a specific frame is hit move to another frame.)I've heard that you could use ActionScript to perform this but I really have no clue
View 5 Replies
May 13, 2009
I have the loading audio file at frame one. However, I want to play the audio only at specific frame or frame lable. How do I do that? Below are my codes:
[Code]...
The above plays the sound as soon as the .swf file is loaded. But I want to play at certain point in time, say frame number or frame lable.
View 17 Replies
Sep 13, 2009
I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.
View 2 Replies