ActionScript MDIWindow Resize Issue - actionscript

I have an MDIWindow for a tutoring extension to BigBlueButton I am writing in ActionScript . I am a novice with ActionScript. Whenever I create this window it is very large. I can not figure out why it does not appear as the declared width and height. Below I have included my declaration. I would appreciate any help you can give. Thanks!
<MDIWindow xmlns="flexlib.mdi.containers.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mate="http://mate.asfusion.com/"
xmlns:components="org.bigbluebutton.modules.example.view.components.*"
xmlns:views="org.bigbluebutton.modules.example.views.*"
width="650" height="900" label="StudentInterface" creationComplete="onCreationComplete()"
implements="org.bigbluebutton.common.IBbbModuleWindow" layout="horizontal"
title="Student Interface!">

Related

UISegmentControl - Unable to drag event to a function

I am going through a iOS Programming tutorial using Xcode 8.1. Everything is going well until I needed to add a valueChanged event to the uisegmentcontrol element. When I drag it to bind to the function it does not work. Here is the gif I made that could explain better. Any help is greatly appreciated. thanks
Edit: Here is another gif of the actual tutorial that shows how the event is bound to the function. The full video can be found here actual tutorial. Thank you
I think you not set the class name of the scene.
E.g.
Name of Class for the Scene: ViewController.m
set StoryboardID if you need.
Thank you all. I just figure out that Xcode now add the parameter Any to all the functions generated. So to be able to bind the event to the function, I needed to change the parameter to AnyObject. I hope it helps someone else in the same situation. :)

Adding array of UIImage in a UIViewController with some alignment

I just started my first project in iOS, recently I have encountered a problem in the UI when i receive it from the designer.
The expected output is shown as below and i can do most of it without any problem.
Now the problem came when I am about to implement this :
As the number of colour varies depending on item, I cannot add it like what I did for the share and love button I have no idea how can i implement something like this, I have look through the Object Library in the storyboard and cannot find any that can produce the output as expected .Any helps and guides are much apprecited!

iOS Qt - Load QWidget inside UIView?

Hopefully my question will make sense. Just started with Qt so bear with me.
I have an app in Objective-C (for iOS) and I'm trying to add a piece of code in Qt into it.
Most of the UI is in Objective-C (meaning I got UIViews, UIViewControllers, ...) and only a part of it should be handle in Qt.
To create a UI element in Qt, I guess I need to create something that inherits from QWidget.
But how would I set the parent of this QWidget to one of my UIView element?
I understand it would be easier to do everything in Qt, but that is just to much work so that is why I am hoping I can keep part of my UI in Objective-C and the other part in Qt.
Thanks for your help
--
Edit
Well I was following the example from here. Even if it is for Mac OS.
QWidget * qWidget = new QWidget();
qWidget->move(0, 0);
qWidget->setPalette(QPalette(Qt::red));
qWidget->setAutoFillBackground(true);
QVBoxLayout *layout = new QVBoxLayout();
QPushButton *pushButton = new QPushButton("An Embedded Qt Button!", qWidget);
pushButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
layout->addWidget(pushButton);
qWidget->setLayout(layout);
// Adjust Cocoa layouts
UIView *uiWidgetView = (__bridge UIView *)((void*)qWidget->winId()); // Fancy cast for ARC
// Add the widget
[self.view addSubview:uiWidgetView];
qWidget->show();
pushButton->show();
But it does not seem to work for iOS...
I have two messages:
- This plugin does not support propagateSizeHints()
Do not know how to fix that one
- QIOSBackingStore needs to have the same size as its window
This one is referenced here. Does not seem to be fixed yet.
Note: Adding a simple uiview (like a uilabel) to my current view works fine. Just this one that does not seem to render for some reason... :s

Label and NSTimer shadow design

I'm a beginner in iOS and need some leads to do something that don't feel that easy to do ...
I have to change my design for a timer (elapsed time and remaining time) that looks this way :
To something that look this way :
Would you have any leads to give to me (except for the shadow color and offset properties that I already know) ? My principal guess for now is : How differentiate these 2 states : gray when no time and blue when there is.
Thank you in advance !
You're new to iOS development, so i'm not sure if it's a good idea to throw some 3rd party framworks at your head! but anyway, take a look at TTTAttributetLabel. I'ts a drop-in replacement for UILabel and lets you style the parts of a UILabel text differently, so it could fit for your needs above!
Download the framework from the given link and look at the example project provided with it. And don't forget to include the CoreText framework into your project. (see "How to add existing frameworks in Xcode")

No code highlights in fx:Script of flash builder 4.5

It seems all codes inside fx:Script blocks are black with no highlights. That's pretty inconvenient. Can anyone please let me know how to turn it on? Thanks!
First check that the active perspective is "Flash".
Then Window->Preferences. On the left side of the window expand Flash Builder->Editors->Syntax Coloring. On the right side you can set the colors for ActionsScript, CSS and MXML.
If after tinkering around you cannot fix the problem try to delete the "Adobe Flash Builder 4.5" folder located in the user's folder.
Hope this helps
Problem solved. I was using two different namespaces in Application and Module. It's "adobe.com/2006/mxml"; in mx:Application and "library://ns.adobe.com/flex/mx" in mx:Module. After the namespace in mx:Application was made consistent with the one from mx:Module, all syntax are highlighted correctly.

Resources