i have an a href tag.
i want that embed swf (object) tag to a href.
i dont want add event in swf, beacuse a href link is different and create dynamic.
underestand it?
what can i do?
In a custom queue, there's a push() and a pop() function. The pop() may be called any time on an Event.COMPLETE, so does this mean that code can be running in push() and pop() simultaneously? If so, is there a way to prevent the code from being run in both functions at the same time?
Hey,
I've been working on a Cook Book App but each view ( or recipie page) takes about 45 minutes to complete so as you can imagine its taking forever.
The problem is that I have to manually:
Set up a gradient image for the back ground (Somtimes I have to add a few image backgrounds to fit the view as I often use a scroll view, not sure how this could be automated?)
Put an image behind the titles "Recipe name" , "Time needed" and an image to go behind the recipie instructions ( again I might need a few of these depending on how long the description is.
Creating view controllers for main sections such as "Breakfast" and "Lunch" and then I need to manually create view controllers to go in these sections.
Theres got to be a way to set up a template for this?
Thanks for reading all of this.
For what real time scenarios/use cases one should go to Flex Technology ?
What real time problems you have solved using Flex Technology ?
What real time problems have you faced because of using Flex Technology and what was your work around for that use case ?
in adobe air , I can play a mp3 file from the web , and download the file to a custom file system before or after too . but in this way I have to download the file twice factly.
So, how to save the file to a custom location when the sound is playing , and using the same download file stream for not waste any bits?
Red: Shape inside parent movieclip,
Yellow: Children inside parent movieclip
I'd like to animate the yellow dots, but make sure that they never gets out of the red shape's boundary. How can I approach this problem?
Hi,
I'm porting my Flex3 app to Flex4 (FlashBuilder4). I get the whole new state concept, except one thing. In a custom component (separate mxml file) I'm using the main level Application's state.
In Flex3 it was:
<mx:State name="only_view_mode">
<mx:RemoveChild target="{myComponent.button1}" />
</mx:State>
In Flex4 it should be something like that:
<mx:State name="only_view_mode" />
and
<mx:LinkButton id="button1" excludeFrom="???" />
My question is: how can I access to an Application state from a component? I checked the official reference (http://www.adobe.com/go/learn_flex4_alldocumentation_en) and Google of course but without any success.
Thanks in advance
Hey guys I'm using the latest version of XCode (3.2.2) and I've linked the framework using the tutorial. I was building my app and tested it and I get a BWToolkit exception on decoding.
I've included the Framework in the frameworks and added it to the copy files stage.
I even created a new dummy app including the framework and adding it to the copy files stage and it still crashes when I try to run.
Any ideas? Do I need to include it somewhere in the app? I'm worried I've overlooked something really simple.
2010-04-13 14:14:24.540 BWTestFramework[7504:a0f] An uncaught exception was raised
2010-04-13 14:14:24.543 BWTestFramework[7504:a0f] *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)
2010-04-13 14:14:24.545 BWTestFramework[7504:a0f] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)'
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff84a77d24 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff82ba00f3 objc_exception_throw + 45
2 CoreFoundation 0x00007fff84a77b47 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff84a77ad4 +[NSException raise:format:] + 148
4 Foundation 0x00007fff83804aa6 _decodeObjectBinary + 2427
5 Foundation 0x00007fff83805825 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229
6 Foundation 0x00007fff83805d65 -[NSArray(NSArray) initWithCoder:] + 462
7 Foundation 0x00007fff83804b1f _decodeObjectBinary + 2548
8 Foundation 0x00007fff83803f99 _decodeObject + 208
9 AppKit 0x00007fff8069fbfb -[NSView initWithCoder:] + 362
10 Foundation 0x00007fff83804b1f _decodeObjectBinary + 2548
11 Foundation 0x00007fff83803f99 _decodeObject + 208
12 AppKit 0x00007fff806adfbb -[NSWindowTemplate initWithCoder:] + 3824
13 Foundation 0x00007fff83804b1f _decodeObjectBinary + 2548
14 Foundation 0x00007fff83805825 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229
15 Foundation 0x00007fff83805268 -[NSSet(NSSet) initWithCoder:] + 447
16 Foundation 0x00007fff83804b1f _decodeObjectBinary + 2548
17 Foundation 0x00007fff83803f99 _decodeObject + 208
18 AppKit 0x00007fff8062fcde -[NSIBObjectData initWithCoder:] + 1983
19 Foundation 0x00007fff83804b1f _decodeObjectBinary + 2548
20 Foundation 0x00007fff83803f99 _decodeObject + 208
21 AppKit 0x00007fff8062f40d loadNib + 146
22 AppKit 0x00007fff8062e96d +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
23 AppKit 0x00007fff8062e7a5 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326
24 AppKit 0x00007fff8062bd27 NSApplicationMain + 279
25 BWTestFramework 0x0000000100001891 main + 33
26 BWTestFramework 0x0000000100001868 start + 52
)
terminate called after throwing an instance of 'NSException'
That's the crash report
I draw figure in Flsh ID with JSFL methods, for example
// draw rectangle
doc.addNewLine({x:0, y:0}, {x:2000, y:0});
doc.addNewLine({x:2000, y:0}, {x:2000, y:500});
doc.addNewLine({x:2000, y:500}, {x:0, y:500});
doc.addNewLine({x:0, y:500}, {x:0, y:0});
// how can I fill it, because this way doesn't work
doc.setFillColor('#0000ff');
I am just wondering is there a way to convert nib/xib file to ojbective C code? I just want to find the equivalent code to the nib/xib file (I've tried nib2objc, seems the result is not what I am after).
Actually I want to compile this example
http://developer.apple.com/iphone/library/samplecode/TableSearch/index.html
without nib/xib file (I want it exactly the same with original), any idea about doing this?
I want to load data from my web server, I want it be the AJAX/Comet way, my web-server long holds the request, response it until something happened. Thus, I wrote some as3 code like this:
private function load(): void {
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.tick = this.tick;
request.data = variables;
urlLoader = new URLLoader(request);
urlLoader.addEventListener(Event.COMPLETE, onComplete);
urlLoader.addEventListener(IOErrorEvent.IO_ERROR , onIOError);
log.info("Loading info from {0}", request.url);
}
It works, if the waiting time is short, but however, it failed with IOError 2032, seems the waiting time is out. Here is the problem, how can I do a long-polling with as3 and avoid the timeout error?
Thanks.
Trying to wrap my head around the apple design scheme. I have a UIViewController and the corresponding XIB file that has my main screen in my application. I want to have a button on this XIB that displays another "form" (this is my disconnect) in the foreground where the user selects from a myriad of choices, then it hides that "form" and goes back to the first one.
I'm completely lost here. Initially I thought I'd just add another view and set the self.view of my controller to the new view, add another IBAction and call it a day, but I can't seem to make that work. For sake of argument, say I want to "gray out" the current form, have a modal type window that takes up roughly 60% of the screen and requires you select an option, then it hides itself and we go back to normal. What is the standard approach here?
Thanks
I am making an application that plays the video stream from the user's local system (both Windows and Mac). I use the Camera.getCamera() method and in turn Camera.names to get a list of camera attached with the system.
Unfortunately, if the camera is already in use by another application, say a desktop application on user's system, the browser is crashed. Is there any way that I can detect if a specific camera from the list of available camera is already in use by any other application?
hi,
i want to give deep linking for named destination..
is that possible?
i am using this tool : http://flexpaper.devaldi.com/
This tool is loading PDF from converting PDF to SWF using PDF2SWF(www.swftools.org)
is there any way to get the named destination and give deep linking for the named destination..?
Please help me.
thanks in advance..
Palanisamy
I have two views within one .xib (one view for landscape, another for portrait). How can I use the same IBOutlet I've defined in @interface section for both labels if they have the same functionality. (ctrl+dragging to both of them does'n help-each time I drag to second, the first one loses its outlet).
i'm creating a visual editor in flex and need to let users export thier projects into Image format. But i have one problem: size of the canvas is fixed and when user add element which is out of these sizes some scroll bars added. And user continue working on the project. but when he want to take snapshot of the canvas he just get the visible part ot the canvas with scrollbars. how to get image of the fullsize canvas?
The only solution i found is to check the positions and sizes of canvas child objects and rezise it to fit them. then take snap and resize back. But it hmmmm... too complicated i think. Is there some "easy methods"?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.graphics.ImageSnapshot;
private function SnapshotButtonHandler():void
{
var snapshot:ImageSnapshot = ImageSnapshot.captureImage(AppCanvas);
var file:FileReference = new FileReference();
file.save(snapshot.data, "canvas.png");
}
]]>
</mx:Script>
<mx:Canvas id="AppCanvas" width="800" height="300" backgroundColor="0xFFFFFF">
<mx:Box x="750" y="100" width="100" height="100" backgroundColor="0xCCCCCC" />
</mx:Canvas>
<mx:Button id="SnapshotButton" label="take snapshot" click="SnapshotButtonHandler()" />
</mx:Application>
What is the more efficient way to create a web video chat ?
What tecnologies ?
What server side and client side languages ?
What type fo server ?
etc
.
Thanks ;)
Look here:
http://mashinaizec.com/mons-2
When you click on some image, fancybox comes in and display that image and put overlay above entire page. What also happens is that vimeo video on the right keeps refreshing preview image whenever i click on any image in gallery.
Also, if you scroll the window to the bottom and them click on, for example, on the bottom left image, overlay shoots in, image is there but see that little X in the top right corner of the image? It is not displayed as it should.
Any idea what to do?
I know nib files are serialized objects and they have owner, outlets to make connections.
Using XCode Navigation window template I created application, which in its order created 2 nib files - MainWindow and SecondView. I can't understand how MainWindow is referring to SecondView, there is no connection between those two as far as I can see. SecondView's owner is UIViewController and in MainWindow there is a navigation tab which is also UIViewController. But how they are connected in IB I can't understand...
Also I don't understand who is instanciating MainWindow's owner object and where that object is being kept, where is the variable which is UIApplication myApp = [[UIApplication alloc] init].
If I create 10 nib files with UIViewController owner, who will trigger their deserialization?
If some class is nib file's owner, what is the essential responsibilities of that class? Is it deserializing nib file into memory?
Sorry for unorganized questions, I've been reading numerous articles and docs about nib files, but it is still confusing.
I've been writing a system that generates some templates, and then generates some objects based on those templates. I had the idea that the templates could be extensions of the Class class, but that resulted in some magnificent errors:
VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of bounds.
What I'm wondering is if subclassing Class is even possible, if there is perhaps some case where doing this would be appropriate, and not just a gross misuse of OOP. I believe it should be possible, as ActionScript allows you to create variables of the Class type. This use is described in the LiveDocs entry for Class, yet I've seen no mentions of subclassing Class.
Here's a pseudocode example:
class Foo extends Class
var a:Foo = new Foo();
trace(a is Class) // true, right?
var b = new a();
I have no idea what the type of b would be.
In summary: can you subclass the Class class? If so, how can you do it without errors, and what type are the instances of the instances of the Class subclass?
I want to learn how to make a social game in facebook. How to go about it. I think you would need a team of devs. What languages are used to make social games like farmville, happy aquarium, etc.
Are any tuts available or any book?
Hi guys,
I've made a library which I'd like to compile to an SWC file, I've tried to do this in FDT by choosing FDT AS3 Library as Run settings, but all I end up with is a 0kb .swc file. Does anybody know what I'm doing wrong? I can't find much when I google it either, if anybody has a quick walkthrough on how to do it saved in your bookmarks or something, that would be great!
Many thanks,
Will
In InterfaceBuilder, I'm creating the simplest possible UIButton, by simply dragging from the Library panel into my view. After doing that, I get a nice UIButton that looks like this:
When I preview in the simulator, or view on my iPad device, my UIButton has a line underneath it, like this:
Anyone else have this problem? Anyone have a fix?
So I am attempting to vertically evenly space these movie clips so I came up with a math formula involving n( the button number) but Its not working.
var buttonArray:Array = [ side_banner.btn1, side_banner.btn2, side_banner.btn3, side_banner.btn4];
var buttonCount:uint = buttonArray.length;
for (var i:uint=0; i< buttonCount; i++) {
buttonArray[i].addEventListener(MouseEvent.CLICK, outputNumber);
buttonArray[i].theTrigger = [i + 1];
}
function outputNumber(e:MouseEvent):void {
trace( e.target.theTrigger);
buttonArray[i].y = (((stage.stageHeight - 400)/4)*(e.target.theTrigger)) - ((stage.stageHeight - 400)/4)/2
}
But apparently each movie clip doesn't actually have a numerical value just a numeric name... how can I get the "n" btn number to use my formula?
Thanks