Problem with URLLoader in AS3
Hello All,
I have asked on this fourms before about how to load data from asp.net and I have some suggestions about using URLLoader to load my data with a nice tutorial on it
I have used it but the problem now that when I change the data in asp.net part it suppose to load it when i run the flash file or refresh the page that content my swf file , but that is not occured
what happen that the flash seems to chash the data and every time I run it return the same data , and when I close the flash progrem and re open it again it retrive the new data
so if any one know how to solve this problem I will be thankful
Thanks in Advance
append something that changes when you load your asp file:
yoururlloader.load(new URLRequest("youraspfile.asp?nocache="+Math.random().toString()));
Similar Messages
-
Flash++ problem with URLLoader::load
Hi
I am in the process of making a curl replacement for the flascc version of our game, and i was looking at URLLoader as the easiest option. However the application freeze when i call the load function.
#include <Flash++.h>
using namespace AS3::ui;
static var URLLoaderComplete(void *arg, var as3Args)
printf("URLLoaderComplete");
return internal::_undefined;
int main()
flash::net::URLLoader loader = flash::net::URLLoader::_new();
loader->addEventListener(flash::events::Event::COMPLETE, Function::_new(URLLoaderComplete, NULL));
flash::net::URLRequest req = flash::net::URLRequest::_new("http://projectconfig.funcom.com/ProjectsConfiguration/ProjectsConfiguration");
printf("preload\n");
loader->load(req);
printf("postload\n");
sleep(10000);
AS3_GoAsync();
The sleep() and AS3_GoAsync() was added to verify that main did not bail out too quickly (the actual test has other code there to prevent main from exiting but i removed it for this test)
When i start it with the standalone player i see the "preload" print but it never reaches the "postload".
We use the flascc/sdk/usr/share/Console.as with some modifications related to IO initialization.
The Console.as does the CModule.startBackground().
Any input on what I'm doing wrong?Just for future reference if anyone else hits this issue. The problem seems to come from the startBackground, and was resolved when i used startAsync() in the Console.as and do a AS3_GoAsync() in main().
My final test code ended up like this (I know its leaking memory, and i dont care since it was just for test/proof of concept )
#include <stdio.h>
#include <Flash++.h>
using namespace AS3::ui;
static var URLLoaderComplete(void *arg, var as3Args)
try
flash::net::URLLoader loader = *(flash::net::URLLoader*)arg;
AS3::ui::String format = loader->dataFormat;
if(format == flash::net::URLLoaderDataFormat::TEXT)
AS3::ui::String data = AS3::ui::String(loader->data);
char* dataPtr = AS3::ui::internal::utf8_toString(data);
printf("data:\n%s\n", dataPtr);
else if(format == flash::net::URLLoaderDataFormat::BINARY)
flash::utils::ByteArray data = flash::utils::ByteArray(loader->data);
int dataLen = loader->bytesTotal;
char* dataPtr = new char[dataLen];
for(int i=0;i<dataLen;++i) dataPtr[i] = data->readByte();
//dataPtr now contains the binary data fetched
catch (var e)
std::string err = AS3::sz2stringAndFree(internal::utf8_toString(e));
printf("Exception %s\n", err.c_str());
return internal::_undefined;
int main()
flash::net::URLLoader* loader = new flash::net::URLLoader(flash::net::URLLoader::_new());
(*loader)->dataFormat = flash::net::URLLoaderDataFormat::BINARY;
(*loader)->addEventListener(flash::events::Event::COMPLETE, Function::_new(URLLoaderComplete, loader));
flash::net::URLRequest req = flash::net::URLRequest::_new("http://mysite.com/binary");
try
(*loader)->load(req);
catch (var e)
std::string err = AS3::sz2stringAndFree(internal::utf8_toString(e));
printf("Exception %s\n", err.c_str());
AS3_GoAsync(); -
Major Problems with _self in AS3
Okay, so I'm pretty much a self-taught Flash newb, so please bear with me if this question has an obvious answer. I've searched different fixes, and none of them have worked.
I am making a simple button in Flash CS4 with AS3. The button has a hover effect and that's it. I am wanting the button to link to a different webpage when clicked on in the same window. I am using this code:
Button.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void
var request:URLRequest = new URLRequest("http://www.mysite.com);
navigateToURL(request, "_self");
When I test the movie in Flash, it works fine. It takes me to the webpage. However, when embedded online, it does nothing. I can click on it, and I will remain there on the same page. Like it's just a pretty image with a hover effect and no link. I've tested the button in both IE and Firefox, and it does not work in either.
Now here's the funny thing....when I use _blank instead of _self, it works just fine in both Firefox and Explorer. Any ideas of what I am doing wrong?
Thank you.why you are adding the event listener to Button it is one of the cless names flash provides.
Make sure
You have the code where you have your button.
you have named your button instance properly.
and you attach your event listener to the instance with the same name. -
Some strange problem with Flash/As3
Hi,
I am having some strange problem with my flash cs3.
Whatever script I write in as3 doesn't work, even a stop() function doesn't work . But when I change my publish setting to as2 it works fine.
Not sure about the root cause, may be some setting or preference or my cs3 is corrupted.
Can anybody please advise.
Thanks,
Kishortry this
create a new fla as3,
select frame 1
open the actions panel
paste in the following code
var squares:Array = new Array;
setup();
function setup():void {
for (var i = 0; i < 25; i++) {
var square:Sprite = new Sprite();
//square.name = "square" + i;
square.graphics.beginFill(Math.random() * 0xffffff);
squares.push(square);
squares[i].graphics.drawRect(0, 0, 100, 100);
squares[i].x = i*3;
squares[i].y = i*3;
squares[i].filters = [];
square.graphics.endFill();
stage.addChild(squares[i]);
for (var j = 0; j < squares.length; j++) {
squares[j].addEventListener(MouseEvent.MOUSE_DOWN, dragMovie);
squares[j].addEventListener(MouseEvent.MOUSE_UP, dropMovie);
squares[j].buttonMode = true;
function dragMovie(event:MouseEvent):void {
event.target.startDrag();
function dropMovie(event:MouseEvent):void {
event.target.stopDrag(); -
Problem with AS3 "ExternalInterface.call" in InternetExplorer
Hi,
Explaining how the page is setup:
I have a HTML page with 2 different AS3 Flash movies.
The first flash movie is the main animation and sits in the
middle of the screen with a large background image set into the
body of the HTML.
The second flash movie stretches 100% width/height of the
screen dimensions and acts as a fade from black>to invisible.
What I'm trying to do:
Once the second Flash animation has faded from black to
invisible it calls a JavaScript function in the HTML page to hide
the div element the second flash movie is embed into (this is
because the first flash movie will display a set of input boxes
which the user needs to be able to type into - which they wont be
able to click on if there is another flash movie overlaying the
entire first movie).
My intial solution:
In the second Flash movie is the following code:
stop();
// this will load the API necessary to communicate with
external entities
import flash.external.ExternalInterface;
// call the JavaScript function
ExternalInterface.call('myJavaScriptFunction');
...and this works fine in Mozilla Firefox/Safari. The
actionscript successfully calls the JavaScript function in the HTML
page and that JavaScript function simply (at this stage displays an
alert() message to show that it has been successfully called).
Problem with IE:
But, the moment I try this in Internet Explorer I don't get a
alert() message but a JavaScript error message that says:
Code: Select all
Line: 1
Char: 106
Error: 'null' is null or not an object
Code: 0
As you can expect I'm totally confused as to what the problem
could be.
This is really urgent as it's a live project that needs to
get completed immediately, so any help you may have would be
greatly appreciated!
Kind regards,
Mark.My guess is that its to do with your embedding code. Check a)
you have an id attribute assigned to the resulting object tag from
whatever embedding method you use and b) for good measure make sure
its unique in your html page.
Javascript needs to have a valid reference to return the
value from the javascript function back to flash. In my experience
IE is more sensitive to issues here.
If you get stuck post a test page somewhere.
Tools to use to help with javascript debugging and view the
html embed results (e.g. from swfobject or activecontent.js):
In firefox : Firebug
In IE: IE Developer Toolbar , Companion JS, and DebugBar are
all helpful and , combined, get close to Firebug. -
Problems with Captivate 5, LMS, and AS3
I recently acquired Captivate 5 and I am having difficulty getting it to work with our LMS (Plateau). When I publish a presentation to AICC using Captivate 5, and try to load it in the LMS, it doesn't get past the loading page. I've tried it with an existing course, and I've tried making a simple (3 slides with a text box) new presentation in Captivate 5 and I have the same problem. However, the .swf and .htm files load fine when viewed directly. It's only when run through the LMS that I have a problem.
I was able to reproduce the problem with Captivate 4 by publishing to ActionScript3. It worked fine when I used AS2. Unfortunately, Captivate 5 doesn't allow publishing to AS2, so I'm at a loss of how to address this.
Any suggestions? Is anybody else experiencing this problem?What brand is your LMS? (What manufacturer)
What versions of SCORM does it support?
What version of ActionScript does your LMS support? AS2 or AS3?
Have you tried uploading a short Captivate 5 lesson with only a few slides and one or two questions (example: True False question)?
If you have Captivate 3 or 4, have you tried uploading a lesson in AS2 to see if your LMS accepts it?
We need more information than just saying: Course not work.
Test first on very simple short lessons to make sure the LMS will accept Captivate 5 content at all. If it will play simple content, try more complex content.
Your issue could be caused by some component or object in the course, or it could be some issue with the LMS. At this stage we do not know the cause, but it can often be determined by testing with simple projects first and then adding complexity until something breaks. -
Problem with XML loading and xmlns
I'm having a problem with loading an XML file that was created by Filemaker. Filemaker will output an XML file using one of two different grammars. One outputs in a mostly standard form that I can use with one glitch. Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.
Specifically:
<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
If I remove the xmlns="http://www.filemaker.com/fmpdsoresult" the file loads properly and I can access the various fields with no problem. However, when I leave the xmlns=... in, it will trace out the XML properly but I can't access the fields using the code listed below. This is driving me crazy!
With the xmlns part in the XML file I get the following error when it tries to load the thumbnail files:
TypeError: Error #1010: A term is undefined and has no properties.
I need to have it so that the user can enter/edit data and simply output the XML file from Filemaker and then Flash will load up the unaltered XML file and show the info requested by the user. That is to say I could have the user open the XML file in a word processing application and have them delete the xmlns..., but that is rather cumbersome and not very user friendly.
I've tried every xml.ignore function I could find but it doesn't help. Hopefully someone out there can help
Thanks,
-Mark-
Partial XML:
XML From Filemaker Export:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This grammar has been deprecated - use FMPXMLRESULT instead -->
<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
<ERRORCODE>0</ERRORCODE>
<DATABASE>Sport.fp7</DATABASE>
<LAYOUT></LAYOUT>
<ROW MODID="1" RECORDID="1">
<FirstName>Mark</FirstName>
<LastName>Fowle</LastName>
<Sport>Sailing</Sport>
<Medal>None</Medal>
<CourseOfStudy>Design</CourseOfStudy>
<Year>1976-1978</Year>
<HomeState>California</HomeState>
<ImageName>93</ImageName>
</ROW>
</FMPDSORESULT>
AS3 Code:
import fl.containers.UILoader;
var aPhoto:Array=new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
var toSet:int=10;//time out set time
var toTime:int=toSet;
var photoPerPage:int=6;
var fromPos:int=photoPerPage;
var imgNum:Number;
//var subjectURL:URLRequest=new URLRequest("testData_FM8.xml");
var subjectURL:URLRequest=new URLRequest("Sports.xml");
var xmlLoader:URLLoader=new URLLoader(subjectURL);
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
var subjectXML:XML = new XML();
subjectXML.ignoreWhitespace=true;
subjectXML.ignoreComments=true;
subjectXML.ignoreProcessingInstructions=true;
function xmlLoaded(evt:Event):void {
subjectXML=XML(xmlLoader.data);
if (root.loaderInfo.bytesTotal==root.loaderInfo.bytesLoaded) {
removeEventListener(Event.ENTER_FRAME, xmlLoaded);
trace("XML Data File Loaded");
trace(subjectXML);
} else {
trace("File not Found");
imgNum=2;//subjectXML.ROW.length;
trace(subjectXML);
loadThumb(0);
function loadThumb(startPos:int):void {
var count:Number=aPhoto.length;
trace(subjectXML.DATABASE);
for (var i=0; i<count; i++) {
try{
aPhoto[i].source="images/"+subjectXML.ROW[startPos+i].ImageName+"_main.jpg";
}catch (e:Error){
trace(e);
aPhoto[i].mouseChildren=false;
aPhoto[i].addEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
trace("Current mem: " + System.totalMemory);
ldAttract.visible=false;
function unloadThumb():void {
var count:Number=aPhoto.length;
for (var i=0; i<count; i++) {
aPhoto[i].unload();
aPhoto[i].removeEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
trace("Current mem: " + System.totalMemory);
function onThumbClick(evt:MouseEvent) {
var i:Number;
//trace("Thumbnail Clicked " + evt.target.name);
i=findPos(evt.target.name);
ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos].LOCAL_OBJECT_ID+"_main.jpg";
ldLrgPhoto.visible=true;
btnPrev.visible=false;
btnNext.visible=false;
gotoAndStop("showPhoto");
function findPos(thumb:String):Number {
var pos:Number;
var count:Number=aPhoto.length;
for (var i:Number=0; i<count; i++) {
if (thumb==aPhoto[i].name) {
pos=i;
return pos;Hi,
I was trying to use xml namespaces, so in my application I receive an XML file from the server. The file has a namespace, so when I parse the file I need to specify the namespace:
I got the following piece of xml:
<ls:exchange xmlns:ls=".../tsw" xmlns:tm="http://kxa">
<ls:projects>
<tm:annotation id="" date="" action="getprojects" status="responseok"/>
<ls:project id="" name="proj" description="..." owner="asss" release="2" />
<ls:projectV id="" version="" creationdate="" modificationdate=""/ >
</ls:project>
</ls:projects>
</ls:exchange>
and the following code
<mx:VBox label="WELCOME" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<mx:Tree id="tree" dataProvider="{srv.lastResult.project}" labelField="@name" width="300" height="100%" itemOpen="itemOpenEvt(event);" />
</mx:VBox>
So i want to display the content of the xml (project nodes”) in a tree view, but i don’t know how to includes the namespace"ls:" in the data provider “srv.lastResult.project”. can u help me it’s urgent.
sincerly
Celine -
Problems with addChild()
Hello,
I am just learning AS3 and have a problem with addChild(). I
have created a slide show Class, which works fine when I call it
from the document class field of the .fla. If I call the slide show
class not directly from the .fla but though another class the slide
doesn't show, even through the slide show is running in the
background which I tested with traces.
I would be glad, if someone could help me with this problem.
Thanks in advande
DidiimageLoader.load(urlReq); // get it
addChild(imageLoader); // display it
Maybe you have to wait until you are sure the image has been
loaded, i.e. when the event "complete:Event" happens.
http://livedocs.adobe.com/flex/2/langref/flash/net/URLLoader.html#load() -
Problem with module lazy loading in flex 3
Hi every body!
I have some problems with Module lazy loading. I am using flex 3.5, Module-flex3-0.14, parsley 3.2.
I can't get the LazyModuleLoadPolicy working correctly.
In my main application (the one that loads the modules), my parsley context is the following:
<cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ OpenViewMessage }" />
<cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }"/>
<cairngorm:ParsleyModuleDescriptor objectId="test"
url="TestModule.swf"
applicationDomain="{ClassInfo.currentDomain}"
/>
And to load my module:
[Inject(id="test")]
[Bindable] public var test:IModuleManager;
<core:LazyModulePod
id="moduleLoader"
moduleManager="{test}"
moduleId="testModule"
/>
with LazyModulePod.mxml:
<mx:Canvas
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:module="com.adobe.cairngorm.module.*"
xmlns:parsley="http://www.spicefactory.org/parsley">
<mx:Script>
<![CDATA[
import com.adobe.cairngorm.module.ILoadPolicy;
import com.adobe.cairngorm.module.IModuleManager;
[Bindable]
public var moduleId:String;
[Bindable]
public var moduleManager:IModuleManager;
[Bindable]
[Inject(id="lazyLoadPolicy")]
public var lazyLoadPolicy:ILoadPolicy;
]]>
</mx:Script>
<parsley:Configure/>
<module:ViewLoader id="moduleLoader"
moduleId="{ moduleId }"
moduleManager="{ moduleManager }"
loadPolicy="{lazyLoadPolicy}">
<!--<module:loadPolicy>
<module:BasicLoadPolicy/>
</module:loadPolicy>-->
</module:ViewLoader>
</mx:Canvas>
OpenViewMessage.as in a swc:
public class OpenViewMessage
private var _moduleId:String;
private var _viewId:String;
public function OpenViewMessage(moduleId:String, viewId:String)
this._moduleId = moduleId;
this._viewId = viewId;
public function get viewId():String{
return _viewId;
[ModuleId]
public function get moduleId():String
return _moduleId;
In another flex project, my module context is:
<mx:Object
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:controler="com.cegedim.myit.controler.*">
<controler:WindowControler/>
</mx:Object>
The module implements IParsleyModule
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
implements="com.adobe.cairngorm.module.IParsleyModule"
xmlns:spicefactory="http://www.spicefactory.org/parsley">
<mx:Script>
<![CDATA[
import org.spicefactory.parsley.flex.FlexContextBuilder;
import com.adobe.cairngorm.module.IParsleyModule;
public function get contextBuilder():ContextBuilderTag
return contextBuilderTag;
]]>
</mx:Script>
<spicefactory:ContextBuilder id="contextBuilderTag" config="{ MyITTestModuleContext }"/>
<spicefactory:Configure/>
</mx:Module>
and the WindowControler:
public class WindowControler
public function WindowControler(){}
[Init]
public function initialize():void
Alert.show("Module Initialized");
[MessageHandler(scope="local")]
public function openViewMessageHandler(message:OpenViewMessage):void
Alert.show("Opening view " + message.viewId + " in the module " + message.moduleId);
If i uncomment the basicLoadPolicy in LazyModulePod.mxml and remove the lazyModuleLoadPolicy, everything works fine. The module is loaded when it's added to stage and it receives correctly messages dispatched to it. But with the lazy policy the module never loads.
I may have missed something or there is somthing i don't understand because i tried the ModuleTest provided in example in cairngorm sources. It works fine (i mean loading the moduleA2 when receiving a message), but if i replace the change the lazyModulePolicy to listen to broadcasted messages instead of a pingMessage, the module never loads too.
<cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ BroadcastMessage }" />
<cairngorm:ModuleMessageInterceptor
type="{ BroadcastMessage }" moduleRef="moduleA" />
public class BroadcastMessage
public function BroadcastMessage()
If someone has any clue, i'll be happy to test it =)
Thanks.Hello, back on my issue, i tested a little bit more the message dispaching.
I read the lazyLoadPolicy class and noticed that it always has to have a ModuleId property in the message to work, that's why the broadcast message didn't work to awake the module with the lazy loading policy.
So i added copy of my module:
<cairngorm:ParsleyModuleDescriptor objectId="test"
url="TestModule.swf"
applicationDomain="{ClassInfo.currentDomain}"
/>
<cairngorm:ParsleyModuleDescriptor objectId="testbis"
url="TestModuleBis.swf"
applicationDomain="{ClassInfo.currentDomain}"
/>
Set them both with a basicLoadPolicy, and tries to dispatch a message to only one of them using the ModuleId metatag. I then noticed that both modules received the message and not only the one i expected.
I then changed the ModuleMessageInterceptor configuration to dispatch to only one kind of module:
<cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }" moduleRef="test"/>
and this worked as expected. Only the first module catched the message. I am obiously messing with the ModuleId metatag but i cannot see what's wrong...
I compiled with
-keep-as3-metadata+=ModuleId
but this hasn't changed anything... -
Alright I'm having a problem with the Mac instructions for Getting Started with Alchemy (http://labs.adobe.com/wiki/index.php/Alchemy:Documentation:Getting_Started)
Basically step 13 when I type :
gcc stringecho.c -O3 -Wall -swc -o stringecho.swc
gives me the following output
Macintosh-3:stringecho aman$ gcc stringecho.c -O3 -Wall -swc -o stringecho.swc
stringecho.c:10:17: error: AS3.h: No such file or directory
stringecho.c:14: error: syntax error before ‘echo’
stringecho.c:14: error: syntax error before ‘AS3_Val’
stringecho.c:15: warning: return type defaults to ‘int’
stringecho.c: In function ‘echo’:
stringecho.c:22: warning: implicit declaration of function ‘AS3_ArrayValue’
stringecho.c:22: error: ‘args’ undeclared (first use in this function)
stringecho.c:22: error: (Each undeclared identifier is reported only once
stringecho.c:22: error: for each function it appears in.)
stringecho.c:29: warning: implicit declaration of function ‘AS3_String’
stringecho.c: In function ‘main’:
stringecho.c:41: error: ‘AS3_Val’ undeclared (first use in this function)
stringecho.c:41: error: syntax error before ‘echoMethod’
stringecho.c:47: warning: implicit declaration of function ‘AS3_Release’
stringecho.c:47: error: ‘echoMethod’ undeclared (first use in this function)
stringecho.c:50: warning: implicit declaration of function ‘AS3_LibInit’
stringecho.c:50: error: ‘result’ undeclared (first use in this function)
Macintosh-3:stringecho aman$
From what I gather it seems that some files are missing (AS3.h) which is why the errors and warnings are caused... is there anything I have to do to get that file
If anyone can help explain whats wrong and how to fix the problem it will be greatly appreciated
Skribbsausrelemac wrote:
No, I enter pin, everything was fine, even wrote that connected to the network.
then swipe to the left, to connect to the wi-fi and then writes: searching a mobile network. and can do nothing.
maybe my sim is not suitable ? I buy a sim free device...
do you have a data plan on it?
if not then you need to set it up with wifi
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
This file has been supposedly changed from As2 to As3. It seems as if it used to stop when I first got it. But the links didn't work. When I followed troubleshooting protocols, it started looping non-stop.
Please help. I can't seem to attach the flv and the action script files. All I get from the output window is "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts."
Please help. I paid a coder to switch the file from as2 to as3 and this is what he gave me...contact that coder and let them know the problem. if it's a problem with their code, they should fix it without charge.
-
Problem with action script 3 make input text box and button....
Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
air for android only work with AS3,
the search function is to type a person's name and hit submit then go to a specific frame.
have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
(it work find in AS2 but not in AS3,)
Here is my current code that is placed on the main timeline, first frame:
stop();
onEnterFrame = function () {
submit.onRelease = function() {
switch (yourname.text) {
case "name1" :
gotoAndStop(2);
break;
case "name2" :
gotoAndStop(3);
break;
My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
Basically, I'm having a problem with making this to work with AS3.you should use the default option in the switch statement
that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
function onSubmit(e:MouseEvent):void
switch (yourname.text)
case "name1":
gotoAndStop(2);
break;
case "name2":
gotoAndStop(3);
break;
default:
goToAndStop(you frame you want);
break; -
Probleme with FULL_SCREEN
Hi I have a probleme with full screnn I put this ligne stage.displayState= StageDisplayState.FULL_SCREEN;
in my code as3 of my project, I run my app with ctrl+enter I don't have any probleme and TLF Text are modifiable I can wirte a text, but when i run from swf or exe it run on full screen but i can't modify a text of TLF text, and i declare it modifiable!! . resolution of my project 1280 x 720Use FULL_SCREEN_INTERACTIVE instead of just FULL_SCREEN
-
Resolving problem with ORA-01031: insufficient privileges
hello i just to write a few word about my installation of oracle database 9i
My installation is on a Red Hat AS3
I have a problem with the error :ORA-01031: insufficient privileges
The one who read this know what about i tell.
The authorization is only for the user which Group is DBA as you can read everywhere.
but me when i tried groupadd dba => it tells group already exist.
but i can't find the group dba in the file /etc/group.
So i tried to make my user 'oracle' works with the 'already group exist' dba .
useradd -g dba oracle
but when i tried to start the database i create i have the message. : ORA-01031: insufficient privileges
i tried to add manualy the group dba to /etc/group (as i can read in websites)
and add a user manualy (/etc/passwd).
But does works.
I try all i can during 1 days long.
I was really upset because nothing that i read work.
finaly I go to the RedHat Menu (things i don't really do normaly on LINUX) and go to 'SYSTEM SETTINGS' and choose 'User and Group'
Here i can see my user 'Oracle' I get the property of the user .
there is a tab group ( 'select the group that the user will be member of:')
None of them where name DBA so i decidied to select all of them and tried.
MAGIC!!! then it works!!!
ps: after when i see the list of the group I saw that one of them is named 'SYS' . I really think that it is the one group i had to select. but don't know.
Now It is working for me so... And good luck for you. bye.Errors
ORA-01031 "insufficient privileges"
Symptoms
During database upgrade phase using DBUA , it fails with error
ORA-1031 Insufficient privileges
Connection from sqlplus also fails with same error
$ sqlplus /nolog
SQLPLUS "conn / as sysdba"
ORA-1031 Insufficient privileges
Changing the REMOTE_LOGIN_PASSWORDFILE to SHARED / NONE does not make differen
Cause
ORACLE_HOME owner oramigts is part of OS group "dba" ,but config.s shows group "g680"
The 'OSDBA' and 'OSOPER' groups are chosen at installation time and usually both default to the group 'dba'.
These groups are compiled into the 'oracle' executable and so are the same for all databases running from a given ORACLE_HOME directory.
The actual groups being used for OSDBA and OSOPER can be checked thus:
cd $ORACLE_HOME/rdbms/lib
cat config.[cs]
Solution
To implement the solution, please execute the following steps:
1. Checked the ORACLE_HOME owner.
echo $ORACLE_HOME
/h02/app/oracle/product/9.2.0_64
cd / h02/app/oracle/product/
ls -l
drwxr-xr-x 58 oramigts dba 1024 Jan 2 2004 9.2.0_64
2.ORACLE_HOME software owner "oramigts" is part of group "dba"
3.Checked file $ORACLE_HOME/rdbms/lib/config.s
[If your platform has config.c:
Due to the way different compilers under different architectures generate
assembler code, it's not possible to give a universal rule.]
It shows dba group as "g680" where software owner is part of "dba" group
You can more find detail on config.s / config.c in the following doc.
Note 50507.1 SYSDBA and SYSOPER Privileges in Oracle
4. Modified the config.s for correct group.
.ascii "g680\0"
to
.ascii "dba\0"
7. mv config.o config.o.bak
8. make -f ins_rdbms.mk config.o ioracle
9. Checked the file config.o is created at $ORACLE_HOME/rdbms/lib
10. Connected / as sysdba thru Sqlplus from 9.2 Home, which connected sucessfully. -
Problems with tilt viewer in FLEX
I have a problem with the tilt viewer component in a FLEX
prpoject that uses AS2 and AS3 we can't seem to resolve. Looking
for someone who would like to help us out to fix the problems and
provide assistance in creating a functioning PC and MAC code base.
James Pearson, Project Manager
Metaxpert
[email protected]"italiantometa" <[email protected]> wrote in
message
news:gk5em7$3s7$[email protected]..
> Hi Amy,
>
> This isn?t spam and I hope you get the email. The tilt
viewer is a
> component
> that allows the images on the screen to be moved about
from a central
> point in
> a see-saw fashion ? kind of like a flat panel can be
tilted
> up/down/left/right.
> I?m looking for someone with FLEX, AS2 and AS3
experience to take a look
> at
> this and fix it for us. Interested?
Is this a Flash component or a Flex component? What's the
issue?
Maybe you are looking for
-
I don't want to listen to EVERY podcast in my library
It seems that to download new podcast episodes. I have to listen to the oldest one on my computer/ipod so it can download the latest episode. Sometimes I go weeks without listening to podcasts on my itunes or ipod because I listen to them straight fr
-
xsl:include in XSL Workshop
I am trying to use <xsl:include> for some proxy stylesheet. I use the form <xsl:include href="filename.xsl" /> I get the following error when process the stylesheet: 'Bad URI found while including/importing file: no protocol: filename.xsl' Currently
-
Lion... Seems to be slowing my iMac Down? Tips and Tricks?
Hey everyone, this is my first post so go easy on me I installed lion as soon as it came out. I'm really impressed so far, loving the new features (except my inverted mouse, that had to be changed pretty sharpish). My only problem is, is that it seem
-
I get the message: The product distribution file could not be verified. It may be damaged or was not signed. Trying to download mavericks. Thank you.
-
TA38625 where does a screenshot get stored on the iphone
I need to screenshot a confirmation page on my iphone...where does it get stored? Need to email it after I capture it. Thanks