I have android 3.2 tablet application that displaying flash inside webView. now I want to catch event when pressing some inner item inside (it does't direct to another url..) is it possible??
I have a flash website that uses an XML player to play the artist's songs. The player works great. Now, I need a specific button in the flash document to call and play a specific song title from the XML list. The button I tried and that is showed in the flash code has an instance name of "santaBaby", calling a function I named "sampleSong1"Here's my XML playlist:
I am having an array of movieclips and when my circle(controlled with the keyboard) hitTests true with one of the movieclips inside that array i want to remove that movieclip from the array so when i hitTest it again it returns false (I hitTest using a "for in" with that array).How do i remove a specific item from within an array?
I have many items on the stage and when clicking on one, I want other specific items to react accordingly.
Here's the relevant code: public var currentClick; public var activeCurrent:Boolean = false; public function init(){ addEventListener(MouseEvent.CLICK, reportClick); } function reportClick(event:MouseEvent):void { [Code] .....
I want to click on "item1_mc", have the specified objects move away and then when clicking on item1_mc again I want to have them move back to their original positions. When clicking on "item1_mc" it provides both trace statements and performs the second if statement, even though "activeCurrent" is set to false. Further clicking only creates the trace statements and nothing else.
I have a textBox and I am using it as a mail address input field where the user can type in several addresses, a bit same as in hotmail. Each address is rendered into a clickable button. Thus upon double-clicking on a specific address I want the item to be editable. After having edited the address when the user taps enter, the item is added to the list of mail adds.I am adding it using the code below:
flowBox.addChildAt( myItem, myindex);
However addChildAt seems to add the item as the last item in the list. But I want it to add the item the position where it was originally. Say the item was at position 2 in the mail list, after editing adn tapping enter, it should add at position 2 itself and not at the end of the list.
I have a textBox and I am using it as a mail address input field where the user can type in several addresses, a bit same as in hotmail. Each address is rendered into a clickable button. Thus upon double-clicking on a specific address I want the item to be editable. After having edited the address when the user taps enter, the item is added to the list of mail adds.I am adding it using the code below:flowBox.addChildAt( myItem, myindex);However addChildAt seems to add the item as the last item in the list. But I want it to add the item the position where it was originally. Say the item was at position 2 in the mail list, after editing adn tapping enter,
I have an unordered ever-changing array that looks something like this:
12,23,1,4,11
I just want to basically tell the code to remove a specific item, let's say "23". But since the array is constantly changing length, I can't use splice.I also can't have any gaps, such as "12,,1,4,11". It must return "12,1,4,11".And on a related note, can I then check if this array has the same content of numbers as another array (and do I have to put them both in numeric order before it can perform the check, or doesn't it matter that they're not in the same order, as long as they have the same contents)?
I have the problem with creating multiply functions. I want to create onRelease function for every item in array that will navigate to specific URL from xml.Here is the code:
for(var i=0;i<numOfItems;i++) { var t = home.attachMovie("item","item"+i,i+1);[code]....
The problem is that the trace for url will work if I put nodes[0] for example instead of [i].
I have purchased a menu (AS3 + XML)...very nice, and I have simpleviewer v 2 ...also very nice - However - I have absolutely no idea how to get the xml menu buttons to call on the function that loads the relevant simpleviewer gallery...not very nice
I have spent the weekend going through lots of menus with XML + AS3 but they all seem to fall short of explaining how you get the final xml buttons to interact with any actionscript within your flash movie. This makes me think I am missing something very obvious and if so a polite nudge in the right direction would do just fine. In the mean time this is what I have been doing,
The thought pattern I have at the moment is that I can call a function (that is written on the first frame on the main flash movie) from a button in the xml file. Is this true and if so how?I have been trying to search for terms such as 'call function from xml' etc but have not found any relevant links Based on the two code blocks below I tried this within the xml but no luck
The function/s I want to call from the flash movie is this
ActionScript Code: function loadGallery1(e:Event){ loadGallery("gallery_1.xml"); }
[code]....
I have all the relevant as files for the menu if I need to code them, just really need to know what I should be looking for. As it is a purchased download i am not exactly sure if there is any restrictions on sharing code but it is fairly useless within flash if I cannot get it to work in the first place!
I have purchased a menu (AS3 + XML)...very nice, and I have simpleviewer v 2 ...also very nice - However - I have absolutely no idea how to get the xml menu buttons to call on the function that loads the relevant simpleviewer gallery...not very nice
I have spent the weekend going through lots of menus with XML + AS3 but they all seem to fall short of explaining how you get the final xml buttons to interact with any actionscript within your flash movie. This makes me think I am missing something very obvious and if so a polite nudge in the right direction would do just fine. In the mean time this is what I have been doing,
The thought pattern I have at the moment is that I can call a function (that is written on the first frame on the main flash movie) from a button in the xml file. Is this true and if so how?
I have been trying to search for terms such as 'call function from xml' etc but have not found any relevant links
Based on the two code blocks below I tried this within the xml but no luck
The function/s I want to call from the flash movie is this
Code: function loadGallery1(e:Event){ loadGallery("gallery_1.xml"); }
[Code].....
I have all the relevant as files for the menu if I need to code them, just really need to know what I should be looking for. As it is a purchased download i am not exactly sure if there is any restrictions on sharing code but it is fairly useless within flash if I cannot get it to work in the first place!
I am loaded images into a container that is being displayed on a map. I've created a string of my images names and am looping a loader to load each image and add them to the container.
var overlays=["compsmall.png","compsmall3.png","compsmall3.png","compsmall4.png"] var overlay_container:MovieClip= new MovieClip(); function calloverlays():void
[Code]....
Once all of my images are loaded into the container overaly_container how can I call on a specific child of the container? For example how can I call on compsmall2.png once its been loaded into overlay_container?
I place these images onto a map by placing the whole container at the correct location. I then turn layers on/off by adding and removing the children within the container. This is why I'd like to specify a specific object in the parent.
I'm having a problem trying to call an specific label or frame in a secondary MC.
-There is a main time line (120 frames) with an Intro animation stop in frame 103.
-There is 2 buttons in frame 103 (b1,b2). On release this buttons play 104 and stop in the last frame of the main time line (120).
-In the frame 120 these 2 buttons fade and an MC called navmenu and an empty mc (to load external flash) appear
-MC navmenu is the main menu with 6 frames, one for each button.
I'm trying that when I click on b1, it play 104 go to the end of the main time line, and call frame 3 on navmenu MC, plus load movie on empty MC.[code]...
i thought of drawing the interface using mxml markup. When the user clicks on a button it should call a specific method in a .as file. How can i do that in mxml ?
I calling a function using setInterval()... however, it behaves differently in IE7 and Firefox. It is working fine in Firefox but not in IE7.Can I use getTimer() to call a specific function in every 3 seconds...?
I'm trying to make a generic button to call an specific frame but when I'll try it with trace it works perfect... when I make a goto code on it it messes up my entire count....here is the code I'm using...does anyone know whats happening? how can I fix this? here is my code
How would I do this in AS3? I want to call a function and run it with specific properties depending on which button is clicked.So how do the "_this" statement work in as3? in as2 I would write something like this and "this" would stand for the instance name:
I have a situation where I might be getting one or both of a pair of characters and I want to match either.
For example: str = 'cddd a dfsdf b sdfg ab uyeroi'
I want to match any "a" or "b" or "ab". If the "ab" comes together I want to catch it as a single match (not as two matches "a" "b"). If I get "ab" it will always be in that order ("a" will always precede "b")
What I have is: /[ab]|ab/
But I'm not sure if the ab is going to be a stronger match term than the [ab].
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.
Below is the overriden on complete function for a preloader in Flex.
private function initComplete(e:Event):void { //dispatchEvent(new Event(Event.COMPLETE)); cp.status.text="Configuring... Please Wait"; }
What I want to do is when the app has finsihed loading I want to change the preloaders text to "configuring".Then I want to go and do a bunch of setup stuff in my code.Once I've done all the setup I wanted how can I get the Preloader to dispatch its Event.complete from else where in my code?I tried Application.application.preloader but it comes up null.So I guess my question really is how to access a preloader from anywhere in my application. Would a better approach be to have all setup classes as members of my preloader class?
I need to get a javascript var in my Flash application. I like to be able to just set a variable in the javascript (client constraints) rather than define a function.
Can this be done? I am trying to use the ExternalInterface.call()
What I want to do is, when I select an item in the datagrid, the selected item of the dropdown should be the correct one (the one which has the field idCompSuperioara equal to the third element in the selected datagrid row).