generate a pull down menu in the action script 1
Hello people,
I developed un menu and it loads un XML, now I'm trying to convert it to work with PHP and mysql.
But I met a problem le Flash will not load data that comes from MySQL db.
It comes to my menu AS code:
gerar_menu = function (container, name, x, y, depth, node_xml) {}
declarar variaves
var corrent_node;
var corrent_item;
var corrent_menu = container.createEmptyMovieClip (name, depth);
for (var i = 0; i < node_xml.childNodes.length; i ++) {}
UM movie clip para cada menu of the menu item
attacheMovie (add movieclip o da livraria, novo nome dado pelo user, ++ increase);
corrent_item = corrent_menu.attachMovie ("menuit", "menu" + i + "_mc", i);
corrent_item._x = x + i * corrent_item._width;
corrent_item._y = y;
corrent_item.trackAsMenu = true;
Propriedades provenientes XML
corrent_node = node_xml.childNodes [i];
corrent_item.action = corrent_node.attributes.action;
corrent_item.variables = corrent_node.attributes.variables;
corrent_item. Name.Text = corrent_node.attributes.name;
trace (corrent_node);
If (node_xml.childNodes [i] .nodeName == 'menu') {}
submenu o abre
corrent_item.node_xml = corrent_node;
corrent_item.onRollOver = corrent_item.onDragOver = function() {}
/ * counter aqui posicoes wave queres Québec as posesionarte * /.
var px = this ._x;
var py = this ._y + this ._height + 2;
submenu of Gerar
gerar_menu (corrent_menu, "submenu_mc", px, py, 1000, this.node_xml);
var cor = new Color (this.background);
cor.setRGB (0 x 767676);
trace ("ROOTING");
};
} else {}
Caso não exista submenu esconde a seta
corrent_item.onRollOver = corrent_item.onDragOver = function() {}
corrent_menu.submenu_mc.removeMovieClip ();
var cor = new Color (this.background);
cor.setRGB (0 x 767676);
};
}
FIM else
corrent_item.onRollOut = corrent_item.onDragOut = function() {}
var cor = new Color (this.background);
cor.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});)
}
corrent_item.submenu_mc.onRollOut = corrent_item.submenu_mc.onDragOut = function() {}
CloseSubmenus();
}
any topic em aberto or an executar uma accao
corrent_item.onRelease = function() {}
Actions [This.action] (this.variables);
CloseSubmenus();
};
} //fim loop;
};
Criar um menu com are determinnada
criar_menu = function (x, y, depth, menu_xml) {}
gerar_menu (this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
can unicaexclusivamente os submenus caso visiveis abertos
a continuum of mainmenu_mc inatncia
mainmenu_mc. OnMouseUp = function() {}
If (mainmenu_mc.submenu_mc & &! mainmenu_mc.hitTest (_root._xmouse, _root._ymouse, true)) {}
CloseSubmenus();
}
};
};
CloseSubmenus = function() {}
mainmenu_mc.submenu_mc.removeMovieClip ();
};
access methods determinao estas para estes objectos
Actions = Object();
Actions.gotoURL = {function (urlVar)}
getURL (urlVar, "_blank");
};
Actions.message = {function (msg)}
message_txt. Text = msg;
};
Actions.newMenu = {function (menuxml)}
menu_xml. Load (menuxml);
};
Carrega o e XML, cria o MainMenu para interpretar o
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml. OnLoad = {function (ok)}
Caso seja carregado com sucesso carrega o menu xml o na are
If {(ok)
criar_menu (160, 50, 0, this);
message_txt.text = "message box";
} else {}
message_txt. Text = "error: XML loaded properly."
}
};
Carrega primeiro o menu.xml em than lang determina a linguagem that will carregar
menu_xml. Load ("menu" + _root.lang + ".php");
And this is my php code:
<? PHP
$link = mysql_connect("localhost","brigansol","@brigansol@");
@mysql_select_db ("brigansol");
echo"<? XML version=\"1.0\" encoding =------'ISO-8859-1\ "? "> \n";
$query = "" SELECT * FROM tbl_categorias ORDER BY categoria_pt ASC ";"
$resultado = mysql_query ($query);
While ($row = {mysql_fetch_array ($resultado))}
echo"< name of the menu =" ". $row ["categoria_pt"]. » " > \n » ;
$query1 = "SELECT tbl_categorias.id_categorias, tbl_categorias.categoria_pt, tbl_subcategorias.id_subcategorias, tbl_subcategorias.categorias_id, tbl_subcategorias.subcategoria_pt, tbl_subcategorias.referencia FROM tbl_categorias WHERE tbl_categorias.id_categorias = tbl_subcategorias.categorias_id AND tbl_subcategorias.categorias_id = tbl_subcategorias JOIN". "" $row ["id_categorias"]. "' ORDER BY tbl_subcategorias.subcategoria_pt ASC";
$resultado1 = mysql_query ($query1);
While ($row1 = {mysql_fetch_array ($resultado1))}
echo"< element name ='". " "$row1 ['subcategoria_pt']." ' action = "variables =" > < / item > \n ";
}
"echo" < / menu > \n ";
}
mysql_close ($Link);
? >
Use our instead of the onLoad method and discover the return of your php to see if you have an error begin returned.
Tags: Adobe Animate
Similar Questions
-
Pull down menu in the toolbar is empty
I'm trying to install adobe cloud. I was able to get installed acrobat. Now when I try to install another application, by clicking on the icon in the menu bar, it is empty. I use Yosemite on a mac.
Hi sdstobbe,
Try to connect and connecting back to CC application desktop and then check the same. Connect, disconnect you and | Creative desktop application Cloud
You can also restart the computer and try again.
~ David
-
Pull Down Menu with a level 3 Image is not visible to the APEX 4
Hi all
I have a request from some lists of type Pull Down Menu with an Image. These menus have a maximum of 3 levels. APEX 3.1 and 3.2, they work very well, all levels are visible at run time.
Now the application is exported to the APEX 4 and only 1 ^ st ^ and 2 ^ nd ^ level of the menu items are visible at run time. After the 2 ^ nd ^ level elements that have child elements, a triangle is visible, but the sublist became visible in the overview. The theme used is blue.
Anyone who is familiar with this problem and do you know how to fix this?
Thank you
MirTry to add S before #LIST_ITEM_ID # in the list template (properties entered sublist).
In replace 'Current model Sub with Sub list list items' and 'model sublist associated with Sub items list.
dhtml_MenuOpen(This,'#LIST_ITEM_ID#',true,'Left') ".
with this
dhtml_MenuOpen(This,'S#LIST_ITEM_ID#',true,'Left') ".Hope that helps.
Best regards
Marko -
No image in the list - Pull Down Menu with Image
Hello
I'm trying to add an image to a list of type "Pull Down Menu with Image (Custom 1)", but the image will not be displayed. I use the model 2 - blue and fan.
I'm doing something wrong or is this a known bug? The image I tried to add is "menu/trafficlight_64.gif" (I used the image browser to add to that).
I made an example on apex.com:
http://Apex.Oracle.com/pls/OTN/f?p=61914:1:0 (this is APEX 3.2 but APEX 3.1.2 has the same problem).
Any idea?
MatthiasMatthias
In this case, try the following as a source:
And that image: /htmldb/builder/run_flow_ctrl.gif
Which should be exactly the same as the request of the manufacturer.
See you soon
Ben
-
The back button often responds with a drop down menu of the story rather than simply go back to the previous page. There used to be a small arrow for that, why did you do that?
When I left click on the back instead of the browser navigation back button, I go almost every time to get the list of previous browsing history or it will just doing nothing until I click on the new button. The history of combination of button "return" rather than a separate between the historical click of the buttons box is the problem. Combined with my arthritic fingers of aging that is. If I was as fast as I used to be I guess it wouldn't be a problem. I liked the separate history area. This action combination navigation / buttons story scenario is problematic. I'm fairly certain that if I find it quite disturbing to bring to your attention that there are others (old beards) in the same boat I am.
Thanks for listening
DUse one of the following methods to open the tab history list:
- Right-click on the back or next button
- Press and hold the left button of the mouse on the active back or forward button until the list opens
You can watch this extension:
- Backward forward history Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/
-
No Image - Pull Down Menu list with Image
Hello.
I use Pull Down Menu list with Image (measure 1). but when I run the app I can't see any image. Here is the link to my app
[http://apex.oracle.com/pls/otn/f?p=49167:1 | http://apex.oracle.com/pls/otn/f?p=49167:1]
SagarHello Sam,.
If you change the model from the list "Drop-down Menu with image" images appear.
Greetings,
Roelhttp://roelhartman.blogspot.com/
-
using Firefox 11.0 on Windows 7 prof 64 bit, when trying to 'bookmark this page' in the bookmarks drop-down menu at the top of the browser bookmark pop-up window. When I move my mouse over the bookmark pop-up window to change the directory where you will store the bookmark, it disappears before I can do something? If I move my mouse near the yellow star on the right side of the window to the url, the menu bookmark can appear again, but it disappears when I move my mouse over it?
Hello!
We have seen similar problems in the past. Read this 2-wire and let me know if they help you:
https://support.Mozilla.org/en-us/questions/899098
https://support.Mozilla.org/en-us/questions/850203Good luck
Ibai -
How do you define an action item to appear in the menu of the action at the bottom? As the point to delete shown here:
https://developer.BlackBerry.com/Cascades/documentation/Getting_started/porting/mapping.html
You would most likely want to start with https://developer.blackberry.com/cascades/reference/bb__cascades__deleteactionitem.html and discover the parent class.
The text suggests that the title and icon appear in the standard only if you do not specify your own when you add the element, so there is hope, you can fake it.
-
I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global not supposed to KMs the listed here?
Hello
You have imported the whole CKM in modules of knowledge?
If not, import ckm and do it.
Kind regards
Gangareddy.k
-
VMware Converter Standalone 5.5 does not display a Drop Down Menu for the Type of Destination
Hi people,
I try to use VMware Converter Standalone 5.5 for use with VMware Player and am not able to select the Type of Destination of my choice (I like to choose "VMware workstation" or another VMware virtual machine in the drop-down menu "Select the destination type"). Please see the image below where the combo box is not there at all. Thanks for your help. Hai
This isn't a bug, it is a limitation of the converter. It is stated in the documentation. Converter considers that any machine under tension like physics. It cannot convert powered on Linux machines to hosted (i.e. Workstation/Fusion) destinations.
A solution would be to convert it to ESX and then convert the (from) power off the VM power to the workstation.
HTH
Plamen
-
no drop-down menu at the top. all gray
I use CS6 on a Windows 7 system and all recently the drop-down menu at the top has disappeared and is gray. If I right click somewhere on the screen I don't see some of the drop-down list depending on where I right click.
I just restarted with Ctrl/shift on hoping that would bring the upper menu back, but he did not.
How can I fix it?
Jim... I tried, but it does not solve. I just saved, rebooted and voila!
I've never had this happen so little panicked...
Thank you!
-
What is the Action Script (using AS2) code when you loop once a scene and then re-read and slaughter on a certain slice?
Basically, you need keep a count and use it as your stop control. In the first image, it takes something to assign the value, but you do not want to assign an initial value, so you could use...
var County;
if(Count == undefined) {}
Count = 0;
} else {}
Count ++;
}Then in the frame where you want to stop after that a loop is completed you can have...
if(Count == 1) {}
Stop();
}
-
InDesign Pull Down Menu question
Running Mac OS 10.11.4
InDesign 11.3.0.34
Model identifier: M acPro6, 1
Processor name: 6-Core Intel Xeon E5
Processor speed: 3.5 GHz
I'm runnning Mac Thunderbolt two monitors. Main window of my work is in the monitor on the left. All my menu of the tool are arranged on the right monitor, so everything is easily accessible. When I click on a pull down to the thickness of line, type of gradient or the drop down menu appears in the appropriate location where my mouse is clicking on the effects, except that it is on the left screen. Any help would be greatly appreciated.
Thank you
I finally found a way to solve this problem. The Mission Control preferences panel will turn off "screens have a separate space. After restarting the machine with this change in place the drop-down menu stay in the menu on the correct monitor.
-
recently and without other changes that I'm aware of my thunderbird pull down menus do not fill with text, or do sporadically after the period of 15 to 30 seconds.
Try this.
https://support.Mozilla.org/en-us/questions/1012145I'm guessing so please let me know how it goes.
-
without pulling upwards menu in the Quick Launch bar
Please check this video first: Yfrog video: yfrog.com/62file24752z - posted by balmydrizzle
I have to click on "My computer" (i.e. actually activate WindowsExplorer once) otherwise pull the top of menu in the Quick Launch bar never appear. How can I solve this problem.
(OS: Vista Business)On Friday, 28 January 2011, 01:27:26 + 0000, scottchu wrote:
I have install & uninstall some tools downloaded from the internet to test.
Exactly what tools did you use?
I also sometimes throw you "registry easy. Is it the cause?
Ugh! Registry cleaning programs are all snake oil. Cleaning of the
registration is not necessary and is dangerous. Let alone register and
do not use any registry cleaner. Despite what many people think, and
What software record cleaning suppliers are trying to convince you,
have unused registry entries is not really make you hurt.
The risk of a serious problem caused by a registry cleaner by mistake
delete an entry you need is much greater than any potential benefit
It can have.
Read http://www.edbott.com/weblog/archives/000643.htmland http://aumha.net/viewtopic.php?t=28099
Let me stress that neither me nor anyone else who warns the
use of registry cleaners never said that they always cause
problems. If they have always caused problems, they would disappear from
the market almost immediately. Many people have used a registry
cleaner and never had a problem with it.The problem with a registry cleaner is that it carries with it
the risk of a significant problem. And since there is no
benefits of using a registry cleaner, running that risk is a very bad
good deal.Ken Blake, Microsoft MVP
Maybe you are looking for
-
Why I can't run iTunes as a disc external HARD...?
Hello I copied the iTunes library from my laptop computer based on Windows to a HARD drive. Since my Macbook Air that I bought just only 128 GB of flash drive, I don't want to copy the iTunes in the Macbook Air. Then, I pressed down option when I lau
-
The quality of the text on Web sites is pretty poor thin type and definition blurred, but images are good. The quality is much worse than IE8 on the same computer.
-
Time Machine is constantly preparing for backup.
I use my iOmega external hard drive to back up my Mac Pro for the past 5 years. Now, all of a sudden, he is constantly preparing for backup. Any suggestion of back me to normal will be appreciated.
-
HP Envy 5540: Cannot print after canceling the print job
I cancelled a print job and now my printer does not print, and it has "!" next to the selection in the print dialog box. I turned the printer on and rebooted my Mac, but it still does not print.
-
My adapter is overheating. is there a way to fix the problem.